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.klyyn.org,\'云南国旅\')\" 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=\"http://www.klyyn.org/Photo/UploadPhotos/200903/20090305145339426.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=\"/\" target=\"_blank\">http://www.klyyn.org</a></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【许可证号】L-YN-GJ00002\n\r            </strong></td>\n\r            <td><strong>【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备09006494号</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>【业务接待】石 芳 小谭</strong></td>\n\r            <td><strong>【公司账号】531078052010040500417</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【客服电话】13577113201 15288343330</strong></td>\n\r            <td><strong>【开户银行】交行昆明分行护国支行</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【业务传真】0871-6101908</strong></td>\n\r            <td><strong>【企业邮箱】<a href=\"mailto:yngl0107@.sina.com\">yngl0107@.sina.com</a> </strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【联系手机】<font color=\"#FF0000\">13577113201 15288343330 13577179890</font></strong></td>\n\r            <td><strong>【客服MSN 】<a href=\"msnim:chat?contact=yngl0107@.sina.com\" target=\"_blank\">yngl0107@.sina.com</a></strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【客服QQ】372904343 757747483</td>\n\r            <td><strong>【联系地址】昆明市环城南路1118号国旅总社</strong></td>\n\r          </tr>\n\r          <tr>\n\r            <td><strong>【丽江电话】15288343330</strong></td>\n\r            <td><strong>【丽江地址】丽江古城黑白水国际旅行社</strong></td>\n\r           <td>&nbsp;</td>\n\r          </tr>\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>24小时咨询电话 <span class=\"STYLE10\"><br>\n\r                <strong><font color=\"#FF0000\">13577113201</font><br>\n\r                </strong> </span></td>\n\r          </tr>\n\r		  <tr>\n\r            <td>24小时咨询电话 <span class=\"STYLE10\"><br>\n\r            <strong><font color=\"#FF0000\">13577113201</font></strong></span></td>\n\r          </tr>\n\r<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=72d35736d0c176d27ab4f8899291395afae57aab036e84e7721ef6a8e478f1989442c5c63c1d1a9ea85581eb392e0e8722f4bd20e8a5b43bbcf6059b26d6eebd87bb274797b56f950583c0c67c572dcf03ba74e76fe0d82470ad2490bd4409e0a1a40f333369853359fdd6e323d83391\"; target=_blank; onclick=\"var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=72d35736d0c176d27ab4f8899291395afae57aab036e84e7721ef6a8e478f1989442c5c63c1d1a9ea85581eb392e0e8722f4bd20e8a5b43bbcf6059b26d6eebd87bb274797b56f950583c0c67c572dcf03ba74e76fe0d82470ad2490bd4409e0a1a40f333369853359fdd6e323d83391\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http://wpa.qq.com/pa?p=1:695002627:1\' alt=\"在线咨询\"></a>\n\r          <tr>\n\r <a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=5a47860199865b777c040490e94d14e437f6d88dff44853c843f1c4c866364e4caebff9eab5e7f0359c864f99f90008fd4b43f5ae22db8282646786da4c3a9fd8790f603ec0a9b9d714d37ac0de450a66c1c2f626e038c964a7951a42fafe10b13bf5315cf77e8df01a64dd672669d20\"; target=_blank; onclick=\"var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=5a47860199865b777c040490e94d14e437f6d88dff44853c843f1c4c866364e4caebff9eab5e7f0359c864f99f90008fd4b43f5ae22db8282646786da4c3a9fd8790f603ec0a9b9d714d37ac0de450a66c1c2f626e038c964a7951a42fafe10b13bf5315cf77e8df01a64dd672669d20\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http://wpa.qq.com/pa?p=1:512725906:1\' alt=\"在线咨询\"></a>\n\r          </tr>\n\r          <tr>\n\r            <td align=\"center\"><a href=\"msnim:chat?contact=yngl2000@vip.sina.com\" target=\"_blank\"><img src=\"/skin/images/msn.gif\" width=\"74\" height=\"23\" border=\"0\"></a></td>\n\r          </tr>\n\r          <tr>\n\r            <td align=\"center\"><a href=\"mailto:yngl0107@.sina.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=695002627&sort=0&where=></script> \n\r-->\n\r  <!--右测广告\n\r<script language=JavaScript src=http://float2006.tq.cn/floatcard?adminid=695002627&sort=0&where=></script> \n\r-->\n\r\n\r\n\r\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();
