// 1 ) { init(); this.timeId = setInterval(init,displayInfo200.rollTime * 1000); } else { init(); } }, show: function(){ this.rollset(); document.getElementById('fviewLayer200').innerHTML = ' ' +this.gf(this.imagePath(),"banner200",displayInfo200.wSize, displayInfo200.hSize); }, bannerLink: function(){ return 'http://www.ilikeclick.com/track/click.php?dts_code='+frontBanner200[this.postion].dts+'&target_url='+frontBanner200[this.postion].url; } , impLink: function(){ return 'http://ad.ilikeclick.com:6200/dtssuperbanner_refill?dts_code='+frontBanner200[this.postion].dts; } , imagePath: function(){ return 'http://ad.ilikeclick.com:6200/dtssuperbanner?dts_code='+frontBanner200[this.postion].dts+'&ref_code='; } , close: function(id){ document.getElementById(id).style.display = "none"; clearInterval(this.timeId); }, rollset: function(){ if(displayInfo200.rolling == "random" && this.getCookie('front_banner200') != ""){ this.postion = this.getCookie('front_banner200'); } if((frontBanner200.length - 1 ) == this.postion || (frontBanner200.length - 1 ) < this.postion) { this.postion = 0; } else { this.postion++; } if(displayInfo200.rolling == "random"){ this.setCookie('front_banner200', this.postion, '1'); } }, set: function(){ if(displayInfo200.postion == 'self') { this.top = displayInfo200.postionHeight; this.left = displayInfo200.postionWidth; } else { if (self.innerHeight) { this.left = (screen.availWidth - displayInfo200.wSize) / 2; this.top = (screen.availHeight - displayInfo200.hSize - (self.innerHeight/2))/2; }else if (document.documentElement && document.documentElement.clientHeight) { this.left = (screen.availWidth - displayInfo200.wSize) / 2; this.top = (screen.availHeight - displayInfo200.hSize - (document.documentElement.clientHeight/2)) / 2; }else if (document.body) { this.left = (screen.availWidth - displayInfo200.wSize) / 2; this.top = (screen.availHeight - displayInfo200.hSize - (document.body.clientHeight/2)) / 2; }else { this.left = (screen.availWidth - displayInfo200.wSize) / 2; this.top = (screen.availHeight - displayInfo200.hSize ) / 2; } } }, setCookie: function(name, value, expire){ var exdate = new Date(); exdate.setDate(exdate.getDate()+expire); document.cookie = name+ "=" +escape(value) + ((expire==null) ? "" : ";expires="+exdate.toGMTString()); }, getCookie: function(name){ if (document.cookie.length>0) { start = document.cookie.indexOf(name + "="); if (start!=-1) { start = start + name.length + 1 ; end = document.cookie.indexOf(";",start); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(start,end)); } } return ""; }, gf: function(u,d,w,h){ swf = "" + "" + "" + "" + "" + "" + "" + ""; return swf; } } var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function banner200_DoFSCommand(command, args) { var bannerObj = isInternetExplorer ? document.all.banner200 : document.banner200; if(command=="clickthrough") { openNewWindow200(); } function openNewWindow200(){ window.open(ilikeDisplay200.bannerLink(),"blank"); } } function init() { ilikeDisplay200.show(); } ilikeDisplay200.set(); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write(' '); document.write('
'); document.write('
'); ilikeDisplay200.init(); //]]>