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_40 = new CodeZoneAD("ZoneAD_40");
ZoneAD_40.ZoneID      = 40;
ZoneAD_40.ZoneWidth   = 0;
ZoneAD_40.ZoneHeight  = 0;
ZoneAD_40.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 63;
objAD.ADType         = 4;
objAD.ADName         = "一排QQ";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table width=\"960\" height=\"70\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-top:5px;\">\n\r        <tr>\n\r          <td width=\"139\" height=\"36\"><a href=\"#\" onClick=\"OPE()\"><img src=\"http://www.gz-benet.com.cn/images/back1-1.gif\" width=\"142\" height=\"36\" border=\"0\"></a></td>\n\r          <td width=\"821\" height=\"36\" background=\"http://www.gz-benet.com.cn/images/back2.gif\" align=\"left\">热点推荐： <a href=\"http://www.gz-benet.com.cn/gaokao-bulu/\" target=\"_blank\">1.<font color=\"#FF0000\">高考低分考生值得报读的学校 </font> </a>    2.<a href=\"http://www.gz-benet.com.cn/news/HTML/news_18284.html\" target=\"_blank\"><font color=\"#FF0000\">2011年最给力(最适合高中生)高薪热门专业</font></a>    3.<a href=\"http://www.gz-benet.com.cn/gaokao.htm\" target=\"_blank\">读大学与读北大青鸟投资对比</a>   4.<a href=\"http://xf.gz-benet.com.cn/\" target=\"_blank\">如何节省北大青鸟学费</a></td>\n\r        </tr>\n\r        <tr>\n\r          <td width=\"139\" height=\"36\"><label><a href=\"http://www.gz-benet.com.cn/gbook/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/back1-3.gif\" width=\"142\" height=\"36\" border=\"0\" usemap=\"#Map\"></a></label></td>\n\r          <td width=\"821\" height=\"36\" align=\"center\" background=\"http://www.gz-benet.com.cn/images/back3.gif\"><table width=\"807\" height=\"37\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\r              <tr>\n\r                <td width=\"58\" align=\"center\" class=\"biaotiTXT\"><a href=\"http://www.gz-benet.com.cn/kecheng/kecheng_64.html\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/jinru.gif\" width=\"40\" height=\"20\" border=\"0\"></a></td>\n\r                \n\r                <td width=\"740\"><table width=\"98%%\" height=\"28\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n\r                    <tr>\n\r                      <td width=\"98%\" align=\"left\"> <img  style=\"CURSOR: pointer\" onclick=\"javascript:window.open(\'http://bizapp.qq.com/webc.htm?new=0&sid=938069328&eid=&o=gz-benet.com.cn&q=7\', \'_blank\', \'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no\');\"  border=\"0\" SRC=\"http://im.bizapp.qq.com:8000/zx_qq.gif\">\n\r					    <img  style=\"CURSOR: pointer\" onclick=\"javascript:window.open(\'http://bizapp.qq.com/webc.htm?new=0&sid=938069328&eid=&o=gz-benet.com.cn&q=7\', \'_blank\', \'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no\');\"  border=\"0\" SRC=\"http://im.bizapp.qq.com:8000/zx_qq.gif\">\n\r					    <a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=1&uin=1454671673&site=qq&menu=yes\"><img border=\"0\" src=\"http://wpa.qq.com/pa?p=2:1454671673:41 &r=0.7690340701050456\" alt=\"胡老师\"></a>\n\r						 \n\r	       <a href=\"http://www.gz-benet.com.cn/jiangzuo.htm\"><font color=\"#0000FF\" title=\"免费讲座，不听白不听，听了不白听\">免费讲座（点击报名）</font></a>       免费咨询电话：4000-020-998，02034330086</td>\n\r\n\r                    </tr>\n\r                </table></td>\n\r              </tr>\n\r          </table></td>\n\r        </tr>\n\r   </table>\n\r \n\r   <table id=\"__01\" width=\"950\" height=\"70\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\r	<tr>\n\r		<td>\n\r			<img src=\"http://www.gz-benet.com.cn/images/job_01.gif\" width=\"79\" height=\"70\"></td>\n\r		<td>\n\r\n\r			<a href=\"http://www.gz-benet.com.cn/gaozhongsheng/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_02.gif\" alt=\"高中生就业方案\" width=\"123\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://www.gz-benet.com.cn/jiuyeban/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_03.gif\" alt=\"大学生就业入口\" width=\"122\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://www.gz-benet.com.cn/waisheng/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_04.gif\" alt=\"外来务工就业方案\" width=\"123\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://www.gz-benet.com.cn/zhuanhang/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_05.gif\" alt=\"跳槽转行就业方案\" width=\"121\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://www.gz-benet.com.cn/tuiwu-junren-jiuye-fangan.htm\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_06.gif\" alt=\"退伍军人就业方案\" width=\"123\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://www.gz-benet.com.cn/guihua/\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_07.gif\" alt=\"北大青鸟免费职业规划\" width=\"123\" height=\"70\" border=\"0\"></a></td>\n\r		<td>\n\r			<a href=\"http://chat.live800.com/live800/chatClient/chatbox.jsp?companyID=38333&jid=2271061107\" target=\"_blank\"><img src=\"http://www.gz-benet.com.cn/images/job_08.gif\" alt=\"点击更多咨询\" width=\"136\" height=\"70\" border=\"0\"></a></td>\n\r	</tr>\n\r</table>\n\r \n\r";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "qingniao";
ZoneAD_40.AddAD(objAD);

ZoneAD_40.Show();

