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_14 = new CodeZoneAD("ZoneAD_14");
ZoneAD_14.ZoneID      = 14;
ZoneAD_14.ZoneWidth   = 0;
ZoneAD_14.ZoneHeight  = 0;
ZoneAD_14.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 13;
objAD.ADType         = 4;
objAD.ADName         = "院系设置";
objAD.ImgUrl         = "";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<html>\n\r<head>\n\r<title>厦门南洋学院-学院概况</title>\n\r<style type=\"text/css\">\n\r<!--\n\rbody {\n\r	margin-left: 0px;\n\r	margin-top: 0px;\n\r	margin-right: 0px;\n\r	margin-bottom: 0px;\n\r}\n\r-->\n\r</style>\n\r<link href=\"/css2.css\" rel=\"stylesheet\" type=\"text/css\">\n\r<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\n\r</head>\n\r<body> \n\r<div align=\"center\">\n\r  <table width=\"80%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\r    <tr>\n\r      <td height=\"62\"> </td>\n\r    </tr>\n\r    <tr>\n\r      <td height=\"46\"><div align=\"center\">\n\r        <table width=\"100%\"  border=\"0\" cellpadding=\"4\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal dir=rtl \n\rstyle=\"MARGIN: 0cm 0cm 0pt; DIRECTION: rtl; unicode-bidi: embed; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN lang=AR-SA \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt\"><a href=\"http://info.ny2000.com\" target=\"_blank\">信息工程学院</a></SPAN></B><SPAN \n\rlang=EN-US dir=ltr \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal \n\rstyle=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 0pt\"><a href=\"http://jjgl.ny2000.com\" target=\"_blank\">经济管理学院</a></SPAN></B><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal \n\rstyle=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 0pt\"><a href=\"http://wgyxy.ny2000.com\" target=\"_blank\">外国语学院</a></SPAN></B><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal \n\rstyle=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 0pt\"><a href=\"http://www.ny2000.net.cn\" target=\"_blank\">人文学院</a></SPAN></B><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal \n\rstyle=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 0pt\"><a href=\"http://jdxy.ny2000.com\" target=\"_blank\">机电工程学院</a></SPAN></B><a href=\"/about/about_1379.shtml\"><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></a><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">\n\r              <P class=MsoNormal \n\rstyle=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan\" \n\ralign=center><B><SPAN \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 0pt\"><a href=\"http://art.ny2000.com\" target=\"_blank\">艺术学院</a></SPAN></B><SPAN \n\rlang=EN-US \n\rstyle=\"FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt\"><o:p></o:p></SPAN></P>\n\r            </div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\"><a href=\"http://music.ny2000.com\" target=\"_blank\"><strong>音乐学院</strong></a></div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\"><strong><a href=\"http://www.xnanyang.com/about/about_1651.shtml\" target=\"_blank\">大学预修部</a></strong></div>              \n\r              <div align=\"center\"></div></td>\n\r          </tr>\n\r          <tr>\n\r            <td bgcolor=\"#FFFFFF\"><div align=\"center\">留学部</div></td>\n\r          </tr>\n\r        </table>\n\r      </div></td>\n\r    </tr>\n\r  </table>\n\r</div>\n\r</body>\n\r</html>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.InstallDir     = "http://www.xnanyang.com/";
objAD.ADDIR          = "AD";
ZoneAD_14.AddAD(objAD);

ZoneAD_14.Show();
