/*****************************************************************************
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 BemboRegular = { src: '/js/BemboRegular.swf' };
var HelveticaNeueMediumCond = { src: '/js/HelveticaNeueMediumCond.swf' };

sIFR.activate(BemboRegular, HelveticaNeueMediumCond);

function load_sifr(){
	sIFR.replace(BemboRegular, {
	  selector: '.pc h1',
	  css: [
		  '.sIFR-root { font-size: 35px; text-align: left; color: #FFFFFF; }',
		  'a {color: #FFF; text-decoration: none;}',
		  'a:hover {color: #DB8E00; text-decoration: none;}',
		  ], 
	  wmode: 'transparent'
	});
	
	sIFR.replace(HelveticaNeueMediumCond, {
	  selector: '.pc h2',
	  css: [
		  '.sIFR-root { font-size: 24px; text-align: left; color: #00336F;}',
		  'em { font-style:normal; color: #DB8E00; }',
		  'a {color: #00336F; text-decoration: none;}',
		  'a em { color: #DB8E00; text-decoration: none; }',
		  'a:hover {color: #DB8E00; text-decoration: none;}',
		  ], 
	  wmode: 'transparent' 
	});
	
	sIFR.replace(HelveticaNeueMediumCond, {
		selector: '.sc h2',
		css: [
			'.sIFR-root { font-size: 24px; text-align: left; color: #DB8E00; }',
			'a {color: #DB8E00; text-decoration: none;}',
			'a:hover {color: #00336F; text-decoration: none;}',
			], 
		wmode: 'transparent'
		});
	
	sIFR.replace(HelveticaNeueMediumCond, {
		selector: '.tc h2',
		css: [
			'.sIFR-root { font-size: 24px; text-align: left; color: #DB8E00;}',
			'a {color: #DB8E00; text-decoration: none;}',
			'a:hover {color: #00336F; text-decoration: none;}',
			], 
		wmode: 'transparent'
		});
}
load_sifr();

// Required to make sIFR work with managed pages and partial postbacks
if ((typeof Sys !== "undefined") && (typeof Sys.WebForms !== "undefined")) {
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(load_sifr);
}

