// sIFR.debug.ratios({ src: 'swf/foco_light.swf', selector: '#rankings-box tr#theader td.col-2' });

// 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(focolight);
sIFR.activate(focoregular);

//   SITE-WIDE

sIFR.replace(focolight, {
	selector: 'h1.title', 
	wmode: 'transparent',
	css: ['.sIFR-root {color: #E7E7E7; font-size: 24px;}']
});

sIFR.replace(focolight, {
	selector: '#footer h6', 
	wmode: 'transparent',
	css: ['.sIFR-root {color: #E7E7E7; font-size: 13px; font-weight: normal;}']
});


// SHOW SCHEDULE

sIFR.replace(focolight, {
	selector: '#show-schedule h1', 
	wmode: 'transparent',
	offsetTop: -4,	
	tuneHeight: -12,
	css: ['.sIFR-root {color: #E7E7E7; font-size: 26px;}'],
	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: '#show-schedule ol#show-dates h2', 
	wmode: 'transparent',
	offsetTop: -4,	
	tuneHeight: -11,
	css: ['.sIFR-root {color: #E7E7E7; font-size: 19px;}'],
	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(focoregular, {
	selector: '#show-schedule ol#show-dates li ol li div', 
	wmode: 'transparent',
	offsetTop: -2,	
	tuneHeight: -6,
	defaultThickness: 200,
	defaultSharpness: -200,
	css: ['.sIFR-root {color: #609e19; font-size: 10px; text-transform: uppercase;}'],
	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(focoregular, {
	selector: '#flash-game .obstacle-overlay h2', 
	wmode: 'transparent',
	offsetTop: -3,	
	tuneHeight: -9,
	fitExactly: true,
	css: ['.sIFR-root {color: #E7E7E7; font-size: 13px;}']
});

sIFR.replace(focolight, {
	selector: '#game-rankings h1',
	wmode: 'transparent',
	offsetTop: -3,	
	tuneHeight: -9,
	fitExactly: true,
	css: ['.sIFR-root {color: #e7e7e7; font-size: 25px; letter-spacing: -1.0; leading: -5; z-index: 100}']
});

// GAMES LANDING PAGE

sIFR.replace(focolight, {
	selector: '#games-thumbs .game a.hit-area h2, #game-aside h2', 
	wmode: 'transparent',
	offsetTop: -4,	
	css: ['.sIFR-root {color: #E7E7E7; font-size: 19px; font-weight: normal; text-align: center}']
});

sIFR.replace(focolight, {
	selector: '#games-thumbs .game a.hit-area-disabled h2, #game-aside h2', 
	wmode: 'transparent',
	offsetTop: -4,	
	css: ['.sIFR-root {color: #2a2a2a; font-size: 19px; font-weight: normal; text-align: center}']
});

// GAMES GAME PAGE

function gamesPageFonts() {
	
	sIFR.replace(focolight, {
		selector: '.video-overlay h3', 
		wmode: 'transparent',
		offsetTop: -3,	
		tuneHeight: -12,
		fitExactly: true,
		css: ['.sIFR-root {color: #E7E7E7; font-size: 26px; letter-spacing: -1.5;}']
	});

	sIFR.replace(focoregular, {
		selector: '.video-overlay h4', 
		wmode: 'transparent',
		offsetTop: -3,	
		tuneHeight: -8,
		fitExactly: true,
		css: ['.sIFR-root {color: #609e19; font-size: 12px; text-transform: uppercase;}']
	});
	
}

gamesPageFonts();

// SITE MAP

sIFR.replace(focolight, {
	selector: '#sitemap h1', 
	wmode: 'transparent',
	offsetTop: -5,	
	tuneHeight: -9,
	fitExactly: true,
	css: ['.sIFR-root {color: #E7E7E7; font-size: 26px;}']
});

sIFR.replace(focolight, {
	selector: '#sitemap h2', 
	wmode: 'transparent',
	offsetTop: -4,	
	tuneHeight: -8,
	fitExactly: true,
	css: [
		'.sIFR-root {color: #E7E7E7; font-size: 19px;}'
		,'a {color: #E7E7E7; font-size: 19px; text-decoration: none;}'
		,'a:link {color: #E7E7E7; font-size: 19px; text-decoration: none;}'
		,'a:hover {color: #E7E7E7; font-size: 19px; text-decoration: none;}'
		,'a:active {color: #E7E7E7; font-size: 19px; text-decoration: none;}'
	]
});

