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         = "180内容页";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table width=\"180\" border=\"0\">\n\r  <tr>\n\r    <td colspan=\"2\"><img src=\"http://www.lwwzx.com/dx/yw.gif\" width=\"173\" height=\"42\" /></td>\n\r  </tr>\n\r  <tr>\n\r    <td colspan=\"2\"><img src=\"http://www.lwwzx.com/dx/dz.gif\" width=\"152\" height=\"56\" /></td>\n\r  </tr>\n\r  <tr>\n\r    <td width=\"16\"><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /><a href=\"http://www.lwwzx.com/dx/\"></a></td>\n\r    <td width=\"154\"><a href=\"http://www.lwwzx.com/dx/\" target=\"_blank\">全部由硕士、博士撰写</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /></td>\n\r    <td><a href=\"http://www.lwwzx.com/dx/\" target=\"_blank\">保证原创，版权归您</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /></td>\n\r    <td><a href=\"http://www.lwwzx.com/dx/\" target=\"_blank\">顺利通过，轻松毕业</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td colspan=\"2\"><img src=\"http://www.lwwzx.com/dx/fb.gif\" width=\"153\" height=\"56\" /></td>\n\r  </tr>\n\r  <tr>\n\r    <td><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /></td>\n\r    <td><a href=\"http://www.lwwzx.com/dx/qk.htm\" target=\"_blank\">发表在CN省级以上刊物</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /></td>\n\r    <td><a href=\"http://www.lwwzx.com/dx/qk.htm\" target=\"_blank\">全部由硕士、博士撰写</a></td>\n\r  </tr>\n\r  <tr>\n\r    <td><img src=\"http://www.lwwzx.com/dx/icon.gif\" width=\"15\" height=\"21\" /></td>\n\r    <td><a href=\"http://www.lwwzx.com/dx/qk.htm\" target=\"_blank\">保证出刊，否则退款</a></td>\n\r  </tr>\n\r</table>\n\r<br>\n\r<font color=red><b>推荐天天教案网</b></font><br>\n\r<a href=\"http://www.ttjiaoan.com/TeachesTheDocument/LanguageDocument/\" target=\"_parent\">小学语文教案</a> </FONT></A></FONT><span class=\"STYLE4\"><a href=\"http://www.ttjiaoan.com/TeachesTheDocument/MathematicsDocument/\" target=\"_parent\">小学数学教案</a> <br>\n\r<a href=\"http://ttjiaoan.com/TeachesTheDocument/EnglishDocument/\" target=\"_parent\">小学英语教案</a> <a href=\"http://ttjiaoan.com/TeachesTheDocument/PoliticsDocument/\" target=\"_parent\">小学政治教案</a> <br>\n\r<a href=\"http://ttjiaoan.com/TeachesTheDocument/PhysicsDocument/\" target=\"_parent\">小学物理教案</a> <a href=\"http://www.ttjiaoan.com/TeachesTheDocument/ChemistryDocument/\" target=\"_parent\">小学化学教案</a> <a href=\"http://www.ttjiaoan.com/TeachesTheDocument/HistoryDocument/\" target=\"_parent\"><br>\n\r小学历史教案</a> <a href=\"http://www.ttjiaoan.com/TeachesTheDocument/GeographyDocument/\" target=\"_parent\">小学地理教案</a> <br>\n\r<a href=\"http://www.ttjiaoan.com/TeachesTheDocument/BiologyDocument/\" target=\"_parent\">小学生物教案</a> <a href=\"http://www.ttjiaoan.com/TeachesTheDocument/MusicDocument/\" target=\"_parent\">小学音乐教案</a> <a href=\"http://www.ttjiaoan.com/TeachesTheDocument/SportsDocument/\" target=\"_parent\"><br>\n\r小学体育教案</a> <a href=\"http://ttjiaoan.com/TeachesTheDocument/FineArtsDocument/\" target=\"_parent\">小学美术教案</a> <a href=\"http://ttjiaoan.com/TeachesTheDocument/InformationDocument/\" target=\"_parent\"><br>\n\r小学信息教案</a> <a href=\"http://ttjiaoan.com/TeachesTheDocument/BanHuiDocumen/\" target=\"_parent\">小学班会教案</a>\n\r<style type=\"text/css\">\n\r<!--\n\r.STYLE1 {\n\r	color: #FF0000;\n\r	font-weight: bold;\n\r}\n\r-->\n\r</style>\n\r<div align=\"left\"><span class=\"STYLE1\">免费论文推荐</span><A title=\"Economical Paper\" href=\"http://www.mflww.com/freepaper/Economicalpaper/index.htm\"><br>\n\r  经济论文</A> |<A title=\"International Trade\" href=\"http://www.mflww.com/freepaper/Economicalpaper/internationaltrade/index.htm\"> </A><A title=\"Legal Paper\" href=\"http://www.mflww.com/freepaper/Legalpaper/index.htm\">法律论文</A> |<A title=\"Technical Paper\" href=\"http://www.mflww.com/freepaper/Technicalpaper/index.htm\"> 理工论文</A> |<br> \n\r  <A title=\"Projectclass Paper\" href=\"http://www.mflww.com/freepaper/Technicalpaper/projectclasspaper/index.htm\">工程论文</A> | <A title=\"Management Paper\" href=\"http://www.mflww.com/freepaper/Managementpaper/index.htm\">管理论文</A> |<A title=\"Education Paper\" href=\"http://www.mflww.com/freepaper/Educationpaper/index.htm\"> 教育论文</A> <A title=\"Moraleducation Paper\" href=\"http://www.mflww.com/freepaper/Educationpaper/Moraleducation/index.htm\">|<br>\n\r  </A><A title=\"Artistic Paper\" href=\"http://www.mflww.com/freepaper/Artisticpaper/index.htm\">艺术论文</A> | <A title=\"Medicine Paper\" href=\"http://www.mflww.com/freepaper/Medicinepaper/index.htm\">医学论文</A> | <A title=\"History Paper\" href=\"http://www.mflww.com/freepaper/historypaper/index.htm\">文史论文</A> | <br>\n\r  <A title=\"English Paper\" href=\"http://www.mflww.com/freepaper/English/index.htm\">英语论文</A> | <A href=\"http://www.mflww.com/freepaper/Paperinstruction/Opensthetopic/index.htm\" target=\"_parent\">开题报告</A> | <A href=\"http://www.mflww.com/freepaper/Paperinstruction/thepaperform/index.htm\">论文格式</A> | <br>\n\r  <A href=\"http://www.mflww.com/freepaper/Paperinstruction/thepapercomposes/index.htm\">论文撰写</A> | <A href=\"http://www.mflww.com/freepaper/Paperinstruction/oraldefense/index.htm\">论文答辩</A></div>\n\r<div align=\"left\"><span class=\"STYLE1\">幼儿教育 学前教育 儿童教育</span> <br>\n\r  <A href=\"http://3ku.cn/InfantEducation/TheStory/\" target=\"_blank\">\n\r  故事大观</A> <A href=\"http://3ku.cn/InfantEducation/OptimumMethods/\" target=\"_blank\">优生优育</A> <A href=\"http://3ku.cn/InfantEducation/EarlyEducation/\" target=\"_blank\">早期教育</A> <A href=\"http://3ku.cn/InfantEducation/HomeEducation/\" target=\"_blank\"><br>\n\r  家庭教育</A> <A href=\"http://3ku.cn/InfantEducation/GardenManages/\" target=\"_blank\">园所管理</A> <A href=\"http://3ku.cn/InfantEducation/CareCenter/\" target=\"_blank\">保育中心</A> <br>\n\r    <A href=\"http://3ku.cn/InfantEducation/Characteristic/\" target=\"_blank\">特色课程</A> <A href=\"http://3ku.cn/InfantEducation/PlanSummary/\" target=\"_blank\">计划总结</A> <A href=\"http://3ku.cn/InfantEducation/TeachingResearch/\" target=\"_blank\">教学研究</A> <A href=\"http://3ku.cn/InfantEducation/Commonly/\" target=\"_blank\"><br>\n\r    常用资料</A> <A href=\"http://3ku.cn/InfantEducation/SpecialStudy/\" target=\"_blank\">专题研究</A></div>";
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();
