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_5 = new CodeZoneAD("ZoneAD_5");
ZoneAD_5.ZoneID      = 5;
ZoneAD_5.ZoneWidth   = 0;
ZoneAD_5.ZoneHeight  = 0;
ZoneAD_5.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 5;
objAD.ADType         = 4;
objAD.ADName         = "910头1";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<link href=\"/skin/main.css\" type=\"text/css\" rel=\"stylesheet\">\n\r<table width=\"910\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n\r  <tr>\n\r    <td><img src=\"/skin/images/ynkmcits_03.jpg\" width=\"377\" height=\"95\" /></td>\n\r    <td><img src=\"/skin/images/topnew.jpg\" width=\"530\" height=\"95\" /></td>\n\r    <td width=\"3\" height=\"95\"></td>\n\r  </tr>\n\r</table>\n\r<table width=\"910\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n\r  <tr>\n\r    <td height=\"5\"></td>\n\r  </tr>\n\r</table>\n\r<table cellSpacing=0 cellPadding=0 width=910 align=center border=0>\n\r    <tr>\n\r      <td>\n\r<div id=first_nav onmouseout=clear_parent_sign()>\n\r        <table cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\n\r          <tr>\n\r            <td id=first_nav_0 onmouseover=show_child(0)><A href=\"/index.html\">首 页</A></td>\n\r            <td id=first_nav_5 onmouseover=show_child(5)><A href=\"/yunnanlvyou/\">云南旅游</A></td>\n\r            <td id=first_nav_7 onmouseover=show_child(7)><A href=\"/zidingyi/hotel.html\">宾馆酒店</A></td>\n\r            <td id=first_nav_10 onmouseover=show_child(10)><A href=\"/kmtour/\">昆明旅游</A></td>\n\r            <td id=first_nav_1 onmouseover=show_child(1)><A href=\"/ljtour/\">丽江旅游</A></td>\n\r            <td id=first_nav_8 onmouseover=show_child(8)><A href=\"/dltour/\">大理旅游</A></td>\n\r            <td id=first_nav_12 onmouseover=show_child(12)><A href=\"/xshbntour/\">版纳旅游</A></td>\n\r            <td id=first_nav_9 onmouseover=show_child(9)><A href=\"/xglltour/\">香格里拉</A></td>\n\r            <td id=first_nav_11 onmouseover=show_child(11)><A href=\"/tchtour/\">腾冲旅游</A></td>\n\r            <td id=first_nav_13 onmouseover=show_child(13)><A href=\"/convention/\">云南会议</A></td>\n\r			<td id=first_nav_15 onmouseover=show_child(15)><A href=\"/zhutitour/List_553.html\">旅游租车</A></td>\n\r            <td id=first_nav_14 onmouseover=show_child(14)><A href=\"/zhutitour/List_295.html\">高尔夫游</A></td>\n\r			<td id=first_nav_16 onmouseover=show_child(16)><a href=\"/emeiyou/\" target=\"_blank\">峨眉山</a></td>\n\r          </tr>\n\r        </table>\n\r      </div></td>\n\r    </tr>\n\r</table>\n\r  <table style=\"BORDER-RIGHT: #6AAC00 1px solid; BORDER-LEFT: #a8b600 1px solid\" height=5 cellSpacing=0 cellPadding=0 width=910 align=center bgColor=#6AAC00 border=0>\n\r    <tr>\n\r      <td></td>\n\r    </tr>\n\r  </table>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "AD";
ZoneAD_5.AddAD(objAD);

ZoneAD_5.Show();
