/*	
	sifr-config.js
	===============================================================
	http://wiki.novemberborn.net/sifr3/How+to+use		
	
	http://wiki.novemberborn.net/sifr3/Ratio+Calculation
	sIFR.debug.ratios(gotham, {
		selector: '#content h3'
	});		
	_______________________________________________________________
*/	

	var gotham = {
			src: '/resources/ui/flash/sifr/gotham.swf'
			,rations: [8, 1.41, 10, 1.33, 14, 1.31, 16, 1.26, 20, 1.27, 24, 1.26, 25, 1.24, 26, 1.25, 35, 1.24, 49, 1.23, 74, 1.22, 75, 1.21, 79, 1.22, 80, 1.21, 81, 1.22, 1.21]	
	};

	sIFR.activate(gotham);
	
//	sIFR.debug.ratios(gotham, {
//		selector: '#content h3'
//	});			

	switch (template_colour)
	{
		// set fallback bgcolor (if wmode not supported)
		
		case 'white':
			sifr_bgcolor = '#ffffff';		
			break;
		case 'green':
			sifr_bgcolor = '#d5eba3';		
			break;		
		default:
			sifr_bgcolor = '#ffffff';			
	}
	
	sIFR.replace(gotham, {
		selector: '#content h3.first'	
		,wmode: 'transparent'
    ,css: [
      '.sIFR-root { color: #166e8a; background-color: ' + sifr_bgcolor + '; }'
    ]		
		,filters: {			
			// alpha - The alpha transparency value for the shadow color. Valid values are 0.0 to 1.0. The default value is 1.0. 
			// angle - The angle of the shadow. Valid values are 0 to 360 degrees 
			// blurX - The amount of horizontal blur. Valid values are 0 to 255.0. The default value is 4.0. I think this should match Photoshop's 'Size' value.
			// blurY - The amount of vertical blur. Valid values are 0 to 255.0. The default value is 4.0. I think this should match Photoshop's 'Size' value. 
			// color - The color of the shadow.
			// distance - The offset distance for the shadow, in pixels
			// inner - Indicates whether or not the shadow is an inner shadow. The value true indicates an inner shadow. The default is false, an outer shadow (a shadow around the outer edges of the object). 
			// knockout - Applies a knockout effect (true), which effectively makes the object's fill transparent and reveals the background color of the document. The default is false (no knockout). 		
			// quality - The number of times to apply the filter. The default value is BitmapFilterQuality.LOW, which is equivalent to applying the filter once. The value BitmapFilterQuality.MEDIUM applies the filter twice; the value BitmapFilterQuality.HIGH applies it three times. Filters with lower values are rendered more quickly. 		
			// strength - The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the shadow and the background. Valid values are from 0 to 255.0. The default is 1.0. 			
		
			// http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/GlowFilter.html
			// note: GlowFilter must be applied before DropShadow
			GlowFilter: {			
					alpha: 0.8 // Photoshop's 'Opacity' (PSD has 70%/0.7, but this does not give enough definition)
					,blurX: 2 // Photoshop's 'Size' 2-3=no diff, 3-4=big jump
					,blurY: 2	// Photoshop's 'Size'				
					,color: '#ffffff'	// Photoshop's 'Color' (PSD has #eef4f6, but this does not give enough definition)
					,inner: false // No Photoshop equivalent
					,knockout: false // No Photoshop equivalent
					,quality: 1 // No Photoshop equivalent
					,strength: 255 // No Photoshop equivalent		
			}		
			// http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/DropShadowFilter.html				
			,DropShadow: {
				alpha: 1 // Photoshop's 'Opacity'
				,angle: 142 // Photoshop's 'Angle'
				,blurX: 6 // Photoshop's 'Size'
				,blurY: 6 // Photoshop's 'Size'
				,color: '#000000' // Photoshop's 'Blend Mode > Normal: Color'
				,distance: 1 // Photoshop's 'Distance'
				,inner: false // Photoshop's 'Position'
				,knockout: false // Photoshop's 'Layer Knocks Out Drop Shadow'		
				,quality: 1	// No Photoshop equivalent
				,strength: 0.25 // No Photoshop equivalent
			}
		}			
	});
	
	sIFR.replace(gotham, {
		selector: '.motivation h4 a span'	
		,wmode: 'transparent'
    ,css: [
      '.sIFR-root { color: #d6039d; background-color: #ffffff; cursor: pointer; }'
    ]		
		,filters: {					
			// http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/GlowFilter.html
			// note: GlowFilter must be applied before DropShadow
			GlowFilter: {			
					alpha: 0.8 // Photoshop's 'Opacity' (PSD has 70%/0.7, but this does not give enough definition)
					,blurX: 2 // Photoshop's 'Size' 2-3=no diff, 3-4=big jump
					,blurY: 2	// Photoshop's 'Size'				
					,color: '#ffffff'	// Photoshop's 'Color' (PSD has #eef4f6, but this does not give enough definition)
					,inner: false // No Photoshop equivalent
					,knockout: false // No Photoshop equivalent
					,quality: 1 // No Photoshop equivalent
					,strength: 255 // No Photoshop equivalent		
			}		
			// http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/DropShadowFilter.html				
			,DropShadow: {
				alpha: 0.68 // Photoshop's 'Opacity'
				,angle: 52 // Photoshop's 'Angle' less 90
				,blurX: 9 // Photoshop's 'Size'
				,blurY: 9 // Photoshop's 'Size'
				,color: '#000000' // Photoshop's 'Blend Mode > Normal: Color'
				,distance: 5 // Photoshop's 'Distance'
				,inner: false // Photoshop's 'Position'
				,knockout: false // Photoshop's 'Layer Knocks Out Drop Shadow'		
				,quality: 1	// No Photoshop equivalent
				,strength: 0.25 // No Photoshop equivalent
			}
		}			
	});		