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_1 = new CodeZoneAD("ZoneAD_1");
ZoneAD_1.ZoneID      = 1;
ZoneAD_1.ZoneWidth   = 0;
ZoneAD_1.ZoneHeight  = 0;
ZoneAD_1.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 1;
objAD.ADType         = 4;
objAD.ADName         = "首页推广专区";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<div id=\'f_6\'><div id=\'f_6_l\'><ul><li>\n\r		<a style=\"COLOR: #800000; FONT-SIZE: 13pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"平台出租试7天\" target=\"_blank\" href=\"http://www.hg26.com\">\n\r		平台出租试7天</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #800000; FONT-SIZE: 13pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"开户出租试7天\" target=\"_blank\" href=\"http://www.hg26.com\">\n\r		开户出租试7天</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #800000; FONT-SIZE: 13pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"太阳城开户★代理\" target=\"_blank\" href=\"http://www.hg26.com\">\n\r		太阳城开户代理</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #800000; FONT-SIZE: 13pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"现金开户与出租\" target=\"_blank\" href=\"http://www.hg26.com\">\n\r		现金开户与出租</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #ff6600; FONT-SIZE: 10pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"皇冠投注导航\" target=\"_blank\" href=\"http://www.88916.com\">\n\r		最齐全的皇冠导航</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #ff6600; FONT-SIZE: 10pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"皇冠快讯\" target=\"_blank\" href=\"http://www.88916.com\">\n\r		皇冠快讯</a></li>\n\r	<li>\n\r		<a style=\"COLOR: #ff6600; FONT-SIZE: 10pt; FONT-WEIGHT: 700; text-decoration:none\" title=\"空位置\" target=\"_blank\" href=\"http://www.96w.org\">\n\r		空位置</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"新　浪\" target=\"_blank\" href=\"http://www.sina.com.cn/\">\n\r		新　浪</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"腾　讯\" target=\"_blank\" href=\"http://www.qq.com/\">\n\r		腾　讯</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"搜　狐\" target=\"_blank\" href=\"http://www.sohu.com\">\n\r		搜　狐</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"谷　歌\" target=\"_blank\" href=\"http://www.google.com.hk/\">\n\r		谷　歌</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"必应Bing\" target=\"_blank\" href=\"http://cn.bing.com/\">\n\r		必应Bing</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"有  道\" target=\"_blank\" href=\"http://www.youdao.com/\">\n\r		有  道</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"网　易\" target=\"_blank\" href=\"http://www.163.com/\">\n\r		网　易</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"中国移动\" target=\"_blank\" href=\"http://10086.cn/\">\n\r		中国移动</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"淘 宝 网\" target=\"_blank\" href=\"http://www.taobao.com/\">\n\r		淘 宝 网</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"央 视 网\" target=\"_blank\" href=\"http://www.cntv.cn/index.shtml\">\n\r		央 视 网</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"网易163邮箱\" target=\"_blank\" href=\"http://mail.163.com/\">\n\r		网易163邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"Gmail邮箱\" target=\"_blank\" href=\"http://gmail.google.com/\">\n\r		Gmail邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"搜狐邮箱\" target=\"_blank\" href=\"http://mail.sohu.com/\">\n\r		搜狐邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"TOM邮箱\" target=\"_blank\" href=\"http://mail.tom.com/\">\n\r		TOM邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"搜狗邮箱\" target=\"_blank\" href=\"http://mail.sogou.com/\">\n\r		搜狗邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"网易126邮箱\" target=\"_blank\" href=\"http://www.126.com/\">\n\r		网易126邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"139手机邮箱\" target=\"_blank\" href=\"http://mail.10086.cn/\">\n\r		139手机邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"新浪邮箱\" target=\"_blank\" href=\"http://mail.sina.com.cn/\">\n\r		新浪邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"Hotmail邮箱\" target=\"_blank\" href=\"http://www.hotmail.com/\">\n\r		Hotmail邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"189邮箱\" target=\"_blank\" href=\"http://www.189.cn/\">\n\r		189邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"QQ邮箱\" target=\"_blank\" href=\"http://www.qxwtb.com\">\n\r		QQ邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"雅虎邮箱\" target=\"_blank\" href=\"http://mail.qq.com/\">\n\r		雅虎邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"亿邮\" target=\"_blank\" href=\"http://www.eyou.com/\">\n\r		亿邮</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"21CN邮箱\" target=\"_blank\" href=\"http://mail.21cn.com/\">\n\r		21CN邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"188财富邮\" target=\"_blank\" href=\"http://www.188.com/\">\n\r		188财富邮</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"Yeah.net邮箱\" target=\"_blank\" href=\"http://www.yeah.net/\">\n\r		Yeah.net邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"foxmail邮箱\" target=\"_blank\" href=\"foxmail.com/\">\n\r		foxmail邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"联通手机邮箱\" target=\"_blank\" href=\"http://mail.wo.com.cn/\">\n\r		联通手机邮箱</a></li>\n\r	<li>\n\r		<a style=\"FONT-SIZE: 10pt; text-decoration:none\" title=\"百　度\" target=\"_blank\" href=\"http://www.baidu.com/\">\n\r		百　度</a></li>\n\r			</ul></div></div>";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_1.AddAD(objAD);

ZoneAD_1.Show();

