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_4 = new CodeZoneAD("ZoneAD_4");
ZoneAD_4.ZoneID      = 4;
ZoneAD_4.ZoneWidth   = 0;
ZoneAD_4.ZoneHeight  = 0;
ZoneAD_4.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 4;
objAD.ADType         = 4;
objAD.ADName         = "内容页右侧";
objAD.ImgUrl         = "";
objAD.InstallDir     = "http://www.edufly.cn/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<script>  \n\rfunction addCookie(){　 // 加入收藏夹   \n\r    if (document.all){   \n\r        window.external.addFavorite(\'http://www.edufly.cn/\', \'百日精英\');   \n\r    }else if (window.sidebar){   \n\r        window.sidebar.addPanel(\'百日精英\', \'http://www.edufly.cn/\', \"\");   \n\r    }   \n\r}   \n\r</script> \n\r  <table id=table8 cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\n\r    <tr>\n\r      <td><A href=\"http://www.edufly.cn/about/58.html\"><IMG height=235 src=\"http://www.edufly.cn/img/greenpass.jpg\" width=215 useMap=#Map border=0></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td width=215 height=326><IMG height=326 src=\"http://www.edufly.cn/img/syjykcdh.gif\" width=215 useMap=#Map3 border=0></td>\n\r    </tr>\n\r    <tr>\n\r      <td><IMG height=286 src=\"http://www.edufly.cn/img/syjydkcdh2.gif\" width=215 useMap=#Map2 border=0></td>\n\r    </tr>\n\r    \n\r    <tr>\n\r      <td><A href=\"http://www.edufly.cn/about/Index.html\"><IMG height=255 alt=成都银河教育中心 src=\"http://www.edufly.cn/img/tsyh.gif\" width=215 border=0></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td></td>\n\r    </tr>\n\r  </table>\n\r<MAP name=Map2>\n\r<AREA shape=RECT target=_blank coords=4,1,212,25 href=\"http://www.edufly.cn/kecheng/renzheng/Index.html\"><AREA shape=RECT target=_blank coords=5,33,211,61 href=\"http://www.edufly.cn/kecheng/87.html\">\n\r<AREA shape=RECT target=_blank coords=3,65,208,92 href=\"http://www.edufly.cn/kecheng/85.html\">\n\r<AREA shape=RECT target=_blank coords=5,128,208,152 href=\"http://www.edufly.cn/kecheng/647.html\"><AREA shape=RECT target=_blank coords=4,98,207,124 href=\"http://www.edufly.cn/kecheng/3913.html\">\n\r<AREA shape=RECT coords=9,242,207,273 href=\"http://www.edufly.cn/kecheng/350.html\" target=_blank>\n\r<area shape=\"rect\" target=_blank coords=\"6,216,208,241\" href=\"http://www.edufly.cn/pscad.html\"><area shape=\"rect\"  target=_blank coords=\"6,185,208,215\" href=\"http://www.edufly.cn/kecheng/3983.html\">\n\r<AREA shape=RECT target=_blank coords=5,155,209,182 href=\"http://www.edufly.cn/kecheng/3128.html\">\n\r</MAP>\n\r\n\r<MAP name=Map3>\n\r<AREA shape=rect target=_blank coords=9,94,202,127 href=\"http://www.edufly.cn/kecheng/3984.html\">\n\r<AREA shape=RECT target=_blank coords=13,3,203,22 href=\"http://www.edufly.cn/kecheng/Index.html\">\n\r<AREA shape=RECT target=_blank coords=10,249,200,282 href=\"http://www.edufly.cn/wangyesheji/\"><area shape=\"rect\" coords=\"11,283,199,311\" href=\"http://www.edufly.cn/kecheng/4297.html\" target=\"_blank\">\n\r<AREA shape=RECT target=_blank coords=9,219,202,248 href=\"http://www.edufly.cn/kecheng/4020.html\">\n\r<AREA shape=RECT target=_blank coords=10,189,201,218 href=\"http://www.edufly.cn/kecheng/3838.html\">\n\r<AREA shape=RECT target=_blank coords=10,159,201,188 href=\"http://www.edufly.cn/kecheng/50.html\">\n\r<AREA shape=RECT target=_blank coords=10,129,201,157 href=\"http://www.edufly.cn/shineisheji/\">\n\r<AREA shape=RECT target=_blank coords=11,64,200,92 href=\"http://www.edufly.cn/kecheng/51.html\">\n\r<area shape=\"RECT\" target=_blank  coords=\"12,33,200,62\" href=\"http://www.edufly.cn/kecheng/49.html\">\n\r</MAP><MAP name=Map><AREA shape=RECT target=_blank coords=17,8,205,81 href=\"http://www.edufly.cn/about/58.html\"><AREA shape=RECT target=_blank coords=16,85,205,153 href=\"http://www.edufly.cn/about/461.html\"><AREA shape=RECT coords=17,159,204,226 href=\"javascript:addCookie();\"></MAP>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "js2";
ZoneAD_4.AddAD(objAD);

ZoneAD_4.Show();

