	function nav_hover(str,size){
		for(i=0;i<size;i++){
			document.getElementById('nav'+i+i).style.display="none";
		}
		document.getElementById('nav'+str+str).style.display="block";
	}
	function nav_out(size){
		for(i=0;i<size;i++){
			document.getElementById('nav'+i+i).style.display="none";
		}
		
	}
	function nav_out_delay(size){
		nav_out(size)
	}
	function nav_next_hover(str){
		document.getElementById('nav'+str+str).style.display="block";
	}
	function nav_next_out(str){
		document.getElementById('nav'+str+str).style.display="none";
		
	}
	
	function goWithNew(link,type){//新页面
	    var tWidth=1024;
	    var tHeight=768;
	    if(type == "1"){//业务公告
	    	tWidth = 570;
	    	tHeight = 410;
	    }else if(type == "2"){//用电指南
	    	tWidth = 760;
	    	tHeight = 600;
	    }else if(type == "3"){//节能降耗计划用电
	    	tWidth = 570;
	    	tHeight = 410;
	    }else if(type == "4"){//视听在线
	    	tWidth = 660;
	    	tHeight = 750;
	    }else if(type == "5"){//联系我们
	    	tWidth = 800;
	    	tHeight = 500;
	    }else if(type == "6"){//南网方略
	    	tWidth = 910;
	    	tHeight = 520;
	    }else if(type == "7"){//发展战略纲要
	    	tWidth = 950;
	    	tHeight = 540;
	    }else if(type == "9"){//企业文化
		    	tWidth = 760;
		    	tHeight = 600;
		    }
	    
	    var move = ',left=' + ((screen.width - tWidth)/2) + ',top=' + ((screen.height - tHeight)/2);

		window.open(link,'newwindow', "width="+tWidth+",height="+tHeight+",scrollbars=yes,menubar=no,toolbar=no,status=yes,resizable=yes"+move);
		/*
		if(width==undefined){
			window.open(link,'newwindow','scrollbars=yes,menubar=no,toolbar=no,status=yes,resizable=yes');
		}else{
			window.open(link,'newwindow', "width="+width+",height="+height+",scrollbars=yes,menubar=no,toolbar=no,status=yes,resizable=yes");
		}*/
	}
	function goWithOnner(link,param){//自身打开
		if(param!=""){
			window.location.href=link+"?param="+param;
		}else{
			window.location.href=link;
		}
	}
	function resizeIframe(o){
			o.style.height = (o.contentWindow.document.body.scrollHeight + 5)+"px" ;
	}
	function goWithIframe(dest){
		var oiframe = document.getElementById("contentIframe");
		oiframe.src=dest;
		//resizeIframe(oiframe);
	}
	function left_nav_hover(name){
		document.getElementById(name+"_child").style.visibility="visible";
	}
	function left_nav_out(name){
		document.getElementById(name+"_child").style.visibility="hidden";
	}
	function left_nav_ch_over(name){
		document.getElementById(name+"_child").style.visibility="visible";
	}
	function left_nav_ch_out(name){
		document.getElementById(name+"_child").style.visibility="hidden";
	}
	
	function addFavorite(sURL, sTitle){
     try{
     	window.external.addFavorite(sURL, sTitle);
     }catch (e){
         try{
             window.sidebar.addPanel(sTitle, sURL, "");
         }catch (e){
             alert("请按‘Ctrl+D’收藏本站。");
         }
     }
} 
