var imgheight
var imgright
document.ns = navigator.appName == "Netscape"
window.screen.width>1024 ? imgheight=100:imgheight=100
window.screen.width>1024 ? imgright=15:imgright=120
function myload()
{
if (navigator.appName == "Netscape")
{document.myright.pageY=pageYOffset+window.innerHeight-500;
document.myright.pageX=imgright-10;
rightmove();
}
else
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-500;
myright.style.right=imgright-10;
rightmove();
}
}
function rightmove()
 {
 if(document.ns)
 {
 document.myright.top=pageYOffset+window.innerHeight-500;
 document.myright.right=imgright-10;
 setTimeout("rightmove();",80)
 }
 else
 {
 myright.style.top=document.body.scrollTop+document.body.offsetHeight-455;
 myright.style.right=imgright-10;
 setTimeout("rightmove();",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 (window.screen.width>1024)
{
if (navigator.appName == "Netscape")
{
document.write("<layer id=myright top=100 width=100 height=100><a href=# target=_blank><img src=/huodong.jpg border='0'></a></layer>");
myload()}
else
{
document.write("<div id=myright style='position: absolute;width:80;top:100;right:5;visibility: visible;z-index: 1'><a href=http://www.hsbyhotel.com.cn/News_show.asp?id=772 target=_blank><img src=/huodong.jpg border='0'></a></div>");
myload()
}
}

