// JavaScript Document

//¸¡¶¯´úÂë
function VFloat(id, initX, initY, align){
       this.startX = (initX)? initX : 3;
       this.startY = (initY)? initY: 100;
       this.align = (align)? align: "left";
       this.x = this.startX;
       this.y = this.startY;

       //var isNs = (navigator.appName.indexOf("Netscape") != -1);
       this.div = document.getElementById(id);

       this.init = function() {
           this.div.style.top = this.startY + "px";
           if(this.align == "left")
               this.div.style.left = this.startX + "px" ;
           else
               this.div.style.right = this.startX + "px" ;
       }

       this.refresh = function(){
           this.y += (VgetRoot().scrollTop + this.startY - this.y)/8;
           this.div.style.top = this.y + "px" ;
       }
       this.floating = function(objName){
           setInterval(objName+'.refresh()', 10);
       }
       this.init();
}


function VgetRoot(){
      if(document.documentElement && document.body){
           return (document.documentElement.scrollTop > document.body.scrollTop) ? document.documentElement : document.body;
      }else if(document.documentElement){
           return document.documentElement;
      }else{
           return document.body;
      }
}

document.writeln("<div id=\"divMenu\" style=\"position:absolute;WIDTH:64px;\">");
document.writeln("<iframe frameborder=\"0\" id=\"rightok\" name=\"rightok\" height=\"350\" src=\"/js/piaofu.asp\" width=\"100%\" marginwidth=\"3\"  noresize scrolling=no allowTransparency=\"true\"></iframe>");
document.writeln("</div>");


var o1 = new VFloat("divMenu",5, 439, "right");
o1.floating('o1');