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_25 = new CodeZoneAD("ZoneAD_25");
ZoneAD_25.ZoneID      = 25;
ZoneAD_25.ZoneWidth   = 0;
ZoneAD_25.ZoneHeight  = 0;
ZoneAD_25.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 21;
objAD.ADType         = 4;
objAD.ADName         = "760*40&nbsp;－－整站－－栏目导航";
objAD.ImgUrl         = "";
objAD.InstallDir     = "http://hr.dxrc.cn/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\r  <tr>\n\r    <td align=\"center\" bgcolor=\"#FFFFFF\"><p>| <a href=\"http://hr.dxrc.cn/ldbh/ygwq/Index.html\" target=\"_blank\"><font color=red>员工维权</font></a> | <a href=\"http://hr.dxrc.cn/ldbh/qywq/Index.html\" target=\"_blank\">企业维权</a> | <a href=\"http://hr.dxrc.cn/flfg/dffg/gzfl/Index.html\" target=\"_blank\">薪金政策</a> | <a href=\"http://hr.dxrc.cn/hrzx/jyzc/Index.html\" target=\"_blank\">就业政策</a> | <a href=\"http://hr.dxrc.cn/ldbh/alfx/Index.html\" target=\"_blank\">案例分析</a> | <a href=\"http://hr.dxrc.cn/ldbh/shbz/zdgz1/Index.html\" target=\"_blank\">最低保障</a><a href=\"http://hr.dxrc.cn/ldbh/ShowClass.asp?ClassID=44\"></a> | <a href=\"http://hr.dxrc.cn/wd/\" target=\"_blank\"><font color=red>劳动问答</font></a><a href=\"http://hr.dxrc.cn/ldbh/ShowClass.asp?ClassID=221\"></a> | <a href=\"http://hr.dxrc.cn/flfg/ctfg/Index.html\" target=\"_blank\">常用法规</a> | <a href=\"http://hr.dxrc.cn/flfg/bxfg/Index.html\" target=\"_blank\">保险法规</a> | <a href=\"http://hr.dxrc.cn/flfg/sfjs/Index.html\" target=\"_blank\">司法解释</a> | <a href=\"http://hr.dxrc.cn/rcsc/\" target=\"_blank\"><font color=red>人才市场</font></a> |<br>\n\r      | <a href=\"http://hr.dxrc.cn/hrzx/qzzn/Index.html\"><font color=red>求职攻略</font></a> | <a href=\"http://hr.dxrc.cn/hrzx/jylbd/Index.html\" target=\"_blank\">经理必读</a> | <a href=\"http://hr.dxrc.cn/gl/\" target=\"_blank\">企业管理</a> | <a href=\"http://hr.dxrc.cn/hrzx/zcgl/Index.html\" target=\"_blank\">职场攻略</a> | <a href=\"http://hr.dxrc.cn/wsfb/qzjl/Index.html\" target=\"_blank\">求职简历</a> | <a href=\"http://hr.dxrc.cn/wsfb/grws/Index.html\" target=\"_blank\">个人文书</a> | <a href=\"http://hr.dxrc.cn/wsfb/htfb/Index.html\" target=\"_blank\"><font color=red>合同范本</font></a> | <a href=\"http://hr.dxrc.cn/wsfb/gsgl/Index.html\" target=\"_blank\">管理文书</a> | <a href=\"http://hr.dxrc.cn/wsfb/yjg/Index.html\" target=\"_blank\">演讲发言</a> | <a href=\"http://hr.dxrc.cn/wsfb/qhfa/Index.html\" target=\"_blank\">计划文案</a> | <a href=\"http://hr.dxrc.cn/wsfb/flws/Index.html\"><font color=red>法律文书</font></a> |<br>\n\r      | <a href=\"http://hr.dxrc.cn/gl/\" target=\"_blank\"><font color=red>企业管理</font></a> | <a href=\"http://hr.dxrc.cn/yx/l\" target=\"_blank\">营销管理</a> | <a href=\"http://hr.dxrc.cn/pp/\" target=\"_blank\">品牌管理</a> | <a href=\"http://hr.dxrc.cn/cy/\" target=\"_blank\">创业项目</a> | <a href=\"http://hr.dxrc.cn/kd/\" target=\"_blank\">店铺管理</a> | <a href=\"http://hr.dxrc.cn/kwd/\" target=\"_blank\">网店经营</a> | <a href=\"http://hr.dxrc.cn/ly/\" target=\"_blank\"><font color=red>商务礼仪</font></a> | <a href=\"http://hr.dxrc.cn/gl/\" target=\"_blank\">人力资源</a> | <a href=\"http://hr.dxrc.cn/wsfb/dzxz/Index.html\" target=\"_blank\">党政写作</a> | <a href=\"http://hr.dxrc.cn/wsfb/zjbg/Index.html\" target=\"_blank\">总结报告</a> | <a href=\"http://hr.dxrc.cn/wzz/zw/Index.html\" target=\"_blank\"><font color=\"red\">精选作文</font></a> |</p></td>\n\r  </tr>\n\r</table>\n\r";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD1";
ZoneAD_25.AddAD(objAD);

ZoneAD_25.Show();

