var delta=0.15;
var collection;
function floaters() {
  this.items  = [];
  this.addItem  = function(id,x,y,content,wid,content1,hei,content2,url,content3,url,content4){
    document.write('<DIV id='+id+' style="Z-INDEX: 9999; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+url+content2+url+content3+'</DIV>');
    var newItem = {};
    newItem.object = document.getElementById(id);
    newItem.x = x;
    newItem.y = y;
    this.items[this.items.length] = newItem;
  }
  this.addItemIMG  = function(id,x,y,content,link,content2,wid,content3,hei,content4,url,content5){
    document.write('<DIV id='+id+' style="Z-INDEX: 9999; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+link+content2+wid+content3+hei+content4+url+content5+'</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;}
  followObj.style.display  = '';
  }
}
if(window.screen.width>=1024){
   var theFloaters = new floaters();
   var swfnumber=1;
   var swfnumber2=Math.floor(Math.random()*swfnumber+1)
   switch(swfnumber2){
     case 1:
       url='/ad/FileUpload/200706251018528.gif';
       url2='/ad/FileUpload/200706251018528.gif';
       link='/Content.ASPx?ArticleID=5244&ShowCategoryID=52';
       wid='90';
       hei='140';
     break;
     case 2:
       url='FileUpload/1.swf';
       url2='FileUpload/1.swf';
     break;
     case 3:
       url='FileUpload/1.swf';
       url2='FileUpload/1.swf';
     break;
   }
theFloaters.addItemIMG('followDiv1',document.body.clientWidth-104,20,'<a href="',link,'" target=_blank><img id=leftFF width="',wid,'" height="',hei,'" src="',url,'" border=0></a>');
theFloaters.addItemIMG('followDiv2',0,20,'<a href="',link,'" target=_blank><img id=youFF width="',wid,'" height="',hei,'" src="',url2,'" border=0></a>');
theFloaters.play();
}
function leftFFG_DoFSCommand(command, args) {
   document.all.followDiv1.style.visibility = "hidden";
   document.all.followDiv2.style.visibility = "hidden";
}
function youFFG_DoFSCommand(command,args){
   leftFFG_DoFSCommand(command,args);
}
