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_3 = new CodeZoneAD("ZoneAD_3");
ZoneAD_3.ZoneID      = 3;
ZoneAD_3.ZoneWidth   = 0;
ZoneAD_3.ZoneHeight  = 0;
ZoneAD_3.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 3;
objAD.ADType         = 4;
objAD.ADName         = "910尾";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<style type=\"text/css\">\n\r<!--\n\r.STYLE1 {color: #FF0000}\n\r-->\n\r</style>\n\r<table cellSpacing=0 cellPadding=0 width=910 align=center border=0 style=\"margin-top:5px\">\n\r    <tr>\n\r      <td height=\"31\" colspan=\"2\" background=\"/images/index3_09.gif\"><div align=\"center\"><A href=\"/zidingyi/guanyu.html\" target=_blank>关于我们</A> | <A href=\"/zidingyi/pinzhi.html\" target=_blank>品质保证</A> | <A href=\"/zidingyi/lianxi.html\" target=_blank>联系我们</A> | <A href=\"/zidingyi/baoming.html\" target=_blank>报名参团</A> | <A href=\"/zidingyi/zhifu.html\" target=_blank>支付方式</A> | <A href=\"/FriendSite/Index.asp\" target=_blank>友情链接</A> | <A href=\"/yunnanlvyou/7324.htm\" target=_blank>旅游合同</A> | <A href=\"/zidingyi/banquan.html\" target=_blank>版权声名</A> | <A href=\"javascript:window.external.addFavorite(\'http://www.ynu168.com\',\'『昆明中国国际旅行社』\');\">收藏本站</A> </div></td>  \n\r    </tr>\n\r    <tr>\n\r      <td width=170 height=\"40\" valign=\"top\" background=\"/images/B_logo.jpg\"><div align=\"center\"><img src=\"/B_logo.jpg\" width=\"182\" height=\"116\"></div></td>\n\r      <td width=\"737\" height=40 vAlign=top><table height=116 cellSpacing=0 cellPadding=0 width=728 border=0>\n\r          <tr>\n\r            <td>【公司全称】昆明中国国际旅行社</td>\n\r            <td>【网站地址】<A href=\"{$InstallDir}\">www.ynu168.com</A></td>\n\r          </tr>\n\r          <tr>\n\r            <td>【许可证号】L-YN-GJ00002</td>\n\r            <td>【网站备案】<A href=\"http://www.miibeian.gov.cn/\" target=_blank>滇ICP备</A></td>\n\r          </tr>\n\r          <tr>\n\r            <td>【联 系 人】王波涛 陈开红 张小艳 李丽 </td>\n\r            <td>【汇款名称】昆明中国国际旅行社 </td>\n\r          </tr>\n\r          <tr>\n\r            <td>【客服电话】0871-3533606 3533616 3533296</td>\n\r            <td>【公司账号】2402 7501 0400 02442</td>\n\r          </tr>\n\r          <tr>\n\r            <td><FONT color=#ff0000>【全国免费咨询热线】400-6999-840</FONT></td>\n\r            <td>【开户银行】中国农业银行昆明双龙支行永安路分理处</td>\n\r          </tr>\n\r          <tr>\n\r            <td>【联系手机】13888240099 13888027492</td>\n\r            <td>【联系地址】昆明市环城南路285号</td>\n\r          </tr>\n\r          <tr>\n\r            <td>【业务传真】0871-3533296</td>\n\r            <td>【客服咨询QQ】<a href=\"tencent://message/?uin=195718951&Site=www.uuyn.net&Menu=yes\" target=_blank>195718951</a> <a href=\"tencent://message/?uin=972700766&Site=www.uuyn.net&Menu=yes\" target=_blank>972700766</a></td>\n\r          </tr>\n\r          <tr>\n\r            <td>【客服信箱】<A href=\"mailto:jcke760824@vip.sina.com\">jcke760824@vip.sina.com</A></td>\n\r            <td>&nbsp;</td>\n\r          </tr>\n\r        </table></td></tr>\n\r    <tr>\n\r      <td width=170 height=\"2\" background=\"/images/B_logo.jpg\"> </td>\n\r      <td vAlign=top height=2>\n\r</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_3.AddAD(objAD);

ZoneAD_3.Show();

