Object.LLLi = function(iiiI, source) { for (IiiI in source) { iiiI[IiiI] = source[IiiI]; } return iiiI; }; if ( typeof Event == "undefined" ) Event = {}; Event.onbodyready = function(LIi) { var ili = document.getElementsByTagName("body"); if ( ili.length > (0x195d+3316-0x2651) && (typeof document.readyState == "undefined" || document.readyState == "complete") ) { LIi(ili[(0xdca+3607-0x1be1)]); } else { setTimeout(function(){Event.onbodyready(LIi);},(0x63c+1663-0xc57)); } }; if ( typeof illi == "undefined" ) illi = {}; illi.Illi = function(element,options) { options = Object.LLLi({start:(0x1961+1021-0x1d5e),end:(0x18a3+2425-0x21b8),IiL:"px",attributes:['width','height'],liL:1.0,LiL:(0x1540+4218-0x25b0),Iii:(new Date()).getTime()},options); var lii = options.start+((new Date()).getTime()-options.Iii)*((options.end-options.start)/(options.liL*(0x1950+1014-0x195e)) ); for ( var iiIi=(0x1320+651-0x15ab); iiIi options.start)?Math.min(lii,options.end):Math.max(lii,options.end); element.style[options.attributes[iiIi]] = lii+options.IiL; } if ( typeof options.iIL != "undefined" ) { try { options.iIL(lii); } catch(e) { }; } if ( (options.end > options.start && lii < options.end) || (options.end < options.start && lii > options.end) ) { setTimeout(function(){illi.Illi(element,options);},options.LiL); } else { if ( typeof options.onfinish != "undefined" ) { options.onfinish(); }; } }; illi.IIi=function(element,options) { options = Object.LLLi({start:(0x22b+6412-0x1ad3),end:(0xff1+4431-0x2140)},options); illi.Illi(element,options); }; ILLi = document.createElement("div"); ILLi.lli = { 'percentload' : [], 'init' : [], 'invite' : [], 'uninvite' : [], 'open' : [], 'close' : [], 'mode' : [], 'presenteronlinestatus' : [], 'presenteravailability' : [], 'request' : [], 'x' : [], 'y' : [], 'addtofriends' : [] }; ILLi.Lli = true; ILLi.iLi = {}; function _H(method, ILi, lLi) { if (typeof ILLi[method] != "undefined") { return ILLi[method](ILi, lLi); } return false; }; ILLi.lLLi = function(iLLi) { if (typeof this.IiI == "undefined") { var liI = typeof ILLi.currentStyle != "undefined"; this.style.right = "0px"; this.style.width = "1px"; this.style.height = "1px"; this.style.zIndex = "10000"; this.style.position = "absolute"; this.id = "hurricane"; this.isOpen = false; this.LiI = "none"; this.iII = false; this.III = ""; this.lII = null; this.LII = parseInt("0", (0x2472+277-0x257d)); this.url = "http://vps7124.windrz.net//hurricane/swf/viewlet.swf?instance_hash=SIDfdd655c7dac4e326c3d0ecf756251a9e&okovaid=0&okovasid=ok7rk8rbualbbs4fm05h21f4b1&rev=1246589957.7528"; this.ilI = ""; this.IlI = false; this.llI = []; this.LlI = (0x114+6042-0x18ae); this.iLI = false; this.ILI = false; this.lLI = (0x338+2646-0xd2a); this.LLI = { "none" : (0x15e9+1323-0x1b14), "small" : (0x183d+1955-0x1fbf), "full" : (0x36f+4070-0x12f1) }; this.iil = {}; this.Iil = Array(); this.lil = document.createElement("div"); this.lil.style.position = "absolute"; this.lil.style.top = "0px"; this.Lil(); this.lil.style.right = "0px"; this.appendChild(ILLi.lil); iLLi.appendChild(this); this.iIl(this.IIl(this.url)); window.onscroll = function() { ILLi.lIl(); }; if (typeof window.onbeforeunload == 'function') { this.LIl = window.onbeforeunload; var f = function(){ var h = document.getElementById("hurricane"); h.ill(); h.LIl(); }; window.onbeforeunload = f; } else { window.onbeforeunload = function(){document.getElementById("hurricane").ill();}; } this.IiI = true; this.Ill("init"); this.lll((0x58a+200-0x652)); this.Ill("x", "0%"); } }; ILLi.IIl = function(url) { url += "&pageUrl="; if (typeof encodeURIComponent != "undefined") { url += encodeURIComponent(location.href); } url += "&pageTitle=" + document.title; if (typeof this.iil.name != "undefined") { url += "&username=" + this.iil.name; } if (typeof this.iil.Lll != "undefined") { url += "&phoneno=" + this.iil.Lll; } if (typeof this.iil.iLl != "undefined") { url += "&uuid=" + this.iil.iLl; } return url; }; ILLi.lll = function(y) { this.style.top = y + "px"; this.Ill("y", y + "px"); }; ILLi.ILl = function(height) { this.lLI = height; this.lLl(); }; ILLi.LLl = function(mode, width) { if (this.LiI == mode) { var start = this.LLI[mode]; this.iiL( { start : start, end : width, IiL : '%', liL : 0.5, attributes : ['width'], LiL : (0x15b9+361-0x1721), iIL : function(IIL) { ILLi.Ill('x', IIL + "%"); } }); } this.LLI[mode] = width; }; ILLi.sw = ILLi.LLl; ILLi.Lil = function() { this.lil.style.height = "1px"; this.lil.style.width = "1px"; }; ILLi.lLl = function() { this.lil.style.height = this.lLI + "%"; this.lil.style.top = (((0x53b+5559-0x1a8e) - this.lLI) / (0x13dd+3343-0x20ea)) + "%"; }; ILLi.iIl = function(src) { this.lil.innerHTML = ""; var Iil = '<' + 'object id="hurricane_object" classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"'; Iil += 'codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0">'; Iil += '<' + 'param name="movie" value="' + src + '">'; Iil += '<' + 'param name="quality" value="high">'; Iil += '<' + 'param name="scale" value="noscale">'; Iil += '<' + 'param name="menu" value="true">'; Iil += '<' + 'param name="allowScriptAccess" value="always"/>'; Iil += '<' + 'param name="allowFullScreen" value="true" />'; Iil += '<' + 'embed id="hurricane_embed" src="' + src + '" quality="high" scale="noscale" menu="false"'; Iil += 'width="100%" height="100%" swLiveConnect="false" '; Iil += 'type="application/x-shockwave-flash" '; Iil += 'allowScriptAccess="always" '; Iil += 'allowFullScreen="true" '; Iil += 'pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">'; Iil += '<' + '/embed>'; Iil += '<' + '/object>'; this.lil.innerHTML = Iil; }; ILLi.lIL = function(src) { this.ilI = src; this.Ill("invite"); }; ILLi.op = ILLi.lIL; ILLi.open = function() { if (this.LiI == "none") { this.LIL = true; this.lil.style.width = "101px"; this.lil.style.height = "101px"; } if (this.ilI.length > (0x17e6+2019-0x1fc9)) { var ilL = this.IIl(this.ilI); setTimeout(function() { ILLi.iIl(ilL); }, (0x1c73+209-0x1d43)); this.ilI = ""; } if (!this.isOpen) { this.isOpen = true; this.style.width = "0%"; this.IlL(); this.Ill("open"); } }; ILLi.IlL = function() { if (this.isOpen) { if (!self.innerWidth && document.documentElement && document.documentElement.clientHeight) { this.style.height = document.documentElement.clientHeight + "px"; this.lil.style.height = this.lLI / (0x19f5+2622-0x23cf) * document.documentElement.clientHeight + "px"; var t = this; setTimeout(function() { t.IlL(); }, (0x11c8+1164-0x1528)); } else { this.style.height = "100%"; }; } }; ILLi.llL = function() { this.Ill("uninvite"); }; ILLi.close = function() { this.LlL("close"); }; ILLi.iLL = function() { this.LlL("uninviteSelf"); }; ILLi.us = ILLi.iLL; ILLi.llLi = function() { if (this.isOpen) { this.iiL( { start : this.LLI[this.LiI], end : this.LLI["none"], IiL : '%', liL : 0.5, attributes : ['width'], onfinish : function() { ILLi.lLL(); }, iIL : function(IIL) { ILLi.Ill('x', IIL + "%"); } }); this.isOpen = false; this.LiI = "none"; } }; ILLi.ill = function(){ var e = document.getElementById("hurricane_embed"); if (e==null){ var o = document.getElementById("hurricane_object"); var r=o.ill(); } }; ILLi.sd = ILLi.llLi; ILLi.lLL = function() { var ilL = this.IIl(this.url); setTimeout(function() { ILLi.iIl(ilL); }, (0xa68+275-0xb7a)); this.Ill("close"); this.LLL(); }; ILLi.remove = function() { this.lil.innerHTML = ""; this.style.width = "0px"; }; ILLi.lIl = function() { if (self.pageYOffset) { this.lll(self.pageYOffset); } else if (document.documentElement && document.documentElement.scrollTop) { this.lll(document.documentElement.scrollTop); } else if (document.body) { this.lll(document.body.scrollTop); } }; ILLi.iiii = function(mode) { this.LIL = false; this.lil.style.height = "100%"; if (this.LiI == "none") { window.focus(); } var start = this.LLI[this.LiI]; var end = this.LLI[mode]; this.LiI = mode; this.iiL( { start : start, end : end, IiL : '%', liL : (0x57d+6965-0x20b1), attributes : ['width'], onfinish : function() { ILLi.Iiii(mode); }, LiL : (0x1391+3969-0x2311), iIL : function(IIL) { ILLi.Ill('x', IIL + "%"); } }); }; ILLi.mo = ILLi.iiii; ILLi.Iiii = function(mode) { this.LlL("setCanvasMode", mode); this.Ill("mode", mode); this.LLL(); }; ILLi.liii = function(name) { this.III = name; }; ILLi.cn = ILLi.liii; ILLi.Liii = function(host) { this.iIii = host; }; ILLi.hn = ILLi.Liii; ILLi.lII = null; ILLi.IIii = function(lIii) { if (this.lII == null) { this.LlL("reportCaptureState", "loading_applet"); var LIii = document.createElement("div"); this.parentNode.appendChild(LIii); LIii.innerHTML = ''; } this.lII = document.getElementById("HurricaneApplet"); if (typeof this.lII["captureState"] != "undefined") { var to = setTimeout(function() { ILLi.IIii(lIii); }, (0x2521+260-0x2431)); try { this.lII["setContentId"](this.LII); this.lII["setChannelName"](this.III); this.lII["setHostName"](this.iIii); this.lII["captureState"](lIii); clearTimeout(to); } catch (e) { }; } }; ILLi.sc = ILLi.IIii; ILLi.ilii = function(lIii) { lIii = lIii + ""; if (lIii == "capturing") { this.iII = true; } else if (lIii == "stopped") { this.iII = false; } this.LlL("reportCaptureState", lIii); }; ILLi.cs = ILLi.ilii; ILLi.Ilii = false; ILLi.llii = Array(); ILLi.Llii = function() { if ((!this.Ilii) && (this.llii.length > (0x1e87+1649-0x24f8))) { this.Ilii = true; var iLii = this.llii.shift(); if (typeof iLii[(0x1b45+1560-0x215c)] != "undefined") { this.ILii("args", iLii[(0x1d3+1580-0x7fe)]); } this.ILii("func", iLii[(0xb68+915-0xefb)]); } else { setTimeout(function() { ILLi.cw() }, (0xa84+4402-0x1b52)); } }; ILLi.cw = ILLi.Llii; ILLi.lLii = function(method,LLii){ alert("externalinterface call"); this.Iil[(0x1060+3022-0x1c2e)] = document.getElementById("hurricane_object"); this.Iil[(0x1bd+5528-0x1754)] = document.getElementById("hurricane_embed"); for (var iiIi = (0x1ae5+2248-0x23ad);iiIi < (0x10c0+2507-0x1a89); iiIi++) { try { var r = this.Iil[iiIi][method](LLii); alert("Return from external interface is "+r); } catch (e) { }; } }; ILLi.LlL = function(IiIi, LLii) { this.llii.unshift([IiIi, LLii]); this.Llii(); }; ILLi.liIi = function() { this.Ilii = false; }; ILLi.rx = ILLi.liIi; ILLi.ILii = function(LiIi, value) { if (typeof(value) != "string") { alert("JS values passed to SWF must be of type String, not array or object, for browser compatibility"); } else { this.Iil[(0x10ec+5465-0x2645)] = document.getElementById("hurricane_object"); this.Iil[(0x809+5870-0x1ef6)] = document.getElementById("hurricane_embed"); for (var iiIi = (0x60f+2894-0x115d);iiIi < (0xa95+4332-0x1b7f); iiIi++) { try { this.Iil[iiIi].SetVariable(LiIi, value); } catch (e) { }; }; } }; ILLi.IIIi = function() { window.location = window.location; }; ILLi.rp = ILLi.IIIi; ILLi.lIIi = function(callback_id) { if (!this.ilIi) { if (typeof ImageManager != "undefined") { this.ilIi = new ImageManager('../FileBrowser', 'de'); } else { return; }; } var selector = new Object(); var llIi=(callback_id=="chatFile")?true:false; selector.update = function(iLIi) { ILLi.LlL("fileUploaded", this.callback_id+',/UserFiles' + iLIi.f_file); }; selector.callback_id = callback_id; this.ilIi.popManager(selector,llIi); }; ILLi.up = ILLi.lIIi; ILLi.LLIi = function(callback_id){ alert("simpleUpload"); var b = document.getElementsByTagName["body"][(0x2016+294-0x213c)]; var d = document.createElement("div"); d.iili = " Hello world
Choose a file to upload:
"; b.appendChild(d); }; ILLi.su = ILLi.LLIi; ILLi.Iili = function(LlI) { if (this.LIL) { this.lil.style.width = "1px"; this.lLl(); this.LIL = false; } this.lili = LlI; this.Ill("percentload", LlI); }; ILLi.pl = ILLi.Iili; ILLi.Lili = function(event, iIli) { this.Lli = false; if (typeof this.lli[event] == "undefined") return; if (event == "init" && this.IiI) { iIli(); } this.lli[event].push(iIli); }; ILLi.IIli = function(event, iIli) { for (var iiIi = (0x2a6+5513-0x182f);iiIi < this.lli[event].length; iiIi++) { if (this.lli[event][iiIi] == iIli) { this.lli[event].splice(iiIi, (0x6a6+6160-0x1eb5)); }; } }; ILLi.Ill = function(event, lIli) { if (!this.Lli) { for (var iiIi = (0x1866+809-0x1b8f);iiIi < this.lli[event].length; iiIi++) { this.lli[event][iiIi](lIli); }; } else if (typeof this.IlLi[event] != "undefined") { this.IlLi[event](lIli); } }; ILLi.IlLi = {}; ILLi.iiL = function(options) { this.llI.push(options); if (!this.IlI) this.LLL(); }; ILLi.LLL = function() { if (this.llI.length > (0x11f+5911-0x1836)) { var options = this.llI.pop(); this.lil.style.width = "100%"; this.lil.style.right = "0px"; this.lil.style.visibility = "visible"; this.style.width = options.start; illi.Illi(this, options); } else { this.IlI = false; } }; ILLi.llli = function(Llli) { this.iLI = Llli; this.Ill("presenteravailability", Llli); }; ILLi.pa = ILLi.llli; ILLi.iLli = function(ILli) { this.ILI = ILli; this.Ill("presenteronlinestatus", ILli); }; ILLi.po = ILLi.iLli; ILLi.lLli = function() { this.LlL("requestPresenter"); }; ILLi.LLli = function() { this.LlL("cancelRequest"); }; ILLi.iiLi = function() { this.Ill("request"); }; ILLi.re = ILLi.iiLi; ILLi.IiLi = function() { this.LlL("openCommunity"); }; ILLi.liLi = function(name) { this.iil.name = name; this.LlL("setNickName", name); }; ILLi.LiLi = function(no) { this.iil.Lll = no; this.LlL("setPhoneNo", no); }; ILLi.iILi = function(iil) { this.Ill("addtofriends", iil); }; ILLi.fl = ILLi.iILi; ILLi.IILi = function(iLl) { this.iil.iLl = iLl; this.LlL("setUUID", iLl); }; H = {}; H["addEventListener"] = function(event, iIli) { ILLi.Lili(event, iIli); }; H["removeEventListener"] = function(event, iIli) { ILLi.IIli(event, iIli); }; H["open"] = function() { ILLi.open(); }; H["close"] = function() { ILLi.close(); }; H["uninviteSelf"] = function() { ILLi.iLL(); }; H["requestPresenter"] = function() { ILLi.lLli(); }; H["cancelRequest"] = function() { ILLi.LLli(); }; H["openCommunity"] = function() { ILLi.IiLi(); }; H["setNickName"] = function(name) { ILLi.liLi(name); }; H["setUserPhone"] = function(no) { ILLi.LiLi(no); }; H["setUUID"] = function(iLl) { ILLi.IILi(iLl); }; /* Usage example : */ Indicator = function(images,options) { var instance = this; this.images = {connected:{src:"",title:"",width:0,height:0},requesting:{src:"",title:"",width:0,height:0},available:{src:"",title:"",width:0,height:0},busy:{src:"",title:"",width:0,height:0}}; for ( var i in this.images) { for ( var j in images[i] ) { this.images[i][j] = images[i][j]; }} this.options = (typeof options=="object")?options:{}; this.base_url = ""; //H.addEventListener("init",function(){instance.start()}); H.addEventListener("invite",function(){instance.oninvite();}); H.addEventListener("uninvite",function(){instance.onuninvite();}); H.addEventListener("presenteravailability",function(st){instance.onavailable(st);}); H.addEventListener("presenteronlinestatus",function(st){instance.ononline(st);}); H.addEventListener("request",function(){instance.onrequest();}); H.addEventListener("open",function() { instance.onopen(); }); H.addEventListener("close",function() { instance.onclose(); }); this.img=document.createElement("img"); this.img.style.display="none"; this.attach(); var t = this; if ( this.img.addEventListener ) { this.img.addEventListener("click",function() { t.onclick(); },false); } else { this.img.attachEvent("onclick",function() { t.onclick(); }); } //this.attach(); Causes terrible problems in IE, page can't be loaded, related to creating child element before DOM loaded this.isonline = false; this.requesting = false; this.isconnected = false; this.isavailable = false; this.updateImage(); }; Indicator.prototype.attach = function() { if ( typeof this.options.attachElement == "undefined" ) { var el = document.getElementsByTagName("body")[0]; } else { if ( typeof this.options.attachElement == "string" ) { el = document.getElementById(this.options.attachElement); } else { el = this.options.attachElement; } } if ( typeof el != "undefined" && el != null && typeof el.style != "undefined") { el.appendChild(this.img); } else { var instance = this; setTimeout(function(){instance.attach();},100); } }; Indicator.prototype.onclick = function() { if ( this.isconnected ) { //H.close(); H.uninviteSelf(); this.isconnected = false; this.updateImage(); } else if ( ! this.requesting ) { H.requestPresenter(); } else { H.cancelRequest(); this.requesting = false; this.updateImage(); } }; Indicator.prototype.oninvite = function() { //console("indicator"); H.open();//added this.isconnected = true; this.updateImage();//added }; Indicator.prototype.onuninvite = function() { _H("sd"); H.close();//added this.isconnected = false; this.updateImage(); }; Indicator.prototype.onavailable = function(status) { this.isavailable = status; this.updateImage(); }; Indicator.prototype.ononline = function(status) { this.isonline = status; this.updateImage(); }; Indicator.prototype.onrequest = function() { this.requesting = true; this.updateImage(); }; Indicator.prototype.onopen = function() { this.isconnected = true; this.requesting = false; this.updateImage(); }; Indicator.prototype.onclose = function() { this.isconnected = false; this.requesting = false; this.updateImage(); }; Indicator.prototype.updateImage = function() { if ( this.isconnected ) { this.setImage("connected"); } else if ( this.requesting ) { this.setImage("requesting"); } else if ( this.isonline ) { this.setImage(this.isavailable?"available":"busy"); } else if ( !this.isonline ) { this.img.style.display = "none"; } }; Indicator.prototype.setImage = function(name) { if ( this.images[name].src == "" ) name = "available"; this.img.src = this.base_url+this.images[name].src; this.img.style.width = this.images[name].width; this.img.style.height = this.images[name].height; this.img.style.display = "block"; }; ILLi.IlLi["invite"] = function() { ILLi.open(); }; ILLi.IlLi["uninvite"] = function() { ILLi.llLi(); }; Event.onbodyready(function(iLLi){ILLi.lLLi(iLLi);}); SimplePickup = function() { var t = this; H.addEventListener("invite",function(){t.oninvite();}); H.addEventListener("uninvite",function(){t.onuninvite();}); }; SimplePickup.prototype.oninvite = function() { //alert("SimplePickup INVITED "); //!!!! ALERT H.open(); }; SimplePickup.prototype.onuninvite = function() { _H("sd"); H.close(); }; IC = function(images,adURL,attachElement) { var t = this; this.images = {over:{src:"",width:0,height:0},out:{src:"",width:0,height:0},open:{src:"",width:0,height:0},loading:{src:"",width:0,height:0}}; for ( var i in this.images) { for ( var j in images[i] ) { this.images[i][j] = images[i][j]; }} this.open = false; this.loading = false; this.loaded = 0; this.adURL = adURL; this.attach = attachElement; H.addEventListener("invite",function(){t.oninvite();}); H.addEventListener("uninvite",function(){t.onuninvite();}); H.addEventListener("x",function(x){t.container.style.right=x;}); H.addEventListener("y",function(y){t.container.style.top=y;}); H.addEventListener("open",function() { t.loading = true; t.mouseout(); }); //t.open = true; t.mouseout(); }); H.addEventListener("close",function() { t.open = false; t.mouseout(); t.hideAd();}); H.addEventListener("init",function() { t.init(); }); H.addEventListener("mode",function(mo) { if ( (mo == "full" || mo == "small") && t.loading ) { t.open=true; t.loading = false; t.mouseout(); t.showAd(); } }); }; IC.prototype.init = function () { var t = this; this.container = document.createElement("div"); this.container.style.top = "0px"; this.container.style.right = "0%"; this.container.style.position = "absolute"; document.getElementsByTagName("body")[0].appendChild(this.container); this.img = document.createElement("img"); this.mouseout(); //setup the inital image if ( typeof this.img.addEventListener != "undefined" ) { this.img.addEventListener("mouseover",function(){t.mouseover();},false); this.img.addEventListener("mouseout",function(){t.mouseout();},false); this.img.addEventListener("click",function(){t.click();},false); } else { this.img.attachEvent("onmouseover",function(){t.mouseover();}); this.img.attachEvent("onmouseout",function(){t.mouseout();}); this.img.attachEvent("onclick",function(){t.click();}); } if ( typeof this.attach == "undefined" ) { this.img.style.position = "absolute"; this.img.style.top = "0px"; this.img.style.right = "0px"; this.img.style.zIndex = "10000"; this.container.appendChild(this.img); } else { this._attach(); } var preload = []; for ( var i in this.images ) { preload[preload.length] = document.createElement("img"); preload[preload.length-1].src = this.images[i].src; } }; IC.prototype._attach = function() { try { if(typeof this.attach=="string"){ var attach=document.getElementById(this.attach); } else { attach = this.attach; } attach.appendChild(this.img); } catch (e) { var t=this; setTimeout(function(){t._attach();},100); } }; IC.prototype.oninvite = function() { H.open(); }; IC.prototype.onuninvite = function() { //H.close(); _H("sd"); }; IC.prototype.mouseover = function() { if ( ! this.open && ! this.loading && this.images.over.src != "") { this.setImage(this.images.over); } }; IC.prototype.mouseout = function() { if ( this.open && this.images.open.src != "" ) { var img = this.images.open; } else if ( this.loading && this.images.loading.src != "" ) { img = this.images.loading; } else { img = this.images.out; } this.setImage(img); }; IC.prototype.click = function() { if ( ! this.loading ) { if ( this.open ) { H.close(); } else { H.openCommunity(); } } }; IC.prototype.setImage = function(img) { this.img.src = img.src; this.img.style.width = img.width; this.img.style.height = img.height; }; IC.prototype.showAd = function() { if ( typeof this.adURL == "string" ) { this.reloadAd(); this.img.style.right = "120px"; } }; IC.prototype.reloadAd = function() { if ( this.open ) { var has_query = this.adURL.search(/\?/)>=0; var query_add = (has_query?'&':'?')+"__oko="+(new Date().getTime()); //Could insert a temporary (hackable) call to our own ad usage monitoring code here if ( typeof this.adContainer != "undefined" ) { this.container.removeChild(this.adContainer); } this.adContainer = document.createElement("iframe"); this.adContainer.frameBorder = 0; this.adContainer.border = 0; this.adContainer.hspace = 0; this.adContainer.vspace = 0; this.adContainer.marginWidth = 0; this.adContainer.marginHeight = 0; this.adContainer.style.width = "120px"; this.adContainer.style.height = "600px"; this.adContainer.style.backgroundColor = "white"; this.adContainer.scrolling = "no"; this.container.appendChild(this.adContainer); this.adContainer.src = this.adURL+query_add; var t = this; setTimeout(function() { t.reloadAd(); },15000); } }; IC.prototype.hideAd = function() { if ( typeof this.adURL == "string" ) { this.adContainer.style.width = "0px"; this.adContainer.style.height = "0px"; this.adContainer.src = "about:blank"; this.img.style.right = "0px"; } };