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=\"/FriendSite/\" target=\"_blank\">友情链接</a> | <a href=\"/zidingyi/hetong.html\" target=\"_blank\">旅游合同</a> | <a href=\"/zidingyi/banquan.html\" target=\"_blank\">版权声明</a>  | <a href=\"#\" onMouseOver=\"window.external.AddFavorite(\'http://www.yuncits.com\',\'昆明中国国际旅行社\')\" target=\"_blank\">收藏本站</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 id=\"endconnect\" width=\"710\" height=\"169\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\r          <tr>\n\r            <td><strong>【公司全称】昆明中国国际旅行社</strong></td>\n\r            <td><strong>【网站地址】<a href=\"http:www.yuncits.com/\" target=\"_blank\">www.yuncits.com</a></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【许可证号】L-ZY-GJ00002\n\r            </strong></td>\n\r            <td><strong>【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备05009312号</A></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【联系人】潘全胜</strong></td>\n\r            <td><strong>【汇款名称】昆明中国国际旅行社</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【客服电话】0871-3526608 3581199 </strong></td>\n\r            <td><strong>【公司账号】5310 7805 2010 0405 0041 7</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td>                  <strong>          6914068 2868118</strong></td>\n\r            <td><strong>【开户银行】 交行昆明分行护国支行	\n\r</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【全国免费电话】<font color=\"#FF0000\">400-666-3300</font></strong></td>\n\r            <td><strong>【企业邮箱】<a href=\"mailto:km-cits@163.com\">km-cits@163.com</a> 【MSN】<a href=\"msnim:chat?contact=km-cits@hotmail.com\">km-cits@hotmail.com</a></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【业务传真】0871-3566795</strong></td>\n\r            <td><strong>【联系地址】昆明市环城南路285号昆明国旅411-412室</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【联系手机】<font color=\"#FF0000\">13577091211</font></strong></td>\n\r            <td><strong>【客服QQ】<a href=\"tencent://message/?uin=438762476&Site=www.yuncits.com&Menu=yes\" target=blank>438762476</a></strong> </td>\n\r          </tr>\n\r          \n\r        </table></td>\n\r      </tr>\n\r    </table></td>\n\r  </tr>\n\r</table>\n\r<div id=L1 style=\"Z-INDEX: 100; right: 4px; WIDTH: 75px; POSITION: absolute; TOP: 314px; HEIGHT: 50px\">\n\r  <table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\n\r    <tr>\n\r      <td><IMG height=64 src=\"/skin/images/gads_r1.jpg\" width=110></td>\n\r    </tr>\n\r    <tr>\n\r      <td background=/skin/images/gads_r2.jpg>\n\r        <table id=xplfd cellSpacing=0 cellPadding=0 width=\"80%\" align=center border=0 style=\"margin-bottom:3px; margin-top:3px;\">\n\r          <tr>\n\r            <td>联系电话：<span class=\"STYLE10\"><br>\n\r                <strong><font color=\"#FF0000\">0871-3526608</font><br>\n\r              </strong> </span></td>\n\r          </tr>\n\r		  <tr>\n\r            <td>联系手机：<span class=\"STYLE10\"><br>\n\r            <strong><font color=\"#FF0000\">13577091211</font></strong></span></td>\n\r          </tr>\n\r		  <tr>\n\r            <td>全国咨询电话：<span class=\"STYLE10\"><br>\n\r            <strong><font color=\"#FF0000\">400-666-3300</font></strong></span></td>\n\r          </tr>\n\r          <tr>\n\r            <td align=\"center\"><A href=\"tencent://message/?uin=438762476&Site=www.yuncits.com&Menu=yes\" target=\"_self\"><IMG src=\"/skin/images/qb.gif\" width=74 height=23 vspace=\"6\" border=0></A></td>\n\r          </tr>\n\r          <tr>\n\r            <td align=\"center\"><a href=\"msnim:chat?contact=km-cits@hotmail.com\" target=\"_blank\"><img src=\"/skin/images/msn.gif\" width=\"74\" height=\"23\" vspace=\"6\" border=\"0\"></a></td>\n\r          </tr>\n\r            <td align=\"center\"><a href=\"mailto:km-cits@163.com\" target=\"_blank\"><img src=\"/skin/images/mail.gif\" width=\"74\" height=\"23\" vspace=\"6\" border=\"0\"></a></td>\n\r          </tr>\n\r        </table>\n\r      </td>\n\r    </tr>\n\r    <tr>\n\r      <td><IMG height=47 src=\"/skin/images/gads_r3.jpg\" width=110></td>\n\r    </tr>\n\r  </table>\n\r</div><SCRIPT LANGUAGE=\"JavaScript\">function moveit() //这个函数用于设置层在浏览器中的位置\n\r{\n\rL1.style.top=((document.body.offsetHeight-parseFloat (L1.style.height))/2.0)+document.body.scrollTop;\n\r}\n\rwindow.onload=moveit; //网面打开时时执行moveit()\n\rwindow.onresize=moveit; //当调整浏览器大小时执行moveit()\n\rwindow.onscroll=moveit; //当拉动滚动条时执行moveit()</SCRIPT>\n\r  <!--右测广告\n\r<script language=JavaScript src=http://float2006.tq.cn/floatcard?adminid=307098810&sort=0&where=></script>\n\r--\n\r\n\r  <!--右测广告\n\r<script language=JavaScript src=http://float2006.tq.cn/floatcard?adminid=307098810&sort=0&where=></script> \n\r-->";
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();
