/*****************************************************************************
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 frutiger = { src: '/swfs/sifr-frutiger-rm.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>.

sIFR.useStyleCheck = true;
sIFR.activate(frutiger);

function replaceFonts() {
	sIFR.useStyleCheck = true;
	sIFR.activate(frutiger);
	
	sIFR.replace(frutiger, {
	  selector: 'h1'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #5D3526; letter-spacing:2; opacity:.7 }'
	});
	sIFR.replace(frutiger, {
	  selector: 'h2'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #000000; leading:12; opacity:.7 }'
	});
	sIFR.replace(frutiger, {
	  selector: 'h3'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #5D3526; opacity:.7 }'
	});
	sIFR.replace(frutiger, {
	  selector: 'h4'
	  ,wmode: 'transparent'
	  ,css: '.sIFR-root { color: #000000; opacity:.7 }'
	});
}

replaceFonts();
//]]>