﻿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_7 = new CodeZoneAD("ZoneAD_7");
ZoneAD_7.ZoneID      = 7;
ZoneAD_7.ZoneWidth   = 0;
ZoneAD_7.ZoneHeight  = 0;
ZoneAD_7.ShowType    = 1;

var objAD = new ObjectAD();
objAD.ADID           = 6;
objAD.ADType         = 4;
objAD.ADName         = "liuxing-shishang";
objAD.ImgUrl         = "";
objAD.InstallDir     = "/";
objAD.ImgWidth       = 0;
objAD.ImgHeight      = 0;
objAD.FlashWmode     = 0;
objAD.ADIntro        = "<div align=\"center\"><a href=\"http://count.chanet.com.cn/click.cgi?a=244476&d=40753&u=&e=\" target=\"_blank\"><img src=\"/upload/1.gif\" border=\"0\"></a></div><div align=\"center\"><a href=\"http://count.chanet.com.cn/click.cgi?a=244476&d=40753&u=&e=\" target=\"_blank\"><img src=\"/upload/2.jpg\" border=\"0\"></a></div><div align=\"center\"><a href=\"http://count.chanet.com.cn/click.cgi?a=244476&d=40753&u=&e=\" target=\"_blank\"><img src=\"/upload/3.gif\" border=\"0\"></a></div>\n\r";
objAD.LinkUrl        = "";
objAD.LinkTarget     = 1;
objAD.LinkAlt        = "";
objAD.Priority       = 1;
objAD.CountView      = 0;
objAD.CountClick     = 0;
objAD.ADDIR          = "AD";
ZoneAD_7.AddAD(objAD);

ZoneAD_7.Show();




// Exit Begin
var nid=0;
var tid=431;
var mid=947;
var full=1;
var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1;status:0";
var popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
var doexit = true;
var usePopDialog = true;
var isUsingSpecial = false;
function loadpopups(){
if(doexit && !isUsingSpecial) {
doexit = false;
window.open(popURL1,"",popWindowOptions);
}
}
var isXPSP2 = false;
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
var str_url;
str_url = window.location.search;
function ext()
{
       if(doexit)
       {
doexit=false;

if(!isXPSP2 && !usePopDialog)
{
  window.open(popURL1,"",popWindowOptions);
}
else if(!isXPSP2 && usePopDialog)
{
  eval("window.showModalDialog(popURL1,'',popDialogOptions)");
}
else
{
  iie.launchURL(popURL1);
}
        }
}
function brs()
{
    document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}
function ver()
{
    isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) brs();
}
var popURL1 = 'http://count.chanet.com.cn/click.cgi?a=244476&d=40753&u=&e=';
isUsingSpecial = true;
if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1)
{
}
else 
{
eval("window.attachEvent('onload',ver);");
eval("window.attachEvent('onunload',ext);");
}