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  = "";
}

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_11 = new CodeZoneAD("ZoneAD_11");
ZoneAD_11.ZoneID      = 11;
ZoneAD_11.ZoneWidth   = 0;
ZoneAD_11.ZoneHeight  = 0;
ZoneAD_11.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 17;
objAD.ADType         = 4;
objAD.ADName         = "top频道及扩展-top3";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<tr>\n\r      <td colspan=\"3\" align=middle><table width=\"760\" cellspacing=\"0\" cellpadding=\"0\">\n\r        <tr>\n\r          <td width=\"50\"><img src=\"/images/index_2.gif\" width=\"50\" height=\"23\"></td>\n\r          <td bgcolor=\"#0283FB\"><a class=\'Channel\'  href=\'/Index.html\' target=\'_self\'>| 首页|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/taxnews/Index.html\' target=\'_self\'>新闻|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/tax/Index.html\' target=\'_self\'>税务|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/gongshangguanli/\' target=\'_blank\'>工商|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/haiguanshiwu/Index.html\' target=\'_blank\'>海关|<a class=\'Channel\'  href=\'http://http://www.chinesetax.cn/guojimaoyi/Index.html\' target=\'_blank\'>外贸|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/acc/Index.html\' target=\'_blank\'>财会|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/caishuikaoshi/Index.html\' target=\'_blank\'>考试|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/fagui/Index.html\' target=\'_blank\'>法律|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/guanliwenku/Index.html\' target=\'_blank\'>管理|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/touzilicai/Index.html\' target=\'_blank\'>理财|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/photo/index.html\' target=\'_blank\'>图片|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/GusetBook/Index.asp\' target=\'_blank\'>咨询| <a class=\'Channel\'  href=\'http://www.chinesetax.cn/caishuiwenku/Index.html\' target=\'_blank\'>财税文库|<a class=\'Channel\'  href=\'/shop/index.html\' target=\'_blank\'>商城书店|<a class=\'Channel\'  href=\'http://www.chinesetax.cn/Supply/Index.asp\' target=\'_blank\'>招聘招贴|<a class=\'Channel\'  href=\'http://bbs.chinesetax.com.cn/\' target=\'_blank\'>财税论坛| </td>\n\r          <td width=\"50\"><img src=\"/images/index_3.gif\" width=\"50\" height=\"23\"></td>\n\r        </tr>\n\r      </table>\n\r        <table width=\"760\" cellspacing=\"0\" cellpadding=\"0\">\n\r          <tr>\n\r            <td height=1></td>\n\r          </tr>\n\r          <tr>\n\r            <td height=\"15\" align=\"center\" background=\"Images/t_bg2.gif\"> |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuishouchouhua/Index.html\"> 税收筹划 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuishouchouhua/shuishouchouhualilun/Index.html\"> 筹划理论 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuishouchouhua/shuishouchouhuaanli/Index.html\"> 节税案例 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/guestbook/index.asp\"> 税务咨询 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/fagui/fagui/shuiwu/Index.html\"> 税务法规 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/nashuifudao/Index.html\"> 纳税辅导 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuifajiexi/Index.html\"> 税法解析 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuizhigaige/Index.html\"> 税制改革 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/guowainashuishiwu/Index.html\"> 国外实务 | <A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/shuishouyouhui/Index.html\"> 税收优惠 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/sheshuikuaiji/Index.html\"> 涉税会计 |</td>\n\r          </tr>\n\r        </table>\n\r        <table width=\"760\" cellspacing=\"0\" cellpadding=\"0\">\n\r          <tr>\n\r            <td height=1></td>\n\r          </tr>\n\r          <tr>\n\r            <td height=\"15\" align=\"center\" background=\"/images/t_bg1.gif\">|<A class=\'Channel12\'  href=\"/jd/ShowClass.asp?ClassID=191\"> <A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/congyezige/Index.html\"> 从业资格 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/chujikaoshi/Index.html\"> 初级资格 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/kuaijishikaoshi/Index.html\"> 会 计 师 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/zhucekuaijishikaoshi/Index.html\"> 注册会计师 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/gaojikuaijishikaoshi/Index.html\"> 高级会计师 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/zhuceshuiwushikaoshi/Index.html\"> 注册税务师 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/caishuikaoshi/zhucezichanpinggushikaoshi/Index.html\"> 注册资产评估师 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/nashuifudao/jianmianshuifudao/Index.html\"> 税收减免 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/tax/nashuifudao/jinchukoushuishou/Index.html\"> 出口退税 |<A class=\'Channel12\'  href=\"http://www.chinesetax.cn/daohang.html\"> 网站地图 |</td>\n\r          </tr>\n\r        </table></td>\n\r    </tr>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "/";
ZoneAD_11.AddAD(objAD);

ZoneAD_11.Show();
