    window.onload=doInit;
    //再次调用漂浮广告
    //no1();
    window.onscroll=doScroll;
    //是否可以关闭
    //var isClose = false;
    //是否可以移动
    //var isMove = false;
    //是否需要自动关闭
    //var isAutoClose = false;
    //自动关闭的时间间隔值
    //var time_AutoClose = "5000";
    //初始化div控件
    var screenWidth = "800";
    var screenHeight = "600";
    screenWidth = window.screen.width;
    screenHeight = window.screen.height;
    //初始的body滚动高度
    var scrollHeight = "968";
    //scrollHeight = document.body.scrollHeight;
    //alert(document.body.scrollHeight);
    function doStarting(){
       //initDiv(idDIV);
    }
    function doScroll(){
    	try {
            var currentScreenWidth = window.screen.width;
            var currentScreenHeight = window.screen.height;
            //拖动滚动条时候，检查屏幕的高度和宽度
            if (currentScreenWidth != screenWidth && currentScreenHeight != screenHeight) {
                screenWidth = currentScreenWidth;
                screenHeight = currentScreenHeight;
                doInit();
            }
            if (scrollHeight <= document.body.scrollTop) {
                //到达最底部，不再移动
            }else {          
                 if (screenWidth == "800" && screenHeight == "600") {
                     if (document.body.scrollTop == "0") {
                         idDIV_L.style.top = document.body.scrollTop + 93;
                         idDIV_R.style.top = document.body.scrollTop + 93;
                         return;
                      }
                      idDIV_L.style.top = document.body.scrollTop + 123;
                      idDIV_R.style.top = document.body.scrollTop + 123;
                      return;
                  }
           
                  idDIV_L.style.top = document.body.scrollTop + 93;
                  idDIV_R.style.top = document.body.scrollTop + 93;
           
            }
        }catch(e) {
          //print("Nested catch caught " + e);
          //throw e + " re-thrown";
       }  
       //alert(scrollHeight  + "----" + document.body.scrollTop);
    }
    //拖动（目前没有实现）
    function doDragend(){
       idDIV_L.style.top = event.y + 8;
       idDIV_R.style.top = event.y + 8;
    }
    //关闭
    function doCloseed(){
       idDIV_L.style.visibility="hidden";
       idDIV_R.style.visibility="hidden";
    }
    //初始化，
    function doInit(){ 
    	try {
            //print("Nested try running...");
 
            var styleDIV_L = idDIV_L.style;
            var styleDIV_R = idDIV_R.style;
            styleDIV_L.visibility="visible";
            styleDIV_R.visibility="visible";
            if (screenWidth == "800" && screenHeight == "600") {
                //不显示对联
                styleDIV_L.visibility="hidden";
                styleDIV_R.visibility="hidden";
                styleDIV_L.left = "9px";
                styleDIV_R.left = "668px";
                styleDIV_L.top = "93px";
                styleDIV_R.top = "93px";
             }else if (screenWidth == "1024" && screenHeight == "768") {
                styleDIV_L.left = "13px";
                styleDIV_R.left = "885px";
                styleDIV_L.top = "93px";
                styleDIV_R.top = "93px";
             } 
       }catch(e) {
          //print("Nested catch caught " + e);
          //throw e + " re-thrown";
       }    
    }