var home = true;
function TabClick( nTab ){ 
	if (nTab == 0) {
    	document.getElementById("TabContent0").style.display = "block";     
    	document.getElementById("tabs0").className = "TabCommon TabOn"; 
        document.getElementById("tabs1").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent1").style.display = "none"; 
        document.getElementById("tabs2").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent2").style.display = "none"; 
        document.getElementById("tabs3").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent3").style.display = "none"; 
        document.getElementById("tabs4").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent4").style.display = "none"; 
	}
	else if (nTab == 1) {
    	document.getElementById("TabContent1").style.display = "block";     
    	document.getElementById("tabs1").className = "TabCommon TabOn"; 
        document.getElementById("tabs0").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent0").style.display = "none"; 
        document.getElementById("tabs2").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent2").style.display = "none"; 
        document.getElementById("tabs3").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent3").style.display = "none"; 
        document.getElementById("tabs4").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent4").style.display = "none"; 
	}
	else if (nTab == 2) {
    	document.getElementById("TabContent2").style.display = "block";     
    	document.getElementById("tabs2").className = "TabCommon TabOn"; 
        document.getElementById("tabs0").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent0").style.display = "none"; 
        document.getElementById("tabs1").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent1").style.display = "none"; 
        document.getElementById("tabs3").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent3").style.display = "none"; 
        document.getElementById("tabs4").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent4").style.display = "none"; 
	}
	else if (nTab == 3) {
    	document.getElementById("TabContent3").style.display = "block";     
    	document.getElementById("tabs3").className = "TabCommon TabOn"; 
        document.getElementById("tabs0").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent0").style.display = "none"; 
        document.getElementById("tabs1").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent1").style.display = "none"; 
        document.getElementById("tabs2").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent2").style.display = "none"; 
        document.getElementById("tabs4").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent4").style.display = "none"; 
	}
	else if (nTab == 4) {
    	document.getElementById("TabContent4").style.display = "block";     
    	document.getElementById("tabs4").className = "TabCommon TabOn"; 
        document.getElementById("tabs0").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent0").style.display = "none"; 
        document.getElementById("tabs1").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent1").style.display = "none"; 
        document.getElementById("tabs2").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent2").style.display = "none"; 
        document.getElementById("tabs3").className = "TabBorderBottom TabCommon TabOff"; 
        document.getElementById("TabContent3").style.display = "none"; 
	}
} 