/*****************************************************************************
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 ITCStoneSansStdMedium = { src: '/_infrastructure/fonts/ITCStoneSansStdMedium.swf' };
//var StoneSerifMedium = { src: '/_infrastructure/fonts/StoneSerifMedium.swf' };
var ITCStoneSansStdMedium = { src: '/js/ITCStoneSansStdMedium.swf' };
var StoneSerifMedium = { src: '/js/StoneSerifMedium.swf' };

sIFR.activate(ITCStoneSansStdMedium, StoneSerifMedium);

function load_sifr(){
	sIFR.replace(StoneSerifMedium, {
	  selector: '.pc h1',
	  css: '.sIFR-root { color: #16458e; } .sIFR-root a { text-decoration: underline; color: #951f2f; } .sIFR-root a:hover { color: #16458e; }',
	  transparent: true, // This is important to prevent dropdown menus from being overlayed by the sifr text.
	  tuneHeight: 0
	});
	sIFR.replace(ITCStoneSansStdMedium, {
	  selector: '.pc h2',
	  css: '.sIFR-root { color: #951f2f; } .sIFR-root a { text-decoration: underline; color: #951f2f; } .sIFR-root a:hover { color: #16458e; }',
	  transparent: true, // This is important to prevent dropdown menus from being overlayed by the sifr text.
	  tuneHeight: 0
	});
	sIFR.replace(ITCStoneSansStdMedium, {
	  selector: '#monitor .pc h2',
	  css: '.sIFR-root { color: #951f2f; } .sIFR-root a { text-decoration: underline; color: #951f2f; } .sIFR-root a:hover { color: #16458e; }',
	  transparent: true, // This is important to prevent dropdown menus from being overlayed by the sifr text.
	  tuneHeight: 0
	});
	sIFR.replace(ITCStoneSansStdMedium, {
	  selector: '.pc h3',
	  css: '.sIFR-root { color: #16458e; } .sIFR-root a { text-decoration: underline; color: #951f2f; } .sIFR-root a:hover { color: #16458e; }',
	  transparent: true, // This is important to prevent dropdown menus from being overlayed by the sifr text.
	  tuneHeight: 0
	});
	sIFR.replace(ITCStoneSansStdMedium, {
	  selector: '.tc h2.section',
	  css: '.sIFR-root { color: #FFFFFF; text-transform: uppercase; } .sIFR-root a { text-decoration: none; color: #FFFFFF; } .sIFR-root a:hover { color: #7ba5e3; }',
	  sCase: 'upper', 
	  transparent: true, // This is important to prevent dropdown menus from being overlayed by the sifr text.
	  tuneHeight: 0
	});
}
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);
}
