/*****************************************************************************
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.
*****************************************************************************/
var amType = { src: '/swf/font-andale-mono.swf' };
var trdGothic = { src: '/swf/font-trade-gothic.swf' };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

function replaceFonts() {
	sIFR.useStyleCheck = true;
	sIFR.activate(amType);
	
	sIFR.replace(amType, {
	  selector: 'h4.subhead'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #333333; opacity:.9; }'
	});
	
	sIFR.replace(amType, {
	  selector: 'h1.pageHeader'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #333333; opacity:.9; }'
	});
	
	sIFR.replace(trdGothic, {
	  selector: 'h3.navHeader'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #000000; opacity:.9; }'
	});
	
	sIFR.replace(trdGothic, {
	  selector: 'h3.sectionHeader'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #000000; opacity:.9; }'
	});
}

replaceFonts();
