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_360 = new CodeZoneAD("ZoneAD_360");
ZoneAD_360.ZoneID      = 360;
ZoneAD_360.ZoneWidth   = 0;
ZoneAD_360.ZoneHeight  = 0;
ZoneAD_360.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 571;
objAD.ADType         = 4;
objAD.ADName         = "手绘墙顶部收藏";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<STYLE type=text/css>\n\r<!--\n\r.STYLE1 {color: #FF0000}\n\r-->\n\r</STYLE>\n\r  <table style=\"WIDTH: 760px; HEIGHT: 0px\" height=20 cellSpacing=1 cellPadding=0 width=760 border=0>\n\r    <tr>\n\r      <td align=middle width=597 height=19>\n\r      <div align=left>[<A href=\"http://co.hui100.com/member/login.php?forward=http%3A%2F%2Fco.hui100.com%2Fmember%2Findex.php\" target=_blank>企业登录</A>] [<A class=STYLE1 href=\"http://co.hui100.com/member/register.php?forward=http%3A%2F%2Fco.hui100.com%2Fmember%2Findex.php\" target=_blank><FONT color=#bb0000>注册墙绘企业</FONT></A>] [<A href=\"http://co.hui100.com/shouhuitu//contribute.php\" target=_blank><FONT color=#cc0000>墙绘投稿</FONT></A>] <IMG src=\"http://www.hui100.com/qiangtie/images/Article_elite5.gif\">[<A title=\"墙贴大全 壁贴 墙贴店铺大全\" href=\"http://www.hui100.com/qiangtie\"><U><FONT color=#cc0000>墙贴大全</FONT></U></A>] <IMG src=\"http://www.makebi.com/themes/joyo25/images/az-topnav-cart.gif\"> <A title=\"手绘导购 手绘店100强\" href=\"http://www.qiang163.com/\"><U><B><FONT color=#ff0000>抢购</FONT></B></U></A> new！</div></td>\n\r      <td align=middle width=84>\n\r      <div align=center><SPAN style=\"CURSOR: hand\" onClick=\"var strHref=window.location.href;this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.hui100.com/shouhuiqiang\');\">设为首页</A></SPAN> </div></td>\n\r      <td align=middle width=75>\n\r      <div align=center><A href=\"javascript:window.external.AddFavorite(\'http://www.hui100.com/shouhuiqiang\', \'手绘墙大全\')\">加入收藏</A></div></td>\n\r    </tr>\n\r  </table>\n\r<STYLE type=text/css>\n\r<!--\n\r.STYLE1 {color: #009900}\n\r-->\n\r</STYLE>\n\r  <table style=\"WIDTH: 760px; HEIGHT: 35px\" cellSpacing=0 cellPadding=0 width=760 align=center bgColor=#ffffff border=0>\n\r    <tr>\n\r      <td align=left background={$InstallDir}Skin/menu.gif colSpan=5>\n\r<div align=center><FONT color=#000000>\n\r      <div align=center><FONT color=#000000><A title=手绘100网首页 href=\"http://hui100.com/\" target=_blank><FONT color=#000000>首页</FONT></A> <A title=\"\" href=\"http://hui100.com/huier/\" target=_blank><FONT color=#000000><STRONG>手绘师</STRONG></FONT></A> <A title=手绘论坛 href=\"http://bbs.hui100.com/\" target=_blank><FONT color=#000000><STRONG>论坛</STRONG></FONT></A></FONT> <A title=手绘圈 href=\"http://hi.hui100.com/\" target=_blank><FONT color=#000000><STRONG>手绘圈</STRONG></FONT></A><FONT color=#000000> <A title=手绘教程 href=\"http://hui100.com/Article/Index.html\" target=_blank><FONT color=#000000><STRONG>教程</STRONG></FONT></A></FONT> <A href=\"http://hui100.com/Photo/\" target=_blank><STRONG>图库</STRONG></A> <A href=\"http://hui100.com/cghui/\" target=_blank><STRONG>动漫插画</STRONG></A> <FONT color=#000000><A href=\"http://hui100.com/pop/Index.html\" target=_blank><STRONG>POP</STRONG></A> <A title=手绘墙大全 href=\"http://hui100.com/shouhuiqiang\" target=_blank><FONT color=#ff0000>手绘墙</FONT></A></FONT> <A title=美术绘画 href=\"http://hui100.com/art\" target=_blank><FONT color=#0000><STRONG>美术</STRONG></FONT></A> <A title=手绘培训 href=\"http://bbs.hui100.com/index.php?gid=109\" target=_blank><STRONG><FONT color=#369636>培训</FONT></STRONG></A> <A title=考研快题 href=\"http://hui100.com/kaoyan/\" target=_blank><FONT color=#000000>快题</FONT></A> <FONT color=#000000><A href=\"http://hui100.com/Soft/Index.asp\" target=_blank><STRONG>下载</STRONG></A> <A title=手绘企业 href=\"http://co.hui100.com/yp/\" target=_blank><FONT color=#ff00ff><U>企业</U></FONT></A> <A title=手绘展厅投稿 href=\"http://co.hui100.com/\" target=_blank><FONT color=#3300ff><U>展厅</U></FONT></A> <A title=手绘展厅投稿 href=\"http://co.hui100.com/info/\" target=_blank><FONT color=#000000>供求</FONT></A> <A title=数位板网 href=\"http://hui100.com/shuweiban/\" target=_blank><STRONG><FONT color=#ff0000><U>数位板</U></FONT></STRONG></A> </FONT><FONT color=#000000> <A title=手绘图书 href=\"http://hui100.com/huibook/\" target=_blank><FONT color=#ff0000><U><STRONG>图书</STRONG></U></FONT></A> <A title=马克笔网 href=\"http://www.makebi.com/\" target=_blank><U><FONT color=#ff0000><STRONG>马克笔</STRONG></FONT></U></A></FONT> </div>\n\r      </FONT></div></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_360.AddAD(objAD);

ZoneAD_360.Show();
