var objAD = new ObjectAD(); var ad1852 = new MoveZoneAD("ad1852"); ad1852.Left = 0; ad1852.Top = 80; ad1852.Delta = 0.1; 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 BannerZoneAD(_id) { /* Define Constants */ this.adNum = 0; this.adDelay = 6000; /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = BannerZoneAD_AddAD; this.GetShowAD = BannerZoneAD_GetShowAD; this.Show = BannerZoneAD_Show; this.LoopShow = BannerZoneAD_LoopShow; } function BannerZoneAD_AddAD(_AD) { this.AllAD[this.AllAD.length] = _AD; } function BannerZoneAD_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 BannerZoneAD_Show() { if (!this.AllAD) { return; } else { this.GetShowAD(); } if (this.ShowAD == null) return false; this.DivName = "BannerZoneAD_Div" + this.ZoneID; if (!this.ShowAD.ImgWidth) this.ShowAD.ImgWidth = this.ZoneWidth if (!this.ShowAD.ImgHeight) this.ShowAD.ImgHeight = this.ZoneHeight if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD" if (this.ShowType == 3) { document.write("
" + AD_Content(this.ShowAD) + "
"); } else { if (navigator.appName == "Netscape") { document.write("" + AD_Content(this.ShowAD) + ""); } else { document.write("
" + AD_Content(this.ShowAD) + "
"); } if (this.ShowAD.CountView) { document.write ("") } } this.Div = document.getElementById(this.DivName); if (this.ShowType == 3) this.LoopShow(); } function BannerZoneAD_LoopShow() { if(this.adNum 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); } function FixedZoneAD(_id) { /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ this.Left = 0; this.Top = 0; /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = FixedZoneAD_AddAD; this.GetShowAD = FixedZoneAD_GetShowAD; this.Show = FixedZoneAD_Show; } function FixedZoneAD_AddAD(_AD) { this.AllAD[this.AllAD.length] = _AD; } function FixedZoneAD_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 FixedZoneAD_Show() { if (!this.AllAD) { return; } else { this.GetShowAD(); } if (this.ShowAD == null) return false; this.DivName = "FixedZoneAD_Div" + this.ZoneID; if (!this.ShowAD.ImgWidth) this.ShowAD.ImgWidth = this.ZoneWidth if (!this.ShowAD.ImgHeight) this.ShowAD.ImgHeight = this.ZoneHeight if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD" if (navigator.appName == "Netscape") { document.write("" + AD_Content(this.ShowAD) + ""); } else { document.write("
" + AD_Content(this.ShowAD) + "
"); } if (this.ShowAD.CountView) { document.write ("") } this.Div = document.getElementById(this.DivName); } function FloatZoneAD(_id) { /* Define Constants */ this.vmin = 2; this.vmax = 5; this.vr = 2; /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ this.FloatType = 1; this.Left = 0; this.Top = 0; this.Delay = 50; this.Width = 1; this.Height = 1; this.vx = this.vmin+this.vmax*Math.random(); this.vy = this.vmin+this.vmax*Math.random(); this.timer = null; this.step = 1; this.xin = true; this.yin = true; /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = FloatZoneAD_AddAD; this.GetShowAD = FloatZoneAD_GetShowAD; this.Show = FloatZoneAD_Show; this.Float = FloatZoneAD_Float; this.Pause = FloatZoneAD_Pause; this.Resume = FloatZoneAD_Resume; } function FloatZoneAD_AddAD(_AD) { this.AllAD[this.AllAD.length] = _AD; } function FloatZoneAD_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 FloatZoneAD_Show() { if (!this.AllAD) { return; } else { this.GetShowAD(); } if (this.ShowAD == null) return false; this.DivName = "FloatZoneAD_Div" + this.ZoneID; if (!this.ShowAD.ImgWidth) this.ShowAD.ImgWidth = this.ZoneWidth if (!this.ShowAD.ImgHeight) this.ShowAD.ImgHeight = this.ZoneHeight if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD" if (navigator.appName == "Netscape") { document.write("" + AD_Content(this.ShowAD) + ""); } else { document.write("
" + AD_Content(this.ShowAD) + "
"); } if (this.ShowAD.CountView) { document.write ("") } this.Width = (this.ShowAD.ImgWidth)?this.ShowAD.ImgWidth:this.ZoneWidth this.Height = (this.ShowAD.ImgHeight)?this.ShowAD.ImgHeight:this.ZoneHeight this.Div = document.getElementById(this.DivName); this.Float(); } function FloatZoneAD_Float() { pageX=window.document.documentElement.scrollLeft; pageW=window.document.documentElement.offsetWidth-22; pageY=window.document.documentElement.scrollTop; pageH=window.document.documentElement.offsetHeight-4; if (this.FloatType==1) { this.Left=this.Left+this.vx; this.Top=this.Top+this.vy; this.vx+=this.vr*(Math.random()-0.5); this.vy+=this.vr*(Math.random()-0.5); if(this.vx>(this.vmax+this.vmin))this.vx=(this.vmax+this.vmin)*2-this.vx; if(this.vx<(-this.vmax-this.vmin))this.vx=(-this.vmax-this.vmin)*2-this.vx; if(this.vy>(this.vmax+this.vmin))this.vy=(this.vmax+this.vmin)*2-this.vy; if(this.vy<(-this.vmax-this.vmin))this.vy=(-this.vmax-this.vmin)*2-this.vy; if(this.Left<=pageX){this.Left=pageX;this.vx=this.vmin+this.vmax*Math.random();} if(this.Left>=pageX+pageW-this.Width){this.Left=pageX+pageW-this.Width;this.vx=-this.vmin-this.vmax*Math.random();} if(this.Top<=pageY){this.Top=pageY;this.vy=this.vmin+this.vmax*Math.random();} if(this.Top>=pageY+pageH-this.Height){this.Top=pageY+pageH-this.Height;this.vy=-this.vmin-this.vmax*Math.random();} this.Delay=80; } else if (this.FloatType==2) { this.Left+=this.step*(this.xin?1:-1); this.Top+=this.step*(this.yin?1:-1); if(this.Left<=pageX){this.xin=true;this.Left<=pageX} if(this.Left>=pageX+pageW-this.Width){this.xin=false;this.Left=pageX+pageW-this.Width} if(this.Top<=pageY){this.yin=true;this.Top=pageY} if(this.Top>=pageY+pageH-this.Height){this.yin=false;this.Top=pageY+pageH-this.Height} this.Delay=15; } else if (this.FloatType==3) { this.Top+=this.step*(this.yin?1:-1); if(this.Top<=pageY){this.yin=true;this.Top=pageY} if(this.Top>=pageY+pageH-this.Height){this.yin=false;this.Top=pageY+pageH-this.Height} this.Delay=15; } else if (this.FloatType==4) { this.Left+=this.step*(this.xin?1:-1); if(this.Left<=pageX){this.xin=true;this.Left<=pageX} if(this.Left>=pageX+pageW-this.Width){this.xin=false;this.Left=pageX+pageW-this.Width} this.Delay=15; } this.Div.style.pixelLeft=this.Left; this.Div.style.pixelTop=this.Top; this.Div.timer=setTimeout(this.ID+".Float()",this.Delay); } function FloatZoneAD_Pause() { if(this.Div.timer!=null){clearTimeout(this.Div.timer)} } function FloatZoneAD_Resume() { this.Float(); } function MoveZoneAD(_id) { /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ this.Left = 0; this.Top = 0; this.Delta = 0.15; /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = MoveZoneAD_AddAD; this.GetShowAD = MoveZoneAD_GetShowAD; this.Show = MoveZoneAD_Show; this.Move = MoveZoneAD_Move; } function MoveZoneAD_AddAD(_AD) { this.AllAD[this.AllAD.length] = _AD; } function MoveZoneAD_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 MoveZoneAD_Show() { if (!this.AllAD) { return; } else { this.GetShowAD(); } if (this.ShowAD == null) return false; this.DivName = "MoveZoneAD_Div" + this.ZoneID; if (!this.ShowAD.ImgWidth) this.ShowAD.ImgWidth = this.ZoneWidth if (!this.ShowAD.ImgHeight) this.ShowAD.ImgHeight = this.ZoneHeight if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD" var closeBu = "关闭(Close)"; closeBu = ""; if (navigator.appName == "Netscape") { document.write("" + closeBu+ AD_Content(this.ShowAD) + ""); } else { document.write("
" + closeBu+ AD_Content(this.ShowAD) + "
"); } if (this.ShowAD.CountView) { document.write ("") } this.Div = document.getElementById(this.DivName); setInterval(this.ID + ".Move()", 10); } function MoveZoneAD_Move() { this.Div.style.right = "0"; if (this.Div.offsetTop != (document.documentElement.scrollTop + this.Top)) { var dy = (document.documentElement.scrollTop + this.Top - this.Div.offsetTop) * this.Delta; dy = (dy > 0 ? 1 : - 1) * Math.ceil(Math.abs(dy)); this.Div.style.top = this.Div.offsetTop + dy; } //this.Div.style.display = ''; } function PopZoneAD(_id) { /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ this.PopType = 0; this.Left = 0; this.Top = 0; this.CookieHour = 0; /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = PopZoneAD_AddAD; this.GetShowAD = PopZoneAD_GetShowAD; this.CookieCheck = PopZoneAD_CookieCheck; this.Show = PopZoneAD_Show; this.Struct = PopZoneAD_Struct; this.Window = PopZoneAD_Window; } function PopZoneAD_AddAD(_AD) { this.AllAD[this.AllAD.length] = _AD; } function PopZoneAD_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 PopZoneAD_Show() { if (!this.AllAD) { return; } else { this.GetShowAD(); } if (this.ShowAD == null) return false; if (this.CookieCheck()) return false; this.DivName = "PopZoneAD_Div" + this.ZoneID; if (this.ShowAD.ADDIR=="") this.ShowAD.ADDIR = "AD" if (this.PopType == 3) { window.showModelessDialog("" + this.ShowAD.InstallDir + this.ShowAD.ADDIR + "/ADShow.asp?ADID=" + this.ShowAD.ADID + "","","scroll:0;status:0;help:0;toolbar=0;resizable:0;dialogTop:" + this.Top + "px;dialogLeft:" + this.Left + "px;dialogWidth:" + this.ZoneWidth + "px;dialogHeight:" + this.ZoneHeight + "px"); } else { var OK = this.Struct(); if (OK) OK.document.write(this.Window()); } if (this.ShowAD.CountView) { document.write ("") } } function PopZoneAD_Struct() { var winwidth = (this.PopType==4) ? (screen.width - 9): (parseInt((this.ShowAD.ImgWidth) ? this.ShowAD.ImgWidth : 350) - 4); var winheight = (this.PopType==4) ? (screen.height - 56): (parseInt((this.ShowAD.ImgHeight) ? this.ShowAD.ImgHeight : 250) - 4); var winleft = (this.PopType==4) ? 0: ((this.Left) ? this.Left : 0); var wintop = (this.PopType==4) ? 0: ((this.Top) ? this.Top : 0); return window.open("about:blank", "","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=" + winwidth + ",height=" + winheight + ",top=" + wintop + ",left=" + winleft); } function PopZoneAD_Window() { var strWin; strWin = ""; strWin += "qqqq"; strWin += ""; if (this.PopType==2||this.PopType==4) { strWin += "\n