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_3 = new CodeZoneAD("ZoneAD_3");
ZoneAD_3.ZoneID      = 3;
ZoneAD_3.ZoneWidth   = 0;
ZoneAD_3.ZoneHeight  = 0;
ZoneAD_3.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 3;
objAD.ADType         = 4;
objAD.ADName         = "所有";
objAD.ImgUrl         = "";
objAD.InstallDir     = "http://www.zikaoshanghai.com/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<p align=\"center\"><a href=\"http://lm.edu-edu.com.cn/manage/manageTransfer.php?mid=1035&aid=177\" target=\"_blank\" title=\"自考网络辅导保过班，不过退费\"><font color=\"#FF0000\"><strong>2011年4月上海自考网络辅导包过班,不过退费</strong></font></a>   <a href=\"http://lm.edu-edu.com.cn/manage/manageTransfer.php?mid=1035&aid=219\" target=\"_blank\" title=\"专业全、师资好、免费试听\">各专业网络辅导课程优惠招生中</a>   <a href=\"http://lm.edu-edu.com.cn/manage/manageTransfer.php?mid=1035&aid=224\" target=\"_blank\" title=\"抵免自考英语一、自考英语二\"><font color=\"#FF0000\"><strong>公共英语PETS3网络辅导包过班</strong></font></a>   <a href=\"http://lm.edu-edu.com.cn/manage/manageTransfer.php?mid=1035&aid=218\" target=\"_blank\" title=\"抵免自考专科计算机或者本科计算机\"><font color=\"#0000FF\"><strong>计算机等级考试网络包过班</strong></font></a></p>\n\r<p align=\"center\"><a href=\"http://www.shsyjr.com/2011/\" target=\"_blank\"><img src=\"http://www.zikaoshanghai.com/11tu/zikao1.jpg\" alt=\"上海全日制自考招生\" height=\"60\" border=\"0\"></a></p>\n\r\n\r\n\r\n\r<div id=PE_pop1>\n\r  <table borderColor=#009999 width=920 border=1>\n\r    <tr>\n\r      <td colspan=\"5\">\n\r<script language=\'javascript\' src=\'http://www.zikaoshanghai.com/{$ADDir}/200911/15.js\'></script>\n\r      \n\r      \n\r      </td>\n\r    </tr>\n\r    <tr>\n\r      <td width=\"126\"><A href=\"http://www.zikaoshanghai.com/Article/69.shtml\" target=_blank><STRONG>上海自考报名时间</STRONG></A></td>\n\r      <td width=\"231\"><A href=\"http://www.zikaoshanghai.com/Article/Special/zikao201104/\" title=\"2011年4月上海自考\"><strong>2011年4月上海自考专题</strong></A></td>\n\r      <td width=\"213\"><A href=\"http://www.zikaoshanghai.com/Article/70.shtml\" target=_blank><STRONG>自考免考规定</STRONG></A><BR><A href=\"http://www.zikaoshanghai.com/Article/1030.shtml\" target=_blank>(09年新补充规定)</A></td>\n\r      <td width=\"150\"><A href=\"http://www.zikaoshanghai.com/Article/72.shtml\" target=_blank><STRONG>上海自考办</STRONG></A></td>\n\r      <td width=\"166\"><A href=\"http://www.zikaoshanghai.com/GuestBook/\" target=\"_blank\"><strong>上海自考问题咨询</strong></A><BR></td>\n\r    </tr>\n\r    <tr>\n\r      <td><A href=\"http://www.zikaoshanghai.com/Article/zhuanye/\"><STRONG>上海自考专业</STRONG></A></td>\n\r      <td><STRONG><A href=\"http://www.zikaoshanghai.com/Article/jiaocai/\">自考书籍/自考教材</A></STRONG> </td>\n\r      <td><A href=\"http://www.zikaoshanghai.com/Article/69.shtml\" target=_blank><STRONG>上海自考报名条件</STRONG></A></td>\n\r      <td><STRONG><A href=\"http://www.zikaoshanghai.com/Article/Special/xuexiao/\" target=_blank>上海自考主考院校</A><BR>\n\r      </STRONG>（上海自考学校）<STRONG><BR>\n\r      </STRONG></td>\n\r      <td><A href=\"http://www.zikaoshanghai.com/Article/shili/\"><STRONG>自考试题</STRONG></A></td>\n\r    </tr>\n\r     <tr>\n\r      <td width=126><A href=\"https://mybank.icbc.com.cn/icbc/conformity/frameset.jsp?f2z_Area_code=1001&url=/exam/index.jsp\" target=_blank rel=\"nofollow\"><STRONG>上海自考报名</STRONG></A></td>\n\r      <td width=231><A href=\"http://www.boee.cn/ZSBK/\" target=_blank rel=\"nofollow\"><STRONG>上海物流证书网上报考</STRONG></A><BR>\n\r（抵免部分物流专业自考课程）<a href=\"http://www.kaoshi.sh.cn/\" target=\"_blank\" rel=\"nofollow\"></a></td>\n\r      <td width=213><A href=\"http://www.boee.cn/jtbm/cjcx.aspx\" target=_blank rel=\"nofollow\"><STRONG>上海自考成绩查询<br>\n\r      </STRONG></A><A href=\"http://www.boee.cn/jtbm/lscjcx.aspx\" target=_blank rel=\"nofollow\"><STRONG>自考历史成绩查询 </STRONG></A></td>\n\r      <td width=150><A href=\"http://www.boee.cn/JTBM/ZKQKCX.ASPX\" target=_blank rel=\"nofollow\"><STRONG>自考准考证进度</STRONG></A><BR>（工商银行牡丹卡）</td>\n\r    <td width=166><A href=\"http://www.zikaoshanghai.com/wangxiao/index.html\" target=_blank ><STRONG>自考网上辅导</STRONG></A></td>\n\r     \n\r    </tr>\n\r  </table>\n\r\n\r</div>\n\r  <!-- ********广告一结束******** -->";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "tuiguang";
ZoneAD_3.AddAD(objAD);

ZoneAD_3.Show();

