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_4 = new CodeZoneAD("ZoneAD_4");
ZoneAD_4.ZoneID      = 4;
ZoneAD_4.ZoneWidth   = 0;
ZoneAD_4.ZoneHeight  = 0;
ZoneAD_4.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 4;
objAD.ADType         = 4;
objAD.ADName         = "网页尾";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<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\">关于我们</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/map.html\">网站地图</A> | <A href=\"/zidingyi/banquan.html\">版权声名</A> | <A href=\"javascript:window.external.addFavorite(\'http://www.2008cits.com\',\'『昆明中国青年旅行社』\');\">收藏本站</A> </div></td>  \n\r    </tr>\n\r    <tr>\n\r      <td width=170 height=\"40\" valign=\"top\" background=\"/images/B_logo.jpg\"><img src=\"/B_logo.jpg\" width=\"182\" height=\"107\"></td>\n\r      <td width=\"737\" height=40 vAlign=top><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\r        <TR>\n\r          <TD width=\"50%\" height=\"100\">【公司全称】<strong>昆明中国国际旅行社</strong><BR>\n\r            【许可证号】L-YN-GJ00002   <BR>\n\r            【联系地址】昆明市环城南路285号<BR>\n\r            【业务传真】0871-6356309<BR>\n\r            【客服电话】0871-3516936 3581368 6621582 <BR>\n\r            【客服 MSN】<A href=\"mailto:xiafei2006@hotmail.com\" target=\"_blank\">xiafei2006@hotmail.com</A><BR>\n\r          【客服QQ号】342242950<BR></TD>\n\r          <TD width=\"50%\" valign=\"top\">【网站地址】<a href=\"http://www.2008cits.com\">www.2008cits.com</a><BR>\n\r            【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备</A><br> \n\r            【联 系 人】夏菲 杨兆清 <BR>\n\r            【汇款名称】昆明中国国际旅行社 \n\r            <BR>\n\r            【公司账号】人民币 5310 7805 2010 0405 00417<BR>\n\r            【公司账号】美  元 5310 7805 2140 0400 00057<BR>\n\r            【开户银行】交通银行昆明分行护国支行<BR>\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<script language=\"javascript\">\n\r<!--\n\r	var LiveAutoInvite0=\'您好，来自%IP%的朋友\'; \n\r	var LiveAutoInvite1=\'来自首页自动邀请的对话\';\n\r	var LiveAutoInvite2=\'昆明中国国际旅行社咨询员请求和您对话：<br>您好：您是想来云南旅游吗?<br>按“接受对话”我将免费为您提供旅游咨询!</b>\';\n\r	var LrinviteTimeout=15;\n\r\n\r//-->\n\r</script>\n\r<script language=\"javascript\" src=\"http://dlt.zoosnet.net/JS/LsJS.aspx?siteid=DLT90597382&float=1\"></script>\n\r\n\r<div id=L1 style=\"Z-INDEX: 100; right: 4px; WIDTH: 75px; POSITION: absolute; TOP: 50px; HEIGHT: 50px;\">\n\r  <table width=\"110\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\r    <tr>\n\r      <td valign=\"top\"><img src=\"/skin/images/gads_r1.jpg\" width=\"110\" height=\"64\"></td>\n\r    </tr>\n\r    <tr>\n\r      <td valign=\"top\" background=\"/skin/images/gads_r2.jpg\"><table width=\"110\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"xplqq\">\n\r        <tr>\n\r          <td><a target=blank href=tencent://message/?uin=342242950&Site=www.2008cits.com&Menu=yes><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:342242950:1 alt=\"昆明中国国际旅行社\"></a></td>\n\r        </tr>\n\r        \n\r        <tr>\n\r          <td><a href=\"mailto:xiafei2006@hotmail.com\">MSN咨询</a></td>\n\r        </tr>\n\r        <tr>\n\r          <td>咨询电话：<br>\n\r            0871-3516936 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3581368<br>\n\r            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6621582<br>\n\r            13888598939</td>\n\r        </tr>\n\r        \n\r      </table></td>\n\r    </tr>\n\r    <tr>\n\r      <td valign=\"top\"><img src=\"/skin/images/gads_r3.jpg\" width=\"110\" height=\"47\"></td>\n\r    </tr>\n\r  </table>\n\r</div>\n\r<SCRIPT LANGUAGE=\"JavaScript\">function moveit() //这个函数用于设置层在浏览器中的位置\n\r{\n\rL1.style.top=((document.body.offsetHeight-parseFloat (L1.style.height))/14.5)+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-->";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
objAD.ADDIR          = "AD";
ZoneAD_4.AddAD(objAD);

ZoneAD_4.Show();


