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_19 = new CodeZoneAD("ZoneAD_19");
ZoneAD_19.ZoneID      = 19;
ZoneAD_19.ZoneWidth   = 0;
ZoneAD_19.ZoneHeight  = 0;
ZoneAD_19.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 20;
objAD.ADType         = 4;
objAD.ADName         = "首页右上角之高考导航之代码";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<style type=\"text/css\">\n\r<!--\n\r.STYLE4 {\n\r	color: #FF0000;\n\r	font-weight: bold;\n\r}\n\r.STYLE7 {\n\r	color: #0000FF;\n\r	font-weight: bold;\n\r}\n\r.STYLE8 {color: #FF0000}\n\r-->\n\r</style>\n\r<table width=\"100%\" cellspacing=\"0\">\n\r  <tr valign=\"bottom\">\n\r    <td height=\"30\" bgcolor=\"#FFFFFF\"><span class=\"STYLE4\">高中资源</span> <a href=\"../Soft/ShowClass.asp?ClassID=210\" target=\"_blank\">高考原题</a> <a href=\"../Soft/ShowClass.asp?ClassID=226\" target=\"_blank\">时政专题</a> <span class=\"STYLE8\">新课程版－ </span>  <a href=\"../Soft/ShowClass.asp?ClassID=234\" target=\"_blank\">新课程版首页</a> <a href=\"../Soft/ShowClass.asp?ClassID=236\" target=\"_blank\">试题库</a> <a href=\"../Soft/ShowClass.asp?ClassID=248\" target=\"_blank\">高三题库</a> <a href=\"../Soft/ShowClass.asp?ClassID=239\" target=\"_blank\">经济生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=240\" target=\"_blank\">政治生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=241\">文化生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=242\" target=\"_blank\">哲学生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=243\" target=\"_blank\">选修课程</a> <a href=\"../Soft/ShowClass.asp?ClassID=237\" target=\"_blank\">教案库</a> <a href=\"../Soft/ShowClass.asp?ClassID=249\">高三复习</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td bgcolor=\"#FFFFFF\">    <a href=\"../Soft/ShowClass.asp?ClassID=244\" target=\"_blank\">经济生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=246\" target=\"_blank\">政治生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=251\" target=\"_blank\">文化生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=253\" target=\"_blank\">哲学生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=255\" target=\"_blank\">选修课程</a> <a href=\"../Soft/ShowClass.asp?ClassID=238\" target=\"_blank\">课件库</a> <a href=\"../Soft/ShowClass.asp?ClassID=250\">高三复习</a> <a href=\"../Soft/ShowClass.asp?ClassID=245\" target=\"_blank\">经济生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=247\">政治生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=252\" target=\"_blank\">文化生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=254\" target=\"_blank\">哲学生活</a> <a href=\"../Soft/ShowClass.asp?ClassID=256\" target=\"_blank\">选修课程</a> <strong><A href=\"../Soft/ShowClass.asp?ClassID=228\" class=\"STYLE8\">解题方法</A></strong> <a href=\"../Soft/ShowClass.asp?ClassID=256\" target=\"_blank\"><strong><A href=\"../Soft/ShowSpecial.asp?SpecialID=28\" class=\"STYLE8\">说课文稿</A></strong></a></td>\n\r  </tr>\n\r  <tr>\n\r    <td bgcolor=\"#FFFFFF\"><a href=\"../Soft/ShowClass.asp?ClassID=232\" target=\"_blank\"><span class=\"STYLE8\">旧人教版－ </span>旧人教版首页</a> <a href=\"../Soft/ShowClass.asp?ClassID=207\" target=\"_blank\">试题库</a> <a href=\"../Soft/ShowClass.asp?ClassID=214\" target=\"_blank\">高一试题</a> <a href=\"../Soft/ShowClass.asp?ClassID=213\" target=\"_blank\">高二试题</a> <a href=\"../Soft/ShowClass.asp?ClassID=212\" target=\"_blank\">高三试题</a> <a href=\"../Soft/ShowClass.asp?ClassID=208\" target=\"_blank\">教案库</a> <a href=\"../Soft/ShowClass.asp?ClassID=220\" target=\"_blank\">高一教案</a> <a href=\"../Soft/ShowClass.asp?ClassID=219\">高二教案</a> <a href=\"../Soft/ShowClass.asp?ClassID=218\" target=\"_blank\">高三教案</a> <a href=\"../Soft/ShowClass.asp?ClassID=206\" target=\"_blank\">课件库</a> <a href=\"../Soft/ShowClass.asp?ClassID=84\">高一课件</a> <a href=\"../Soft/ShowClass.asp?ClassID=54\" target=\"_blank\">高二课件</a> <a href=\"../Soft/ShowClass.asp?ClassID=35\" target=\"_blank\">高三课件</a> </td>\n\r  </tr>\n\r  <tr>\n\r    <td bgcolor=\"#FFFFFF\"><span class=\"STYLE7\">初中资源</span> <a href=\"../Soft/ShowClass.asp?ClassID=211\">中考原题</a> <span class=\"STYLE8\">按版本分类</span> <a href=\"../Soft/ShowClass.asp?ClassID=307\" target=\"_blank\">人教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=308\" target=\"_blank\">北师版</a> <a href=\"../Soft/ShowClass.asp?ClassID=325\" target=\"_blank\">湘教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=338\" target=\"_blank\">粤教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=351\" target=\"_blank\">陕教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=352\" target=\"_blank\">鲁教版</a>  <a href=\"../Soft/ShowClass.asp?ClassID=378\" target=\"_blank\">沪教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=379\" target=\"_blank\">苏教版</a> <a href=\"../Soft/ShowClass.asp?ClassID=380\" target=\"_blank\">教科版</a> <a href=\"../Soft/ShowClass.asp?ClassID=381\" target=\"_blank\">人民版</a>　　　 <A href=\"../User/User_Soft.asp?ChannelID=2&Action=Add\" target=\"_blank\" class=\"STYLE8\"><strong>上传资源</strong></A>　<A href=\"User/User_Exchange.asp?Action=Exchange\" target=\"_blank\" class=\"STYLE8\"><strong>积分换点</strong></A></td>\n\r  </tr>\n\r  <tr>\n\r    <td bgcolor=\"#FFFFFF\"><span class=\"STYLE8\">按年级分类</span> <a href=\"../Soft/ShowSpecial.asp?SpecialID=20\" target=\"_blank\">初一试题</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=19\" target=\"_blank\">初二试题</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=18\" target=\"_blank\">初三试题</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=23\" target=\"_blank\">初一教案</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=22\" target=\"_blank\">初二教案</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=21\">初三教案</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=26\" target=\"_blank\">初一课件</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=25\" target=\"_blank\">初二课件</a> <a href=\"../Soft/ShowSpecial.asp?SpecialID=24\" target=\"_blank\">初三课件</a>　　 <A href=\"../Shop/ShowClass.asp?ClassID=196\" target=\"_blank\" class=\"STYLE8\"><strong>订 VIP卡</strong></A> <A href=\"../User/User_Exchange.asp?Action=GetCard\" target=\"_blank\" class=\"STYLE8\"><strong>获取卡号</strong></A> <A href=\"User/User_Exchange.asp?Action=Recharge\" target=\"_blank\" class=\"STYLE8\"><strong>盟卡充值</strong></A></td>\n\r  </tr>\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_19.AddAD(objAD);

ZoneAD_19.Show();
