var nt={qt:function(rt){if(rt.contentDocument){return rt.contentDocument;} else if(rt.contentWindow){return rt.contentWindow.document;} else if(rt.document){return rt.document;} else{return null;} } ,st:function(rt){var tt=this.qt(rt);tt.open();tt.write("");tt.write("");tt.write("");tt.write("
");tt.write("");tt.close();rt.onload=function(){if(rt.it){nt.qt(rt).getElementById('content').innerHTML+=rt.it;nt.jt(rt);} } ;} ,kt:function(rt,lt){var ot=this.qt(rt).getElementById('content');if(ot==null){if(!rt.it)rt.it="";rt.it+=lt;} else{ot.innerHTML+=lt;} } ,jt:function(rt){var pt=this.qt(rt).getElementById('bottom');if(myAgent=='opera'){rt.contentWindow.scrollTo(0,this.qt(rt).getElementById('content').clientHeight);} else if(pt)pt.scrollIntoView(false);} } ;sq.dt=mn.nn();mn.sn(sq.dt,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.et.on(this);this.pq.jr=this.ft.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=(3100+1900);this.gt={} ;this.frequency=(this.pq.frequency||2);this.at=0;this.bt=true;this.ct=true;this.vt=true;this.wt=this.pq.xt!=null;nt.st(this.pq.yt);if(this.pq.xt){this.pq.xt.onkeydown=this.zt.on(this);this.pq.xt.onfocus=(function(){this.vt=true;} ).on(this);this.pq.xt.onblur=(function(){this.vt=false;} ).on(this)} this.$t();} ,ft:function(_t,mu){this.nu("offline, reconnecting");this.qu();this.ru=setTimeout(this.$t.on(this),01750);} ,_q:function(_t){this.nu("timeout, reconnecting");this.qu();this.ru=setTimeout(this.$t.on(this),(642+358));} ,su:function(tu){this.pq.fq='act='+tu+'&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&lastid='+(this.pq.uu||0);if(this.pq.user)this.pq.fq+="&user=true";if(tu=='refresh'&&this.pq.xt&&this.pq.xt.value!='')this.pq.fq+="&typed=1";} ,hu:function(iu){if(this.pq.xt)this.pq.xt.disabled=!iu;} ,qu:function(){this.hu(true);if(this.gt.pq)this.gt.pq.onComplete=undefined;clearTimeout(this.ru);} ,$t:function(){this.su("refresh");this.gt=new sq.vq(this.pq.servl,this.pq);} ,et:function(hq){try{this.hu(true);this.bt=true;var ju=sq.uq(hq);if(ju&&ju.tagName=='thread'){this.ku(ju);} else{this.lu(hq,ju,'refresh messages failed');} } catch(e){} this.ct=false;this.ru=setTimeout(this.$t.on(this),this.frequency*01750);} ,ou:function(pu){if(pu==""||!this.bt){return;} this.bt=false;this.qu();this.ct=true;this.su("post");var du={} .un(this.pq);du.fq+="&message="+encodeURIComponent(pu);du.onComplete=(function(eu){this.et(eu);if(this.pq.xt){this.pq.xt.value='';this.pq.xt.focus();} } ).on(this);if(myRealAgent!='opera')this.hu(false);this.gt=new sq.vq(this.pq.servl,du);} ,fu:function(gu){this.ct=true;new sq.vq(this.pq.servl,{fq:'act=rename&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0)+'&name='+encodeURIComponent(gu)} );} ,au:function(hq){var ju=sq.uq(hq);if(ju&&ju.tagName=='closed'){setTimeout('window.close()',03720);} else{this.lu(hq,ju,'cannot close');} } ,bu:function(){var cu='act=close&thread='+(this.pq.threadid||0)+'&token='+(this.pq.token||0);if(this.pq.user)cu+="&user=true";new sq.vq(this.pq.servl,{fq:cu,onComplete:this.au.on(this)} );} ,vu:function(wu,xt){var xu=qs.us(xt);nt.kt(wu,xu);} ,yu:function(zu){if($("typingdiv")){$("typingdiv").style.display=zu?'inline':'none';} } ,$u:function(_u){var mh=qs.us(_u);if(this.pq._u&&this.pq.user){this.pq._u.innerHTML=mh!=""?"\"\"\"\"/":"";} } ,ku:function(ju){var nh=false;var qh=this.pq.yt;var rh=qs.ks(ju,"lastid");if(rh){this.pq.uu=rh;} var sh=qs.ks(ju,"typing");if(sh){this.yu(sh=='1');} var th=qs.ks(ju,"canpost");if(th){if(th=='1'&&!this.wt||this.wt&&th!='1'){window.location.href=window.location.href;} } for(var i=0;i=0){var iu="updated";if(this.at>0){var hh=((new Date()).getTime()-this.at)/(691+309);iu=iu+", "+hh+" secs";if(hh>012){alert(iu);} } this.at=(new Date()).getTime();this.nu(iu);} else{this.ih();} if(nh){nt.jt(this.pq.yt);if(!this.ct){var jh=$('soundimg');if(jh==null||jh.className.match(new RegExp("\\bisound\\b"))){$s(ut.ht+'/sounds/new_message.wav');} } if(!this.vt){window.focus();} } } ,zt:function(k){if(k){kh=k.ctrlKey;k=k.which;} else{k=event.keyCode;kh=event.ctrlKey;} if(this.pq.xt&&((k==015&&(kh||myRealAgent=='opera'))||(k==012))){var lh=this.pq.xt.value;if(myRealAgent=='opera'){lh=lh.replace(/[\r\n]+$/,'');} this.ou(lh);return false;} return true;} ,lu:function(hq,ju,oh){if(ju&&ju.tagName=='error'){this.nu(qs.rs(ju,"descr"));} else{this.nu("reconnecting");} } ,ph:function(k){if($("engineinfo")){$("engineinfo").style.display='inline';$("engineinfo").innerHTML=k;} } ,nu:function(k){if(this.dh)clearTimeout(this.dh);this.ph(k);this.dh=setTimeout(this.ih.on(this),07640);} ,ih:function(){$("engineinfo").style.display='none';} } );eh=mn.nn();eh.prototype={qn:function(pq){this.pq=pq;this.fh=0;if(this.pq.gh&&this.pq.ah&&this.pq.bh){this.pq.bh.onmousedown=this.ch.on(this);this.pq.bh.onmouseup=this.vh.on(this);this.pq.bh.onmousemove=this.wh.on(this);} } ,ch:function(e){var or=e||event;if(this.pq.bh.setCapture)this.pq.bh.setCapture();this.xh=this.pq.gh.style.pixelHeight||this.pq.gh.clientHeight;this.yh=or.screenY;this.pq.zh=this.pq.gh.style.pixelHeight+this.pq.ah.clientHeight-this.pq.$h;this.fh=1;} ,vh:function(){if(this.fh){if(this.pq.bh.releaseCapture)this.pq.bh.releaseCapture();this.fh=0;} } ,wh:function(e){var or=e||event;if(this.fh){var _h=this.xh-(or.screenY-this.yh);if(_h>this.pq.zh)_h=this.pq.zh;else if(_h