	function hoverTab(tabData){
		tabData.style.background = "";
	}
	
	function outTab(tabData){
		tabData = document.getElementById(tabData);
		tabData.className = "tabinactive";
	}
	
	function executeTab(tabData){
		tabData = document.getElementById(tabData);
		tabData.className = "tabactive";
		tabData.style.backgroundPosition = " 0% -0px";
		tabData.onmouseover=function(){};
		tabData.onmouseout=function(){};
	}
	
	function showTabData(idForDisplay){
		var tabFeatured = document.getElementById('tab-featured'); 
		var tabToprated = document.getElementById('tab-toprated');
		var tabMostview = document.getElementById('tab-mostview');
		
		tabFeatured.style.display = "none";
		tabToprated.style.display = "none";
		tabMostview.style.display = "none";
		
		if (idForDisplay == "featured"){	
			tabFeatured.style.display = "block";
			outTab('topratedtab');	
			outTab('mostviewedtab');
			executeTab('featuretab');
		}			
		else if(idForDisplay == "toprated"){
			tabToprated.style.display = "block";
			outTab('featuretab');
			outTab('mostviewedtab');	
			executeTab('topratedtab');	
		}
		else if(idForDisplay == "mostview"){
			tabMostview.style.display = "block";
			outTab('featuretab');
			outTab('topratedtab');	
			executeTab('mostviewedtab');
		}
		
 	}
