// JavaScript Document
var waitInterval;
var mouseDelayTime = 200;
/*Ñ¡Ïî´°*/
function tabWinMouseOver(tabWinObj,tabWinTotal,obj)
{
  window.clearTimeout(waitInterval);
	waitInterval=window.setTimeout("ChangeDiv3('"+tabWinObj+"',"+tabWinTotal+","+obj.id+")",mouseDelayTime)
}
function tabWinMouseOver1(tabWinObj,tabWinTotal,obj)
{
  window.clearTimeout(waitInterval);
	waitInterval=window.setTimeout("ChangeDiv31('"+tabWinObj+"',"+tabWinTotal+","+obj.id+")",mouseDelayTime)
}
function ChangeDiv3(tabWinObj,tabWinTotal,obj)
{
	var itemNum;
	for(var i=0;i<tabWinTotal;i++)
	{
		if (tabWinObj+"_Title"+i == obj.id)
		{
			itemNum = i;
			document.getElementById(tabWinObj+"_Title"+i).className = "tabWinTitle"; 
			document.getElementById(tabWinObj+"_Line"+i).className = "tabWinLine3"; 
			document.getElementById(tabWinObj+"_Content"+i).className = "showblock"; 
		}else{
			var divID = document.getElementById(tabWinObj+"_Title"+i);
			if (divID != null){divID.className = "";}
			var ContentDiv = document.getElementById(tabWinObj+"_Content"+i);
			if(ContentDiv!=null){ContentDiv.className = "hiddenblock";}
			var BDiv = document.getElementById(tabWinObj+"_Line"+i);
			if(BDiv!=null){BDiv.className="";}
		}
	}
	var tabWinImg1 = document.getElementById(tabWinObj+"_Img1"); 
	var tabWinImg2 = document.getElementById(tabWinObj+"_Img2"); 
	if(tabWinImg1!=null && tabWinImg2!=null)
	{
		if(itemNum < 4)
		{
			tabWinImg1.className = "tabWinLine2";
			tabWinImg2.className = "tabWinLine4";
		}else{
			tabWinImg1.className = "tabWinLine4";
			tabWinImg2.className = "tabWinLine2";
		}
	}
}
function ChangeDiv31(tabWinObj,tabWinTotal,obj)
{
	var itemNum;
	for(var i=0;i<tabWinTotal;i++)
	{
		if (tabWinObj+"_Title"+i == obj.id)
		{
			itemNum = i;
			document.getElementById(tabWinObj+"_Title"+i).className = "LongTitle"; 
			document.getElementById(tabWinObj+"_Line"+i).className = "tabWinLine3"; 
			document.getElementById(tabWinObj+"_Content"+i).className = "showblock"; 
		}else{
			var divID = document.getElementById(tabWinObj+"_Title"+i);
			if (divID != null){divID.className = "";}
			var ContentDiv = document.getElementById(tabWinObj+"_Content"+i);
			if(ContentDiv!=null){ContentDiv.className = "hiddenblock";}
			var BDiv = document.getElementById(tabWinObj+"_Line"+i);
			if(BDiv!=null){BDiv.className="";}
		}
	}
	var tabWinImg1 = document.getElementById(tabWinObj+"_Img1"); 
	var tabWinImg2 = document.getElementById(tabWinObj+"_Img2"); 
	if(tabWinImg1!=null && tabWinImg2!=null)
	{
		if(itemNum < 4)
		{
			tabWinImg1.className = "tabWinLine2";
			tabWinImg2.className = "tabWinLine4";
		}else{
			tabWinImg1.className = "tabWinLine4";
			tabWinImg2.className = "tabWinLine2";
		}
	}
}

function ChangeDiv311(tabWinObj,tabWinTotal,obj)
{
	var itemNum;
	for(var i=0;i<tabWinTotal;i++)
	{
		if (tabWinObj+"_Title"+i == obj.id)
		{
			itemNum = i;
			document.getElementById(tabWinObj+"_Title"+i).className = "tabWinTitle"; 
			document.getElementById(tabWinObj+"_Line"+i).className = "tabWinLine3"; 
			document.getElementById(tabWinObj+"_Content"+i).className = "showblock"; 
		}else{
			var divID = document.getElementById(tabWinObj+"_Title"+i);
			if (divID != null){divID.className = "";}
			var ContentDiv = document.getElementById(tabWinObj+"_Content"+i);
			if(ContentDiv!=null){ContentDiv.className = "hiddenblock";}
			var BDiv = document.getElementById(tabWinObj+"_Line"+i);
			if(BDiv!=null){BDiv.className="";}
		}
	}
	var tabWinImg1 = document.getElementById(tabWinObj+"_Img1"); 
	var tabWinImg2 = document.getElementById(tabWinObj+"_Img2"); 
	if(tabWinImg1!=null && tabWinImg2!=null)
	{
		if(itemNum < 4)
		{
			tabWinImg1.className = "tabWinLine2";
			tabWinImg2.className = "tabWinLine4";
		}else{
			tabWinImg1.className = "tabWinLine4";
			tabWinImg2.className = "tabWinLine2";
		}
	}
}
/*Ñ¡Ïî¿¨*/
function tabMouseOver(tabObj,tabTotal,obj)
{
	window.clearTimeout(waitInterval);
	waitInterval=window.setTimeout("changeTabDiv('"+tabObj+"',"+tabTotal+","+obj.id+")",mouseDelayTime)
}
function changeTabDiv(tabObj,tabTotal,obj){
	for(i=0; i <tabTotal; i++)
	{
		if (tabObj+"_Title"+i == obj.id)
		{
			document.getElementById(tabObj+"_Title"+i).className = "active"; 
    		document.getElementById(tabObj+"_Content"+i).className = "showblock";
		}else{
			document.getElementById(tabObj+"_Title"+i).className = "normal"; 
			document.getElementById(tabObj+"_Content"+i).className = "hiddenblock";
		}
	} 
}
function tabMouseOut(){window.clearTimeout(waitInterval);}

function nTabs(thisObj,Num){
	if(thisObj.className == "active")return;
	var tabObj = thisObj.parentNode.id;
	var tabList = document.getElementById(tabObj).getElementsByTagName("li");
	for(i=0; i <tabList.length; i++)
	{
		if (i == Num)
		{
			thisObj.className = "active"; 
    		document.getElementById(tabObj+"_Content"+i).style.display = "block";
		}else{
			tabList[i].className = "normal"; 
			document.getElementById(tabObj+"_Content"+i).style.display = "none";
		}
	} 
}

