function marquee1()                                
{                                
  document.write("<marquee behavior=scroll direction=up width='220' height=200 scrollamount=1 scrolldelay=50 onmouseover='this.stop()' onmouseout='this.start()'>")                                
}                                
function marquee2()                                
{                                
document.write("</marquee>")                                
}
function MoveLayer(name)
{
    var x =5;//浮动广告层固定于浏览器的x方向位置
    var y = 80;//浮动广告层固定于浏览器的y方向位置
    var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
    var y = document.body.scrollTop + y - diff;
    eval("document.all.AdLayer1.style.posTop = y");
    eval("document.all.AdLayer1.style.posLeft = x");//移动广告层
    eval("document.all.AdLayer2.style.posTop = y");
    eval("document.all.AdLayer2.style.posRight = x");//移动广告层
    setTimeout("MoveLayer(name);", 20);//设置20毫秒后再调用函数MoveLayer()
}  
function initAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'//设置层为可见

document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'//设置层为可见

MoveLayer('AdLayer1');
}
function welcome()
{
window.open ( 'newwindow', 'height=110, width=400, top=200px,left=200px, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no')
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
welcome()
