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_33 = new CodeZoneAD("ZoneAD_33");
ZoneAD_33.ZoneID      = 33;
ZoneAD_33.ZoneWidth   = 0;
ZoneAD_33.ZoneHeight  = 0;
ZoneAD_33.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 32;
objAD.ADType         = 4;
objAD.ADName         = "最顶文字导航";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table width=\"100%\" border=0>\n\r    <tr>\n\r      <td>\n\r<div align=center>\n\r	<b>小学课件：</b></STRONG><A href=\"http://i3721.com/kejian/yw/Index.html\" target=_blank><u>语文</u></A> \n\r	| <A href=\"http://i3721.com/kejian/sx/Index.html\" target=_blank><u>数学</u></A> | <A href=\"http://i3721.com/kejian/sl/Index.html\" target=_blank><u>自然</u></A> \n\r	| <A href=\"http://i3721.com/kejian/kx/Index.html\">\n\r	<span style=\"text-decoration: none\"><u>科学</u></span></A> | <A href=\"http://i3721.com/kejian/yy/Index.html\" target=_blank><u>英语</u></A> \n\r	| <A href=\"http://i3721.com/kejian/sxpd/Index.html\" target=_blank><u>思品</u></A> | <A href=\"http://i3721.com/kejian/yykj/Index.html\" target=_blank><u>音乐</u></A> \n\r	| <A href=\"http://i3721.com/kejian/ms/Index.html\" target=_blank><u>美术</u></A> <STRONG>初中课件：</STRONG><A title=\"\" href=\"http://www.i3721.com/kejian/zxyy2/Index.html\" target=_self><u>语文</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxsx/Index.html\" target=_self><u>数学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxyy1/Index.html\" target=_self><u>英语</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxzz/Index.html\" target=_self><u>政治</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxls/Index.html\" target=_self><u>历史</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxdl/Index.html\" target=_self><u>地理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxsw/Index.html\" target=_self><u>生物</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxwl/Index.html\" target=_self><u>物理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/hx/Index.html\" target=_self><u>化学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxyy/Index.html\" target=_self><u>音乐</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/kejian/zxsxpd/Index.html\" target=_self><u>思品</u></A>|<A href=\"http://www.i3721.com/kejian/zxkx/Index.html\"><u>科学</u></A> <STRONG><br>\n\r	高中课件：</STRONG><A href=\"http://i3721.com/kejian/gzyw/Index.html\"><u>语文</u></A> \n\r	| <A href=\"http://i3721.com/kejian/gzsx/Index.html\"><u>数学</u></A> | <A href=\"http://i3721.com/kejian/gzyu/Index.html\"><u>英语</u></A> \n\r	| <A href=\"http://i3721.com/kejian/gzls/Index.html\"><u>历史</u></A> | <A href=\"http://i3721.com/kejian/gzdl/Index.html\"><u>地理</u></A> \n\r	| <A href=\"http://i3721.com/kejian/gzsw/Index.html\"><u>生物</u></A> | <A href=\"http://i3721.com/kejian/gzwl/Index.html\"><u>物理</u></A> \n\r	| <A href=\"http://i3721.com/kejian/gzhx/Index.html\"><u>化学</u></A> | <A href=\"http://i3721.com/kejian/gzzz/Index.html\"><u>政治</u></A><u>\n\r	</u> <B>初中视频:</B> <A title=\"\" href=\"http://www.i3721.com/video/czyw/Index.html\" target=_self><u>语文</u></A> | <A title=\"\" href=\"http://www.i3721.com/video/czsx/Index.html\" target=_self><u>数学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/yingyu/Index.html\" target=_self><u>英语</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/czdl/Index.html\" target=_self><u>地理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/czhx/Index.html\" target=_self><u>化学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/czls/Index.html\" target=_self><u>历史</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/czwl/Index.html\" target=_self><u>物理</u></A> \n\r	|<A title=\"\" href=\"http://www.i3721.com/video/czzz/Index.html\" target=_self><u>政治</u></A>|<A title=\"\" href=\"http://www.i3721.com/video/czsw/Index.html\" target=_self><u>生物</u></A>|<A title=\"\" href=\"http://www.i3721.com/video/czyy/Index.html\" target=_self><u>音乐</u></A>|<A title=\"\" href=\"http://www.i3721.com/video/czsxpd/Index.html\" target=_self><u>思品</u></A>|<A title=\"\" href=\"http://www.i3721.com/video/czkx/Index.html\" target=_self><u>科学</u></A><B><br>\n\r	小学视频： </B><A title=\"\" href=\"http://www.i3721.com/video/xxyw/Index.html\" target=_self>语文  \n\r	<span style=\"text-decoration: none\">| </span> </A><A title=\"\" href=\"http://www.i3721.com/video/xxyy1/Index.html\" target=_self>英语</A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxsx/Index.html\" target=_self><u>数学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxkx/Index.html\" target=_self><u>科学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxms/Index.html\" target=_self><u>美术</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxsxpd/Index.html\" target=_self><u>思品</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxyy/Index.html\" target=_self><u>音乐</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/xxzr/Index.html\" target=_self><u>自然</u></A>  <B>高中视频: </B><A title=\"\" href=\"http://www.i3721.com/video/gzyw/Index.html\" target=_self><u>语文</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzsx/Index.html\" target=_self><u>数学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzyingyu/Index.html\" target=_self><u>英语</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzdl/Index.html\" target=_self><u>地理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzhx/Index.html\" target=_self><u>化学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzwl/Index.html\" target=_self><u>物理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/video/gzzz/Index.html\" target=_self><u>政治</u></A><u>\n\r	</u>|<A title=\"\" href=\"http://www.i3721.com/video/gzls/Index.html\" target=_self><u>历史</u></A>\n\r	<B>小学音频:</B><A title=\"\" href=\"http://www.i3721.com/wav/xxyw/Index.html\" target=_self><u>语文</u></A>|<A title=\"\" href=\"http://www.i3721.com/wav/xxsx/Index.html\" target=_self><u>数学</u></A>|<u>\n\r	</u>\n\r	<A title=\"\" href=\"http://www.i3721.com/wav/xxyy1/Index.html\" target=_self>\n\r	<u>英语</u></A><br>\n\r&nbsp;<A title=\"\" href=\"http://www.i3721.com/wav/xxzr/Index.html\" target=_self><u>自然</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/xxkx/Index.html\" target=_self><u>科学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/xxsxpd/Index.html\" target=_self><u>思品</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/xxyy/Index.html\" target=_self><u>音乐</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/xxms/Index.html\" target=_self><u>美术</u></A>\n\r	<B>初中音频：</B><A title=\"\" href=\"http://www.i3721.com/wav/czyw/Index.html\" target=_self><u>语文</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czsx/Index.html\" target=_self><u>数学</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/yingyu/Index.html\" target=_self><u>英语</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czzz/Index.html\" target=_self><u>政治</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czls/Index.html\" target=_self><u>历史</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czdl/Index.html\" target=_self><u>地理</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czsw/Index.html\" target=_self><u>生物</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czyy/Index.html\" target=_self><u>音乐</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/czsxpd/Index.html\" target=_self><u>思品</u></A> <B>高中音频\n\r	：</B><A title=\"\" href=\"http://www.i3721.com/wav/gzyw/Index.html\" target=_self><u>语文</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/gzyingyu/Index.html\" target=_self><u>英语</u></A> \n\r	| <A title=\"\" href=\"http://www.i3721.com/wav/gzdl/Index.html\" target=_self><u>地理</u></A> | <A title=\"\" href=\"http://www.i3721.com/wav/gzhx/Index.html\" target=_self><u>化学</u></A><u>\n\r	</u>|<u> </u><A title=\"\" href=\"http://www.i3721.com/wav/gzzz/Index.html\" target=_self><u>政治</u></A><u>\n\r	</u>|<A title=\"\" href=\"http://www.i3721.com/wav/gzls/Index.html\" target=_self><u>历史</u></A> <BR>\n\r<script type=\"text/javascript\"><!--\n\rgoogle_ad_client = \"pub-2329678248725865\";\n\rgoogle_ad_width = 728;\n\rgoogle_ad_height = 15;\n\rgoogle_ad_format = \"728x15_0ads_al_s\";\n\r//2007-11-12: 3721top\n\rgoogle_ad_channel = \"5434212091\";\n\rgoogle_color_border = \"F2F6FB\";\n\rgoogle_color_bg = \"F2F6FB\";\n\rgoogle_color_link = \"000000\";\n\rgoogle_color_text = \"000000\";\n\rgoogle_color_url = \"000000\";\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><script type=\"text/JavaScript\"> \n\rvar alimama_pid=\"mm_10001063_100789_739740\"; \n\rvar alimama_titlecolor=\"000000\"; \n\rvar alimama_descolor =\"000000\"; \n\rvar alimama_bgcolor=\"f2f6fb\"; \n\rvar alimama_bordercolor=\"f2f6fb\"; \n\rvar alimama_linkcolor=\"008000\"; \n\rvar alimama_bottomcolor=\"f2f6fb\"; \n\rvar alimama_anglesize=\"0\"; \n\rvar alimama_bgpic=\"0\"; \n\rvar alimama_icon=\"2\"; \n\rvar alimama_sizecode=\"15\"; \n\rvar alimama_width=950; \n\rvar alimama_height=90; \n\rvar alimama_type=2; \n\r</script> \n\r<script src=\"http://p.alimama.com/inf.js\" type=text/javascript> \n\r</script></div></td>\n\r    </tr>\n\r  </table>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_33.AddAD(objAD);

ZoneAD_33.Show();
