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_4 = new CodeZoneAD("ZoneAD_4");
ZoneAD_4.ZoneID      = 4;
ZoneAD_4.ZoneWidth   = 0;
ZoneAD_4.ZoneHeight  = 0;
ZoneAD_4.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 4;
objAD.ADType         = 4;
objAD.ADName         = "网站头部";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<div class=class1>\n\r<div class=b1>\n\r<div class=j1>\n\r</div>\n\r<div class=b111>\n\r</div>\n\r</div>\n\r<div class=head>\n\r<div class=b3>\n\r</div>\n\r<div class=riqi>\n\r  <table height=27 cellSpacing=0 cellPadding=0 width=986 border=0>\n\r    <tr>\n\r      <td align=middle width=416 height=27>\n\r      <script language=JavaScript>\n\rtoday=new Date();\n\rfunction initArray(){\n\rthis.length=initArray.arguments.length\n\rfor(var i=0;i<this.length;i++)\n\rthis[i+1]=initArray.arguments[i] }\n\rvar d=new initArray(\n\r\"星期日\",\n\r\"星期一\",\n\r\"星期二\",\n\r\"星期三\",\n\r\"星期四\",\n\r\"星期五\",\n\r\"星期六\");\n\rdocument.write(\n\r\"<font color=#ffffff style=\'font-size:9pt;font-family: 宋体;  letter-spacing:2px; text-decoration:none;\'> \",\n\rtoday.getYear(),\"年\",\n\rtoday.getMonth()+1,\"月\",\n\rtoday.getDate(),\"日\",\n\rd[today.getDay()+1],\n\r\"</font>\" ); \n\r</script>&nbsp;&nbsp;<SPAN class=z4>中国温泉之都——咸宁欢迎您！</SPAN></td>\n\r      <td width=410 align=middle></td>      \n\r      <td align=middle width=80><A class=z3 onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.xnyl.gov.cn\');\" href=\"#\">设为首页</A></td>\n\r      <td align=middle width=80><A class=z3 href=\"javascript:window.external.AddFavorite(\'http://www.xnyl.gov.cn\', \'咸宁旅游网\')\">加入收藏</A></td>\n\r    </tr>\n\r  </table>\n\r</div>\n\r<div class=x1>\n\r</div>\n\r<div class=head1>\n\r<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=200 width=986 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME=\"_cx\" VALUE=\"26088\"><PARAM NAME=\"_cy\" VALUE=\"5292\"><PARAM NAME=\"FlashVars\" VALUE=\"\"><PARAM NAME=\"Movie\" VALUE=\"/images/01.swf\"><PARAM NAME=\"Src\" VALUE=\"/images/01.swf\"><PARAM NAME=\"WMode\" VALUE=\"Window\"><PARAM NAME=\"Play\" VALUE=\"-1\"><PARAM NAME=\"Loop\" VALUE=\"-1\"><PARAM NAME=\"Quality\" VALUE=\"High\"><PARAM NAME=\"SAlign\" VALUE=\"\"><PARAM NAME=\"Menu\" VALUE=\"-1\"><PARAM NAME=\"Base\" VALUE=\"\"><PARAM NAME=\"AllowScriptAccess\" VALUE=\"\"><PARAM NAME=\"Scale\" VALUE=\"ShowAll\"><PARAM NAME=\"DeviceFont\" VALUE=\"0\"><PARAM NAME=\"EmbedMovie\" VALUE=\"0\"><PARAM NAME=\"BGColor\" VALUE=\"\"><PARAM NAME=\"SWRemote\" VALUE=\"\"><PARAM NAME=\"MovieData\" VALUE=\"\"><PARAM NAME=\"SeamlessTabbing\" VALUE=\"1\"><PARAM NAME=\"Profile\" VALUE=\"0\"><PARAM NAME=\"ProfileAddress\" VALUE=\"\"><PARAM NAME=\"ProfilePort\" VALUE=\"0\"><PARAM NAME=\"AllowNetworking\" VALUE=\"all\"><PARAM NAME=\"AllowFullScreen\" VALUE=\"false\">\n\r    <embed src=\"/images/01.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"986\" height=\"200\"></embed>\n\r  </OBJECT>\n\r</div>\n\r<div class=daohang>\n\r<table height=46 cellSpacing=0 cellPadding=0 width=986 border=0>\n\r    <tr>\n\r      <td width=84 background=\"/images/b_r1_c1.jpg\"><div class=\"jl_dh\"><a href=\"/Index.htm\" class=\"text_dh\">首&nbsp;&nbsp;页</a></div></td>\n\r      <td width=90 background=\"/images/b_r1_c4.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/xnkg/Index.htm\" class=\"text_dh\">咸宁概况</a></div></td>\n\r      <td width=89 background=\"/images/b_r1_c5.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/jgsz/Index.htm\" class=\"text_dh\">机构设置</a></div></td>\n\r      <td width=90 background=\"/images/b_r1_c4.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/zcfg/Index.htm\" class=\"text_dh\">政策法规</a></div></td>\n\r      <td width=89 background=\"/images/b_r1_c5.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/ghzs/Index.htm\" class=\"text_dh\">规划招商</a></div></td>\n\r      <td width=90 background=\"/images/b_r1_c4.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/xccx/Index.htm\" class=\"text_dh\">宣传促销</a></div></td>\n\r      <td width=89 background=\"/images/b_r1_c5.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/jjjc/Index.htm\" class=\"text_dh\">纪检监察</a></div></td>\n\r      <td width=90 background=\"/images/b_r1_c4.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/hygl/Index.htm\" class=\"text_dh\">行业管理</a></div></td>\n\r      <td width=89 background=\"/images/b_r1_c5.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/jypx/Index.htm\" class=\"text_dh\">教育培训</a></div></td>\n\r      <td width=90 background=\"/images/b_r1_c4.jpg\"><div class=\"jl_dh2\"><a href=\"/Article/lyzf/Index.htm\" class=\"text_dh\">旅游执法</a></div></td>\n\r      <td width=96 background=\"/images/b_r1_c13.jpg\"><div class=\"jl_dh2\"><a href=\"/BBS/\" class=\"text_dh\" target=\"_blank\">旅游论坛</a></div></td>\n\r    </tr>\n\r  </table>\n\r</div>\n\r</div>\n\r<div class=b2>\n\r<div class=j2>\n\r</div>\n\r<div class=b222>\n\r</div>\n\r</div>\n\r</div>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "AD";
ZoneAD_4.AddAD(objAD);

ZoneAD_4.Show();
