        var delta=0.05
        var collection;
        function floaters() {
                this.items        = [];
                this.addItem        = function(id,x,y,content)
                                  {
                                        document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:111px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
                                        
                                        var newItem                                = {};
                                        newItem.object                                = document.getElementById(id);
                                        newItem.x                                = x;
                                        newItem.y                                = y;

                                        this.items[this.items.length]                = newItem;
                                  }
                this.play        = function()
                                  {
                                        collection                                = this.items
                                        setInterval('play()',10);
                                  }
                }
                function play()
                {
                        for(var i=0;i<collection.length;i++)
                        {
                                var followObj                = collection[i].object;
                                var followObj_x                = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
                                var followObj_y                = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

                                if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
                                        var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
                                        dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
                                        followObj.style.left=followObj.offsetLeft+dx;
                                        }

                                if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
                                        var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
                                        dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
                                        followObj.style.top=followObj.offsetTop+dy;
                                        }
                        }
                }        
                
        var theFloaters                = new floaters();
        theFloaters.addItem('followDiv1','document.body.clientWidth-106',50,'<table width="111" height="172" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td background="images/float.jpg" valign="bottom" align="center" style="padding-top:45px; padding-bottom:15px; "><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=939550087&Site=??¦Ì?¨ª???¦Ì?¨ª??¡¤&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:939550087:6></a><br><a target=blank href="http://webchat.tq.cn/sendmain.jsp?uin=8788265&agentid=0&transferpage=1&tq_bottom_ad_url=http://qtt.tq.cn/post/sendmain.html&tq_right_infocard_url=http://qtt.tq.cn/showcard.do&page=&ispaymoney=1&localurl=http://www.baoyisheng.com/&ltype=0&buttonsflag=&iscallback=0&rand=51813816849"><img src="images/Zaixiankefu.gif" border=0></a></td></tr></table>');
        theFloaters.play();


/////////////////////////////////////////
var scrollMenuTopPosition = 840;  
var scrollMenuStartPosition = 880; 

var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function CheckUIElements(){
if ( bExplorer4plus && screen.height>600) {
var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
       if ( bExplorer4plus) {
           yMenuFrom   = parseInt (divScrollMenu.style.top, 10);
           if (document.body.scrollTop<(scrollMenuTopPosition-240)){
               tt=scrollMenuTopPosition-document.body.scrollTop
               yMenuTo     = document.body.scrollTop + tt;
           } else {
							 yMenuTo     = document.body.scrollTop + 240;
					 }
       }

       timeoutNextCheck = 500;

       if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
           setTimeout ("CheckUIElements()", timeoutNextCheck);
           return;
       }

       if ( yButtonFrom != yButtonTo ) {
           yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
           if ( yButtonTo < yButtonFrom )
               yOffset = -yOffset;

               if ( bExplorer4plus )
                  divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;
                  timeoutNextCheck = 10;
       }
   
       if ( yMenuFrom != yMenuTo ) {
           yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
            if ( yMenuTo < yMenuFrom )
                yOffset = -yOffset;
                if ( bExplorer4plus )
                   divScrollMenu.style.top = parseInt (divScrollMenu.style.top, 10) + yOffset;
                   timeoutNextCheck = 10;
       }

       setTimeout ("CheckUIElements()", timeoutNextCheck);
    }
}


