window.onload=function(){
var itemnav=document.getElementById("pageNavC").childNodes;
var tmpclass;
for(var i=0;i<itemnav.length;i++){
	if(itemnav[i].nodeName=="LI")
	{
		if(itemnav[i].className=="onc")
		{
			tmpclass=itemnav[i];
		}
		var tmenu=itemnav[i].childNodes[0].className;
		tmenu=tmenu.replace("menu:","");

		if(tmenu!="" && document.getElementById(tmenu)){
			document.getElementById(tmenu).style.display="none";
		}
		itemnav[i].onmouseover=function(){
			if(tmpclass) tmpclass.className="";
			this.className="onc";
			var tmpitem=this;
			var tmenu=this.childNodes[0].className;
			tmenu=tmenu.replace("menu:","");
			if(tmenu!="" && document.getElementById(tmenu)){
				document.getElementById(tmenu).style.display="";
				document.getElementById(tmenu).onmouseover=function(){
					this.style.display="";
					if(tmpclass) tmpclass.className="";
					tmpitem.className="onc";
				}
			}
		}
		itemnav[i].onmouseout=function(){
			 this.className="";
			 if(tmpclass) tmpclass.className="onc";
			 var tmenu=this.childNodes[0].className;
			 var tmpitem=this;
			 tmenu=tmenu.replace("menu:","");
			 if(tmenu!="" && document.getElementById(tmenu)){
				document.getElementById(tmenu).style.display="none";
				document.getElementById(tmenu).onmouseout=function(){
					this.style.display="none";
					tmpitem.className="";
					if(tmpclass) tmpclass.className="onc";
				}
			 }
		}
	}
}
}
function setOnc(str){
	document.getElementById("pgNav"+str).className="onc";
}
function pfaqshow(str){
	for(var i=1;i<4;i++){
		document.getElementById("pgClfaqConeC_"+i).style.display="none";
	}
	document.getElementById("pgClfaqConeC_"+str).style.display="";
}
function pshow(str){
	document.getElementById(str).style.display="";
}
function cshow(str){
	document.getElementById(str).style.display="none";
}
function showhlt(str){
	for(var i=1;i<4;i++){
		document.getElementById("pgHostNav"+i).className="pgHostNavH";
		document.getElementById("pgHostLst"+i).style.display="none";
	}
	document.getElementById("pgHostNav"+str).className="pgHostNavC";
	document.getElementById("pgHostLst"+str).style.display="";
}
function pgIdcShow(i,n){
	for(var str=1;str<=n;str++){
		document.getElementById("pgIdcRv"+str).className="";
		document.getElementById("pgIdcRc"+str).style.display="none";
	}
	document.getElementById("pgIdcRv"+i).className="onc";
	document.getElementById("pgIdcRc"+i).style.display="";
}
function spgNgao(str,n){
	
	for(var i=1;i<=n;i++){
		document.getElementById("pgNgaoLst"+i).style.display="none";
	}
	if(str=="1"){
	document.getElementById("pgNgaoI1").src="/page/images/host/index_36.jpg";
	document.getElementById("pgNgaoI2").src="/page/images/host/index_38.jpg";
	}
    if(str=="2"){
	document.getElementById("pgNgaoI1").src="/page/images/int/index_38_1.jpg";
	document.getElementById("pgNgaoI2").src="/page/images/int/index_36_1.jpg";
	}
	document.getElementById("pgNgaoLst"+str).style.display="";
}
function openExm(){
	var qqArr=Array(Array(61395586,'售前QQ')
	,Array(61395586,'售前QQ')
	);

	//61395586Array(893654249,'售前QQ') 228787505 228787502
	var str="<div class='emCont'><div class='emContT'><img src='/page/images/host/exm_03.gif' style='cursor:pointer' onclick='closeExm()' /></div><div class='emContC'><ul>";
	for (var i=0;i<qqArr.length;i++)
	{
		str=str+"<li><a href='tencent://message/?uin="+qqArr[i][0]+"&Site=http://www.icelit.com&Menu=yes' target=blank><span style='width:18px;'><img src='http://wpa.qq.com/pa?p=4:"+qqArr[i][0]+":4' height='16' border='0' align='left'></span>"+qqArr[i][1]+"</a></li>";
	}

	var str=str+"</ul></div><div class='emContB'><img src='/page/images/host/exm_10.gif' /></div></div>";
	document.getElementById("example2").innerHTML=str;
}


function closeExm(){
	document.getElementById("example2").innerHTML="<img src=\"/page/images/host/lser.gif\" style=\"cursor:pointer\" onclick=\"openExm()\"/>";
}




