    var delta=0.15;
    var collection;
    var canClose=false;//false是否true允许关闭
    var Isfloat=true;//是否漂浮
    function floaters512() {
        this.items    = [];
        this.addItem    = function(id,x,y,content)
                  {
                    if(canClose)content+='<table width="80" 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.play512= function()
                  {collection=this.items;
                  if(Isfloat)intervalId=setInterval('play512()',10);}
        }
        function play512()
        {
        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>=1152)
{
    var thefloaters512 = new floaters512();
    thefloaters512.addItem('follow5121','window.screen.width-150',40,'<iframe frameborder="0" marginheight="0" marginwidth="0" border="0" id="03" name="03" scrolling="no" height="600px" width="120px" style="width:120px;height:600px" src="http://www.c512.com/gg/120x600.asp"></iframe>');
    thefloaters512.addItem('follow5122',5,40,'<iframe frameborder="0" marginheight="0" marginwidth="0" border="0" id="04" name="04" scrolling="no" height="600px" width="120px" style="width:120px;height:600px" src="http://www.c512.com/gg/120x600.asp"></iframe>');
    thefloaters512.play512();
}