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_299 = new CodeZoneAD("ZoneAD_299");
ZoneAD_299.ZoneID      = 299;
ZoneAD_299.ZoneWidth   = 0;
ZoneAD_299.ZoneHeight  = 0;
ZoneAD_299.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 175;
objAD.ADType         = 4;
objAD.ADName         = "2466&nbsp;栏目页右宝宝版块";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<TABLE width=\"320\" border=\"0\">\n\r  <TBODY>\n\r    <TR>\n\r      <TD align=\"left\"><A href=\" http://baby.mxabc.com/yinger/201006/181597.shtml\" target=\"_blank\"><IMG src=\" http://baby.mxabc.com/yinger/201006/181597.shtml\"  width=\"110\" height=\"74\" border=\"0\"></A> <A href=\" http://baby.mxabc.com/yisui/chuya/201006/181580.shtml\" target=\"_blank\"><BR>\n\r       宝宝1岁内，各阶段动作发展</A></TD>\n\r      <TD align=\"middle\"><a href=\" http://hehu.mxabc.com/hehu/201006/181540.shtml\" target=\"_blank\"><img src=\" http://www.mxabc.com/hehu/UploadImages/201006/20100604080843706.jpg\" alt=\"rwr\" width=\"110\" height=\"74\" border=\"0\"></a><A href=\" http://hehu.mxabc.com/hehu/201006/181540.shtml\" target=\"_blank\"><BR>\n\r     宝宝躺着哭，小心患上中耳炎</A></TD>\n\r    </TR>\n\r  </TBODY>\n\r</TABLE>\n\r· [<A href=\" http://health.mxabc.com/normal/Index.html\">常见疾病)</A>] <A title=\"治疗便秘，猛药下不得\" href=\" http://health.mxabc.com/normal/xiaohua/201007/182106.shtml\" target=\"_blank\">治疗便秘，猛药下不得</A><BR>\n\r· [<A href=\" http://baby.mxabc.com/shengzhang/Index.html\">婴幼儿生长</A>] <A title=\"2至3岁宝宝成长发育手册\" href=\" http://baby.mxabc.com/shengzhang/201006/181720.shtml\" target=\"_blank\">2至3岁宝宝成长发育手册</A><BR>\n\r· [<A href=\" http://wy.mxabc.com/yingyang/Index.html\">营养调理</A>] <A title=\"宝宝缺铁应对措施\" href=\" http://wy.mxabc.com/yingyang/201007/182079.shtml\" target=\"_blank\">宝宝缺铁应对措施</A><BR>\n\r· [<A href=\" http://hehu.mxabc.com/jiuhu/Index.html\">安全救护</A>] <A title=\"如何护理孩子被宠物咬伤\" href=\" http://hehu.mxabc.com/jiuhu/201006/182028.shtml\" target=\"_blank\">如何护理孩子被宠物咬伤</A><BR>\n\r· [<A href=\" http://wy.mxabc.com/shipu/Index.html\">宝宝食谱</A>] <A title=\"孩子的健脑菜单\" href=\" http://wy.mxabc.com/shipu/201007/182088.shtml\" target=\"_blank\">孩子的健脑菜单</A><BR>\n\r· [<A href=\" http://hehu.mxabc.com/hehu/Index.html\" target=\"_blank\">生活呵护</A>] <A title=\"5-6个月宝宝日常护理要点\" 5-6个月宝宝日常护理要点\" target=\"_blank\">5-6个月宝宝日常护理要点</A><BR>\n\r· [<A href=\" http://health.mxabc.com/muzi/Index.html\">母子健康</A>] <A title=\"别把脑瘫当缺钙\" href=\" http://health.mxabc.com/muzi/201007/182108.shtml\" target=\"_blank\">别把脑瘫当缺钙</A><BR>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "AD2006";
ZoneAD_299.AddAD(objAD);

ZoneAD_299.Show();
