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           = 4;
objAD.ADType         = 4;
objAD.ADName         = "910头";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<style>\n\r.cct1013_topt{ background-image:url(/skin/images/cct1013_03.gif); text-align:center; font-size:14px; font-weight:bold; color:#ffffff; }\n\r.cct1013_topt a{ font-size:14px; font-weight:bold; color:#ffffff; text-decoration:none;}\n\r.cct1013_topt a:link{ font-size:14px; font-weight:bold; color:#ffffff; text-decoration:none;}\n\r.cct1013_topt a:visited{ font-size:14px; font-weight:bold; color:#ffffff; text-decoration:none;}\n\r.cct1013_topt a:hover{ font-size:14px; font-weight:bold; color:#993300; text-decoration:none;}\n\r.cct1013_topt a:active{ font-size:14px; font-weight:bold; color:#ffffff; text-decoration:none;}\n\r</style>\n\r<table cellSpacing=0 cellPadding=0 width=910 align=center border=0>\n\r  <tr>\n\r    <td><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"910\" height=\"180\">\n\r      <param name=\"movie\" value=\"/swf/910.swf\">\n\r      <param name=\"quality\" value=\"high\">\n\r      <embed src=\"/swf/910.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"910\" height=\"180\"></embed>\n\r    </object></td>\n\r  </tr>\n\r</table>\n\r<table width=910 border=0 align=center cellPadding=0 cellSpacing=0 bgcolor=\"#b6e9fa\" class=\"TabBarLevel1\" id=\"TabPage1\">\n\r    <tr>\n\r      <td  width=74 height=30 class=\"cct1013_topt\"><a href=\"/\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">首页</a></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zidingyi/guanyu.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">公司简介</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zhutitour/\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab2\',\'HackBox2\');\">云南旅游</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zhutitour/List_570.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox3\');\">国内旅游</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zhutitour/List_589.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox4\');\">出境旅游</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/photo/\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab5\',\'HackBox5\');\">旅游景点</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zidingyi/hotel.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab6\',\'HackBox6\');\">宾馆酒店</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/convention/\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">商务会议</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/zhutitour/List_295.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">高 尔 夫</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"/yunnanlvyou/List_544.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">租　车</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td  width=74 class=\"cct1013_topt\"><a href=\"/zidingyi/lianxi.html\" target=\"_self\" onMouseOver=\"javascript:switchTab(\'TabPage1\',\'Tab1\',\'HackBox1\');\">联系我们</A></td>\n\r      <td class=\"cct1013_topt\">|</td>\n\r      <td class=\"cct1013_topt\" width=74><a href=\"#\" target=\"_self\" onClick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.yunkmcct.com\');\">设为首页</a> </td>\n\r    </tr>\n\r    <tr>\n\r      <td height=30 colspan=\"23\">\n\r<div id=\"HackBox1\" class=\"HackBox\" style=\"width:100%;display:block;\">\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table2\">\n\r<tr>\n\r<td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r<td style=\"padding-left:10px; padding-top:8px;\">\n\r<A href=\"/zhutitour/List_556.html\" target=_blank>云南三日游</A>　<a href=\"/zhutitour/List_557.html\" target=\"_blank\">云南四日游</a>　<a href=\"/zhutitour/List_558.html\" target=\"_blank\">云南五日游</a>　<a href=\"/zhutitour/List_559.html\" target=\"_blank\">云南六日游</a>　<a href=\"/zhutitour/List_560.html\" target=\"_blank\">云南七日游</a>　<a href=\"/zhutitour/List_561.html\" target=\"_blank\">云南八日游</a>　<a href=\"/zhutitour/List_562.html\" target=\"_blank\">云南九日游</a>　<a href=\"/zhutitour/List_600.html\" target=\"_blank\">全线游</a>　<a href=\"/zhutitour/List_563.html\" target=\"_blank\">特色游</a>　<a href=\"/zhutitour/List_540.html\" target=\"_blank\">夕阳红旅游</a>　<a href=\"/zhutitour/List_632.html\" target=\"_blank\">夏令营旅游</a></td>\n\r</tr>\n\r</table>\n\r</div>\n\r<div id=\"HackBox2\" class=\"HackBox\" style=\"width:100%;display:none;\">\n\r\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table1\">\n\r<tr><td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r<td style=\"padding-left:10px; padding-top:8px;\">\n\r<A href=\"/kmtour/\" target=_blank>昆明旅游</A>　<A href=\"/dltour/\" target=_blank>大理旅游</A>　<A href=\"/ljtour/\" target=_blank>丽江旅游</A>　<A href=\"/xglltour/\" target=_blank>香格里拉旅游</A>　<A href=\"/xshbntour/\" target=_blank>西双版纳旅游</A>　<A href=\"/tchtour/\" target=_blank>腾冲旅游</A>\n\r</td>\n\r</tr>\n\r</table>\n\r\n\r</div>\n\r<div id=\"HackBox3\" class=\"HackBox\" style=\"width:100%;display:none;\">\n\r\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table3\">\n\r<tr><td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r\n\r</tr>\n\r</table>\n\r\n\r</div>\n\r<div id=\"HackBox4\" class=\"HackBox\" style=\"width:100%;display:none;\">\n\r\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table4\">\n\r<tr><td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r\n\r</tr>\n\r</table>\n\r\n\r</div>\n\r<div id=\"HackBox5\" class=\"HackBox\" style=\"width:100%;display:none;\">\n\r\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table5\">\n\r<tr><td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r<td style=\"padding-left:10px; padding-top:8px;\"><a href=\"/Photo/List_314.html\" target=\"_blank\">昆明景点</a>  <a href=\"/Photo/List_313.html\" target=\"_blank\">大理景点</a>  <a href=\"/Photo/List_312.html\" target=\"_blank\">丽江景点</a>  <a href=\"/Photo/List_311.html\" target=\"_blank\">香格里拉景点</a>  <a href=\"/Photo/List_310.html\" target=\"_blank\">西双版纳景点</a> <a href=\"/Photo/List_309.html\" target=\"_blank\">腾冲景点</a>  <a href=\"/Photo/List_639.html\" target=\"_blank\">国内著名景点</a>  <a href=\"/Photo/List_640.html\" target=\"_blank\">国外著名景点</a></td>\n\r</tr>\n\r</table>\n\r\n\r</div>\n\r<div id=\"HackBox6\" class=\"HackBox\" style=\"width:100%;display:none;\">\n\r\n\r<table border=\"0\" width=\"100%\" cellpadding=\"0\" style=\"border-collapse: collapse\" id=\"table6\">\n\r<tr><td width=\"162\" ><img src=\"/skin/images/cct1013_06.gif\" width=\"162\" height=\"35\"></td>\n\r<td style=\"padding-left:10px; padding-top:8px;\"><a href=\"/kmtour/List_251.html\" target=\"_blank\">昆明酒店</a>  <a href=\"/dltour/List_265.html\" target=\"_blank\">大理酒店</a>  <a href=\"/ljtour/List_258.html\" target=\"_blank\">丽江酒店</a>  <a href=\"/xglltour/List_272.html\" target=\"_blank\">香格里拉酒店</a>  <a href=\"/xshbntour/List_279.html\" target=\"_blank\">西双版纳酒店</a>  <a href=\"/tchtour/List_286.html\" target=\"_blank\">腾冲酒店</a></td>\n\r</tr>\n\r</table>\n\r\n\r</div>\n\r</td>\n\r    </tr><script language=\"JavaScript\">\n\r//by http://www.qpsh.com\n\rfunction switchTab(tabpage,tabid,show_n){\n\r//alert(show_n);\n\rfor(var i=1;i<7;i++){\n\rdocument.getElementById(\'HackBox\'+i).style.display=\"none\";\n\r}\n\rdocument.getElementById(show_n).style.display=\"block\";\n\rvar oItem = document.getElementById(tabpage); \n\rfor(var i=0;i<oItem.children.length;i++){\n\rvar x = oItem.children(i);\n\rx.className = \"\";\n\rvar y = x.getElementsByTagName(\'a\');\n\r\n\r}\n\rdocument.getElementById(tabid).className = \"Selected\";\n\r}\n\r</script>\n\r</table>";
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();
