// sIFR.debug.ratios({ src: 'swf/foco_light.swf', selector: '#create-your-player #text h1' });

var focoregular = { src: siteRoot + 'content/flash/fonts/foco_regular.swf' };
var focolight = { src: siteRoot + 'content/flash/fonts/foco_light.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.fromLocal = true;
sIFR.activate(focoregular);
sIFR.activate(focolight);

function sIFRReplacements() {
	
	sIFR.replace(focoregular, {
		selector: '#create-your-player #form .msg', 
		wmode: 'transparent',
		css: [ '.sIFR-root {text-transform: uppercase; color: #73A800; font-size: 10px;}' ]
	});

	sIFR.replace(focoregular, {
		selector: '#create-your-player #form .element label', 
		wmode: 'transparent',
		css: [ '.sIFR-root {text-transform: uppercase; color: #808080; font-size: 10px;}' ]
	});

	sIFR.replace(focolight, {
		selector: '#create-your-player #form h2', 
		wmode: 'transparent',
		tuneHeight: -6,
		offsetTop: -2,
		css: [ '.sIFR-root {color:#0D8167; font-size:1.6363em;}' ],
		ratios: [9, 1.27, 14, 1.19, 21, 1.16, 28, 1.13, 38, 1.12, 51, 1.11, 84, 1.1, 85, 1.09, 89, 1.1, 91, 1.09, 92, 1.1, 97, 1.09, 99, 1.1, 109, 1.09, 110, 1.1, 1.09]
	});

	sIFR.replace(focolight, {
		selector: '#game-stats #your-stats #iq-score dl dd', 
		wmode: 'transparent',
		fitExactly: true,
		tuneHeight: -12,
		offsetTop: -4,
		css: [ '.sIFR-root {color:#FFFFFF; font-size:22px;}' ]
	});

	sIFR.replace(focolight, {
		selector: '#create-your-player #text h1', 
		wmode: 'transparent',
		tuneHeight: -12,
		offsetTop: -4,
		css: [ '.sIFR-root {color:#0D8167; font-size:26px; line-height:0.8em; letter-spacing: -1;}' ],
		ratios: [9, 1.27, 14, 1.19, 21, 1.16, 28, 1.13, 38, 1.12, 51, 1.11, 84, 1.1, 85, 1.09, 89, 1.1, 91, 1.09, 92, 1.1, 97, 1.09, 99, 1.1, 109, 1.09, 110, 1.1, 1.09]
	});

	sIFR.replace(focolight, {
		selector: '#stats #iq-card h1', 
		wmode: 'transparent',
		offsetTop: -4,
		tuneHeight: -5,
		css: [ '.sIFR-root {color:#FFFFFF; font-size:18px; letter-spacing: -1;}' ]
	});

	sIFR.replace(focolight, {
		selector: '#site-map h2 span', 
		wmode: 'transparent',
		offsetTop: -4,
		tuneHeight: -5,
		css: [
			'.sIFR-root {color:#73a800; font-size:19px; letter-spacing: -1.3;}'
			,'a {color: #73a800; text-decoration: none;}'
			,'a:link {color: #73a800; text-decoration: none;}'
			,'a:hover {color: #73a800; text-decoration: none;}'
			,'a:active {color: #73a800; text-decoration: none;}'
		]
		
	});	
};

sIFRReplacements();