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?KindType=1\">友情链接</A> | <A href=\"/zidingyi/map.html\">网站地图</A> | <A href=\"/zidingyi/banquan.html\">版权声名</A> | \n\r<a class=\"link1\" href=\"javascript:\" onmouseover=\"javascript:window.external.AddFavorite(\'http://www.kmcits800.com\', \'『昆明中国国际旅行社』www.kmcits800.com\');\"><U>收藏本站</U></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=\"116\"></td>\n\r      <td width=\"737\" height=40 vAlign=top><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\r        <TR>\n\r          <TD width=\"629\" colSpan=\"2\"><DIV align=\"left\" twffan=\"done\"><STRONG> 客户咨询热线：0871-3550258 6403288 </STRONG> <STRONG> 负责人：饶小姐  王先生</STRONG> <STRONG> 24小时热线：13888554195</STRONG></DIV></TD>\n\r        </TR>\n\r        <TR>\n\r          <TD height=\"100\">【公司全称】昆明中国国际旅行社<BR>\n\r            【许可证号】L-YN-GJ00002 <BR>\n\r            【联系地址】云南省昆明市环城南路285号国旅大厦<BR>\n\r            【业务传真】0871-3550257（自动接收）<BR>\n\r            【客服电话】0871-3550258 6403288<BR>\n\r            【客服 MSN】<A href=\"mailto:KMcits800@hotmail.com\">KMcits800@hotmail.com</A><BR>\n\r            【客服QQ号】<A href=\"http://wpa.qq.com/msgrd?V=1&Uin=823573957&Site\" target=\"_blank\">823573957</A><BR>\n\r            【企业信箱】<A href=\"mailto:KMcits800@126.com\">KMcits800@126.com</A></TD>\n\r          <TD>【网站地址】<a href=\"http://www.kmcits800.com\">www.kmcits800.com</a><BR>\n\r            【网站备案】<A href=\"http://www.miibeian.gov.cn\" target=\"_blank\">滇ICP备07001293</A> （滇ICP06004148备号） <BR>\n\r            【汇款名称】昆明中国国际旅行社 <BR>\n\r            【公司账号】531078052010040500417<BR>\n\r            【开户银行】交通银行昆明分行护国支行<BR>\n\r            【联 系 人】饶小姐，姚先生，王先生 <BR>\n\r          【业 务 员】</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    <script language=\"javascript\">\n\r  <!--\n\r	var LiveAutoInvite0=\'您好，来自%IP%的朋友!昆明中国国际旅行社欢迎您！\'; \n\r	var LiveAutoInvite1=\'来自首页自动邀请的对话\';\n\r	var LiveAutoInvite2=\'欢迎您来访问昆明中国国际旅行社：<br>请接受邀请，我们将竭诚为您提供服务满足您的个性化旅游需求！</b>\';\n\r	var LrinviteTimeout=60;\n\r//-->\n\r</script> \n\r<script language=\"javascript\" src=\"http://dlt.zoosnet.net/JS/LsJS.aspx?siteid=DLT27224005&float=1\"></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();

