/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.

/*****************************************************************************
    The sIFR configuration should typically go in `sifr-config.js`, but in order to
    keep the config file clean, and to give a quick overview, it's done here instead.
    *****************************************************************************/
  
    var arialShadow = { src: '/img/layout/arial-shadow-gray.swf' };
	var frutigerShadow = { src: '/img/layout/frutiger-shadow-gray.swf' };
	var frutigerNextShadowBold = { src: '/img/layout/frutiger-next-shadow-bold.swf' };
	var arial = { src: '/img/layout/arial.swf' };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(arialShadow, frutigerShadow);

    sIFR.replace(arialShadow, {
	  selector: '.Number'
	  ,css: [
		'.sIFR-root { font-weight: bold; color: #666666; }'
	  ]
	  ,wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
	sIFR.replace(arialShadow, {
	  selector: '.Number02'
	  ,css: [
		'.sIFR-root { font-weight: bold; color: #666666; }'
	  ]
	  ,wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
	
	sIFR.replace(frutigerShadow, {
	  selector: '.TitleFrutiger'
	  ,css: [
		'.sIFR-root { color: #979797;  }'
	  ],
	  wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});

	sIFR.replace(frutigerShadow, {
	  selector: '.TitleForm'
	  ,css: [
		'.sIFR-root { color: #979797;  }'
	  ],
	  wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
	
	sIFR.replace(frutigerNextShadowBold, {
	 selector: 'ul#nav li.Normal h4',
	 css: [
		'.sIFR-root { text-align: left; font-weight: normal; text-transform: uppercase;}',
		'a { text-decoration: none; text-transform: uppercase;}',
		'a:link { color: #333333; text-decoration: none;}',
		'a:visited { color: #333333; text-decoration: none;}',
		'a:hover { color: #e11b2f; text-decoration: none;}'
	  ],
	  wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
	
	sIFR.replace(frutigerNextShadowBold, {
	 selector: 'ul#nav li.Active h4',
	 css: [
		'.sIFR-root { text-align: left; font-weight: normal; text-transform: uppercase; }',
		'a { text-decoration: none; text-transform: uppercase;}',
		'a:link { color: #FFFFFF; text-decoration: none;}',
		'a:visited { color: #FFFFFF; text-decoration: none;}',
		'a:hover { color: #FFFFFF;}'
	  ],
	  wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
	
	sIFR.replace(arial, {
	  selector: 'ul.ListFunction li'
	 ,css: [
		'.sIFR-root { text-align: left; font-weight: bold;}'
		,'a { text-decoration: none;}'
		,'a:link { color: #424242; text-decoration: none;}'
		,'a:hover { color: #D3002B; text-decoration: none;}'
	  ]
	  ,wmode: 'transparent',
	  fixFocus: true,
	  offsetLeft: 2
	});
