var blackjack = {
	src: '/assets/cssjs/tila/sifr/blackjack.swf'
};

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

sIFR.replace(blackjack, {
	selector: '.buttonlinks a h1',
	onRelease: sIFRTabSwap,
	css: [
		'.sIFR-root { color: #FF0000; margin: 0; padding: 0; text-align: center; }',
		'a { text-decoration: none; }',
		'a:link { color: #FF0000; }',
		'a:hover { color: #FF0000; }'
	],
	wmode: 'transparent'
});

sIFR.replace(blackjack, {
	selector: 'h1',
	css: [
		'.sIFR-root { color: #FF0000; margin: 0; padding: 0; }',
		'a { text-decoration: none; }',
		'a:link { color: #FF0000; }',
		'a:hover { color: #FF0000; }'
	],
	wmode: 'transparent'
});


function sIFRTabSwap(fi) {
	var tab = fi.getAlternate().parentNode;
	
	if (tabObjs = tab.parentNode.parentNode.getElementsByTagName('h1')) {
		for (var i = 0; i < tabObjs.length; i++) {
			document.getElementById(tabObjs[i].id.substring(4)).style.display = 'none';
			tabObjs[i].style.backgroundColor = 'transparent';
		}
	}
	
	tab.style.backgroundColor = '#333';
	document.getElementById(tab.id.substring(4)).style.display = 'block';
}