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_16 = new CodeZoneAD("ZoneAD_16");
ZoneAD_16.ZoneID      = 16;
ZoneAD_16.ZoneWidth   = 0;
ZoneAD_16.ZoneHeight  = 0;
ZoneAD_16.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 7;
objAD.ADType         = 4;
objAD.ADName         = "阿里760*90+baidu搜索";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<b><a href=\"http://pindao.huoban.taobao.com/channel/onSale.htm?pid=mm_10643614_0_0\"><font color=\"red\">淘宝网热卖商品</font>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F16%2Fn-g%2Corvv64tborsvwnjqgaxdalbvgaydalrqlu---g%2Cxoulb6raw3gmroi-------------9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-16.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"blue\">女装精品</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F1625%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-1625.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"green\">内衣/家居服</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F30%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-30.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"blue\">男装</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F50005700%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-50005700.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"green\">流行手表</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F50008165%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-50008165.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"blue\">童装/童鞋/孕妇装</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F50005998%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-50005998.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"green\">益智玩具/早教/童车床/出行</font></a>|<a href=\"http://s.click.taobao.com/t_3?&p=mm_10643614_0_0&n=23&l=http%3A%2F%2Fsearch8.taobao.com%2Fbrowse%2F50006842%2Fn-g%2Corvv64tborsvwmjvgawdkmbqgboq----------------1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20---40--coefp-0-all-50006842.htm%3Fpid%3Dmm_10643614_0_0\"><font color=\"blue\">箱包皮具/热销女包/男包</font></a></b>\n\r\n\r\n\r<script type=\"text/JavaScript\"> \n\ralimama_pid=\"mm_10643614_763776_8359771\"; \n\ralimama_titlecolor=\"0000FF\"; \n\ralimama_descolor =\"000000\"; \n\ralimama_bgcolor=\"FFFFFF\"; \n\ralimama_bordercolor=\"E6E6E6\"; \n\ralimama_linkcolor=\"008000\"; \n\ralimama_bottomcolor=\"FFFFFF\"; \n\ralimama_anglesize=\"0\"; \n\ralimama_bgpic=\"0\"; \n\ralimama_icon=\"0\"; \n\ralimama_sizecode=\"11\"; \n\ralimama_width=760; \n\ralimama_height=90; \n\ralimama_type=2; \n\r</script> \n\r<script src=\"http://a.alimama.cn/inf.js\" type=text/javascript> \n\r</script>\n\r\n\r<script type=\"text/javascript\"><!--\n\rgoogle_ad_client = \"pub-9846392156798614\";\n\r/* 728x15, 创建于 09-9-27 */\n\rgoogle_ad_slot = \"1047928104\";\n\rgoogle_ad_width = 728;\n\rgoogle_ad_height = 15;\n\r//-->\n\r</script>\n\r<script type=\"text/javascript\"\n\rsrc=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n\r</script>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_16.AddAD(objAD);

ZoneAD_16.Show();
