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_61 = new CodeZoneAD("ZoneAD_61");
ZoneAD_61.ZoneID      = 61;
ZoneAD_61.ZoneWidth   = 0;
ZoneAD_61.ZoneHeight  = 0;
ZoneAD_61.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 88;
objAD.ADType         = 4;
objAD.ADName         = "网站顶部大头2（不能删除）";
objAD.ImgUrl         = "";
objAD.InstallDir     = "http://www.ndnews.cn/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<div align=\"center\">\n\r	<table border=\"0\" width=\"997\" cellspacing=\"0\" cellpadding=\"0\" height=\"31\" id=\"table1\" style=\"border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px\" bordercolor=\"#0060AF\" bgcolor=\"#FFFFFF\">\n\r		<tr>\n\r			<td bgcolor=\"#F2F8FB\">\n\r			<p align=\"center\"><span style=\"font-size: 9pt\"><font color=\"#000080\"> </font><a href=\"http://www.ndjczx.com\"><span style=\"text-decoration: none\"><font color=\"#000080\">www.ndjczx.com</font></span></a><font color=\"#000080\"> \n\r			| <a href=\"http://www.ndnews.cn/ndjczx/\">首页</a> | </font>\n\r			<a href=\"http://www.ndnews.cn/ndjczx/List_198.html\">新闻</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://www.ndnews.cn/ndjczx/List_208.html\">政务</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://www.ndnews.cn/ndnews/List_383.html\">直播</a><font color=\"#000080\"> | </font><font color=\"#ffffff\">\n\r			<a href=\"http://nd.ndnews.cn/photo/\">\n\r			<span style=\"color: #000080; text-decoration: none\">\n\r			</span>\n\r			<span style=\"color: #000080; text-decoration: none\">\n\r			<a href=\"http://nd.ndnews.cn/photo/\">图片</a></span></a></font><font color=\"#000080\"> \n\r			| </font>\n\r			<a href=\"http://nd.ndnews.cn/blog\">博客</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://nd.ndnews.cn/bbs\">论坛</a><font color=\"#000080\"> |  </font>\n\r			<a href=\"http://www.ndnews.cn/ndnews/List_279.html\">美食</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://www.ndnews.cn/ndnews/List_288.html\">旅游</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://nd.ndnews.cn/job/\">人才</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://nd.ndnews.cn/2shou/\">二手</a><font color=\"#000080\"> | </font><font color=\"#ffffff\">\n\r			<span style=\"color: #000080; text-decoration: none\">\n\r			<a href=\"http://nd.ndnews.cn/house/\">房产</a></span></font><font color=\"#000080\"> \n\r			| </font>\n\r			<a href=\"http://nd.ndnews.cn/info/\">黄页</a><font color=\"#000080\"> | </font>\n\r			<a href=\"http://nd.ndnews.cn/shop/\">商城</a><font color=\"#000080\"> | </font></span><font color=\"#ffffff\">\n\r			<a href=\"http://nd.ndnews.cn/classad/\">\n\r			<span style=\"font-size: 9pt; color: #000080; text-decoration: none\">\n\r			<a href=\"http://www.ndnews.cn/classad/\">招贴</a></span></a><font color=\"#000080\"><span style=\"font-size: 9pt\"> |</span></font></font><span style=\"font-size: 9pt\"><font color=\"#000080\">\n\r			</font>\n\r			<a href=\"http://www.ndnews.cn/ndjczx/List_207.html\">专题</a><font color=\"#000080\"> | \n\r			<a target=\"_blank\" href=\"http://www.ndnews.cn/ndnews/List_317.html\">教育</a> | \n\r			<a target=\"_blank\" href=\"http://www.ndnews.cn/ndjczx/List_200.html\">视频</a> | </font></span>\n\r			<span style=\"font-size: 9pt\">\n\r			<a style=\"color: #000088; text-decoration: underline\" onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.ndjczx.com/\');return false;\" href=\"#\">\n\r			<font color=\"#ff0000\">设为首页</font></a><font color=\"#FF0000\"> </font>| </span>\n\r			<a id=\"addtofa\" style=\"color: #000088; text-decoration: underline\" onclick=\"window.external.addFavorite(\'http://www.ndjczx.com/\',\'【新华网·蕉城在线】\')\" target=\"_self\" href=\"#\">\n\r			<span style=\"font-size: 9pt\">收藏本站</span></a></td>\n\r		</tr>\n\r	</table>\n\r</div>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_61.AddAD(objAD);

ZoneAD_61.Show();
