// JavaScript Document
function switchTab(identify,index,count)
{
	for(i=0;i<count;i++)
	{
		var CurTabObj = document.getElementById("Tab_"+identify+"_"+i) ;
		var CurListObj = document.getElementById("List_"+identify+"_"+i);
		if (i == index) 
		{
			CurTabObj.className="MenuBg2";
			CurTabObj.style.backgroundImage="url('/images/Ddh"+parseInt(index+1)+"-2.jpg')";
			CurListObj.style.display="block";
		}
		else
		{
			CurTabObj.style.backgroundImage="url('/images/Ddh"+parseInt(i+1)+"-1.jpg')";
			CurTabObj.className="MenuBg";
			CurListObj.style.display="none";
		}
	}
}
function switchTabs(identify,index,count)
{
	for(i=0;i<count;i++)
	{
		var CurTabObj = document.getElementById("Tab_"+identify+"_"+i) ;
		var CurListObj = document.getElementById("List_"+identify+"_"+i);
		if (i == index) 
		{
			CurTabObj.className="RightSwitchBg1";
			CurListObj.style.display="block";
		}
		else
		{
			CurTabObj.className="RightSwitchBg2";
			CurListObj.style.display="none";
		}
	}
}
