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_53 = new CodeZoneAD("ZoneAD_53");
ZoneAD_53.ZoneID      = 53;
ZoneAD_53.ZoneWidth   = 0;
ZoneAD_53.ZoneHeight  = 0;
ZoneAD_53.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 52;
objAD.ADType         = 4;
objAD.ADName         = "管理资料头部";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table cellSpacing=0 width=820 align=center border=0>\n\r    <tr>\n\r      <td background=http://www.cnshu.cn/top/images/di_01.gif height=25>\n\r<div align=center>\n\r        <table cellSpacing=0 width=\"100%\" border=0>\n\r          <tr>\n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/\" target=_blank><b>首 页</b></A></td> \n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/manager.html\" target=_blank><b>管理资料</b></A></td>\n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/zz/Index.shtml\" target=_blank><b>视频讲座</b></A></td>\n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/tophy.html\" target=_blank><b>行业分类</b></A></td> \n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/topzd.html\" target=_blank><b>制度表格</b></A></td> \n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/topbm.html\" target=_blank><b>部门分类</b></A></td> \n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/topcd.html\" target=_blank><b>管理词典</b></A></td>  \n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/info/index.shtml\" target=_blank><b>管理文库</b></A></td>\n\r            <td width=69><A title=\"\" href=\"http://www.cnshu.cn/exam.html\" target=_blank><b>试题下载</b></A></td>\n\r            <td width=69><A title=\"\" href=\"http://edu24ol.cnshu.cn/\" target=_blank><b>职业考试</b></A></td>\n\r            <td width=70><A title=\"\" href=\"http://www.cnshu.cn/new/index.html\" target=_blank><b>行业资料</b></A></td>\n\r          </tr>\n\r        </table>\n\r</div>\n\r    </tr>\n\r  </table>\n\r  <table cellSpacing=0 width=820 align=center border=0>\n\r    <tr>\n\r      <td background=http://www.cnshu.cn/top/images/t_bg1.gif height=23><b> </b><A title=\"\" href=\"http://www.cnshu.cn/manager.html\" target=_blank><b><font color=\"#FF0000\">管理资料下载:</font></b></A> <A title=\"\" href=\"http://www.cnshu.cn/qygl/Index.html\" target=_blank>企业管理资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/rlzy/Index.html\" target=_blank>人力资源资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/yxgl/Index.html\" target=_blank>市场营销资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/scgl/Index.html\" target=_blank>生产管理资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/pzgl/Index.html\" target=_blank>品质管理资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/cwgl/Index.html\" target=_blank>财务管理资料</A> | <A title=\"\" href=\"http://www.cnshu.cn/glxxh/Index.html\" target=_blank>管理信息化</A> | <A title=\"\" href=\"http://www.cnshu.cn/htws/Index.html\" target=_blank>合同范本</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>                  \n\r    </tr>\n\r	     <tr>\n\r      <td background=http://www.cnshu.cn/top/images/t_bg1.gif height=23><a href=\"http://www.cnshu.cn/zzzsoufei/vod.htm\" target=\"_blank\"><b><font color=\"#FF0000\">管理讲座下载:</font></b></a> <a href=\"http://www.cnshu.cn/zz/List_1022.shtml\" target=\"_blank\">生产管理</a> | <a href=\"http://www.cnshu.cn/zz/List_1019.shtml\" target=\"_blank\">职业经理</a> | <a href=\"http://www.cnshu.cn/zz/List_1016.shtml\" target=\"_blank\">企业管理</a> | <a href=\"http://www.cnshu.cn/zz/List_1017.shtml\" target=\"_blank\">财务管理</a> | <a href=\"http://www.cnshu.cn/zz/List_1021.shtml\" target=\"_blank\">市场营销</a> | <a href=\"http://www.cnshu.cn/zz/List_1020.shtml\" target=\"_blank\">人力资源</a> | <a href=\"http://www.cnshu.cn/zz/List_1027.shtml\" target=\"_blank\">商务礼仪</a> | <a href=\"http://www.cnshu.cn/zz/List_1018.shtml\" target=\"_blank\">战略管理</a> <a href=\"http://www.cnshu.cn/zz/List_1023.shtml\" target=\"_blank\">品质管理</a> <a href=\"http://www.cnshu.cn/zz/List_1025.shtml\" target=\"_blank\">访谈案例</a> <a href=\"http://www.cnshu.cn/zz/List_1024.shtml\" target=\"_blank\">成功激励</a> <a href=\"http://www.cnshu.cn/zz/List_1026.shtml\" target=\"_blank\">信息化</a>   \n\r</td>                 \n\r    </tr>\n\r     <tr>\n\r      <td background=http://www.cnshu.cn/top/images/t_bg1.gif height=23><A title=\"\" href=\"http://edu24ol.cnshu.cn\" target=_blank><b>职业考试培训:</b></A> <a href=\"http://edu24ol.cnshu.cn/leraning/class_jl/index.htm\" target=\"_blank\">监理工程师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_jianzhushi/index.htm\" target=\"_blank\">一级建筑师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_jianzhushi/index.htm\" target=\"_blank\">二级建筑师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_zczx/index.htm\" target=\"_blank\">咨询工程师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_wygl/index.htm\" target=\"_blank\">物业管理师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_tzxmgls/index.htm\" target=\"_blank\">投资项目管理师</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_kjzc/index.htm\" target=\"_blank\">会计职称</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_kjz/index.htm\" target=\"_blank\">会计证</a> | <a href=\"http://edu24ol.cnshu.cn/leraning/class_zcsws/index.htm\" target=\"_blank\">注册税务师</a> <a href=\"http://edu24ol.cnshu.cn/leraning/class_zlzy/index.htm\" target=\"_blank\">质量资格</a> \n\r</td>                 \n\r    </tr>\n\r  </table>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "agg";
ZoneAD_53.AddAD(objAD);

ZoneAD_53.Show();
