document.body.style.display="none";
document.writeln('<div id="jsHeader"></div>');
var xhrPageHeader;
var getUrl="/ajaxPageHeader.asp";

if (window.XMLHttpRequest){
	xhrPageHeader = new XMLHttpRequest();
	xhrPageHeader.open ("get",getUrl,true);
	xhrPageHeader.send(null);
} 
else if(window.ActiveXObject){
	xhrPageHeader = new ActiveXObject("Microsoft.XMLHTTP");
	xhrPageHeader.open ("get",getUrl,true);
	xhrPageHeader.send();
}

try{
	xhrPageHeader.onreadystatechange=function(){
		if (xhrPageHeader.readyState==4){
			if (xhrPageHeader.status==200){
				document.getElementById("jsHeader").innerHTML=unescape(xhrPageHeader.responseText);							
				document.body.style.display="block";


		with(document.getElementById("phFloatAD").style){			
			window.setInterval(function(){
				top=(getElPoint(document.getElementById("logo")).y+42)+"px";
				left=(getElPoint(document.getElementById("logo")).x+550)+"px";
				visibility="visible";
			},100)
		}

				
				
				//----------¾²Ì¬Ò³Á÷Á¿begin------------
				
				var gid="",xhrTraffic,urlTraffic="";
				gid=document.getElementById("guestId").innerHTML;
				urlTraffic="/chk.asp?id=" + gid;
				if (window.XMLHttpRequest){
					xhrTraffic = new XMLHttpRequest();
					xhrTraffic.open ("get",urlTraffic,true);
					xhrTraffic.send(null);
				} 
				else if(window.ActiveXObject){
					xhrTraffic = new ActiveXObject("Microsoft.XMLHTTP");
					xhrTraffic.open ("get",urlTraffic,true);
					xhrTraffic.send();
				}
				//------------¾²Ì¬Ò³Á÷Á¿end------------
								
				
				if(document.location.href.indexOf("#")!=-1){
					document.location.href=document.location.href;
				}
				document.getElementById("lin1").onmousemove=function (){
					with (document.getElementById("one").style){
						display="block";
						top=(getElPoint(document.getElementById("lin1")).y+25)+"px";
						left=(getElPoint(document.getElementById("lin1")).x-8)+"px";
					}			
				}
				document.getElementById("lin1").onmouseout=function (){document.getElementById("one").style.display="none";}
				document.getElementById("one").onmousemove=function (){document.getElementById("one").style.display="block";}
				document.getElementById("one").onmouseout=function (){ document.getElementById("one").style.display="none";}
				function getElPoint(el){   
					for(var lx=0,ly=0;el!=null;lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
					return{x:lx,y:ly}   
				}
				function fixHot(){
					with(document.getElementById("hot_spic").style){
						top=(getElPoint(document.getElementById("menu_right")).y-4)+"px";
						left=(getElPoint(document.getElementById("menu_right")).x+130)+"px";
					}
					with(document.getElementById("new_spic").style){
						top=(getElPoint(document.getElementById("menu_right")).y-4)+"px";
						left=(getElPoint(document.getElementById("menu_right")).x+40)+"px";
					}
				}
				fixHot();
				window.setInterval(function(){
					try{
						fixHot();
						document.getElementById("slides").style.left="1px";
						document.getElementById("slides").style.left="0px";
					}catch(e){}	
				},'50')				
			}
		}
	}
}
catch(e){

}
