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_24 = new CodeZoneAD("ZoneAD_24");
ZoneAD_24.ZoneID      = 24;
ZoneAD_24.ZoneWidth   = 0;
ZoneAD_24.ZoneHeight  = 0;
ZoneAD_24.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 13;
objAD.ADType         = 4;
objAD.ADName         = "LOGO旁边的导航";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<A title=\"\" href=\"http://www.32lu.com/qupuxiazai/liuxinggequ/Index.html\" target=_blank>流行歌曲|</A><A title=\"\" href=\"http://www.32lu.com/qupuxiazai/waiguomingge/Index.html\" target=_blank>外国歌</A>曲|<A href=\"http://www.32lu.com/shengyue/meishenggequ/zhongguogequ/Index.html\">中国歌曲</A>|<A href=\"http://www.32lu.com/wudao/wdzs/Index.html\">舞蹈知识</A>|<A href=\"http://www.32lu.com/wudao/wdmt/Index.html\">舞蹈美图</A>|<A title=\"\" href=\"http://www.32lu.com/jiaoyu/wdlw/Index.html\" target=_self>舞蹈论文</A>|<A href=\"http://www.32lu.com/jiaoyu/youjiao/Index.html\">幼教教案</A>|<A title=\"\" href=\"http://www.32lu.com/jiaoyu/xiaoxue/Index.html\" target=_self>小学教案</A>|<A title=\"\" href=\"http://www.32lu.com/jiaoyu/chuzhong/Index.html\" target=_self>初中教案</A>|<A title=\"\" href=\"http://www.32lu.com/jiaoyu/yylw/Index.html\" target=_self>音乐论文</A>|<A title=\"\" href=\"http://www.32lu.com/jiaoyu/xjlw/Index.html\" target=_self>戏剧论文</A>|<A title=\"\" href=\"http://www.32lu.com/guqu/wenzhan/Index.html\" target=_self>古曲文章</A>|<A href=\"http://www.32lu.com/yinyueshi/box/Index.html\">音乐光盘集</A>|<A href=\"http://www.32lu.com/yinyueshi/ysj/Index.html\">艺术节</A><BR><A href=\"http://www.32lu.com/shengyue/minzugequ/Index.html\">山歌</A>|<A href=\"http://www.32lu.com/shengyue/minzugequ/Index.html\">号子</A>|<A href=\"http://www.32lu.com/shengyue/minzugequ/Index.html\">小调</A>|<A href=\"http://www.32lu.com/shengyue/minzugequ/mingejieshao/Index.html\">信天游</A>|<A href=\"http://www.32lu.com/qupuxiazai/erhu/Index.html\">吉他谱</A>|<A href=\"http://www.32lu.com/qupuxiazai/erhu/Index.html\">二胡曲谱</A>|<A href=\"http://www.32lu.com/wudao/ladingwu/Index.html\">拉丁舞</A>|<A href=\"http://www.32lu.com/wudao/jiewu/Index.html\">街舞</A>|<A href=\"http://www.32lu.com/wudao/titawu/Index.html\">踢踏舞</A>|<A href=\"http://www.32lu.com/wudao/balei/Index.html\">芭蕾</A>|<A href=\"http://www.32lu.com/wudao/minzuwu/Index.html\">民族舞</A>|<A href=\"http://www.32lu.com/wudao/jiaoyiwu/Index.html\">现代舞|交谊舞</A>|<A href=\"http://www.32lu.com/wudao/jueshiwu/Index.html\">爵士舞</A>|<A href=\"http://www.32lu.com/wudao/dupiwu/Index.html\">肚皮舞</A>|<A href=\"http://www.32lu.com/wudao/shaoerwudao/Index.html\">少儿舞蹈</A>|<A href=\"http://www.32lu.com/wudao/wudaobisai/Index.html\">舞蹈比赛</A>|<A href=\"http://www.32lu.com/wudao/yujiaboji/Index.html\">瑜珈</A>|MIDI<script type=\"text/javascript\"><!--\n\rgoogle_ad_client = \"pub-2313457157331531\";\n\rgoogle_ad_width = 728;\n\rgoogle_ad_height = 15;\n\rgoogle_ad_format = \"728x15_0ads_al_s\";\n\r//2007-10-28: TOP\n\rgoogle_ad_channel = \"3506686981\";\n\rgoogle_color_border = \"FFFFFF\";\n\rgoogle_color_bg = \"FFFFFF\";\n\rgoogle_color_link = \"000000\";\n\rgoogle_color_text = \"000000\";\n\rgoogle_color_url = \"008000\";\n\r//-->\n\r</script>\n\r<script type=\"text/javascript\"\n\r  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n\r</script>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_24.AddAD(objAD);

ZoneAD_24.Show();
