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_17 = new CodeZoneAD("ZoneAD_17");
ZoneAD_17.ZoneID      = 17;
ZoneAD_17.ZoneWidth   = 0;
ZoneAD_17.ZoneHeight  = 0;
ZoneAD_17.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 23;
objAD.ADType         = 4;
objAD.ADName         = "菜单（全部）";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<A href=\"#\">电子院务</A> | <A href=\"http://www.jnu.edu.cn/\" target=_blank>学校OA</A> | <A href=\"http://www.jnu.edu.cn/notice_list.html?channelID=5037\" target=_blank>校内通知</A> | <A href=\"/guestbook/\" target=_blank>群众信箱</A> | <A href=\"/InFormation/HTML/3191.html\" target=_blank>联系我们</A> |</H3>\n\r<div style=\"DISPLAY: none\" id=LoginFrom class=Login_ajax onkeypress=\"javascript:return DefaultButton(event, \'BtnLogOn\')\"></div></div>\n\r<div class=top_left><IMG align=absMiddle src=\"/skin/2010V01/logo.gif\"> 弘毅明德· 笃学致用</div>\n\r<div class=clear></div>\n\r<div class=menu><A id=two1 onmouseover=\"setTab(\'two\',1,10)\" href=\"http://www.jnuedu.cn/\">网站首页</A> <A id=two2 class=aa_298 onmouseover=\"setTab(\'two\',2,10)\" href=\"/InFormation/HTML/19.html\">学院概况 </A><A id=two3 class=aa_299 onmouseover=\"setTab(\'two\',3,10)\" href=\"/News/List_5.html\">新闻动态 </A><A id=two4 class=aa_302 onmouseover=\"setTab(\'two\',4,10)\" href=\"#\">系所单位 </A><A id=two5 class=aa_303 onmouseover=\"setTab(\'two\',5,10)\" href=\"#\">教学科研 </A><A id=two6 class=aa_304 onmouseover=\"setTab(\'two\',6,10)\" href=\"#\">专业学位 </A><A id=two7 class=aa_305 onmouseover=\"setTab(\'two\',7,10)\" href=\"/InFormation/List_1.html\">教师风采 </A><A id=two8 class=aa_306 onmouseover=\"setTab(\'two\',8,10)\" href=\"/News/List_18.html\">研究生 </A><A id=two9 class=aa_307 onmouseover=\"setTab(\'two\',9,10)\" href=\"/News/List_17.html\">本科生 </A><A id=two10 class=aa_308 onmouseover=\"setTab(\'two\',10,10)\" href=\"#\">服务资源 </A>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 1;
objAD.CountClick     = 0;
objAD.ADDIR          = "ShowGG";
ZoneAD_17.AddAD(objAD);

ZoneAD_17.Show();
