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        = "<table width=\"910\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n\r  <tr>\n\r    <td><table width=\"910\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n\r    <tr>\n\r      <td id=\"indexmore\" width=\"910\" height=\"26\" align=\"center\" valign=\"middle\" background=\"/skin/images/ynkmcits_51.gif\"><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=\"/zidingyi/map.html\" target=\"_blank\">旅游地图</a> | <a href=\"/link/friendsite.asp\" target=\"_blank\">友情链接</a> | <a href=\"/zidingyi/banquan.html\" target=\"_blank\">版权声明</a>  | <a href=\"#\" onClick=\"window.external.AddFavorite(\'http://www.7caiyun.com\',\'云南中青国际旅行社集团有限公司\')\" target=\"_self\">收藏本站</a></td>\n\r    </tr>\n\r  </table></td>\n\r  </tr>\n\r  <tr>\n\r    <td><table width=\"910\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\r      <tr>\n\r        <td width=\"200\"><img src=\"/skin/images/B_logo.gif\" width=\"200\" height=\"169\" /></td>\n\r        <td width=\"710\" align=\"left\" valign=\"top\"><table width=\"710\" height=\"169\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\r          <tr>\n\r            <td width=\"283\"><strong>【网站全称】云南中青国际旅行社集团有限公司</strong></td>\n\r            <td width=\"348\"><strong>【网站地址】<a href=\"/\" target=\"_blank\">www.7caiyun.com</a></strong></td>\n\r            <td width=\"79\" rowspan=\"6\"><a href=\"/zidingyi/yingyezhizhao.html\" target=\"_blank\"><img src=\"/skin/images/INDEX3_86.gif\" width=\"74\" height=\"100\" border=\"0\"></a></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【许可证号】L-YN-GJ00002</strong></td>\n\r            <td><strong>【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备06004025号-1</A></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><p><strong>【联 系 人】胡小姐  焦先生  赵先生 </strong></p>\n\r             </td>\n\r            <td><strong>【客服电话】<font color=\"#FF0000\">400-6618-895 0871-3338819   3338859</font></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【联系手机】13378802889 13378847937</strong></td>\n\r            <td><strong>【业务传真】0871-3338859</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【企业QQ】<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=152897978&site=qq&menu=yes\"><img border=\"0\" src=\"http://wpa.qq.com/pa?p=2:152897978:41\" alt=\"点击这里给我发消息\" title=\"点击这里给我发消息\"></a><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=1486669437&site=qq&menu=yes\"><img border=\"0\" src=\"http://wpa.qq.com/pa?p=2:1486669437:41\" alt=\"点击这里给我发消息\" title=\"点击这里给我发消息\"></a></strong></td>\n\r            <td><strong>【企业邮箱】<a href=\"mailto:152897978@qq.com\">152897978@qq.com</a> </strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【客服MSN】<a href=\"mailto:yntshurong@hotmail.com\">yntshurong@hotmail.com</a></strong></td>\n\r            <td><p><strong>【联系地址】昆明市拓东路101号208室</strong></p>\n\r              </td>\n\r          </tr>     \n\r        </table></td>\n\r      </tr>\n\r    </table></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();

