    var delta=0.15;
    var collection;
    var canClose=false;//true是否允许关闭
    function floaters512() {
        this.items    = [];
        this.addItem    = function(id,x,y,content)
                  {
    if(canClose)content+='<table width="95" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><a href="javascript:closeBanner(\''+id+'\');">关闭</a></td></tr></table>';
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=y;
                    this.items[this.items.length]= newItem;}
        this.play= function()
                  {collection=this.items;setInterval('play()',10);}
        }
        function play()
        {
        var scrollLeft=document.body.scrollLeft;
        if(scrollLeft==0)scrollLeft=document.documentElement.scrollLeft;//XHTML版本scrollLeft
        var scrollTop=document.body.scrollTop;
        if(scrollTop==0)scrollTop=document.documentElement.scrollTop;

        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!=(scrollLeft+followObj_x)) {
                    var dx=(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!=(scrollTop+followObj_y)){
                    var dy=(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(DivName)
{
  for(var i=0;i<collection.length;i++)
  {
      if(collection[i].object.id==DivName)collection[i].object.style.display = 'none';
  }
  return;
}

if ((window.screen.width>=1024) && (window.screen.width<1152))
{
    var thefloaters512 = new floaters512();
    thefloaters512.addItem('follow5121','window.screen.width-142',80,'<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 WIDTH=120 HEIGHT=240 SCROLLING=NO SRC="http://bbs.c512.com/js/120x240.asp"></IFRAME>');
    thefloaters512.addItem('follow5122',0,80,'<iframe frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="no" height="240px" width="120px" src="http://bbs.c512.com/js/120x240.asp"></iframe>');
    thefloaters512.play();
}

if (window.screen.width>=1152)
{
    var thefloaters512 = new floaters512();
    thefloaters512.addItem('follow5121','window.screen.width-145',50,'<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 WIDTH=120 HEIGHT=600 SCROLLING=NO SRC="http://bbs.c512.com/js/120x600.asp"></IFRAME>');
    thefloaters512.addItem('follow5122',5,50,'<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 WIDTH=120 HEIGHT=600 SCROLLING=NO SRC="http://bbs.c512.com/js/120x600.asp"></IFRAME>');
    thefloaters512.play();
}