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_12 = new CodeZoneAD("ZoneAD_12");
ZoneAD_12.ZoneID      = 12;
ZoneAD_12.ZoneWidth   = 0;
ZoneAD_12.ZoneHeight  = 0;
ZoneAD_12.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 14;
objAD.ADType         = 4;
objAD.ADName         = "750频道首页通用导航";
objAD.ImgUrl         = "";
objAD.InstallDir     = "http://www.sjzsbyy.com/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<STYLE>\n\r#ChannelPublicTop {\n\r	CLEAR: both; FONT-SIZE: 12px; BACKGROUND: url(/skin/mopqq/page/topbg06.gif) repeat-x 50% bottom; WIDTH: 750px; COLOR: #8c8e8c; HEIGHT: 25px\n\r}\n\r#ChannelPublicTop P {\n\r	BACKGROUND: url(/skin/mopqq/page/topdot06.gif) no-repeat 0px 8px; FLOAT: right; MARGIN: 0px; WIDTH: 82px; LINE-HEIGHT: 25px; HEIGHT: 25px; TEXT-ALIGN: center\n\r}\n\r#ChannelPublicTop P A {\n\r	COLOR: #8c8e8c; TEXT-DECORATION: none\n\r}\n\r#ChannelPublicTop P A:hover {\n\r	COLOR: red\n\r}\n\r#ChannelPublicTop886 {\n\r	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px\n\r}\n\r#ChannelPublicTop886 {\n\r	CLEAR: both; BORDER-RIGHT: #d6d7d6 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #d6d7d6 1px solid; PADDING-LEFT: 0px; FONT-SIZE: 12px; BACKGROUND: #fff; PADDING-BOTTOM: 0px; MARGIN: 0px; VERTICAL-ALIGN: middle; BORDER-LEFT: #d6d7d6 1px solid; WIDTH: 748px; LINE-HEIGHT: 12px; PADDING-TOP: 0px; BORDER-BOTTOM: #d6d7d6 1px solid; HEIGHT: 52px! important; TEXT-ALIGN: center\n\r}\n\r#ChannelPublicLeft {\n\r	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; OVERFLOW: hidden; WIDTH: 136px; PADDING-TOP: 0px; HEIGHT: 50px\n\r}\n\r#ChannelPublicRight {\n\r	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; BACKGROUND: #fff; FLOAT: right; PADDING-BOTTOM: 6px; MARGIN: 0px auto 2px; VERTICAL-ALIGN: middle; WIDTH: 770px; LINE-HEIGHT: 12px; PADDING-TOP: 0px; HEIGHT: 44px; TEXT-ALIGN: center\n\r}\n\r#ChannelPublicRight UL {\n\r	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 8px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none\n\r}\n\r#ChannelPublicRight LI A {\n\r	FONT-SIZE: 12px; COLOR: black; LINE-HEIGHT: 12px; TEXT-DECORATION: none\n\r}\n\r#ChannelPublicRight LI A:hover {\n\r	COLOR: red; LINE-HEIGHT: 12px\n\r}\n\r#ChannelPublicRight LI A.reds:link {\n\r	COLOR: red; LINE-HEIGHT: 12px\n\r}\n\rA.reds:visited {\n\r	COLOR: red; LINE-HEIGHT: 12px\n\r}\n\r#ChannelPublicRight LI {\n\r	BORDER-RIGHT: black 1px solid; FLOAT: left; MARGIN: 8px auto 2px; WIDTH: 41px! important; PADDING-TOP: 1px\n\r}\n\r#ChannelPublicRight LI.gtEnd {\n\r	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 12px; FLOAT: left; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 40px; BORDER-RIGHT-WIDTH: 0px\n\r}\n\r</STYLE>\n\r\n\r<table style=\"MARGIN: 0px auto\" cellSpacing=0 cellPadding=0 width=750 align=center border=0>\n\r    <tr>\n\r      <td width=\"758\"><div id=ChannelPublicTop886>\n\r          <div style=\"MARGIN-TOP: 6px; FLOAT: right; WIDTH: 740px; LINE-HEIGHT: 20px; HEIGHT: 30px; TEXT-ALIGN: left\"><font  color=\"#009900\">网站功能导航:</font><A title=\"\" href=\"/\">网站首页</A> | <A title=\"\" href=\"/news/\" target=_blank>新闻中心</A> | <A title=\"\" href=\"/jianjie/\" target=_blank>医院介绍</A> | <A title=\"\" href=\"/jianjie/zhuanjia/\" target=_blank>专家队伍</A> | <A title=\"\" href=\"/liaofa/\" target=_blank><FONT color=#ff0000>特色疗法</FONT></A> | <A title=\"\" href=\"/case/\" target=_blank>临床案例</A> | <A title=\"\" href=\"/menzhen/\" target=_blank>专家门诊</A> | <A title=\"\" href=\"/menzhen/book/\" target=_blank>免费赠书</A> | <A title=\"\" href=\"/map/\" target=_blank>联系我们</A> | <A title=\"\" href=\"/jianjie/200704/1009.html\" target=_blank>就医指南</A> <BR>\n\r        <font  color=\"#009900\">肾病治疗频道:</font> <A title=\"\" href=\"/nephritis/\" target=_blank>肾炎</A> | <A title=\"\" href=\"/niaoduzheng/\" target=_blank><FONT color=#ff0000>尿毒症</FONT></A> | <A title=\"\" href=\"/shenzong/\" target=_blank>肾病综合症</A> | <A title=\"\" href=\"/shuaijie/\" target=_blank>肾衰竭</A><A title=\"\" href=\"http://tech.mop.com/3g/index.shtml\" target=_blank></A> | <A title=\"\" href=\"/nangzhong/\" target=_blank>肾脏囊性病</A><A title=\"\" href=\"http://tech.mop.com/pl/index.shtml\" target=_blank></A> | <A title=\"\" href=\"/tnbsb/\" target=_blank>糖尿病肾病</A> | <A title=\"\" href=\"/zidian/\" target=_blank>紫癜肾病</A> | <A title=\"\" href=\"/wean/\" target=_blank><FONT color=#ff0000>小儿肾病</FONT></A> | <A title=\"\" href=\"/qtzh/\" target=_blank>其它综合肾病</A> | <a href=\"/xml/rss.xml\" target=\"_blank\">RSS</a></div>\n\r      </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          = "adnew";
ZoneAD_12.AddAD(objAD);

ZoneAD_12.Show();
