diff --git a/src/messenger/compile_js b/src/messenger/compile_js index 98807c94..d80e1dbe 100755 --- a/src/messenger/compile_js +++ b/src/messenger/compile_js @@ -1,4 +1,5 @@ #!/bin/sh -cd js/ +cd webim/js/source ~/distrib/apache-ant-1.7.0/bin/ant +rm -rf bin diff --git a/src/messenger/webim/js/brws.js b/src/messenger/webim/js/brws.js index 7425aea9..45935939 100644 --- a/src/messenger/webim/js/brws.js +++ b/src/messenger/webim/js/brws.js @@ -1 +1 @@ -var myAgent="";var ik=0;var myRealAgent="";function jk(){var kk=["opera","m\u0073i\145","\u0073af\141\162\u0069","\146ire\u0066\u006f\170","ne\164s\143\141pe","mo\172il\154a"];var ej=navigator.userAgent.toLowerCase();for(var i=0;i");tt.write("\u003c\u0074\u0061\142l\145\040wi\144th\075'1\u00300\045'\040\u0063el\u006csp\u0061\u0063ing='\060' ce\u006c\154p\u0061\144\144\u0069ng='0'\040b\u006fr\144\145\162\075'\u0030'>\u003ct\162\076\u003ctd\u0020\166al\u0069\u0067\156\u003d'to\u0070'\040cl\141\163s='mes\163ag\u0065'\040\151\u0064\075'\u0063\u006f\156\u0074e\156t'\u003e\u003c\u002f\u0074d><\u0061\040\151\u0064\u003d'\u0062o\u0074t\u006f\u006d'/\076");tt.write("":"";} } ,ku:function(ju){var nh=false;var qh=this.pq.yt;var rh=qs.ks(ju,"l\141\u0073\164\151\u0064");if(rh){this.pq.uu=rh;} var sh=qs.ks(ju,"\164\u0079\160\u0069\156g");if(sh){this.yu(sh=='\061');} var th=qs.ks(ju,"c\141n\u0070o\163t");if(th){if(th=='\061'&&!this.wt||this.wt&&th!='\061'){window.location.href=window.location.href;} } for(var i=0;i=0){var iu="\u0075\u0070\u0064ate\u0064";if(this.at>0){var hh=((new Date()).getTime()-this.at)/01750;iu=iu+"\054\u0020"+hh+"\u0020\163\u0065\u0063\u0073";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=$('s\157u\156\u0064\151\155\147');if(jh==null||jh.className.match(new RegExp("\\bisound\\b"))){$s(ut.ht+'/\u0073ou\156ds\u002f\u006ee\167\u005fm\u0065\163\163a\147e\056\u0077av');} } 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=='o\160er\141'))||(k==012))){var lh=this.pq.xt.value;if(myRealAgent=='\u006f\160er\141'){lh=lh.replace(/[\r\n]+$/,'');} this.ou(lh);return false;} return true;} ,lu:function(hq,ju,oh){if(ju&&ju.tagName=='\u0065rr\u006f\162'){this.nu(qs.rs(ju,"d\u0065sc\162"));} else{this.nu("r\145\143on\u006e\145\143ti\156\147");} } ,ph:function(k){if($("e\u006e\u0067\u0069n\u0065i\156\146\u006f")){$("en\u0067\u0069\156\u0065i\u006ef\157").style.display='\151n\154i\156\u0065';$("engi\u006e\u0065\151nf\u006f").innerHTML=k;} } ,nu:function(k){if(this.dh)clearTimeout(this.dh);this.ph(k);this.dh=setTimeout(this.ih.on(this),07640);} ,ih:function(){$("\u0065\u006eg\u0069\156e\151\156f\u006f").style.display='n\157\u006ee';} } );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");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=0310&&hq.status<0454){var iq=hq.responseXML;if(iq&&iq.documentElement)return iq.documentElement;} return null;} ,jq:function(hq){return hq.statusText||"\u0063o\156n\145\143\u0074\u0069\u006fn\040\145rr\u006f\u0072\u0020N"+hq.status;} ,kq:function(){} } ;sq.lq=function(){} ;sq.lq.prototype={oq:function(pq){this.pq={dq:'po\u0073t',eq:true,fq:''} .un(pq||{} );} ,gq:function(){try{return this.aq.status||0;} catch(e){return 0} } ,bq:function(){var status=this.gq();return!status||(status>=0310&&status<(282+18));} ,cq:function(){return!this.bq();} } ;sq.vq=mn.nn();sq.vq.wq=['\u0055\156\u0069\156\151\164\u0069\u0061\u006c\151\172\145\u0064','Load\151\156\147','\u004co\u0061\144\u0065d','Int\145\u0072a\143\164iv\145','\103\157\155p\u006c\145t\u0065'];mn.sn(sq.vq,sq.lq,{qn:function(url,pq){this.aq=sq.tq();this.oq(pq);this.xq={} ;this.yq=false;this.zq(url);} ,zq:function(url){var fq=this.pq.fq||'';if(fq.length>0)fq+='&\u005f\075';try{if(this.pq.dq=='\u0067\145\164'&&fq.length>0)url+='\u003f'+fq;this.aq.open(this.pq.dq.toUpperCase(),url,this.pq.eq);if(this.pq.eq){this.aq.onreadystatechange=this.$q.on(this);if(this.pq.timeout){this.xq=setTimeout(this._q.on(this),this.pq.timeout);} } this.mr();var nr=this.pq.qr?this.pq.qr:fq;this.aq.send(this.pq.dq=='po\163\164'?nr:null);} catch(e){this.rr(e);} } ,mr:function(){var sr=['X\u002d\122\u0065\u0071\165\u0065\163\u0074\u0065\144\055\u0057\151\u0074\150','\u0058\u004dL\u0048\164t\160Requ\u0065s\164'];if(this.pq.dq=='\u0070o\163\u0074'){sr.$n('C\157n\164\145nt\u002dt\u0079p\u0065','\u0061p\u0070\154\151\143\141ti\u006f\156\u002f\u0078\u002d\167ww\u002d\146\157r\u006d\u002d\u0075\162\154\u0065\u006e\u0063\157de\u0064');if(this.aq.overrideMimeType&&(navigator.userAgent.match("/\u0047\u0065cko\/\u0028\d\u007b4\175 )/")||[0,0x7d5])[1]<03725)sr.$n('\u0043\u006f\156nect\u0069\u006f\u006e','\143\154o\u0073e');} if(this.pq.sr)sr.$n.rn(sr,this.pq.sr);for(var i=0;i-1){var yr=token.split('\u0023');var zr=yr[0];var id=yr[1];var element=document.getElementById(id);if(element==null||zr&&element.nodeName.toLowerCase()!=zr){return new Array();} xr=new Array(element);continue;} if(token.indexOf('\056')>-1){var yr=token.split('\u002e');var zr=yr[0];var $r=yr[1];if(!zr){zr='\u002a';} var _r=new Array;var ms=0;for(var h=0;h=0)ys="a\165\u0064i\u006f\u002f\155\u0070\u0065\u0067";} return ys;} function $s(_s){var mt=document.getElementById("\u0070laye\u0072");if(mt){mt.parentNode.removeChild(mt);} mt=document.body.appendChild(document.createElement("d\u0069v"));var zs=navigator.userAgent.toLowerCase();if(zs.indexOf('safar\151')==-1&&zs.indexOf('\167in\u0064ow\163')!=-1){mt.innerHTML='<\145\u006d\u0062ed\040\164y\u0070\u0065\075"'+xs()+'"\u0020\u0073\u0072\u0063\075"'+_s+'"\u0020\154o\157\160\075"0"\040\u0061\u0075t\u006f\u0073tar\164\u003d"\u0031" w\u0069d\164\u0068="0"\040h\145ig\150\164\u003d"\u0030"\076';} else{mt.innerHTML='\u003c\u0064i\166\040\u0073\u0074\u0079\u006ce\u003d"p\u006f\163\u0069\164\u0069on:\u0020st\141ti\143\073\040wid\u0074h\u003a\u00200px; \150\145\151\u0067ht:\u0020\u0030p\170"\u003e\074\145m\u0062\145d t\u0079p\145\075"'+xs()+'" \163rc="'+_s+'" \150idd\145\u006e\u003d"\u0074\162\u0075\u0065"\u0020l\157op\075"\146\141l\u0073\145" \141\u0075to\163t\u0061rt="tr\165\u0065"\076\074/\u0064\u0069\166>';} } \ No newline at end of file +var mn={nn:function(){return function(){this.qn.rn(this,arguments);} ;} ,sn:function(tn,parent,body){Object.un(Object.un(tn.prototype,parent.prototype),body);} } ;Object.un=function(hn,jn){for(kn in jn){hn[kn]=jn[kn];} return hn;} ;Object.prototype.un=function(ln){return Object.un.rn(this,[this,ln]);} ;Function.prototype.on=function(ln){var pn=this;return function(){return pn.rn(ln,arguments);} } ;Function.prototype.dn=function(ln){var pn=this;return function(event){pn.call(ln,event||window.event);} } ;Number.prototype.en=function(){var fn=this.toString((11+5));if(this<(13+3))return'0'+fn;return fn;} ;var gn={an:function(){var returnValue;for(var i=0;i=(161+39)&&hq.status<(247+53)){var iq=hq.responseXML;if(iq&&iq.documentElement)return iq.documentElement;} return null;} ,jq:function(hq){return hq.statusText||"connection error N"+hq.status;} ,kq:function(){} } ;sq.lq=function(){} ;sq.lq.prototype={oq:function(pq){this.pq={dq:'post',eq:true,fq:''} .un(pq||{} );} ,gq:function(){try{return this.aq.status||0;} catch(e){return 0} } ,bq:function(){var status=this.gq();return!status||(status>=0310&&status<0x12c);} ,cq:function(){return!this.bq();} } ;sq.vq=mn.nn();sq.vq.wq=['Uninitialized','Loading','Loaded','Interactive','Complete'];mn.sn(sq.vq,sq.lq,{qn:function(url,pq){this.aq=sq.tq();this.oq(pq);this.xq={} ;this.yq=false;this.zq(url);} ,zq:function(url){var fq=this.pq.fq||'';if(fq.length>0)fq+='&_=';try{if(this.pq.dq=='get'&&fq.length>0)url+='?'+fq;this.aq.open(this.pq.dq.toUpperCase(),url,this.pq.eq);if(this.pq.eq){this.aq.onreadystatechange=this.$q.on(this);if(this.pq.timeout){this.xq=setTimeout(this._q.on(this),this.pq.timeout);} } this.mr();var nr=this.pq.qr?this.pq.qr:fq;this.aq.send(this.pq.dq=='post'?nr:null);} catch(e){this.rr(e);} } ,mr:function(){var sr=['X-Requested-With','XMLHttpRequest'];if(this.pq.dq=='post'){sr.$n('Content-type','application/x-www-form-urlencoded');if(this.aq.overrideMimeType&&(navigator.userAgent.match("/Gecko\/(\d{4} )/")||[0,03725])[1]<(1793+212))sr.$n('Connection','close');} if(this.pq.sr)sr.$n.rn(sr,this.pq.sr);for(var i=0;i-1){var yr=token.split('#');var zr=yr[0];var id=yr[1];var element=document.getElementById(id);if(element==null||zr&&element.nodeName.toLowerCase()!=zr){return new Array();} xr=new Array(element);continue;} if(token.indexOf('.')>-1){var yr=token.split('.');var zr=yr[0];var $r=yr[1];if(!zr){zr='*';} var _r=new Array;var ms=0;for(var h=0;h=0)ys="audio/mpeg";} return ys;} function $s(_s){var mt=document.getElementById("player");if(mt){mt.parentNode.removeChild(mt);} mt=document.body.appendChild(document.createElement("div"));var zs=navigator.userAgent.toLowerCase();if(zs.indexOf('safari')==-1&&zs.indexOf('windows')!=-1){mt.innerHTML='';} else{mt.innerHTML='
';} } \ No newline at end of file diff --git a/src/messenger/webim/js/source/build.xml b/src/messenger/webim/js/source/build.xml index d8556318..4c8af991 100644 --- a/src/messenger/webim/js/source/build.xml +++ b/src/messenger/webim/js/source/build.xml @@ -3,7 +3,7 @@ - + @@ -11,10 +11,10 @@ - + - + diff --git a/src/messenger/webim/js/users.js b/src/messenger/webim/js/users.js index 2f93d8dd..21561f41 100644 --- a/src/messenger/webim/js/users.js +++ b/src/messenger/webim/js/users.js @@ -1 +1 @@ -sq.hi=mn.nn();mn.sn(sq.hi,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=(3663+1337);this.frequency=(this.pq.frequency||2);this.gt={} ;this.$t();} ,ft:function(_t,mu){if(this.pq.lu)this.pq.lu("\157\146f\154\u0069ne\054\u0020r\u0065\143o\156n\145\u0063\164\u0069ng");this.qu();this.ru=setTimeout(this.$t.on(this),(601+399));} ,_q:function(_t){if(this.pq.lu)this.pq.lu("t\u0069\155\u0065\157\u0075t,\u0020re\143\u006f\u006e\u006ee\143\u0074\u0069\156g");this.qu();this.ru=setTimeout(this.$t.on(this),0x3e8);} ,qu:function(){if(this.gt.pq)this.gt.pq.onComplete=undefined;clearTimeout(this.ru);} ,$t:function(){if(this.pq.ii)this.pq.fq=(this.pq.ii)();this.gt=new sq.vq(this.pq.url,this.pq);} ,et:function(eu){try{var ju=sq.uq(eu);if(ju){(this.pq.ku||sq.kq)(ju);} else{if(this.pq.lu)this.pq.lu("\u0072e\u0063\u006f\156n\145c\u0074i\u006e\147");} } catch(e){} this.ru=setTimeout(this.$t.on(this),this.frequency*(997+3));} } );var ji={ki:function(link,title,li,oi,width,height,pi){return'\074\u0061\u0020hr\u0065f\u003d"'+link+'"'+(pi!=null?' \143l\u0061\u0073s="'+pi+'"':'')+'\u0020\164\141\162ge\164\075"\u005f\u0062lan\u006b"\u0020\164\151tl\u0065="'+title+'" o\156\u0063l\151c\153\u003d"\u0074hi\163.\u006ee\u0077\127\151\156\144\157w\040\u003d\u0020w\u0069\156\u0064o\167\u002e\157\u0070\145\156(\''+link+'\', \''+li+'\',\u0020\'to\u006fl\142ar\u003d0,s\143r\u006f\u006c\u006c\u0062\141\u0072s\0750,\u006c\157\u0063a\164\151o\u006e\075\u0030\u002c\163\u0074\u0061t\165\u0073\u003d\061,m\145n\u0075ba\u0072\u003d\060,\167i\144t\u0068\u003d'+width+'\054\u0068\u0065\u0069g\150\164\u003d'+height+'\u002c\162\145s\u0069\u007aab\u006c\u0065=1\');\u0074\150\151s.ne\u0077W\151\u006e\144ow\u002e\u0066\157\143u\u0073\u0028\051;\u0074hi\u0073.\u006eewWi\156\144o\167.\u006f\u0070\145\u006e\145\u0072\075w\u0069\u006ed\u006f\167\u003b\162e\164ur\156 \146\141l\163e\u003b">'+oi+'<\u002f\141\076';} ,di:function(content){return'\u003c\u0074able\u0020\u0063\u006ca\u0073\163\u003d"\151\u006e\u006e\u0065r"\u003e<\164r\u003e'+content+'\074/\164r>\074/t\141b\154e>';} ,ei:function(fi,gi,id,ai,bi,ci,xt,vi){var wi=2;var link=gi+"?\u0074\150\162\u0065ad\u003d"+id;var xi='\u003c\u0074d\076';if(bi||ai){xi+=ji.ki((vi||!ai)?link:link+"&\166\u0069ewo\u006e\154y\u003d\164r\165e",localized[bi?0:1],"Im\103\145\u006e\164\u0065\u0072"+id,fi,(508+132),(312+168),null);} else{xi+='<\141 \150ref="\043"\076'+fi+'<\057a>';} xi+='';xi+=ji.ki(link,localized[0],"\111mCe\u006et\u0065\u0072"+id,'\u003c\151\u006dg\040s\162c\u003d"'+ht+'\057i\155\141\147\u0065s\u002ftb\154i\143\u006cs\u0070\u0065a\153.g\151\u0066" w\151dt\150\u003d"\061\u0035"\u0020\u0068\145\u0069\147ht\u003d"\0615" \142or\u0064\145\162="0"\u0020al\u0074\075"'+localized[0]+'"\u003e',01200,(362+118),null);xi+='\074/td\076';wi++;} if(ai){xi+='\u003ctd c\154a\163\163\u003d"i\u0063\157n">';xi+=ji.ki(link+"\046v\u0069\u0065\167o\156\154y=\u0074\162u\145",localized[1],"\111\u006dCen\164\u0065\u0072"+id,'\u003cim\u0067\040\163r\143\u003d"'+ht+'\057i\155\u0061\147es\057\u0074\u0062\154\u0069\143lre\u0061\u0064.g\u0069\146" \u0077i\u0064th\075"\0615" hei\147h\u0074\u003d"15" \u0062\157\162der="0" a\154\u0074="'+localized[1]+'"\076',0x280,0740,null);xi+='\u003c\u0074\u0072\0760x1e?xt.substring(0,0x1e)+'.\056\u002e':xt;xi+=''+qs.rs(uh,"\u0075se\u0072a\147\u0065\u006e\u0074")+'';if(ci!=null){gj='\u003c\164d>'+qs.rs(uh,"\u0072\145\141\u0073\u006f\156")+'\074/t\u0064>';} if(hj){gj+=ji.yi(id,zi);} gj=ji.di(gj);var aj=ls.os("\164"+tj,this.t);var bj=ls.os("\u0074"+tj+"\145n\144",this.t);if(kj!=null&&(kj.rowIndex<=aj.rowIndex||kj.rowIndex>=bj.rowIndex)){this.t.deleteRow(kj.rowIndex);this.mj[id]=null;kj=null;} if(kj==null){kj=this.t.insertRow(aj.rowIndex+1);kj.className=(ci=="\u0062lo\u0063\u006b\u0065d"&&tj!="\143\150at")?"ba\u006e":"i\u006e"+tj;kj.id="t\u0068\162"+id;this.mj[id]=new Array(dj,fj,tj);ls.insertCell(kj,"\u006e\141me","\u0076\u0069\u0073\u0069\u0074o\u0072",null,null,ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='\143\150\u0061\u0074'));ls.insertCell(kj,"\143on\164i\u0064","\u0076\u0069\163it\u006f\162","\u0063\u0065n\u0074\145r",null,pj);ls.insertCell(kj,"\163tat\145","\166\151si\u0074\157\162","\143\145\u006et\u0065\u0072",null,uj);ls.insertCell(kj,"o\u0070","vi\163\151\164o\u0072","c\145\u006eter",null,ej);ls.insertCell(kj,"\u0074\u0069\155\145","\u0076\u0069\u0073\151\u0074\157\162","c\145\156\u0074\u0065\162",null,this.cj(dj));ls.insertCell(kj,"\167\u0061i\u0074","\u0076i\u0073\u0069\164\u006f\u0072","\143\u0065n\164\u0065\u0072",null,(tj!='\143\u0068at'?this.cj(fj):'\u002d'));ls.insertCell(kj,"\145\164c","\u0076isit\157r","\u0063en\u0074\u0065\u0072",null,gj);if(tj=='\167a\151t'||tj=='p\162\151\157')return true;} else{this.mj[id]=new Array(dj,fj,tj);kj.className=(ci=="\142\154\u006fc\u006bed"&&tj!="\u0063h\u0061t")?"\u0062a\u006e":"\u0069n"+tj;jj(this.t,kj,"\156\u0061m\145",ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='c\150\u0061\u0074'));jj(this.t,kj,"c\157n\u0074\151\144",pj);jj(this.t,kj,"s\u0074at\145",uj);jj(this.t,kj,"op",ej);jj(this.t,kj,"t\u0069\u006d\u0065",this.cj(dj));jj(this.t,kj,"\167\u0061i\164",(tj!='\143\150\141\u0074'?this.cj(fj):'\055'));jj(this.t,kj,"et\u0063",gj);} return false;} ,vj:function(){function wj(t,id){var aj=$(id);var bj=$(id+"\u0065\156\u0064");if(aj==null||bj==null){return false;} return aj.rowIndex+1=0x3c){var nk=Math.floor(_j/0x3c);_j=_j%074;if(_j<012)_j="0"+_j;mk=nk+"\u003a";} return mk+_j+"\u003a"+$j;} ,qk:function(){for(var i in this.mj){if(this.mj[i]!=null){var value=this.mj[i];var kj=ls.os("t\u0068r"+i,this.t);if(kj!=null){function jj(ds,kj,id,lj){var ws=ls.fs(id,kj,ds);if(ws)ws.innerHTML=lj;} jj(this.t,kj,"\u0074\u0069\u006d\145",this.cj(value[0]));jj(this.t,kj,"\167a\u0069\164",(value[2]!='c\150a\164'?this.cj(value[1]):'\055'));} } } } ,ku:function(rk){var sk=false;if(rk.tagName=='\u0074h\162\145a\144s'){var tk=qs.ks(rk,"\164ime");var uk=qs.ks(rk,"r\145v\151si\157n");if(tk)this.nj=(new Date()).getTime()-tk;if(uk)this.pq._i=uk;for(var i=0;i'+oi+'
';} ,di:function(content){return''+content+'
';} ,ei:function(fi,gi,id,ai,bi,ci,xt,vi){var wi=2;var link=gi+"?thread="+id;var xi='';if(bi||ai){xi+=ji.ki((vi||!ai)?link:link+"&viewonly=true",localized[bi?0:1],"ImCenter"+id,fi,(475+165),0740,null);} else{xi+=''+fi+'';} xi+='';if(bi){xi+='';xi+=ji.ki(link,localized[0],"ImCenter"+id,''+localized[0]+'',(471+169),0x1e0,null);xi+='';wi++;} if(ai){xi+='';xi+=ji.ki(link+"&viewonly=true",localized[1],"ImCenter"+id,''+localized[1]+'',(520+120),(382+98),null);xi+='';wi++;} if(xt!=""){xi+='';xi+=xt.length>0x1e?xt.substring(0,(28+2))+'...':xt;xi+='';} return ji.di(xi);} ,yi:function(id,zi){return''+ji.ki(ht+'/operator/ban.php?'+(zi?'id='+zi:'thread='+id),localized[2],"ban"+id,''+localized[2]+'',(534+186),0x1e0,null)+'';} } ;sq.$i=mn.nn();mn.sn(sq.$i,sq.lq,{qn:function(pq){this.oq(pq);this.pq.ii=this.ii.on(this);this.pq.lu=this.lu.on(this);this.pq.ku=this.ku.on(this);this.pq._i=0;this.mj=new Object();this.nj=0;this.t=this.pq.qj;this.rj=new sq.hi(this.pq);} ,ii:function(){return"company="+this.pq.company+"&since="+this.pq._i;} ,nu:function(pu){this.pq.status.innerHTML=pu;} ,lu:function(s){this.nu(s);} ,sj:function(uh){var id,tj,uj,ai=false,bi=false,hj=false,ci=null,zi=null;for(var i=0;i';if(ci!=null){gj=''+qs.rs(uh,"reason")+'';} if(hj){gj+=ji.yi(id,zi);} gj=ji.di(gj);var aj=ls.os("t"+tj,this.t);var bj=ls.os("t"+tj+"end",this.t);if(kj!=null&&(kj.rowIndex<=aj.rowIndex||kj.rowIndex>=bj.rowIndex)){this.t.deleteRow(kj.rowIndex);this.mj[id]=null;kj=null;} if(kj==null){kj=this.t.insertRow(aj.rowIndex+1);kj.className=(ci=="blocked"&&tj!="chat")?"ban":"in"+tj;kj.id="thr"+id;this.mj[id]=new Array(dj,fj,tj);ls.insertCell(kj,"name","visitor",null,null,ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='chat'));ls.insertCell(kj,"contid","visitor","center",null,pj);ls.insertCell(kj,"state","visitor","center",null,uj);ls.insertCell(kj,"op","visitor","center",null,ej);ls.insertCell(kj,"time","visitor","center",null,this.cj(dj));ls.insertCell(kj,"wait","visitor","center",null,(tj!='chat'?this.cj(fj):'-'));ls.insertCell(kj,"etc","visitor","center",null,gj);if(tj=='wait'||tj=='prio')return true;} else{this.mj[id]=new Array(dj,fj,tj);kj.className=(ci=="blocked"&&tj!="chat")?"ban":"in"+tj;jj(this.t,kj,"name",ji.ei(oj,this.pq.agentservl,id,ai,bi,ci,xt,tj!='chat'));jj(this.t,kj,"contid",pj);jj(this.t,kj,"state",uj);jj(this.t,kj,"op",ej);jj(this.t,kj,"time",this.cj(dj));jj(this.t,kj,"wait",(tj!='chat'?this.cj(fj):'-'));jj(this.t,kj,"etc",gj);} return false;} ,vj:function(){function wj(t,id){var aj=$(id);var bj=$(id+"end");if(aj==null||bj==null){return false;} return aj.rowIndex+1=0x3c){var nk=Math.floor(_j/(40+20));_j=_j%(40+20);if(_j<012)_j="0"+_j;mk=nk+":";} return mk+_j+":"+$j;} ,qk:function(){for(var i in this.mj){if(this.mj[i]!=null){var value=this.mj[i];var kj=ls.os("thr"+i,this.t);if(kj!=null){function jj(ds,kj,id,lj){var ws=ls.fs(id,kj,ds);if(ws)ws.innerHTML=lj;} jj(this.t,kj,"time",this.cj(value[0]));jj(this.t,kj,"wait",(value[2]!='chat'?this.cj(value[1]):'-'));} } } } ,ku:function(rk){var sk=false;if(rk.tagName=='threads'){var tk=qs.ks(rk,"time");var uk=qs.ks(rk,"revision");if(tk)this.nj=(new Date()).getTime()-tk;if(uk)this.pq._i=uk;for(var i=0;i - - + + - +