function floatAdver(){
 this.fDivs = new Array();//
 this.divCount = 0 ; //
 this.h = 330;//
 this.fDiv;
 this.lDiv = "";
 this.rDiv = "";
 this.lDivCssText = "position:absolute;top:0px;left:1px;width:120px;height:330px;border:0px solid #666;overflow:hidden;";
 this.rDivCssText = "position:absolute;top:0px;right:1px;width:120px;height:330px;border:0px solid #666;overflow:hidden;";
 this.lDivInner = "";
 this.rDivInner = "";
}
floatAdver.prototype = {
 createInfo:function(lcss,rcss,linfo,rinfo,h){ //
  this.lDivCssText += lcss;
  this.rDivCssText += rcss;
  this.lDivInner = linfo;
  this.rDivInner = rinfo;
  this.h = h;
 },
 createFloatDiv:function(){ // 
  this.lDiv = document.createElement("div"); 
  this.rDiv = document.createElement("div");
  this.lDiv.style.cssText = this.lDivCssText; 
  this.rDiv.style.cssText = this.rDivCssText;
  this.lDiv.innerHTML = this.lDivInner;
  this.rDiv.innerHTML = this.rDivInner;
  document.body.appendChild(this.rDiv);
  document.body.appendChild(this.lDiv);
  //this.rDiv.id="r";
  //this.lDiv.id="l";
  this.divCount++;
 },
 createAdvPro:function(){ //
  var bodyScrollTop = document.documentElement.scrollTop;  
  if(this.rDiv != bodyScrollTop + this.h)
  {
   this.$(this.rDiv).style.top = parseInt(this.$(this.rDiv).style.top) + Math.ceil((bodyScrollTop + this.h - parseInt(this.$(this.rDiv).style.top))/20) + "px"; 
   this.$(this.lDiv).style.top = this.$(this.rDiv).style.top;
  }  
 },
 
 createAdv:function(){ //
  var _this = this;
  _this.createFloatDiv();
  setInterval(function(){_this.createAdvPro();},10);
  
 },
 floatPro:function(){//
  var bodyScrollTop = document.documentElement.scrollTop;  
  if(this.fDiv.style.top != bodyScrollTop + this.h)
  {
   this.$(this.fDiv).style.top = parseInt(this.$(this.fDiv).style.top) + Math.ceil((bodyScrollTop + this.h - parseInt(this.$(this.fDiv).style.top))/20) + "px";
   
  }
 },
 $:function(o){ //
  if(typeof(o) == "string")
  return document.getElementById(o);
  return o;
 },
 begins:function(o,h){//
  var _this = this;
  _this.fDiv = _this.$(o);
  _this.h = h;
  //alert(this.fDiv.id);
  setInterval(function(){_this.floatPro();},10);
 }
}
window.onload = function() {
    var m = new floatAdver();
    //m.begins("b",200);
    var m2 = new floatAdver();
    //m2.begins("a",200);

    var strLeftImgFloats="", strRightImgFloats="";
    var strLeftImgFloat = new Array();
    var strLeftUrlFloat = new Array();
    strLeftImgFloat = strLeftAdImgFloat.split(",");
    strLeftUrlFloat = strLeftAdUrlFloat.split(",");
    for (i = 0; i < strLeftUrlFloat.length; i++) {
        strLeftImgFloats += "<div  class='adPic3'><a href='" + strLeftUrlFloat[i] + "' target='_blank'><img src='" + strLeftImgFloat[i] + "' width='120'  border='0' /></a></div>";
    }
    var strRightImgFloat = new Array();
    var strRightUrlFloat = new Array();
    strRightImgFloat = strRightAdImgFloat.split(",");
    strRightUrlFloat = strRightAdUrlFloat.split(",");
    for (i = 0; i < strRightUrlFloat.length; i++) {
        strRightImgFloats += "<div  class='adPic3'><a href='" + strRightUrlFloat[i] + "' target='_blank'><img src='" + strRightImgFloat[i] + "' width='120'  border='0' /></a></div>";
    }
    m2.createInfo("height:330px;width:120px;border:0px solid #fff;", " height:330px;width:120px;border:0px solid #fff;", "<div>" + strLeftImgFloats + "</div>", strRightImgFloats, 200);
    m2.createAdv();
}
