var delta=1;
var collection;
var closeB=false;
function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
     document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; 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    = 200;

     this.items[this.items.length]  = newItem;
      }
  this.play = function()
      {
     collection    = this.items
     setInterval('play()',30);
      }
  }
  function play()
  {
   if(screen.width<=800 || closeB)
   {
    for(var i=0;i<collection.length;i++)
    {
     collection[i].object.style.display = 'none';
    }
    return;
   }
   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;
     }
    followObj.style.display = '';
   }
  } 
  function closeBanner()
  {
   closeB=true;
   return;
  }

var theFloaters  = new floaters();
var strabc="<table width=106 height=200 border=0 cellpadding=0 cellspacing=0><tr><td height=55 align=center valign=top background='http://www.qw8888.com/images/up_001.gif'>"
strabc=strabc+" <table width=90% border=0 cellspacing=0 cellpadding=0><tr><td height=5 align=right></td><td width=2 align=right></td></tr><tr><td align=right><img onclick=\"closeBanner()\" src=http://www.qw8888.com/images/cha_001.gif width=16 height=15></td><td align=right></td></tr></table></td></tr><tr><td align=center valign=top background='http://www.qw8888.com/images/mid001.gif'><table width=98% border=0 cellspacing=1 cellpadding=0><tr><td height=2 colspan=3 align=center></td></tr><tr><td width=5 height=20 align=center></td><td height=20 colspan=6 align=center valign=middle><table width=88 height=20 border=0 cellpadding=0 cellspacing=0><tr><td align=center valign=middle background=http://www.qw8888.com/images/list_001.gif><font color=#FF0000><b>钱王客服</b></font></td></tr></table></td></tr><tr><td height=6 colspan=3></td></tr><tr><td></td><td width=21 align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13></td><td width=76>钱王客服一</td></tr><tr><td></td><td></td><td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=553917033>553917033</a></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13></td><td>钱王客服二</td></tr><tr><td></td><td></td><td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=735818286>735818286</a></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13></td><td>钱王客服三</td></tr><tr><td></td><td></td><td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=443978831>443978831</a></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13></td><td>钱王客服四</td></tr><tr><td></td><td align=right></td><td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=771777419>771777419</a></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13></td><td>钱王客服五</td></tr><tr><td></td><td align=right></td><td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=651990598>651990598</a></td></tr><tr><td></td><td height=6 colspan=2 align=right><table width=100 border=0 cellspacing=0 cellpadding=0><tr><td width=5>&nbsp;</td><td><table width=88 height=20 border=0 cellpadding=0 cellspacing=0><tr><td align=center valign=middle background=http://www.qw8888.com/images/list_001.gif><b><font color=#FF0000>意见反馈</font></b></td></tr></table></td></tr></table></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13 /></td><td height=20 valign=middle><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=200836378>200836378</a></td></tr><tr><td></td><td height=8 colspan=2 align=right><table width=100 border=0 cellspacing=0 cellpadding=0><tr><td width=5>&nbsp;</td><td><table width=88 height=20 border=0 cellpadding=0 cellspacing=0><tr><td align=center valign=middle background=http://www.qw8888.com/images/list_001.gif><font color=#FF0000><b>广告洽谈</b></font></td></tr></table></td></tr></table></td></tr><tr><td></td><td align=right><img src=http://www.qw8888.com/images/QQonline.gif width=13 height=13 /></td><td height=20 valign=middle><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=916176075>916176075</a></td></tr></table></td></tr><tr><td height=21 background=http://www.qw8888.com/images/bot_001.gif></td></tr></table>"
theFloaters.addItem('followDiv1','document.body.clientWidth-106',0,strabc);
var strabcd="<a href='http://www.qw8888.com/xuanchuan.htm' target='_blank'><img src='http://www.qw8888.com/00.gif' border='0'/></a>"
theFloaters.addItem('followDiv2',0,0,strabcd);
theFloaters.play();