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_426 = new CodeZoneAD("ZoneAD_426");
ZoneAD_426.ZoneID      = 426;
ZoneAD_426.ZoneWidth   = 0;
ZoneAD_426.ZoneHeight  = 0;
ZoneAD_426.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 745;
objAD.ADType         = 4;
objAD.ADName         = "2009导航";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<table height=60 cellSpacing=0 width=580 background=/images/ziding/2009indexbeijing.png border=0>\n\r    <tr>\n\r      <td width=59>\n\r      <P align=center><A href=\"/Article/\" target=_blank>手绘教程</A></P></td>\n\r      <td width=58><A href=\"/Photo/\" target=_blank>手绘图片</A></td>\n\r      <td width=57><A href=\"/shouhuiqiang\" target=_blank>手绘墙</A></td>\n\r      <td width=62><A href=\"/art/\" target=_blank>美术教程</A></td>\n\r      <td width=60><A href=\"/cghui/\" target=_blank>动漫插画</A></td>\n\r      <td width=48><A href=\"/huier/\" target=_blank>手绘师</A></td>\n\r      <td width=70><A href=\"http://co.hui100.com/yp/job.php\" target=_blank>招聘</A> <A href=\"http://co.hui100.com/yp/job.php\" target=_blank>求职</A><A href=\"/art/artist/\" target=_blank></A></td>\n\r      <td width=60><A href=\"http://shop33086538.taobao.com/search-cat-33086538-46083656-yta75srTxrUvvcyzzNfK1LQ=.htm?checkedRange=true\" target=_blank><FONT color=#0000ff><U>手绘培训</U></FONT></A></td>\n\r      <td width=40><A href=\"/huibook/\" target=_blank><FONT color=#ff0000>图书</FONT></A></td>\n\r      <td width=46><A href=\"http://shop33086538.taobao.com/\" target=_blank><FONT color=#ff0000>马克笔</FONT></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td>\n\r      <P align=center><A href=\"/Article/video/\" target=_blank>手绘视频</A></P></td>\n\r      <td><A href=\"http://co.hui100.com/\" target=_blank>手绘展厅</A></td>\n\r      <td><A href=\"http://hi.hui100.com/space-album-view-all.html\" target=_blank>手绘相册</A></td>\n\r      <td><A href=\"/Soft/\"><FONT color=#dd0000>资源下载</FONT></A></td>\n\r      <td>\n\r      <P align=left><A href=\"/Soft/\"></A><A href=\"/pop/\" target=_blank>手绘POP</A></P></td>\n\r      <td><A href=\"/shuweiban/\" target=_blank>数位板</A><A href=\"/cghui/chshi\"></A></td>\n\r      <td><A href=\"http://co.hui100.com/yp/\" target=_blank>企业</A> <A href=\"http://co.hui100.com/info/\" target=_blank>供求</A></td>\n\r      <td><A href=/kaoyan/ target=_blank><FONT color=#ff0000>考研快题</FONT></A></td>\n\r      <td><A title=手绘板网 href=\"http://www.shouhuiban.com/\" target=_blank><FONT color=#ff0000>手绘板</FONT></A><A href=\"/huibook/\" target=_blank></A> </td>\n\r      <td><A title=手绘板网 href=\"http://www.shouhuiban.com/\" target=_blank></A><A href=\"http://shop33086538.taobao.com/\" target=_blank><FONT color=#ff0000>淘宝店</FONT></A><A title=数位板专卖店大全 href=\"/shuweiban/Cheap\" target=_blank><FONT color=#ff0000></FONT></A></td>\n\r    </tr>\n\r    <tr>\n\r      <td colSpan=2>\n\r      <div align=center><A href=\"http://bbs.hui100.com/\" target=_blank><STRONG><FONT color=#ff0000>手绘论坛</FONT></STRONG></A></div></td>\n\r      <td colSpan=2>\n\r      <div align=center><A href=\"http://hi.hui100.com/\" target=_blank><STRONG><FONT color=#ff0000>手绘圈</FONT></STRONG></A></div></td>\n\r      <td colSpan=2>\n\r      <div align=center><A href=\"http://co.hui100.com/\" target=_blank><STRONG><FONT color=#0000ff>投稿展厅</FONT></STRONG></A></div></td>\n\r      <td colSpan=2>\n\r      <div align=center><A href=\"/so.html\" target=_blank><STRONG><FONT color=#007700>手绘搜索！</FONT></STRONG></A></div></td>\n\r      <td colSpan=2><A href=\"http://co.hui100.com/shouhuitu/contribute.php\" target=_blank><FONT color=#cc33cc><STRONG>>手绘投稿!</STRONG></FONT></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          = "shouru";
ZoneAD_426.AddAD(objAD);

ZoneAD_426.Show();

