
document.write('<div id="koocall9" style="position:absolute; width: 1px; height: 1px;">');
document.write('<a href=\"#\" target=_blank><img src="http://www.plfangchan.com/images/huanfengbihaihaoting.jpg" alt=""  border="0" align="absmiddle" style="cursor:hand;filter=\"alpha(opacity=30)\""><\/a>');
document.write('</div>');

document.write('<div id="koocall8" style="position:absolute; width: 1px; height: 1px;">');
document.write('<a href=\"#" target=_blank><img src="http://www.plfangchan.com/images/huanfengbihaihaoting.jpg" alt=""  border="0" align="absmiddle" style="cursor:hand;filter=\"alpha(opacity=30)\""><\/a>');
document.write('</div>');

function Float(id, initX, initY, align){
    this.startX = (initX)? initX : 3;
    this.startY = (initY)? initY: 3;
    this.align = (align)? align : "left";
    this.x = this.startX;
    this.y = this.startY;
    
    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 += (getRoot().scrollTop + this.startY - this.y)/8;
        this.div.style.top = this.y + "px";
    }
    this.floating = function(objName){
        setInterval(objName+'.refresh()', 10);
    }
    this.init();
}

function getRoot(){
   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;
   }
}

var koocall9= new Float('koocall9', 0,170, 'left');
koocall9.floating('koocall9');

var koocall8= new Float('koocall8', 0,170, 'right');
koocall8.floating('koocall8');
