/*****************************************************************************
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.
var engraver = { src: '/flash/engravers_gothic_bt.swf' };
//var humanist = { src: '/flash/humanist_521_bt.swf' };
var swiss721 = { src: '/flash/swiss721_bold.swf' };

// sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(engraver, swiss721);

sIFR.replace(engraver, {
  selector: 'h2.slogan',
  wmode: 'transparent',
  css: '.sIFR-root { color: #000000; font-size: 29px; text-transform: uppercase; leading: -11; } .small { font-size: 20px; leading: -10;} .indent { margin-left: 28px; font-size: 24px; leading: -10; }'
});

sIFR.replace(swiss721, {
  selector: '#center_content h1.range',
  wmode: 'transparent',
  css: '.sIFR-root { color: #ffffff; font-size: 48px; font-weight: bold; leading: -15; } .spacing { font-size: 10px; } .brand{ font-size: 20px; text-indent: 100; font-weight: normal; }'
});

sIFR.replace(swiss721, {
  selector: '#center_content h1.range_single',
  wmode: 'transparent',
  forceSingleLine: true,
  preventWrap : true,
  css: '.sIFR-root { color: #ffffff; font-size: 48px; font-weight: bold; leading: -15; } .spacing { font-size: 10px; } .brand{ font-size: 20px; text-indent: 100; font-weight: normal; }'
});

sIFR.replace(swiss721, {
  selector: '#center_content h1.subtitle',
  wmode: 'transparent',
  css: '.sIFR-root { color: #ffffff; font-size: 20px; font-weight: bold; text-transform: uppercase; }'
});

sIFR.replace(engraver, {
  selector: '#center_content h1, #center_content h2, .pop h2.spec',
  wmode: 'transparent',
  css: [
		'.sIFR-root { color: #CECECE; font-size: 24px; text-transform: uppercase; leading: -11; }',
		'a { color: #CECECE; text-decoration: none; }',
	    'a:link { color: #CECECE; }',
	    'a:hover { color: #FEA523; text-decoration: underline; }',

    ]
});

sIFR.replace(engraver, {
  selector: '#sidebar h2.sidebar_slogan',
  wmode: 'transparent',
  css: [
		'.sIFR-root { color: #CECECE; font-size: 24px; text-transform: uppercase; text-align: center; leading: -5; }'
  ]
});

sIFR.replace(engraver, {
	selector: '#nav h2',
	css: [
		'.sIFR-root { color: #FEA523; background-color: #2D2D2D; font-size: 24px; text-transform: uppercase; leading: -5; } a{ color: #FEA523; text-decoration: none;}',
		'a { color: #CECECE; text-decoration: none; }',
		'a:link { color: #FEA523; }',
		'a:hover { color: #FEA523; }'
	]
});