document.writeln("<SCRIPT>");
document.writeln("var waitInterval;");
document.writeln("var MDelayTime=300;");
document.writeln("function ADMenu(index){");
document.writeln("			clearTimeout(waitInterval);");
document.writeln("			waitInterval=window.setTimeout(\"getShow(\"+index+\");\",MDelayTime);");
document.writeln("}");
document.writeln("");
document.writeln("function getShow(index){");
document.writeln("			clearTimeout(waitInterval);");
document.writeln("			for(var i=0;i<2;i++){\/* 最多支持2个标签 *\/");
document.writeln("				if(GetObj(\"newsCon\"+i)&&GetObj(\"ADm\"+i)){");
document.writeln("					GetObj(\"newsCon\"+i).style.display = \'none\';");
document.writeln("					GetObj(\"ADm\"+i).className = \"qNewsbg1\";");
document.writeln("				}");
document.writeln("			}");
document.writeln("			if(GetObj(\"newsCon\"+index)&&GetObj(\"ADm\"+index)){");
document.writeln("				GetObj(\"newsCon\"+index).style.display = \'block\';");
document.writeln("				GetObj(\"ADm\"+index).className = \"qNewsbg\";");
document.writeln("			}");
document.writeln("}");
document.writeln("");
document.writeln("\/\/ play 标签");
document.writeln("		function GetObj(objName){");
document.writeln("			if(document.getElementById){");
document.writeln("				return eval(\'document.getElementById(\"\' + objName + \'\")\');");
document.writeln("			}else if(document.layers){");
document.writeln("				return eval(\"document.layers[\'\" + objName +\"\']\");");
document.writeln("			}else{");
document.writeln("				return eval(\'document.all.\' + objName);");
document.writeln("			}");
document.writeln("		}");
document.writeln("		function PLAYMenu(index,flag){");
document.writeln("			for(var i=0;i<3;i++){\/* 最多支持3个标签 *\/");
document.writeln("				if(GetObj(\"pCon\"+i)&&GetObj(\"qPlay\"+i)){");
document.writeln("					GetObj(\"pCon\"+i).style.display = \'none\';");
document.writeln("					GetObj(\"qPlay\"+i).className = \"qpTag1\";");
document.writeln("				}");
document.writeln("			}");
document.writeln("			if(GetObj(\"pCon\"+index)&&GetObj(\"qPlay\"+index)){");
document.writeln("				GetObj(\"pCon\"+index).style.display = \'block\';");
document.writeln("				GetObj(\"qPlay\"+index).className = \"qpTag\";");
document.writeln("			}");
document.writeln("		}");
document.writeln("");
document.writeln("");
document.writeln("\/\/local sq++");
document.writeln("");
document.writeln("var PageUI = {};");
document.writeln("");
document.writeln("if (typeof PageUI.isGecko == \"undefined\") {");
document.writeln("    var user = navigator.userAgent.toLowerCase();");
document.writeln("");
document.writeln("    PageUI.isGecko     = (user.indexOf(\"gecko\") > -1);");
document.writeln("    PageUI.isOpera     = (typeof window.opera != \"undefined\");");
document.writeln("    PageUI.isIe        = (user.indexOf(\"msie\") > -1 && !PageUI.isOpera);");
document.writeln("    PageUI.isStrict    = (document.documentElement && document.documentElement.clientHeight);");
document.writeln("    PageUI.isSupported = (PageUI.isGecko || PageUI.isOpera || PageUI.isIe);");
document.writeln("    if (PageUI.isIe) {");
document.writeln("    	var bpos = user.indexOf(\"msie\");");
document.writeln("    	var epos = user.indexOf(\";\", bpos);");
document.writeln("    	PageUI.IeVer = user.substring(bpos+5,epos);");
document.writeln("    } else {");
document.writeln("    	PageUI.IeVer = 0;");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("document.onmousedown=function(aEvent){");
document.writeln("	var myEvent = window.event ? window.event : aEvent;");
document.writeln("	var lo=GetObj(\"locListDiv\");");
document.writeln("	if(!IsChild(myEvent.srcElement,lo))hideLocSelect();");
document.writeln("}");
document.writeln("function IsChild(cNode,pNode){");
document.writeln("	while(cNode!=null){");
document.writeln("		cNode=cNode.parentNode;");
document.writeln("		if(cNode==pNode) return true; ");
document.writeln("	}");
document.writeln("	return false;");
document.writeln("}");
document.writeln("function showLocSelect()");
document.writeln("{");
document.writeln("	var locdiv=GetObj(\"locListDiv\");");
document.writeln("	if(locdiv.style.display==\"block\"){");
document.writeln("		locdiv.style.display=\"none\";");
document.writeln("		return;");
document.writeln("	}");
document.writeln("	locdiv.style.display=\"block\";");
document.writeln("	var locs=locdiv.getElementsByTagName(\"li\");");
document.writeln("	for(var i=0;i<locs.length;i++)");
document.writeln("	{");
document.writeln("		var theloc=locs[i];");
document.writeln("			theloc.onmouseover=function(){");
document.writeln("				this.style.backgroundColor=\"#A0AAC8\"");
document.writeln("			}");
document.writeln("			theloc.onmouseout=function(){");
document.writeln("				this.style.backgroundColor=\"#F2F6FB\"");
document.writeln("			}");
document.writeln("			theloc.onmousedown=function(){");
document.writeln("				var locstr=this.innerHTML;");
document.writeln("				if (locstr.indexOf(\" \")!=-1) locstr=locstr.substr(0,locstr.indexOf(\" \")); \/\/fixbug 在IE下多出一个空格");
document.writeln("\/\/if(locstr==\"湖南\") alert(locstr);");
document.writeln("				setLocNews(locstr);");
document.writeln("				hideLocSelect();");
document.writeln("				var l=GetObj(\"locbar\");");
document.writeln("				if (!PageUI.isIe) locstr= locstr+ \'&utf8=1\';");
document.writeln("				getHTML(locstr);");
document.writeln("			}");
document.writeln("	}");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("function randomNumber(limit){ return Math.floor(Math.random()*limit); } ");
document.writeln("");
document.writeln("    function getHTML(locstr)");
document.writeln("    {");
document.writeln("        var url = \"http:\/\/www.gz-benet.com.cn\";");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("        var pars = \'locstr=\'+locstr+\"&t=\"+randomNumber(10000);");
document.writeln("        var myAjax = new Ajax.Updater(\"newsCon1\", url, {method: \'get\', parameters: pars});");
document.writeln("    }");
document.writeln("");
document.writeln("function hideLocSelect()");
document.writeln("{	");
document.writeln("	GetObj(\"locListDiv\").style.display=\"none\";");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("function setLocNews(locstr){");
document.writeln("	var l=GetObj(\"locbar\");");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("	l.setAttribute(\"href\",\"http:\/\/www.gz-benet.com.cn\");");
document.writeln("	l.innerHTML=locstr+\"新闻\";");
document.writeln("}");
document.writeln("");
document.writeln("function getObject(objectId) {");
document.writeln("    if(document.getElementById && document.getElementById(objectId)) {");
document.writeln("	\/\/ W3C DOM");
document.writeln("	return document.getElementById(objectId);");
document.writeln("    } else if (document.all && document.all(objectId)) {");
document.writeln("	\/\/ MSIE 4 DOM");
document.writeln("	return document.all(objectId);");
document.writeln("    } else if (document.layers && document.layers[objectId]) {");
document.writeln("	\/\/ NN 4 DOM.. note: this won\'t find nested layers");
document.writeln("	return document.layers[objectId];");
document.writeln("    } else {");
document.writeln("	return false;");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("\/\/ cookie");
document.writeln("var hostDomain = \"www.gz-benet.com.cn\";");
document.writeln("var kName = \"CloseWelTime\";");
document.writeln("var kValue;");
document.writeln("function getCookieVal (offset) {");
document.writeln("  var endstr = document.cookie.indexOf (\";\", offset);");
document.writeln("  if (endstr == -1)");
document.writeln("  endstr = document.cookie.length;");
document.writeln("  return unescape(document.cookie.substring(offset, endstr));");
document.writeln("}");
document.writeln("function GetCookie (name) {");
document.writeln("  var arg = name + \"=\";");
document.writeln("  var alen = arg.length;");
document.writeln("  var clen = document.cookie.length;");
document.writeln("  var i = 0;");
document.writeln("  while (i < clen) {");
document.writeln("    var j = i + alen;");
document.writeln("    if (document.cookie.substring(i, j) == arg)");
document.writeln("      return getCookieVal (j);");
document.writeln("    i = document.cookie.indexOf(\" \", i) + 1;");
document.writeln("    if (i == 0)");
document.writeln("       break;");
document.writeln("  }");
document.writeln("  return \"\";");
document.writeln("}");
document.writeln("function SetCookie(cookieName,cookieValue,nDays) {");
document.writeln(" var today = new Date();");
document.writeln(" var expire = new Date();");
document.writeln(" if (nDays==null || nDays==0) nDays=7;");
document.writeln(" expire.setTime(today.getTime() + 3600000*24*nDays);");
document.writeln(" document.cookie = cookieName+\"=\"+escape(cookieValue) + \";path=\/;domain=\"+hostDomain+\";expires=\"+expire.toGMTString();");
document.writeln("}");
document.writeln("");
document.writeln("\/\/\/\/");
document.writeln("<\/SCRIPT>")
document.writeln(" <SCRIPT>");
document.writeln("var Digital=new Date();");
document.writeln("var myear=(navigator.userAgent.toLowerCase().indexOf(\"firefox\")!=-1)?Digital.getYear()+1900:Digital.getYear();\/\/如果firefox浏览器年份+1900");
document.writeln("var mmonth=Digital.getMonth()+1;");
document.writeln("var mday=Digital.getDate();");
document.writeln("var weekday=Digital.getDay();");
document.writeln("ShowWel();");
document.writeln("function ShowWel(){");
document.writeln("  var myCookie = GetCookie(kName);");
document.writeln("  if((myCookie!=null)&&(myCookie!=\"\")) {");
document.writeln("    getObject(\'tInfo\').style.display=\'none\';");
document.writeln("  }");
document.writeln("}");
document.writeln("function CloseWel(){");
document.writeln("  getObject(\'tInfo\').style.display=\'none\';");
document.writeln("  kValue = \"\"+myear+mmonth+mday;");
document.writeln("  SetCookie(kName,kValue,7);");
document.writeln("}");
document.writeln("<\/SCRIPT> ")
 document.writeln("<script language=\"javascript\">");
document.writeln("function OPE(){");
document.writeln("	var chatUrl=\"http:\/\/chat.live800.com\/live800\/chatClient\/chatbox.jsp?companyID=38333&jid=2271061107&configID=28020&enterurl=http:\/\/www.gz-benet.com.cn\/\";");
document.writeln("		  chatUrl+=\"&enterurl=\"+encodeURIComponent(document.referrer||document.URL);");
document.writeln("		  chatUrl+=\"&t=\"+new Date().getTime();");
document.writeln("	try{");
document.writeln("		window.open(chatUrl,\"chatbox79482\",\"toolbar=0,scrollbars=0,location=0,menubar=0,resizable=1,width=570,height=424\");");
document.writeln("	}catch(e){");
document.writeln("		\/\/ browser blocked");
document.writeln("		\/\/ do nothing;");
document.writeln("	}");
document.writeln("}");
document.writeln("<\/script>")
