//****************************** 大图切换 start
var NowImg = 1;
var bStart = 0;
var bStop =0;

function fnToggle() 
{
	var next = NowImg + 1;

	if(next == MaxImg+1) 
	{
		NowImg = MaxImg;
		next = 1;
	}
	if(bStop!=1)
	{

		if(bStart == 0)
		{
			bStart = 1;		
			setTimeout('fnToggle()', 4000);
			return;
		}
		else
		{
			oTransContainer.filters[0].Apply();

			document.images['oDIV'+next].style.display = "";
			document.images['oDIV'+NowImg].style.display = "none"; 

			oTransContainer.filters[0].Play(duration=2);

			if(NowImg == MaxImg) 
				NowImg = 1;
			else
				NowImg++;
		}
		setTimeout('fnToggle()', 4000);
	}
}


function toggleTo(img)
{
	bStop=1;
	if(img==1)
	{
			document.images['oDIV1'].style.display = "";
			document.images['oDIV2'].style.display = "none"; 
	}
	else if(img==2)
	{
			document.images['oDIV2'].style.display = "";
			document.images['oDIV1'].style.display = "none"; 
	}

}

startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("left_nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                node = navRoot.childNodes[i];
                if (node.nodeName=="LI") {
                    node.onmouseover=function() {
                    this.className+=" over";
                }
                node.onmouseout=function() {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }
}
window.onload=startList;

//设置指定ID样式
function setIDcss(aID,cssname){
	if(!$(aID)){}
	else{
		if(cssname==''){if(is_ie<5){$(aID).className='';}else{$(aID).removeAttribute('class');}}
		else{$(aID).className=cssname;}
	}
}

//显示菜单
function ShowMenu(nID){
	for(var i=1;i<=5;i++){
		if(i==nID){$('PNC_'+i).style.display='';}
		else{$('PNC_'+i).style.display='none';}
	}
}
