//init cookie
function setCookie() 
{ 
  var FromUrl=window.location.toString();
      FromUrl=FromUrl.replace("http://","");
	  FromUrl=FromUrl.replace("www.","");
	  FromUrl=FromUrl.substring(0,FromUrl.indexOf("/"));
  var now=new Date();
//set cookie  expires date 1000ms*60*60
  now.setTime( now.getTime() + 1000 * 60 * 60 );
  var the_cookie = escape("FromUrl="+FromUrl+";expires="+now.toGMTString());
  document.cookie = the_cookie;//write Cookie
} 
function readCookie()
{ var the_cookie = document.cookie; 
  return unescape(the_cookie);
}
setCookie();
//end of init cookie
document.ns = navigator.appName == "Netscape"
//window.screen.width>800 ? hostingheight=580:hostingheight=580
hostingheight=35;  //¸ß¶È
window.screen.width>800 ? hostingleft=10:hostingleft=10 //×ó±ßÎ»ÖÃ


function hostingload()
{
if (navigator.appName == "Netscape")
{document.hosting.pageY=pageYOffset+hostingheight;
document.hosting.pageX=hostingleft;
hostingmove();
}
else
{
hosting.style.top=document.body.scrollTop+hostingheight;
hosting.style.left=hostingleft;
hostingmove();
}
}
function hostingmove()
 {
 if(document.ns)
 {
 document.hosting.top=pageYOffset+hostingheight
 document.hosting.pageX=hostingleft;
 setTimeout("hostingmove();",80)
 }
 else
 {
 hosting.style.top=document.body.scrollTop+hostingheight;
 hosting.style.pixelLeft=hostingleft;
 setTimeout("hostingmove();",80)
 }
 }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

if (navigator.appName == "Netscape")
{
document.write("<layer id=hosting top=300 width=64 height=80><EMBED src='../ad/x/100x300.swf' quality=high  wmode=transparent WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=adleft></EMBED></layer>");
hostingload()}
else
{
document.write("<span id=hosting style='position: absolute;width:64;top:250;visibility: visible;z-index: 1000'><EMBED src='../ad/x/100x300.swf' quality=high  wmode=transparent WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=adleft></EMBED></span>");
hostingload()
}