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.STYLE10 {color: #FF0000}\n\r-->\n\r</style>\n\r<table cellSpacing=0 cellPadding=0 width=980 align=center border=0 style=\"margin-top:5px\">\n\r    <tr>\n\r      <td height=\"31\" colspan=\"2\" background=\"/skin/images/index_100.gif\"><div align=\"center\"><A href=\"/zidingyi/guanyu.html\">关于我们</A> | <A href=\"/zidingyi/pinzhi.html\">品质保证</A> | <A href=\"/zidingyi/lianxi.html\">联系我们</A> | <A href=\"/zidingyi/baoming.html\">报名参团</A> | <A href=\"/zidingyi/zhifu.html\">支付方式</A> | <A href=\"/FriendSite/Index.asp\">友情链接</A> | <A href=\"/zidingyi/banquan.html\">版权声名</A> | <A href=\"javascript:window.external.addFavorite(\'http://www.517uynkm.com\',\'『昆明康辉国际旅行社有限公司』\');\">收藏本站</A> </div></td>  \n\r    </tr>\n\r    <tr>\n\r      <td width=170 height=\"40\" valign=\"middle\" background=\"/images/B_logo.jpg\"><img src=\"/B_logo.jpg\" width=\"182\" height=\"169\"></td>\n\r      <td width=\"737\" height=40 vAlign=top><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\r        <TR>\n\r          <TD colSpan=\"3\"><DIV align=\"left\" twffan=\"done\"></DIV></TD>\n\r        </TR>\n\r        <TR>\n\r          <TD height=\"152\" valign=\"top\"><p>【公司全称】<strong>昆明康辉国际旅行社有限公司</strong><br>\n\r            【许可证号】L-YN-GJ00012<BR>\n\r            【联 系 人】夏艳丽 孙媛媛 <BR>\n\r            【客服电话】0871-6531930 3585831<BR>\n\r            【全国免费电话】400-600-9641<br>\n\r            【联系手机】13678731190<br>\n\r            【客服QQ号】 <a target=_self href=tencent://message/?uin=514234285&Site=昆明康辉国际旅行社&Menu=yes><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:475597280:9 alt=\"点击这里给我发消息\"></a><a target=_self href=tencent://message/?uin=261844342&Site=昆明康辉国际旅行社&Menu=yes><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:261844342:9 alt=\"点击这里给我发消息\"></a><br>\n\r              【企业信箱】<a href=\"mailto:ynly1111@163.com\" target=\"_self\">ynly1111@163.com</a>\n\r\n\r              <br>\n\r              【联系地址】昆明市永安路1号（康辉旅游大厦）</TD>\n\r          <TD valign=\"top\"> <p>【网站地址】<a href=\"/\" target=\"_blank\">www.517uynkm.com</a><br>\n\r            【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备09000852号-1</A> <A href=\"http://www.miibeian.gov.cn\" target=\"_blank\"></A><br>\n\r            【汇款名称】昆明康辉旅行社有限公司<BR>\n\r            【公司账号】5310 7804 50181 60004 658 <BR>\n\r            【开户银行】交通银行昆明分行拓东路支行\n\r            <br>\n\r            【汇款名称】夏艳丽            <br>\n\r              【个人帐号】45635 1270011 2896 278 <br>\n\r              【开户银行】中国银行昆明市永安路支行<br>\n\r              <BR>\n\r            </p>\n\r          </TD>\n\r          <TD valign=\"top\"><a href=\"/zidingyi/hetong.html\" target=\"_blank\"><img src=\"/skin/images/hetong.gif\" width=\"92\" height=\"119\" border=\"0\"></a></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>\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\">0871-6531930<br>\n\r              0871-3585831</span></td>\n\r          </tr>\n\r          \n\r          <tr>\n\r            <td>联系手机：<span class=\"STYLE10\">13678731190</span></td>\n\r          </tr>\n\r          <tr>\n\r            <td><div align=\"center\"><A href=\"tencent://message/?uin=514234285&Site=www.517uynkm.com&Menu=yes\"><IMG height=23 src=\"/skin/images/qb.gif\" width=74 border=0></A></div></td>\n\r          </tr>\n\r          <tr>\n\r            <td align=\"center\"><A href=\"tencent://message/?uin=261844342&Site=www.517uynkm.com&Menu=yes\"><IMG src=\"/skin/images/qb.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))/1.75)+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--><BGSOUND balance=0 src=\"/swf/cits9988.mp3\" volume=0 loop=infinite>\n\r\n\r  <!--右测广告\n\r<script language=JavaScript src=http://float2006.tq.cn/floatcard?adminid=307098810&sort=0&where=></script> \n\r-->\n\r<script type=\"text/javascript\" src=\"http://js.tongji.yahoo.com.cn/0/125/362/ystat.js\"></script><noscript><a href=\"http://js.tongji.yahoo.com.cn\"><img src=http://js.tongji.yahoo.com.cn/0/125/362/ystat.gif></a></noscript>\n\r<script type=\"text/javascript\">\n\rvar gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");\n\rdocument.write(unescape(\"%3Cscript src=\'\" + gaJsHost + \"google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E\"));\n\r</script>\n\r<script type=\"text/javascript\">\n\rvar pageTracker = _gat._getTracker(\"UA-2597554-11\");\n\rpageTracker._initData();\n\rpageTracker._trackPageview();\n\r</script>";
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();

