//避免ie中后退时沿用前页的utf8编码，如果是则刷新，刷新后就是gb2312了
try{
	if(document.charset == 'utf-8'){
		window.location.href = window.location.href;
	}
}catch(e){}


//totalnum（总轮换数目）
//mainid（主名称ID）
//sid（当前切换ID）
function showmenu(totalnum,mainid,sid)
{
	for (var i=1; i<totalnum+1; i++){
		if (sid==i)
		{	
			document.getElementById("f" + mainid + "_" + sid).style.display = "";
			document.getElementById("m" + mainid + "_" + sid).className ="Tag1Sel";
		}
		else
		{
			document.getElementById("f" + mainid + "_" + i).style.display = "none";
			document.getElementById("m" + mainid + "_" + i).className ="Tag1NoSel";
		}
		document.getElementById("m" + mainid + "_" + i).style.cursor = "pointer";
	}
}


function showmenu2(totalnum,mainid,sid)
{
	for (var i=1; i<totalnum+1; i++){
		if (sid==i)
		{	
			document.getElementById("f" + mainid + "_" + sid).style.display = "";
			document.getElementById("m" + mainid + "_" + sid).className ="Tag2Sel";
		}
		else
		{
			document.getElementById("f" + mainid + "_" + i).style.display = "none";
			document.getElementById("m" + mainid + "_" + i).className ="Tag2NoSel";
		}
		document.getElementById("m" + mainid + "_" + i).style.cursor = "pointer";
	}
}