// JavaScript Document
function switchTab(tabSet,numOfTabs,activeTab) 
{
	for (var i=1;i<=numOfTabs;i++) 
	document.getElementById(tabSet + i).className = '';
	var tab = document.getElementById(tabSet + activeTab)
	tab.className = 'inpage';
}

var initialtab=[1, "bg1"]
function cascadedstyle(el, cssproperty, csspropertyNS){
if (el.currentStyle)
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(csspropertyNS)
}
}

var previoustab=""

function expandcontent(cid, aobject, tabSet,numOfTabs,activeTab){
//if(activeTab == "5")
 //window.open("http://movie.kapook.com","moviekapook")
if (document.getElementById){
switchTab(tabSet,numOfTabs,activeTab) 
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
if (aobject.blur)
aobject.blur()
return false
}
else
return true
}



function ColorswitchOn(el) {
	document.all[el].style.backgroundColor = "#FFC466";
}
function ColorswitchOff(el) {
	document.all[el].style.backgroundColor = "#FFFFFF";
}
function ColorswitchOff2(el) {
	document.all[el].style.backgroundColor = "#FFF7D6";
}