// http://www.face21cn.com/adright.js
// change myright
// change imgheight=300:imgheight=100
// 修改图象来源、大小和连接地址、图象的位置坐标
// 6月2日开始  600

var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=300:imgheight=120
function myload()
{
if (navigator.appName == "Netscape")
{document.myright.pageY=pageYOffset+window.innerHeight-imgheight;
document.myright.pageX=100
rightmove();
}
else
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.right=100;
rightmove();
}
}
function rightmove()
 {
 if(document.ns)
 {
 document.myright.top=pageYOffset+window.innerHeight-imgheight
 document.myright.right=10;
 setTimeout("rightmove();",50)
 }
 else
 {
 myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
 myright.style.right=10;
 setTimeout("rightmove();",50)
 }
 }

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=myright top=266 width=139 height=87><iframe src=http://www.face21cn.com/adcom.htm width=177 height=155 marginwidth=0 marginheight=0 frameborder==0 scrolling=no> </iframe></layer>");
myload()}
else
{
document.write("<div id=myright style='position: absolute;width:139;top:266;right:2;visibility: visible;z-index: 1; '><iframe src=http://www.face21cn.com/adcom.htm width=177 height=155 marginwidth=0 marginheight=0 frameborder==0 scrolling=no> </iframe></div>");
myload()
}