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 CodeZoneAD(_id) {
  /* Define Common Variables*/
  this.ID          = _id;
  this.ZoneID      = 0;

  /* Define Unique Variables*/

  /* Define Objects */
  this.AllAD       = new Array();
  this.ShowAD      = null;

  /* Define Functions */
  this.AddAD       = CodeZoneAD_AddAD;
  this.GetShowAD   = CodeZoneAD_GetShowAD;
  this.Show        = CodeZoneAD_Show;

}

function CodeZoneAD_AddAD(_AD) {
  this.AllAD[this.AllAD.length] = _AD;
}

function CodeZoneAD_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 CodeZoneAD_Show() {
  if (!this.AllAD) {
    return;
  } else {
    this.GetShowAD();
  }

  if (this.ShowAD == null) return false;
  document.write(this.ShowAD.ADIntro);
}

var ZoneAD_36 = new CodeZoneAD("ZoneAD_36");
ZoneAD_36.ZoneID      = 36;
ZoneAD_36.ZoneWidth   = 0;
ZoneAD_36.ZoneHeight  = 0;
ZoneAD_36.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 34;
objAD.ADType         = 4;
objAD.ADName         = "整站页面中/LOVE中国站宣传小横条/180*90";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<span style=\"display:none;\"><script type=\'text/javascript\'> \n\rcpro_client=\'wangwen81_cpr\';\n\rcpro_location=3; \n\rcpro_position=1; \n\rcpro_follow=1; \n\rcpro_close=1; \n\rcpro_clientw=0; \n\rcpro_template=\'float_xuanfusld_120_270\'; \n\rcpro_contw=950; \n\rcpro_w=120; \n\rcpro_h=270; \n\rcpro_float=1; \n\rcpro_cad=1;\n\rcpro_channel=2;\n\r</script>\n\r<script language=\'JavaScript\' type=\'text/javascript\' src=\'http://cpro.baidu.com/cpro/ui/float.js\'></script></span> \n\r\n\r<table height=95 width=183 align=\"center\" scrolling=\"no\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\r          <tr>\n\r            <td align=\"center\" class=ad_border  bgColor=#f8f8f8><a href=\"http://www.ono.com.cn/Purchase/SubmitAtrade.aspx?pid=56mr2&proid=20100526151522149626\" target=\"_blank\" title=\"眼镜\"><FONT color=#FF0000>『品牌』免费领取太阳眼镜</FONT></a><br /><a href=\"http://coll.ono.com.cn/coll.aspx?pid=56mr&url=http://www.ono.com.cn/fashiontrends.html&desc=娱乐名人文字广告\" target=\"_blank\" title=\"王菲#春晚#隐形眼镜\"><FONT color=#003399>『时尚』王菲春晚隐形眼镜</FONT></a><br /><a href=\"http://www.56mr.com/hr/\" target=\"_blank\" title=\"应聘编辑\"><FONT color=#000>『加盟』应聘娱乐名人编辑</FONT></a><br /><a href=\"/about/lxfs.html\" target=\"_blank\" title=\"广告与合作\"><FONT color=#000000>『赞助』媒体合作广告联系</FONT></a></td>\n\r          </tr>\n\r        </table>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 8;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_36.AddAD(objAD);

ZoneAD_36.Show();
