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_7 = new CodeZoneAD("ZoneAD_7");
ZoneAD_7.ZoneID      = 7;
ZoneAD_7.ZoneWidth   = 0;
ZoneAD_7.ZoneHeight  = 0;
ZoneAD_7.ShowType    = 2;

var objAD = new ObjectAD();
objAD.ADID           = 7;
objAD.ADType         = 4;
objAD.ADName         = "文章页&nbsp;导航(LOGO和小字)";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table cellspacing=\"0\" cellpadding=\"0\" width=\"900\" align=\"center\" border=\"0\">\n\r	<tr>\n\r		<td colspan=\"8\" height=\"5\"></td>\n\r	</tr>\n\r	<tr>\n\r		<td align=\"middle\" width=\"150\" rowspan=\"2\">\n\r		<a href=\"http://www.hbdxs.com/\" target=\"_blank\">\n\r		<img height=\"44\" alt=\"河北大学生网\" src=\"http://www.hbdxs.com/skin/wz/logo.jpg\" width=\"150\" border=\"0\"></a></td>\n\r		<td align=\"middle\" width=\"210\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/news/\" target=\"_blank\"><b>新闻</b></a><a href=\"http://www.hbdxs.com/gaoxiao\" target=\"_blank\">高校</a>\n\r		<a href=\"http://www.hbdxs.com/news/special/yibao/\" target=\"_blank\">医保</a>\n\r		<a href=\"http://www.hbdxs.com/news/special/zhuxuedaikuan/\" target=\"_blank\">\n\r		助学贷款</a>\n\r		<a href=\"http://www.hbdxs.com/news/special/dangbing/\" target=\"_blank\">入伍</a>\n\r		<a href=\"http://www.hbdxs.com/news/2006/6330.html\" target=\"_blank\">论坛</a></td>\n\r		<td align=\"middle\" width=\"20\" height=\"44\" rowspan=\"2\">\n\r		<img height=\"40\" src=\"http://www.hbdxs.com/skin/wz/touge.gif\" width=\"1\" border=\"0\"></td>\n\r		<td align=\"middle\" width=\"165\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/cy\" target=\"_blank\"><b>创业</b></a>\n\r		<a href=\"http://www.hbdxs.com/cy/chuangyeban/\" target=\"_blank\">创业板</a>\n\r		<a href=\"http://www.hbdxs.com/cy/chuangyexiangmu/\" target=\"_blank\">项目</a>\n\r		<a href=\"http://www.hbdxs.com/cy/hebeichuangyedaikuan/\" target=\"_blank\">\n\r		贷款</a> <a href=\"http://www.hbdxs.com/cy/cy06\" target=\"_blank\">政策</a></td>\n\r		<td align=\"middle\" width=\"20\" height=\"44\" rowspan=\"2\">\n\r		<img height=\"40\" src=\"http://www.hbdxs.com/skin/wz/touge.gif\" width=\"1\" border=\"0\"></td>\n\r		<td align=\"middle\" width=\"195\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/jiuye\" target=\"_blank\"><b>就业</b></a>\n\r		<a href=\"http://www.hbdxs.com/jiuye/zhaopinhui\" target=\"_blank\">招聘会</a>\n\r		<a href=\"http://www.hbdxs.com/jiuye/jianli/fengmian/\" target=\"_blank\">简历封面</a>\n\r		<a href=\"http://www.hbdxs.com/jiuye/jy05/\" target=\"_blank\">职业规划</a></td>\n\r		<td align=\"middle\" width=\"20\" height=\"44\" rowspan=\"2\">\n\r		<img height=\"40\" src=\"http://www.hbdxs.com/skin/wz/touge.gif\" width=\"1\" border=\"0\"></td>\n\r		<td align=\"middle\" width=\"120\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/job\" target=\"_blank\"><b>人才</b></a>\n\r		<a href=\"http://www.hbdxs.com/job/renli.asp\" target=\"_blank\">求职</a>\n\r		<a href=\"http://www.hbdxs.com/job/zhaopin.asp\" target=\"_blank\">招聘</a>\n\r		<a href=\"http://www.hbdxs.com/jiajiao/\" target=\"_blank\">家教</a></td>\n\r	</tr>\n\r	<tr>\n\r		<td align=\"middle\" width=\"210\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/xiaoyuan\" target=\"_blank\"><b>校园</b></a>\n\r		<a href=\"http://www.hbdxs.com/shetuan/\" target=\"_blank\">社团</a>\n\r		<a href=\"http://www.hbdxs.com/sex/\" target=\"_blank\">性教育</a>\n\r		<a href=\"http://www.hbdxs.com/sex/sex01/\" target=\"_blank\">心理</a>\n\r		<a href=\"http://www.hbdxs.com/xiaoyuan/xy03\" target=\"_blank\">大学生活</a></td>\n\r		<td align=\"middle\" width=\"165\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/cunguan\" target=\"_blank\"><b>村官</b></a>\n\r		<a href=\"http://www.hbdxs.com/cunguan/zhaokao/\" target=\"_blank\">招考</a>\n\r		<a href=\"http://www.hbdxs.com/cunguan/bishi/\" target=\"_blank\">笔试</a>\n\r		<a href=\"http://www.hbdxs.com/cunguan/mianshi/\" target=\"_blank\">面试</a>\n\r		<a href=\"http://www.hbdxs.com/cunguan/gzzj/\" target=\"_blank\">总结</a></td>\n\r		<td align=\"middle\" width=\"195\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/kaoshi\" target=\"_blank\"><b>考试</b> </a>\n\r		<a href=\"http://www.hbdxs.com/kaoshi/gongwuyuan\" target=\"_blank\">公务员 </a>\n\r		<a href=\"http://www.hbdxs.com/kaoshi/english/cet46\" target=\"_blank\">四六级 \n\r		</a><a href=\"http://www.hbdxs.com/kaoshi/kaoyan\" target=\"_blank\">考研 </a>\n\r		<a href=\"http://www.hbdxs.com/kaoshi/shengben\" target=\"_blank\">专升本</a></td>\n\r		<td align=\"middle\" width=\"120\" height=\"22\">\n\r		<a href=\"http://www.hbdxs.com/liuxue\" target=\"_blank\"><b>留学</b></a>\n\r		<a href=\"http://www.hbdxs.com/px\" target=\"_blank\">培训</a>\n\r		<a href=\"http://www.hbdxs.com/lunwen\" target=\"_blank\">论文</a>\n\r		<a href=\"http://www.hbdxs.com/fanwen\" target=\"_blank\">范文</a></td>\n\r	</tr>\n\r	<tr>\n\r		<td colspan=\"8\" height=\"5\"></td>\n\r	</tr>\n\r</table>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_7.AddAD(objAD);

ZoneAD_7.Show();

