$(document).ready(function() {       
	$("#pools").css("display", "inline");
	$("#sportyTabLinks li:first").css("color", "#e8d497").addClass("activated");
	goSifr();
 
	function hideTabs() {       
		$(".info").hide();
		$("#sportyTabLinks li").css("color", "#A0AFCC").removeClass("activated"); 	
	}
		
	function showTab(whatTab) {
		$(whatTab).css("color", "#e8d497"); 
		var moz = (typeof document.implementation != 'undefined') && (typeof
		document.implementation.createDocument != 'undefined');             
		if (moz)
		{
			var source = whatTab.getAttribute("class");  
		}
		else
		{
			var source = whatTab.getAttribute("className");  
		}
		
		var target = document.getElementById(source);        
		$(target).fadeIn("slow");   
		$(target).css("display", "inline"); 
	}                                                         

	$("#sportyTabLinks li").click (
		function() {   
			if($(this).hasClass("activated"))
			{
				return false;
			}
			else
			{
				hideTabs(); 
				showTab(this);   
				$(this).addClass("activated");
				goSifr();
			}
		}
	);
});
