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_71 = new CodeZoneAD("ZoneAD_71");
ZoneAD_71.ZoneID      = 71;
ZoneAD_71.ZoneWidth   = 0;
ZoneAD_71.ZoneHeight  = 0;
ZoneAD_71.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 47;
objAD.ADType         = 4;
objAD.ADName         = "全站顶部文字推荐栏目";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table cellSpacing=0 cellPadding=0 width=950 border=0>\n\r    <tr>\n\r      <td width=190><A href=\"http://www.027art.com/meishuliankao/\" target=_blank><STRONG><FONT color=#CCCCCC><FONT color=\"#CCCCCC\">★了解全国美术联考</FONT></FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/hezuo.html\" target=_blank><STRONG><FONT color=#d45fff><img src=\"http://www.027art.com/Editor/Images/emot2/emot6.gif\">发布广告：13163267611</FONT></STRONG></A> </td>\n\r      <td width=190><A href=\"http://www.027art.com/wuhanhuashi.html\" target=_blank><STRONG><FONT color=#000000>☆找武汉美术培训必读</FONT></STRONG></A> </td>\n\r      <td width=190><A href=\"http://www.027art.com/chaxun/\" target=_blank><STRONG><FONT color=#FF0000>艺考QQ群：108336512(新)</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/HTML/30973.html\" target=_blank><STRONG><FONT color=#CCCCCC><U>★武汉美术网开发日志</U></FONT></STRONG></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td width=190><img src=\"http://www.027art.com/linshi/hg.gif\"> <A href=\"http://www.027art.com/wuhanhuashi.html\" target=_blank><STRONG><FONT color=#0000FF>找武汉画室必看</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/HTML/8058.html\" target=_blank><STRONG><FONT color=#CCCCCC>★湖北省美术联考评卷标准</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/HTML/28538.html\" target=_blank><STRONG><FONT color=#FF0000><U>2010年美术校考成绩查询</U></FONT></STRONG></A> <img src=\"http://www.027art.com/linshi/hot.gif\" width=\"23\" height=\"9\"></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/HTML/8338.html\" target=_blank><STRONG><FONT color=#CCCCCC>☆湖北美术联考历年考题汇总</FONT></STRONG></A> </td>\n\r      <td width=190><A href=\"http://www.027art.com/about/read.html\" target=_blank><STRONG><FONT color=#555fff>☆使用武汉美术网前必读</FONT></STRONG></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td width=190><A href=\"http://www.027art.com/huashi.html\" target=_blank><STRONG><FONT color=#CCCCCC>☆2010武汉优秀画室大全</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.epindao.com/\" target=_blank><STRONG><FONT color=#669900>画室做网站找武汉E频道</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/List/List_13.html\" target=_blank><STRONG><FONT color=#CCCCCC>★历年文化最低录取分数线</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/Article/HTML/33182.html\" target=_blank><STRONG><FONT color=#FF0000><img src=\"http://www.027art.com/Editor/Images/emot2/emot6.gif\">湖北美术考生查询成绩专版</FONT></STRONG></A></td>\n\r      <td width=190><A href=\"http://www.027art.com/youxiushijuan/\" target=_blank><STRONG><FONT color=#CCCCCC>★美术高考历年高分试卷库</FONT></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.ADDIR          = "ARen";
ZoneAD_71.AddAD(objAD);

ZoneAD_71.Show();
