﻿(function(){var _z9={};_z9._c5=false;(function(){var _x2=window.navigator.userAgent;var _Q6=_x2.toLowerCase();var _H5=document.compatMode=="CSS1Compat";var _g7=_Q6.indexOf("opera")>-1;var _N7=(/webkit|khtml/).test(_Q6);var _G5=_N7&&_Q6.indexOf("safari");var _W4=_G5&&_Q6.indexOf("webkit/5")!=-1;var _q3=_N7&&_Q6.indexOf("chrome")!=-1;var _V4=!_g7&&_Q6.indexOf("msie")>-1;var _o1=!_g7&&_Q6.indexOf("msie 6")>-1;var _p1=!_g7&&_Q6.indexOf("msie 7")>-1;var _q1=!_g7&&_Q6.indexOf("msie 8")>-1;var _Y6=!_N7&&_Q6.indexOf("gecko")>-1;var _35=_Q6.indexOf("firefox/2")>-1;var _45=_Q6.indexOf("firefox/3")>-1;var _n1=_V4&&!_H5;var _91=(_Q6.indexOf("windows")!=-1||_Q6.indexOf("win32")!=-1);var _N=(_Q6.indexOf("macintosh")!=-1||_Q6.indexOf("mac os x")!=-1);var _M=(_Q6.indexOf("adobeair")!=-1);var _f=(_Q6.indexOf("linux")!=-1);var _u=window.location.href.toLowerCase().indexOf("https")===0;var _65=function(_o6){switch(_o6.toLowerCase()){case"IE".toLowerCase():return _V4;case"Not IE".toLowerCase():return !_V4;case"IE6".toLowerCase():return _o1;case"Not IE6".toLowerCase():return !_o1;case"IE7".toLowerCase():return _p1;case"Not IE7".toLowerCase():return !_p1;case"IE8".toLowerCase():return _q1;case"Not IE8".toLowerCase():return !_q1;case"Mozilla".toLowerCase():return _Y6;case"Not Mozilla".toLowerCase():return !_Y6;case"Firefox2".toLowerCase():return _35;case"Not Firefox2".toLowerCase():return !_35;case"Firefox3".toLowerCase():return _45;case"Not Firefox3".toLowerCase():return !_45;case"WebKit".toLowerCase():return _N7;case"Not WebKit".toLowerCase():return !_N7;case"Safari".toLowerCase():return _G5;case"Not Safari".toLowerCase():return !_G5;case"Safari3".toLowerCase():return _W4;case"Not Safari3".toLowerCase():return !_W4;case"Chrome".toLowerCase():return _q3;case"Not Chrome".toLowerCase():return !_q3;case"Opera".toLowerCase():return _g7;case"Not Opera".toLowerCase():return !_g7;case"Strict Mode".toLowerCase():return _H5;case"Quirks Mode".toLowerCase():return !_H5;default:return false}};var _l4=this;var _1A=function(_X9,_t1){if(typeof (_l4[_X9])=="undefined"||_l4[_X9]["intelli.box"]==true){_l4[_X9]=_t1}};var _i5=({}).constructor;if(!({} instanceof _i5)){_i5=this.Object}var _23=(false).constructor;if(!(_i5(false) instanceof _23)){_23=this.Boolean}var _T2=(0).constructor;if(!(_i5(0) instanceof _T2)){_T2=this.Number}var _X2=("").constructor;if(!(_i5("") instanceof _X2)){_X2=this.String}var _e3=([]).constructor;if(!([] instanceof _e3)){_e3=this.Array}var _m3=(function(){}).constructor;if(!((function(){}) instanceof _m3)){_m3=this.Function}var _V2=(/RegExp/).constructor;if(!(/RegExp/ instanceof _V2)){_V2=this.RegExp}var _B=this.Date;var _L9=this.Error;var _C1=this.Math;var _Q5={userAgent:_x2,isStrict:_H5,isOpera:_g7,isWebKit:_N7,isSafari:_G5,isSafari3:_W4,isChrome:_q3,isIE:_V4,isIE6:_o1,isIE7:_p1,isIE8:_q1,isMozilla:_Y6,isFirefox2:_35,isFirefox3:_45,isBorderBox:_n1,isWindows:_91,isMac:_N,isAir:_M,isLinux:_f,isSecure:_u,getAppRoot:function(){return _p7.getAppRoot()},libraryReady:function(){return _p7.libraryReady()},disposingStarted:function(){return _p7.disposingStarted()},loadScript:function(src){return _s8._L3(src)},loadScriptOnce:function(src){return _s8._37(src)},loadStyle:function(src){return _s8._m2(src)},loadStyleOnce:function(src){return _s8._37(src)}};var _F1={isRelative:function(path){return _F5(path)},isAbsolute:function(path){return _28(path)},tidy:function(path){return _66(path)},merge:function(path1,path2){return _A9(path1,path2)},diff:function(path1,path2){return _i6(path1,path2)}};var _G7=function(){this._s9=[]};_G7.prototype={_s9:null,attach:function(handler){if(typeof (handler)=="function"){for(var i=0;i<this._s9.length;i++){if(this._s9[i]===handler){return }}this._s9.push(handler)}else{throw new _L9("The handler to attach into event must be a function object.")}},detach:function(handler){if(typeof (handler)=="function"){for(var i=0;i<this._s9.length;i++){if(this._s9[i]===handler){this._s9.splice(i,1)}}}else{throw new _L9("The handler to detach from event must be a function object.")}},fire:function(){var _X8;for(var i=0;i<this._s9.length;i++){var h=this._s9[i];if(typeof (h)=="function"){_X8=h.apply(null,arguments)}}return _X8},invoke:function(args){if(typeof (args)=="undefined"){args=[]}if(args instanceof _e3){var _X8;for(var i=0;i<this._s9.length;i++){var h=this._s9[i];if(typeof (h)=="function"){_X8=h.apply(null,args)}}return _X8}else{throw new _L9("The args should be an array.")}},call:function(instance){var _32=[];if(arguments.length>1){for(var i=1;i<arguments.length;i++){_32.push(arguments[i])}}var _X8;for(var i=0;i<this._s9.length;i++){var h=this._s9[i];if(typeof (h)=="function"){_X8=h.apply(instance,_32)}}return _X8},apply:function(instance,args){if(typeof (args)=="undefined"){args=[]}if(args instanceof _e3){var _X8;for(var i=0;i<this._s9.length;i++){var h=this._s9[i];if(typeof (h)=="function"){_X8=h.apply(instance,args)}}return _X8}else{throw new _L9("The args should be an array.")}},getHandlerCount:function(){return this._s9.length},clear:function(){this._s9.length=0}};_G7.prototype.constructor=_G7;var _B8=function(){this._w7=[];if(arguments.length>0){this.append.apply(this,arguments)}};_B8.prototype={_w7:null,_q4:0,append:function(value){for(var i=0;i<arguments.length;i++){var s=arguments[i];if(typeof (s)!="string"){s=""+arguments[i]}this._w7.push(s);this._q4+=s.length}},prepend:function(value){for(var i=arguments.length-1;i>=0;i--){var s=arguments[i];if(typeof (s)!="string"){s=""+arguments[i]}this._w7.unshift(s);this._q4+=s.length}},clear:function(){this._w7.length=0;this._q4=0},getLength:function(){return this._q4},_r1:function(){if(this._w7.length>1){var s=this._w7.join("");this._w7.length=0;if(s.length>0){this._w7[0]=s}this._q4=s.length;return s}else{if(this._w7.length==1){return this._w7[0]}else{return""}}},toString:function(){return this._r1()}};_B8.prototype.constructor=_B8;var _B5=function(instance,method,args){if(typeof (method)=="function"){var _C3=[];for(var i=2;i<arguments.length;i++){_C3.push(arguments[i])}var _W3=function(){var _z2=[];for(var i=0;i<_C3.length;i++){_z2.push(_C3[i])}for(var i=0;i<arguments.length;i++){_z2.push(arguments[i])}return method.apply(instance,_z2)};_W3.delegated=true;_W3.toString=function(){return"/*delegated*/ "+method.toString()};return _W3}else{throw new _L9("Method function is required for delegate.")}};_B5.toString=function(){return"[delegate operator]"};var _m5=function(){var _s9=[];for(var i=0;i<arguments.length;i++){var _d3=arguments[i];if(typeof (_d3)=="function"){_s9.push(_d3)}}var _M4=function(){var _X8;for(var i=0;i<_s9.length;i++){var h=_s9[i];if(typeof (h)=="function"){_X8=h.apply(this,arguments)}}return _X8};_M4.eventcast=true;_M4.toString=function(){var _02="/*eventcast*/ function() {\n";_02+="var result;\n";for(var i=0;i<_s9.length;i++){var h=_s9[i];_02+="result = ("+h.toString()+").apply(this, arguments);\n"}_02+="return result;\n";_02+="}";return _02};_M4.attach=function(handler){if(typeof (handler)=="function"){for(var i=0;i<_s9.length;i++){if(_s9[i]==handler){return }}_s9.push(handler)}else{throw new _L9("The event handler attached into delegate must be a function object.")}};_M4.detach=function(handler){if(typeof (handler)=="function"){for(var i=0;i<_s9.length;i++){if(_s9[i]==handler){_s9.splice(i,1)}}}else{throw new _L9("The event handler detached from delegate must be a function object.")}};_M4.getHandlerCount=function(){return _s9.length};_M4.clear=function(){_s9.length=0};return _M4};_m5.toString=function(){return"[operator eventcast]"};var _a4=function(url){return _A9(_B2,url)};_a4.toString=function(){return"[operator mappath]"};var _X3=function(){for(var i=0;i<arguments.length;i++){var _3A=arguments[i];if(_3A!=null){var _X6=_3A[""];if(typeof (_X6)=="function"){if(!_X6.inited){_X6.inited=true;_X6.call(_3A)}}}}};_X3.toString=function(){return"[operator init]"};var _28=function(_Y9){return _Y9.indexOf("://")>0||_Y9.indexOf(":\\")>0||_Y9.indexOf("\\\\")==0};var _F5=function(_Y9){return _Y9.indexOf("://")<0&&_Y9.indexOf(":\\")<0&&_Y9.indexOf("\\\\")!=0&&_Y9.indexOf("/")!=0&&_Y9.indexOf("\\")!=0&&_Y9.indexOf("$/")!=0&&_Y9.indexOf("$\\")!=0};var _z=function(_Y9){var _F=_Y9.substr(0,2);if(_F=="$/"||_F=="$\\"){var _4=_p7.path;if(typeof (_4)=="string"){return _4+_Y9.substr(2)}else{throw new _L9("Can not determine the path represented by '"+_F+"'.")}}else{return _Y9}};var _A7=function(_Y9){var i=_C1.max(_Y9.lastIndexOf("/"),_Y9.lastIndexOf("\\"));if(i<0){return""}else{var d=_Y9.substr(0,i+1);if(d.length>3&&d.indexOf("://")==(d.length-3)){return _Y9+"/"}else{if(d.length>2&&d.indexOf(":\\")==(d.length-2)){return _Y9+"\\"}else{if(d=="\\\\"){return _Y9+"\\"}else{return d}}}}};var _63=function(_Q4){var d=_Q4;if(d.length>0){if(d=="/"||d=="\\"){return true}else{if(d.indexOf(":\\")==(d.length-2)){return true}else{var p=d.substr(0,d.length-1);var i=_C1.max(p.lastIndexOf("/"),p.lastIndexOf("\\"));var r=p.substr(0,i+1);if(r.length>3&&r.indexOf("://")==(r.length-3)){return true}else{if(r.length>2&&r.indexOf(":\\")==(r.length-2)){return true}else{if(r=="\\\\"){return true}else{return false}}}}}}else{return false}};var _n3=function(_Q4){var d=_A7(_Q4);if(d.length==0){return"../"}else{if(d.length>=3&&(d.substr(d.length-3)=="../"||d.substr(d.length-3)=="..\\")){return d+".."+d.charAt(d.length-1)}else{if(_63(d)){throw new _L9("Can not get the upper level directory since the given directory has reached the root directory.")}else{if(d.length>3&&d.lastIndexOf("../")==(d.length-3)){return d+"../"}else{if(d.length>3&&d.lastIndexOf("..\\")==(d.length-3)){return d+"..\\"}else{var p=d.substr(0,d.length-1);return _A7(p)}}}}}};var _v3=function(_E7){if(typeof (_E7)=="string"){var _S7={protocol:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:""};var s=_E7;var p=s.indexOf("://");if(p>=0){_S7.protocol=s.substr(0,p+1);s=s.substr(p+3);p=s.indexOf("/");if(p>=0){_S7.host=s.substr(0,p);s=s.substr(p)}else{_S7.host=s;s=""}p=_S7.host.indexOf(":");if(p>=0){_S7.hostname=_S7.host.substr(0,p);_S7.port=_S7.host.substr(p+1)}else{_S7.hostname=_S7.host}}if(s.length>0){p=s.indexOf("#");if(p>=0){_S7.hash=s.substr(p);s=s.substr(0,p)}if(s.length>0){p=s.indexOf("?");if(p>=0){_S7.search=s.substr(p);s=s.substr(0,p)}_S7.pathname=s}}return _S7}else{throw new _L9("A string of HTTP host URL is required.")}};var _66=function(_Y9){_Y9=_Y9.replace(/\\/g,"/");var _67=_Y9.split("/");var _u4=[];var _u5=_67.pop();while(_u5!=null){if(_u5=="."){}else{if(_u5==".."){_u4.unshift(_u5)}else{if(_u5==""){_u4.unshift(_u5)}else{if(_u4[0]==".."){_u4.shift()}else{_u4.unshift(_u5)}}}}_u5=_67.pop()}return _u4.join("/")};var _A9=function(_z7,_S8){_z7=_66(_z7);_S8=_66(_S8);if(_F5(_S8)){var _u5=_A7(_z7);var _Y9=_S8;while(_Y9.indexOf("../")==0||_Y9.indexOf("..\\")==0){_u5=_n3(_u5);_Y9=_Y9.substr(3)}return _u5+_Y9}else{if(_28(_S8)){return _S8}else{if(_S8.charAt(0)=="/"){var _E7=_v3(_z7);if(_E7.host.length>0){return _E7.protocol+"//"+_E7.host+_S8}else{return _S8}}else{return _z(_S8)}}}};var _i6=function(_z7,_K7){_z7=_66(_z7);_K7=_66(_K7);var _3=_v3(_z7);var _9=_v3(_K7);if(_3.protocol.toLowerCase()==_9.protocol.toLowerCase()&&_3.host.toLowerCase()==_9.host.toLowerCase()){var p=-1;var i=0;while(i<_z7.length&&i<_K7.length){if(_z7.charAt(i).toLowerCase()!=_K7.charAt(i).toLowerCase()){break}if(_z7.charAt(i)=="\\"||_z7.charAt(i)=="/"){p=i}i++}if(i==0){return _K7}if(i==_z7.length&&i==_K7.length){return""}var _8=[];while(i<_z7.length){if(_z7.charAt(i)=="\\"||_z7.charAt(i)=="/"){_8.push(".."+_z7.charAt(i))}i++}return _8.join("")+_K7.substr(p+1)}else{return _K7}};var _l6=function(_Y9){if(typeof (_l4["JsBox$configuration$source_host"])=="string"&&typeof (_l4["JsBox$configuration$destination_host"])=="string"){var _O8=JsBox$configuration$source_host;var _O5=JsBox$configuration$destination_host;if(_O8!=null&&_O5!=null&&_O8!=_O5){return _Y9.replace(_O8,_O5)}else{return _Y9}}else{return _Y9}};var _s8={};_s8._c3=function(element,name,listener){if(element!=null){if(_V4){element.attachEvent("on"+name,listener)}else{element.addEventListener(name,listener,false)}}else{throw new _L9("The element to add event listener onto is required.")}};_s8._s2=function(element,name,listener){if(element!=null){if(_V4){element.detachEvent("on"+name,listener)}else{element.removeEventListener(name,listener,false)}}else{throw new _L9("The element to remove event listener from is required.")}};_s8._l1=function(){return document.getElementsByTagName("head")[0]};_s8._m2=function(_h5){var _e8=document.createElement("link");_e8.rel="stylesheet";_e8.type="text/css";_e8.setAttribute("box","style");_e8.href=_h5;_s8._l1().appendChild(_e8)};_s8._12=function(_h5){var _v=document.getElementsByTagName("link");for(var i=0;i<_v.length;i++){var _e8=_v[i];if(_e8.type=="text/css"&&_e8.href.toLowerCase()==_h5.toLowerCase()){return true}}return false};_s8._S1=function(_h5){if(!_s8._12(_h5)){_s8._m2(_h5)}};_s8._L3=function(_p4){var _j5=document.createElement("script");_j5.type="text/javascript";_j5.setAttribute("box","script");_j5.src=_p4;_s8._l1().appendChild(_j5)};_s8._82=function(_p4){var _x1=document.getElementsByTagName("script");for(var i=0;i<_x1.length;i++){var _j5=_x1[i];if(_j5.src.toLowerCase()==_p4.toLowerCase()){return true}}return false};_s8._37=function(_p4){if(!_s8._82(_p4)){_s8._L3(_p4)}};_s8._53=false;_s8._i=(function(){var _38=null;var _f4=0;var _H8=function(){if(!_s8._53){_s8._53=true;document.contentReady=true;if(_f4!=0){clearInterval(_f4)}if(_Y6||_g7){document.removeEventListener("DOMContentLoaded",_H8,false)}_s8._s2(window,"load",_H8);if(_38!=null){for(var i=0;i<_38.length;i++){if(typeof (_38[i])=="function"){_38[i].call()}}_38=null}}};if(document.contentReady===true||document.readyState=="complete"){setTimeout(_H8,0)}else{if(_Y6||_g7){document.addEventListener("DOMContentLoaded",_H8,false)}else{if(_V4){_f4=setInterval(function(){try{document.documentElement.doScroll("left");_H8()}catch(err){}},20)}else{if(_N7){_f4=setInterval(function(){if(document.readyState=="complete"){_H8()}},10)}}}_s8._c3(window,"load",_H8)}return function(listener){if(_38==null){_38=[]}_38.push(listener)}})();var _29=function(){this._e4=[];this._l5=[]};_29.prototype={_e4:null,_l5:null,_Y5:function(_o6){for(var i=0;i<this._e4.length;i++){if(_o6.toLowerCase()==this._e4[i].toLowerCase()){return true}}for(var i=0;i<this._l5.length;i++){if(this._l5[i].call(null,_o6)){return true}}return false}};var _t4=["toString","toLocaleString","valueOf"];var _83=function(_t1){var _B1=[];for(var _X9 in _t1){_B1.push(_X9)}for(var i=0;i<_t4.length;i++){var _X9=_t4[i];if(_t1.hasOwnProperty(_X9)&&!_t1.propertyIsEnumerable(_X9)){_B1.push(_X9)}}return _B1};var _o8="\0";var _V8={};var _s6=new _29();var _B2="";var _L2="/";var _M2=false;var _y2=null;var _m1=function(){if(!_M2){if(typeof (JsBox$configuration$root_path)=="string"){_L2=JsBox$configuration$root_path}}_M2=true;return _L2};var _J6=false;var _f6=[];var _w6=false;var _v7=[];var _z5=function(handler){if(!_w6){if(typeof (handler)=="function"){_v7.push(handler)}else{throw new _L9("A function object is required as the readiness handler.")}}else{throw new _L9("Can not register any more readiness handlers since all the loaded modules have been ready.")}};var _F8=[];var _r7=false;var _D8=[];var _W6=function(handler){if(!_r7){if(typeof (handler)=="function"){_D8.push(handler)}else{throw new _L9("A function object is required as the disposing handler.")}}else{throw new _L9("Can not register any more disposing handlers since the disposing has already started.")}};var _O7=[];var _J2={};var _c6=[];var _81=function(_V9){for(var i=0;i<_c6.length;i++){if(_c6[i]==_V9){return true}}return false};var _46=function(_3A){return _3A===_i5||_3A===_23||_3A===_T2||_3A===_X2||_3A===_e3||_3A===_m3||_3A===_B||_3A===_V2||_3A===_L9||_3A===_C1};var _r3=function(_3A){return _3A[_o8]=="N"};var _R1=function(_3A){return _46(_3A)||_3A[_o8]=="T"};var _n4=function(_V9,_71){var _r2=false;if(_V9.substr(_V9.length-2)==".*"){_V9=_V9.substr(0,_V9.length-2);_r2=true}var _3A=_V8[_V9];if(_3A!=null){if(_r3(_3A)){var _w=_83(_3A);for(var i=0;i<_w.length;i++){var _X9=_w[i];var _f2=_3A[_X9];if(_R1(_f2)){_71[_X9]=_f2}if(_r2){if(_r3(_f2)){_71[_X9]=_f2}}}}else{if(_R1(_3A)){var _Y9=_V9.split(".");var _X9=_Y9[_Y9.length-1];_71[_X9]=_3A}else{throw new _L9("Invalid identifier '"+_V9+"', namespace or type should be used here.")}}}else{throw new _L9("Can not find the type or namespace with fullname '"+_V9+"' to use.")}};var _t6=function(){for(var i=0;i<_c6.length;i++){_n4(_c6[i],_J2)}};var _p7={getVersion:function(){return 0.6},conditionSymbol:function(){for(var i=0;i<arguments.length;i++){var _d3=arguments[i];if(typeof (_d3)=="string"){_s6._e4.push(_d3)}else{throw new _L9("The condition symbol to add must be a string.")}}},conditionDetector:function(){for(var i=0;i<arguments.length;i++){var _d3=arguments[i];if(typeof (_d3)=="function"){_s6._l5.push(_d3)}else{throw new _L9("The condition detector to add must be a function.")}}},addResource:function(culture,resource){},loadCulture:function(culture){},canReflect:function(){return false},path:null,base:function(url){_B2=_i6(window.location.href,url)},getAppRoot:function(){if(_y2==null){_y2=_A9(window.location.pathname,_m1())}return _y2},require:function(module_url){},use:function(fullname){if(!_81(fullname)){_c6.push(fullname);if(_z9._c5){_n4(fullname,_J2)}}},start:function(){if(!_z9._c4){var _W3=_z9._I4;if(typeof (_W3)=="function"){_z9._c4=true;_W3()}}},scope:null,modulesLoaded:function(){return _J6},onInit:function(handler){if(!_J6){if(typeof (handler)=="function"){_f6.push(handler)}else{throw new _L9("A function object is required as the JsBox onInit handler.")}}else{throw new _L9("Can not register any more onInit handlers since all the JsBox modules have already been loaded.")}},libraryReady:function(){return _w6},onReady:function(handler){if(!_w6){if(typeof (handler)=="function"){_F8.push(handler)}else{throw new _L9("A function object is required as the JsBox onReady handler.")}}else{throw new _L9("Can not register any more onReady handlers since JsBox has been ready.")}},disposingStarted:function(){return _r7},onDispose:function(handler){if(!_r7){if(typeof (handler)=="function"){_O7.push(handler)}else{throw new _L9("A function object is required as the JsBox onDispose handler.")}}else{throw new _L9("Can not register any more onDispose handlers since JsBox diposing has already started.")}}};_z9._Q5=_Q5;_z9._F1=_F1;_z9._G7=_G7;_z9._B8=_B8;_z9._1A=_1A;_z9._29=_29;_z9._U6=null;_z9._R7=function(_o6){return _s6._Y5(_o6)||_z9._U6._Y5(_o6)||_65(_o6)};_z9._B5=_B5;_z9._m5=_m5;_z9._a4=_a4;_z9._X3=_X3;_z9._28=_28;_z9._A9=_A9;_z9._i6=_i6;_z9._l6=_l6;_z9._s8=_s8;_z9._z5=_z5;_z9._W6=_W6;_z9._Q9=function(_V9,_3A){if(_3A==null){_3A={}}_3A[_o8]="N";_V8[_V9]=_3A;return _3A};_z9._E9=function(_V9,_3A){if(_3A==null){_3A=function(){}}if(!_46(_3A)){_3A[_o8]="T"}_V8[_V9]=_3A;return _3A};_z9._w9=function(_V9,_3A){if(_3A==null){_3A=function(){if(_z9._c5){var _B4=_3A.prototype[""];if(_B4!=null){_B4.apply(this,arguments)}}}}else{if(typeof (_3A)=="function"){if(!_46(_3A)){_3A.prototype[""]=_3A}}}if(!_46(_3A)){_3A[_o8]="T"}_V8[_V9]=_3A;return _3A};_z9._v9=function(_V9,_3A){if(_3A==null){_3A=function(){throw new _L9("Can not instantiate static class.")}}if(!_46(_3A)){_3A[_o8]="T"}_V8[_V9]=_3A;return _3A};_z9._Q1=function(_V9,_3A){if(_3A==null){_3A=function(){throw new _L9("Can not instantiate interface.")}}_3A[_o8]="T";_V8[_V9]=_3A;return _3A};_z9._c4=false;_z9._F8=_F8;_z9._p7=_p7;_z9._J2=_J2;_z9._t6=_t6;_z9._R3=function(){_J6=true;for(var i=0;i<_f6.length;i++){_p7.scope=_J2;_f6[i]();_p7.scope=null}};_z9._f3=function(){_w6=true;for(var i=0;i<_F8.length;i++){_p7.scope=_J2;_F8[i]();_p7.scope=null}for(var i=0;i<_v7.length;i++){_v7[i]()}};_z9._L4=function(){_r7=true;for(var i=0;i<_O7.length;i++){_p7.scope=_J2;_O7[i]();_p7.scope=null}for(var i=0;i<_D8.length;i++){_D8[i]()}}})();var delegate=_z9._B5;_z9._1A("delegate",delegate);var eventcast=_z9._m5;_z9._1A("eventcast",eventcast);var mappath=_z9._a4;_z9._1A("mappath",mappath);var init=_z9._X3;_z9._1A("init",init);var readyhandler=_z9._z5;_z9._1A("readyhandler",readyhandler);var disposehandler=_z9._W6;_z9._1A("disposehandler",disposehandler);var JsBox=_z9._p7;_z9._1A("JsBox",JsBox);var my=_z9._J2;_z9._1A("my",my);if(_z9._28(JsBox.getAppRoot())){_z9._n6=JsBox.getAppRoot()+"LinkTalk2HostSite/LinkTalk-Client/UI/ChatBarx/ui.html"}else{_z9._n6=_z9._i6("/"+_z9._i6(JsBox.getAppRoot(),window.location.pathname),"/LinkTalk2HostSite/LinkTalk-Client/UI/ChatBarx/ui.html")}JsBox.path=_z9._A9(_z9._n6,"../../JsBox/");_z9._P5=function(){var global={};global.variant=_z9._E9("variant",function(value){return value});_z9._1A("variant",global.variant);global.bool=_z9._E9("bool",function(value){return Boolean(value)});_z9._1A("bool",global.bool);global.number=_z9._E9("number",function(value){return Number(value)});_z9._1A("number",global.number);global.string=_z9._E9("string",function(value){return String(value)});_z9._1A("string",global.string);global.Void=_z9._E9("Void",function(){return void (null)});_z9._1A("Void",global.Void);global.Object=_z9._w9("Object",Object);_z9._1A("Object",global.Object);global.Boolean=_z9._w9("Boolean",Boolean);_z9._1A("Boolean",global.Boolean);global.Number=_z9._w9("Number",Number);_z9._1A("Number",global.Number);global.String=_z9._w9("String",String);_z9._1A("String",global.String);global.Array=_z9._w9("Array",Array);_z9._1A("Array",global.Array);global.Function=_z9._w9("Function",Function);_z9._1A("Function",global.Function);global.Date=_z9._w9("Date",Date);_z9._1A("Date",global.Date);global.RegExp=_z9._w9("RegExp",RegExp);_z9._1A("RegExp",global.RegExp);global.Error=_z9._w9("Error",Error);_z9._1A("Error",global.Error);global.Math=_z9._v9("Math",Math);_z9._1A("Math",global.Math);global.system=_z9._Q9("system");_z9._1A("system",global.system);global.system.Environment=_z9._v9("system.Environment",_z9._Q5);global.system.Path=_z9._v9("system.Path",_z9._F1);global.system.EventCast=_z9._w9("system.EventCast",_z9._G7);global.system.StringBuffer=_z9._w9("system.StringBuffer",_z9._B8);global.linktalk=_z9._Q9("linktalk");_z9._1A("linktalk",global.linktalk);global.linktalk.common=_z9._Q9("linktalk.common");global.linktalk.dhtml=_z9._Q9("linktalk.dhtml");global.linktalk.dhtml.Event=_z9._v9("linktalk.dhtml.Event");global.gemui=_z9._Q9("gemui");_z9._1A("gemui",global.gemui);global.gemui.chatbars=_z9._Q9("gemui.chatbars");global.gemui.chatbars.dhtml=_z9._Q9("gemui.chatbars.dhtml");global.gemui.chatbars.dhtml.Dom=_z9._v9("gemui.chatbars.dhtml.Dom");global.gemui.chatbars.ui=_z9._Q9("gemui.chatbars.ui");global.gemui.chatbars.ui._i8=_z9._w9("gemui.chatbars.ui._ToolTip");global.gemui.chatbars.ui.Panel=_z9._w9("gemui.chatbars.ui.Panel");global.gemui.chatbars.ui._5A=_z9._w9("gemui.chatbars.ui._ChatPanel");global.gemui.chatbars.ui.Dialog=_z9._w9("gemui.chatbars.ui.Dialog");global.gemui.chatbars.ui.DialogEventCast=_z9._w9("gemui.chatbars.ui.DialogEventCast");global.gemui.chatbars.ui.OptionEventCast=_z9._w9("gemui.chatbars.ui.OptionEventCast");global.gemui.chatbars.ui.ChatBar=_z9._v9("gemui.chatbars.ui.ChatBar");global.gemui.chatbars.ui.GroupDialog=_z9._w9("gemui.chatbars.ui.GroupDialog");global.linktalk.common.Host=_z9._v9("linktalk.common.Host");global.linktalk.common.Time=_z9._v9("linktalk.common.Time");global.linktalk.common.Text=_z9._v9("linktalk.common.Text");global.linktalk.common.Config=_z9._v9("linktalk.common.Config");global.linktalk.common.Resource=_z9._v9("linktalk.common.Resource");global.linktalk.common.CookieStorage=_z9._v9("linktalk.common.CookieStorage");global.linktalk.common.ProgramVersion=_z9._w9("linktalk.common.ProgramVersion");global.linktalk.common.FlashAvailableEventCast=_z9._w9("linktalk.common.FlashAvailableEventCast");global.linktalk.common.Flash=_z9._v9("linktalk.common.Flash");_z9._n9=null;with(global){_z9._U6=new _z9._29();_z9._n9={};_z9._n9.mappath=function(url){return _z9._A9(_z9._l6(_z9._A9(_z9._n6,"../../JsBox/modules/linktalk.common.box.js")),url)};_z9._n9.Environment=system.Environment;_z9._n9.Path=system.Path;_z9._n9.EventCast=system.EventCast;_z9._n9.StringBuffer=system.StringBuffer;with(_z9._n9){with(linktalk){with(common){with({base:Object}){Host.getContainerElement=function(){var _G=Config.get("containerId",null);return _G==null?document.body:document.getElementById(_G)}}with({base:Object}){Time.regularFormat=function(date,millisecond){if(date instanceof Date){var hh=date.getHours().toString();while(hh.length<2){hh="0"+hh}var mm=date.getMinutes().toString();while(mm.length<2){mm="0"+mm}var ss=date.getSeconds().toString();while(ss.length<2){ss="0"+ss}if(millisecond){var ms=date.getMilliseconds().toString();while(ms.length<3){ms="0"+ms}return hh+":"+mm+":"+ss+"."+ms}else{return hh+":"+mm+":"+ss}}else{throw new Error("A Date object is required to get regular time string.")}}}with({base:Object}){Text.process=function(format){if(format!=null&&format.indexOf("{")>=0){var _32=arguments;return format.replace(/\{.+?\}/g,function(_P7){var _d=_P7.substr(1,_P7.length-2);if(_d.substr(0,4).toLowerCase()=="res:"){var _2=_d.substr(4);var _F9=Resource.get(_2);return typeof (_F9)=="undefined"?_P7:_F9}else{try{var _k2=parseInt(_d)+1;return _k2<arguments.length?_32[_k2]:_P7}catch(_0){return _P7}}})}else{return format}};Text.trim=function(str){return str.replace(/^\s+|\s+$/g,"")}}with({base:Object}){Config._62="linktalk$";Config.get=function(name,value,res){var _F9=window[Config._62+name];var _F9=typeof (_F9)=="undefined"?value:_F9;if(res&&typeof (_F9)=="string"){_F9=Text.process(_F9)}return _F9}}with({base:Object}){Resource._11=undefined;Resource[""]=function(){Resource._11=Config.get("resource")};Resource.get=function(key,value){var _F9=Resource._11[key];return typeof (_F9)=="undefined"?value:_F9}}with({base:Object}){CookieStorage._J7="@";CookieStorage.isAvailable=function(){return navigator.cookieEnabled};CookieStorage.get=function(name){if(navigator.cookieEnabled){var _B6=document.cookie;if(_B6.length>0){var _J7=CookieStorage._J7;var _X9=_J7+escape(name);var _n=_B6.indexOf(_X9+"=");if(_n>=0){var _F9="";_B6=_B6.substr(_n+_X9.length+1);var _J=_B6.indexOf(";");if(_J>=0){_F9=_B6.substr(0,_J)}else{_F9=_B6}return unescape(_F9)}else{return null}}else{return null}}else{return null}};CookieStorage.set=function(name,value,duration){if(navigator.cookieEnabled){var _J7=CookieStorage._J7;var _X9=_J7+escape(name);var _F9=escape(value);var _k3=60*60*24*666;if(duration!=null){_k3=Math.round(duration)}document.cookie=_X9+"="+_F9+"; path=/; max-age="+_k3+"; expires="+new Date(new Date().getTime()+_k3*1000).toUTCString()}};CookieStorage.drop=function(name){if(navigator.cookieEnabled){var _J7=CookieStorage._J7;var _X9=_J7+escape(name);document.cookie=_X9+"=; path=/; max-age=0; expires="+new Date(0).toUTCString()}}}with({base:Object}){ProgramVersion.prototype[""]=function(major,minor,rev,build,release){if(arguments.length>=1){if(arguments[0] instanceof Array){var vs=arguments[0];this._47=vs[0]!=null?parseInt(vs[0]):0;if(vs.length>=2){this._57=vs[1]!=null?parseInt(vs[1]):0}if(vs.length>=3){if(vs[2]!=null){var n=parseInt(vs[2]);if(isNaN(n)){this._h8=String(vs[2])}else{this._75=n}}}if(vs.length>=4){if(vs[3]!=null){var n=parseInt(vs[3]);if(isNaN(n)){this._h8=String(vs[3])}else{this._07=n}}}if(vs.length>=5){if(vs[4]!=null){this._h8=String(vs[5])}}if(arguments[1]!=null){this._h8=String(arguments[1])}}else{this._47=parseInt(major);if(arguments.length>=2){this._57=parseInt(minor)}if(arguments.length>=3){if(typeof (arguments[2])=="string"){this._h8=arguments[2]}else{if(rev!=null){this._75=parseInt(rev)}}}if(arguments.length>=4){if(typeof (arguments[3])=="string"){this._h8=arguments[3]}else{if(build!=null){this._07=parseInt(build)}}}if(arguments.length>=5){if(release!=null){this._h8=String(release)}}}}if(this._47<0){throw new Error("The major version number can not be negative.")}if(this._57<0){throw new Error("The minor version number can not be negative.")}};ProgramVersion.prototype._47=0;ProgramVersion.prototype.getMajor=function(){return this._47};ProgramVersion.prototype._57=0;ProgramVersion.prototype.getMinor=function(){return this._57};ProgramVersion.prototype._75=-1;ProgramVersion.prototype.getRevision=function(){return this._75};ProgramVersion.prototype._07=-1;ProgramVersion.prototype.getBuild=function(){return this._07};ProgramVersion.prototype._h8=null;ProgramVersion.prototype.getRelease=function(){return this._h8};ProgramVersion.prototype.isEmpty=function(){return this._47==0&&this._57==0&&this._75<=0&&this._07<=0&&(this._h8==null||this._h8.length==0)};ProgramVersion.prototype.atLeast=function(version){if(this._47!=version._47){return this._47>version._47}else{if(this._57!=version._57){return this._57>version._57}else{if(this._75!=version._75){return this._75>version._75}else{if(this._07!=version._07){return this._07>=version._07}}}}};ProgramVersion.prototype.toString=function(){var s=this._47+"."+this._57;if(this._75>=0){s+="."+this._75}if(this._07>=0){s+="."+this._07}if(this._h8!=null&&this._h8.length>0){s+=" "+this._h8}return s}}with({base:system.EventCast}){FlashAvailableEventCast.prototype=new system.EventCast();FlashAvailableEventCast.prototype.attach=function(handler){base.prototype.attach.call(this,handler)};FlashAvailableEventCast.prototype.detach=function(handler){base.prototype.detach.call(this,handler)};FlashAvailableEventCast.prototype.fire=function(available){base.prototype.fire.call(this,available)}}with({base:Object}){Flash[""]=function(){Flash.callback={};Flash.onAvailable=new FlashAvailableEventCast();Flash._d4=Flash.supportVersion(8)&&!Config.get("disable_flash",false);Flash._G2=mappath("../../Flash/connector.swf");Flash.registerCallback("handleFlashAvailable",function(){setTimeout(function(){Flash._S6=true;Flash._x4=true;Flash.onAvailable.fire(true)},0)})};Flash._L6=null;Flash.getPlayerVersion=function(){if(Flash._L6==null){var v=new ProgramVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){v=new ProgramVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var n=3;while(axo){try{n++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n);v=new ProgramVersion([n,0,0])}catch(e){axo=null}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");v=new ProgramVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(v.getMajor()==6){return v}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){v=new ProgramVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}}Flash._L6=v}return Flash._L6};Flash.supportVersion=function(major,minor,rev){var v=Flash.getPlayerVersion();if(arguments.length>0){return v.atLeast(new ProgramVersion([major,minor,rev]))}else{return !v.isEmpty()}};Flash._d4=false;Flash.isSupported=function(){return Flash._d4};Flash._G2=null;Flash._r=null;Flash._R5=null;Flash._d1=false;Flash._e2=function(_39,_j){var _31='<object id="{$id$}" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="800" ><param name="movie" value="{$src$}" /><param name="wmode" value="transparent" /><param name="quality" value="low" /><param name="menu" value="false" /><param name="allowScriptAccess" value="always" /><embed name="{$id$}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="600" height="800" src="{$src$}" wmode="transparent" quality="low" menu="false" allowScriptAccess="always" /></object>';var ua=Config.get("client_user_agent",window.navigator.userAgent).toLowerCase();if(ua.indexOf("maxthon")>=0||ua.indexOf("theworld")>=0||ua.indexOf("360se")>=0||ua.indexOf("tencenttraveler")>=0){var _T=(new Date()).getTime();_j=_j+"?stamp="+_T}var _j2=_31.replace(/\{\$id\$\}/g,_39).replace(/\{\$src\$\}/g,_j);return _j2};Flash._64=function(_39){if(Environment.isIE){return window[_39]}else{return document[_39]}};Flash._g3=function(){Flash._x4=false;var _h2=Host.getContainerElement();var _k8=document.createElement("div");_h2.insertBefore(_k8,_h2.firstChild);_k8.innerHTML=Flash._e2("go$flash_object",Flash._G2);if(window.location.search.indexOf("flash!")<0){_k8.style.overflow="hidden";_k8.style.width="1px";_k8.style.height="1px";_k8.style.left="0px";_k8.style.top="0px";_k8.style.border="none";_k8.style.background="Transparent";_k8.style.position="absolute";_k8.style.zIndex=30000}Flash._r=_k8;Flash._R5=Flash._64("go$flash_object");_k8=null;setTimeout(function(){if(!Flash._x4){Flash._S6=false;Flash._x4=true;Flash.onAvailable.fire(false)}},3000)};Flash._x4=false;Flash._S6=false;Flash.isAvailable=function(){return Flash._S6};Flash.onAvailable=undefined;Flash.callAfterAvailable=function(callback){if(callback==null){throw new Error("Callback function is required.")}if(Flash._d4){if(!Flash._d1){Flash._g3();Flash._d1=true}if(!Flash._x4){Flash.onAvailable.attach(callback)}else{callback(Flash._S6)}}else{callback(false)}};Flash.getInterfaceObject=function(){return Flash._R5};Flash.playSound=function(url){if(Flash._S6){try{return Flash._R5.playSound(url)}catch(err){return false}}else{return false}};Flash.callback=undefined;Flash.throwFlashError=function(message){setTimeout(function(){throw new Error("[Flash] "+message)},0)};Flash.registerCallback=function(name,func){if(typeof (name)!="string"){throw new Error("The name of the Falsh callback must be a string.")}if(typeof (func)!="function"){throw new Error("A function is required to be registered as a Flash callback.")}Flash.callback[name]=function(){try{return{success:true,value:func.apply(null,arguments)}}catch(err){return{success:false,error:{name:err.name,message:err.message}}}}}}}}}_z9._U6=new _z9._29();_z9._n9={};_z9._n9.mappath=function(url){return _z9._A9(_z9._l6(_z9._A9(_z9._n6,"../../JsBox/modules/linktalk.dhtml.Event.box.js")),url)};_z9._n9.Environment=system.Environment;_z9._n9.Path=system.Path;_z9._n9.EventCast=system.EventCast;_z9._n9.StringBuffer=system.StringBuffer;with(_z9._n9){with(linktalk){with(dhtml){with({base:Object}){Event.addListener=function(element,name,listener){if(element!=null){if(Environment.isIE){element.attachEvent("on"+name,listener)}else{element.addEventListener(name,listener,false)}}else{throw new Error("The element to add event listener onto is required.")}};Event.removeListener=function(element,name,listener){if(element!=null){if(Environment.isIE){element.detachEvent("on"+name,listener)}else{element.removeEventListener(name,listener,false)}}else{throw new Error("The element to remove event listener from is required.")}};Event.preventDefault=function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}return e};Event.stopPropagation=function(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}};Event.stopEvent=function(e){Event.stopPropagation(e);Event.preventDefault(e)}}}}}_z9._U6=new _z9._29();_z9._n9={};_z9._n9.mappath=function(url){return _z9._A9(_z9._l6(_z9._A9(_z9._n6,"modules/gemui.chatbars.dhtml.box.js")),url)};_z9._n9.Environment=system.Environment;_z9._n9.Path=system.Path;_z9._n9.EventCast=system.EventCast;_z9._n9.StringBuffer=system.StringBuffer;with(_z9._n9){with(gemui){with(chatbars){with(dhtml){with({base:Object}){Dom[""]=function(){Dom._t5={}};Dom._t5=undefined;Dom.hasClass=function(el,className){return className&&(" "+el.className+" ").indexOf(" "+className+" ")!=-1};Dom.addClass=function(el,className){if(className instanceof Array){for(var i=0,_B7=className.length;i<_B7;i++){Dom.addClass(el,className[i])}}else{if(className&&!Dom.hasClass(el,className)){if(el.className==""){el.className=className}else{el.className=el.className+" "+className}}}};Dom.removeClass=function(el,className){if(!className||!el.className){return }if(className instanceof Array){for(var i=0,_B7=className.length;i<_B7;i++){Dom.removeClass(el,className[i])}}else{if(Dom.hasClass(el,className)){var re=Dom._t5[className];if(!re){re=new RegExp("(?:^|\\s+)"+className+"(?:\\s+|$)","g");Dom._t5[className]=re}className=el.className.replace(re," ");var _B7=className.length;if(className.charAt(--_B7)==" "){className=className.substring(0,_B7)}if(_B7>0&&className.charAt(0)==" "){className=className.substring(1,++_B7)}el.className=className}}};Dom.replaceClass=function(el,oldClassName,newClassName){Dom.removeClass(el,oldClassName);Dom.addClass(el,newClassName)};if(_z9._R7("IE")){Dom.getStyle=function(el,prop){var v,cs;if(prop=="opacity"){var _b2=100;try{_b2=el.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(e){try{_b2=el.filters("alpha").opacity}catch(e){}}return _b2/100}else{if(prop=="float"){prop="styleFloat"}}if(v=el.style[prop]){return v}if(cs=el.currentStyle){return cs[prop]}return null}}if(_z9._R7("Not IE")){Dom.getStyle=function(el,prop){var v,cs;if(prop=="float"){prop="cssFloat"}if(v=el.style[prop]){return v}var _q=el.ownerDocument||document;if(cs=_q.defaultView.getComputedStyle(el,"")){return cs[prop]}return null}}Dom.getStyleValue=function(el,prop){var _b2=0,v;v=Dom.getStyle(el,prop);if(v){v=parseInt(v,10);if(v){_b2+=v}}return _b2}}}}}}_z9._U6=new _z9._29();_z9._n9={};_z9._n9.mappath=function(url){return _z9._A9(_z9._l6(_z9._A9(_z9._n6,"modules/gemui.chatbars.ui.box.js")),url)};_z9._n9.Environment=system.Environment;_z9._n9.Path=system.Path;_z9._n9.EventCast=system.EventCast;_z9._n9.StringBuffer=system.StringBuffer;_z9._n9.Host=linktalk.common.Host;_z9._n9.Time=linktalk.common.Time;_z9._n9.Text=linktalk.common.Text;_z9._n9.Config=linktalk.common.Config;_z9._n9.Resource=linktalk.common.Resource;_z9._n9.CookieStorage=linktalk.common.CookieStorage;_z9._n9.ProgramVersion=linktalk.common.ProgramVersion;_z9._n9.FlashAvailableEventCast=linktalk.common.FlashAvailableEventCast;_z9._n9.Flash=linktalk.common.Flash;_z9._n9.Event=linktalk.dhtml.Event;_z9._n9.Dom=gemui.chatbars.dhtml.Dom;with(_z9._n9){with(gemui){with(chatbars){with(ui){with({base:system.EventCast}){DialogEventCast.prototype=new system.EventCast();DialogEventCast.prototype.attach=function(handler){base.prototype.attach.call(this,handler)};DialogEventCast.prototype.detach=function(handler){base.prototype.detach.call(this,handler)};DialogEventCast.prototype.fire=function(dialog){base.prototype.fire.call(this,dialog)}}with({base:system.EventCast}){OptionEventCast.prototype=new system.EventCast();OptionEventCast.prototype.attach=function(handler){base.prototype.attach.call(this,handler)};OptionEventCast.prototype.detach=function(handler){base.prototype.detach.call(this,handler)};OptionEventCast.prototype.fire=function(checked){base.prototype.fire.call(this,checked)}}with({base:Object}){ChatBar._K3=undefined;ChatBar._z3=undefined;ChatBar._89=undefined;ChatBar._B3=0.6;ChatBar._D7=undefined;ChatBar._a9=undefined;ChatBar._U7=0;ChatBar._W7=0;ChatBar._U8=undefined;ChatBar._r4=380;ChatBar._O6=456;ChatBar._v8=undefined;ChatBar._V7=undefined;ChatBar._N5=undefined;ChatBar._E6=undefined;ChatBar._x6=undefined;ChatBar._e6=undefined;ChatBar._a7=undefined;ChatBar._a5=false;ChatBar._Z3=true;ChatBar._A6=true;ChatBar._q7=true;ChatBar._p8=true;ChatBar[""]=function(){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}if(Environment.isIE6||(!Environment.isStrict&&Environment.isIE)){ChatBar._l9=false;var _1=document.body,_e1=_1.currentStyle,_D=["fi","xed"].join("");if(_e1.backgroundAttachment!=_D){var _E7="/images/linktalk/private/placeholder.gif";var _5=document.documentElement;if(_5.currentStyle.backgroundImage=="none"){var _Z="url("+_E7+")",_N2=_5.runtimeStyle;if(Environment.isStrict){var _b1=_e1.backgroundImage;if(_b1=="none"||_e1.margin=="0px"){_N2.backgroundColor=_e1.backgroundColor;_N2.backgroundPositionX=_e1.backgroundPositionX;_N2.backgroundPositionY=_e1.backgroundPositionY;_N2.backgroundRepeat=_e1.backgroundRepeat;_N2.backgroundImage=_b1=="none"?_Z:_b1;_N2.backgroundAttachment=_D}}else{_N2.backgroundImage=_Z;_N2.backgroundAttachment=_D}}}}else{ChatBar._l9=true}ChatBar._K3=Config.get("chatbar_margin_left",16);ChatBar._z3=Config.get("chatbar_margin_right",16);ChatBar._E6=Config.get("disable_iframe",false);var _a2=Config.get("chatbar_transparency");if(_a2>0&&_a2<1){ChatBar._B3=1-_a2}ChatBar._D7=Config.get("chatbar_transparency_mode",0);ChatBar._x6=Config.get("chatbar_transparent",true);ChatBar._e6=Config.get("chatbar_auto_hide",true);var _89=Config.get("chatbar_width","auto");if(_89=="auto"){ChatBar._a7=true}else{if(!(_89>0)){_89=0}ChatBar._a7=false}ChatBar._89=_89;ChatBar._a9=Config.get("chatbar_menu_enabled",false);ChatBar._U7=Config.get("chatbar_menu_width");ChatBar._U8=Config.get("chatbar_link_enabled",false);ChatBar._B9={};ChatBar._19={};ChatBar._x9=[];ChatBar._l7=[];ChatBar._v8="/images/linktalk/no_avatar.gif";ChatBar._V7="/images/linktalk/group_no_avatar.gif";ChatBar._N5="/images/linktalk/icon_notice.gif";ChatBar._N8={};ChatBar.onDialogOpen=new DialogEventCast();ChatBar.onDialogClose=new DialogEventCast();ChatBar.onDialogExpand=new DialogEventCast();ChatBar.onDialogCollapse=new DialogEventCast();ChatBar.onMessageSend=new DialogEventCast();ChatBar.onHistoryClear=new DialogEventCast();ChatBar.onTyping=new DialogEventCast();ChatBar.onTransparentChange=new OptionEventCast();ChatBar.onAutoHideChange=new OptionEventCast();ChatBar.onAutoExpandChange=new OptionEventCast();ChatBar.onAutoWidthChange=new OptionEventCast();ChatBar.onBlinkChange=new OptionEventCast();ChatBar.onPlaySoundChange=new OptionEventCast();ChatBar.onKeepDialogChange=new OptionEventCast();ChatBar.onKeepBuddyListChange=new OptionEventCast();ChatBar.onOnline=new EventCast();ChatBar.onOffline=new EventCast();ChatBar.onReconnect=new EventCast();ChatBar.onBlockChange=new DialogEventCast();ChatBar._22=document.createElement("div");ChatBar._X3()};ChatBar._q2=false;ChatBar.isReady=function(){return ChatBar._q2};ChatBar._v4=undefined;ChatBar.callAfterReady=function(callback){if(ChatBar._q2){callback()}else{ChatBar._v4=callback}};ChatBar.onDialogOpen=null;ChatBar.onDialogClose=null;ChatBar.onDialogExpand=null;ChatBar.onDialogCollapse=null;ChatBar.onMessageSend=null;ChatBar.onHistoryClear=null;ChatBar.onTyping=null;ChatBar.onTransparentChange=null;ChatBar.onAutoHideChange=null;ChatBar.onAutoWidthChange=null;ChatBar.onAutoExpandChange=null;ChatBar.onBlinkChange=null;ChatBar.onPlaySoundChange=null;ChatBar.onKeepDialogChange=null;ChatBar.onKeepBuddyListChange=null;ChatBar.onOnline=null;ChatBar.onOffline=null;ChatBar.onReconnect=null;ChatBar.onBlockChange=null;ChatBar._l9=false;ChatBar._22=undefined;ChatBar._T9=undefined;ChatBar._h4=undefined;ChatBar._T6=undefined;ChatBar._03=undefined;ChatBar.settingPanel=null;ChatBar.reminderPanel=null;ChatBar.buddyListPanel=null;ChatBar.groupPanel=null;ChatBar._b9=null;ChatBar._j9=null;ChatBar._a6=undefined;ChatBar._F4=undefined;ChatBar._b6=undefined;ChatBar._J9=undefined;ChatBar._Z9=0;ChatBar._79=undefined;ChatBar._u7=0;ChatBar._94=undefined;ChatBar._f7=undefined;ChatBar._z8=undefined;ChatBar._k6=true;ChatBar._98=false;ChatBar._Z8=undefined;ChatBar._B9=undefined;ChatBar._19=undefined;ChatBar._D6=undefined;ChatBar._x9=undefined;ChatBar._y9=undefined;ChatBar._R6=-1;ChatBar._M7=undefined;ChatBar._n7=undefined;ChatBar._08=undefined;ChatBar._C8=undefined;ChatBar._X7=undefined;ChatBar._A5=undefined;ChatBar._g8=undefined;ChatBar._N6=undefined;ChatBar._A3=false;ChatBar._U3=true;ChatBar._F7=false;ChatBar._78=undefined;ChatBar._h6=undefined;ChatBar._Z5=undefined;ChatBar._M3=undefined;ChatBar._D4=undefined;ChatBar._55=undefined;ChatBar._J5=undefined;ChatBar._l7=undefined;ChatBar._b7=null;ChatBar._N8=undefined;ChatBar._58=0;ChatBar._d6=undefined;ChatBar._q8=undefined;ChatBar._I8=function(e){if(!e){e=window.event}Event.stopPropagation(e)};ChatBar._S9=function(_t9){_t9.onmouseover=function(){Dom.addClass(this,"lt_hover")};_t9.onmouseout=function(){Dom.removeClass(this,"lt_hover")};_t9=null};if(_z9._R7("IE")){ChatBar._n8=function(_t9,_J1){_t9.innerText=_J1}}if(_z9._R7("Not IE")){ChatBar._n8=function(_t9,_J1){_t9.textContent=_J1}}ChatBar._u6=function(_j2){var _t9=ChatBar._22;_t9.innerHTML=_j2;return Environment.isIE?_t9.innerText:_t9.textContent};ChatBar._g6=function(_t9){var _c8=Dom.getStyleValue;var _09=_c8(_t9,"width");if(_09>0){_09+=_c8(_t9,"borderLeftWidth")+_c8(_t9,"borderRightWidth")+_c8(_t9,"paddingLeft")+_c8(_t9,"paddingRight");_t9.style.width=_09+"px"}};ChatBar._z6=function(_t9){var _c8=Dom.getStyleValue;var _m9=_c8(_t9,"height");if(_m9>0){_m9+=_c8(_t9,"borderTopWidth")+_c8(_t9,"borderBottomWidth")+_c8(_t9,"paddingTop")+_c8(_t9,"paddingBottom");_t9.style.height=_m9+"px"}};ChatBar._4A=function(_k,_59,_U4,_99){var _t9=document.createElement(_k);if(_59){_t9.className=_59}if(_U4||_U4===0){_t9.innerHTML=_U4}if(_99){_99.appendChild(_t9)}return _t9};ChatBar._36=function(_39,_O,_99){var _4A=ChatBar._4A;var _88=_4A("div","lt_checkOption",null,_99);var _95=document.createElement("input");_95.id=_39;_95.type="checkbox";_88.appendChild(_95);_4A("label",null,_O,_88).htmlFor=_39;return _95};ChatBar._I3=function(_99,_m){var _G8=document.createElement("iframe");_G8.setAttribute("frameBorder",0);_G8.setAttribute("scrolling","no");if(Environment.isMozilla){_G8.src="javascript:void(0)"}var _K5=_G8.style;_K5.position="absolute";_K5.left=_K5.top=_K5.margin=_K5.padding=_K5.border=0;if(ChatBar._l9||_m){_K5.width=_K5.height="100%"}else{_K5.width=_K5.height=0}_K5.zIndex=-1;_99.appendChild(_G8);return _G8};ChatBar._k4=function(_P4){var m=(_P4.getMonth()+1).toString();if(m.length<2){m="0"+m}var d=_P4.getDate().toString();if(d.length<2){d="0"+d}return m+"-"+d+" "+Time.regularFormat(_P4)};ChatBar._X3=function(){if(ChatBar._T9){return }var _T9=ChatBar._T9=document.createElement("div");_T9.id="linktalk_wrap";_T9.style.display="none";var _4A=ChatBar._4A;var _b8=document.createDocumentFragment();var _i9=ChatBar._h4=_4A("div","lt_toolbar"),_J8;if(ChatBar._l9){_T9.style.position="fixed";_T9.style.right=_T9.style.bottom=0;_T9.style.width="100%";document.body.appendChild(_T9);_i9.style.position="absolute";_b8.appendChild(_i9);_J8=_i9}else{_T9.runtimeStyle.position="absolute";_T9.style.left=_T9.style.top=0;document.body.appendChild(_T9);var _b3,_X4;if(Environment.isStrict){_b3="document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight";_X4="document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth";if(_T9.offsetParent==document.body){_b3+="-this.offsetParent.offsetTop-this.offsetParent.clientTop";_X4+="-this.offsetParent.offsetLeft-this.offsetParent.clientLeft"}}else{_b3="document.body.scrollTop+document.body.clientHeight-this.offsetHeight";_X4="document.body.scrollLeft+document.body.clientWidth-this.offsetWidth"}_T9.style.setExpression("top",_b3);_T9.style.setExpression("left",_X4);_i9.style.position="relative";_i9.style.bottom=0;_i9.style.width="100%";var _13=ChatBar._d2=_4A("div",null,null,_b8);_13.style.position="absolute";_13.appendChild(_i9);_J8=_13}if(!ChatBar._E6){var _G8=ChatBar._I3(_i9,true);if(Environment.isIE){_G8.style.filter="alpha(opacity=0)"}}var _a1=_4A("div","lt_barBack",null,Environment.isOpera?_4A("div",null,null,_i9):_i9);ChatBar._T6=_4A("div",null,null,_a1);if(Environment.isIE){ChatBar._T6.style.background="url(images/private/placeholder.gif)"}ChatBar._03=_4A("div","lt_barBg",null,_a1);var _Z7;var _X5=Config.get("chatbar_logo_url","../images/logo.gif");var _I5=Config.get("chatbar_logo_text"),_y5;if(_X5=="none"){if(!_I5){_I5="<strong>LinkTalk</strong>"}_y5="div"}else{var _93=document.createElement("img");_93.src=_X5;_93.style.visibility="hidden";var _Y3=_4A("div","lt_logo");_Y3.appendChild(_93);_Y3.style.background="url("+_X5+") no-repeat center";_y5="span"}if(_I5){var _n5=_4A(_y5,"lt_label lt_logoLabel",Text.process(_I5))}if(ChatBar._a9){var _O9=ChatBar.leftPanel=new Panel._C("lt_leftPanel",_i9,false,false,true);_Z7=_O9._u9,_x5=_O9._x7;_Z7.className+=" lt_leftTab";if(Environment.isIE7&&Environment.isStrict){var _v6=_O9._21;_v6.style.width="1px";_O9._Q8.attach(function(){var _09=_x5.clientWidth-Dom.getStyleValue(_v6,"marginLeft")-Dom.getStyleValue(_v6,"marginRight");_v6.style.width=_09>0?(_09+"px"):0})}if(_Y3){_x5.appendChild(_Y3)}if(_n5){_x5.appendChild(_n5)}}else{_Z7=_4A("div","lt_barLeft",null,_i9);if(ChatBar._D7==1){_Z7.className+=" lt_itemBg"}if(_Y3){_Z7.appendChild(_Y3)}if(_n5){_Z7.appendChild(_n5)}}var _w4=Config.get("\x73\x68\x6f\x77\x5f\x63\x6f\x70\x79\x72\x69\x67\x68\x74",true);if(_w4){var _51=["\uFEFF\u5FEB\u6377\u83DC\u5355"];var _s1=new _i8(_Z7,_51.join(""),null,_Z7,function(){if(!ChatBar._a9||!_O9._h9){var _z4=this._Z1.style;_z4.backgroundPosition="left top";_z4.right="auto";_z4.left="5px";this._T9.style.left=_Z7.offsetWidth/2-8+"px";this._i7()}})}if(ChatBar._U8){var _a6=ChatBar._a6=_4A("div","lt_linksWrap",null,_i9)}var _f9=ChatBar.settingPanel=new Panel._C("lt_settingPanel",_i9);var _p9=ChatBar.reminderPanel=new Panel._C("lt_reminderPanel",_i9);var _d9=ChatBar.groupPanel=new Panel._C("lt_groupPanel",_i9);var _o9=ChatBar.buddyListPanel=new Panel._C("lt_buddyListPanel",_i9);var _I1=_f9._u9,_52=_p9._u9,_V=_o9._u9,_X=_d9._u9;_I1.className+=" lt_settingTab";_52.className+=" lt_reminderTab";_V.className+=" lt_buddyListTab";_X.className+=" lt_groupTab";var _V5=_4A("div","lt_label",Resource.get("online_friends","\u5728\u7EBF\u597D\u53CB")+"(",_o9._x7);ChatBar._79=_4A("span","lt_labelCount","0",_V5);_V5.appendChild(document.createTextNode(")"));var _J3=Resource.get("groups","\u7FA4\u7EC4");_V5=_4A("div","lt_label",_J3+"(",_d9._x7);ChatBar._94=_4A("span","lt_labelCount","0",_V5);_V5.appendChild(document.createTextNode(")"));var _b7=ChatBar._b7=new _i8(_f9._t9,(ChatBar._z1=Resource.get("settings","\u8BBE\u7F6E")),"lt_settingTip",_I1,function(){if(!_f9._h9){this._i7()}});ChatBar._l7.push(_b7);var _w1=Resource.get("notifications","\u63D0\u9192");var _x3=new _i8(_p9._t9,_w1,"lt_reminderTip",_52,function(){if(!_p9._h9){this._i7()}});ChatBar._l7.push(_x3);_p9._M8=ChatBar._s7(_52,"lt_reminderArrow");ChatBar._A8=Resource.get("minimize","\u6700\u5C0F\u5316");var _r9=_f9._r9;var _f5=_4A("div","lt_header",null,_r9);_4A("span","lt_mini",null,_f5).title=ChatBar._A8;_4A("span","lt_title",ChatBar._z1,_f5);var _R9=_4A("div","lt_body",null,_r9);var _m8=_4A("div","lt_optionsBlock",null,_R9);var _18=ChatBar._36;var _M7=ChatBar._M7=_18("linktalk_opacityOption",Resource.get("option_transparent","\u804A\u5929\u5DE5\u5177\u6761\u80CC\u666F\u534A\u900F\u660E"),_m8);var _n7=ChatBar._n7=_18("linktalk_autoHideOption",Resource.get("option_auto_hide","\u804A\u5929\u5DE5\u5177\u6761\u4E0D\u6D3B\u52A8\u65F6\u81EA\u52A8\u9690\u85CF"),_m8);var _08=ChatBar._08=_18("linktalk_autoWidthOption",Resource.get("option_auto_width","\u804A\u5929\u5DE5\u5177\u6761\u5BBD\u5EA6\u81EA\u9002\u5E94"),_m8);var _C8=ChatBar._C8=_18("linktalk_autoExpandOption",Resource.get("option_auto_expand","\u6536\u5230\u65B0\u6D88\u606F\u65F6\u81EA\u52A8\u5C55\u5F00\u804A\u5929\u6846"),_m8);var _X7=ChatBar._X7=_18("linktalk_blinkOption",Resource.get("option_blink_title","\u6536\u5230\u65B0\u6D88\u606F\u65F6\u6807\u9898\u680F\u95EA\u52A8"),_m8);var _05=ChatBar._A5=_18("linktalk_soundOption",Resource.get("option_play_sound","\u6536\u5230\u65B0\u6D88\u606F\u65F6\u64AD\u653E\u63D0\u793A\u97F3"),_m8);var _g8=ChatBar._g8=_18("linktalk_keepDialogOption",Resource.get("option_keep_dialog_open","\u4FDD\u6301\u6D3B\u52A8\u804A\u5929\u6846\u59CB\u7EC8\u5C55\u5F00"),_m8);var _C6=ChatBar._N6=_18("linktalk_keepListOption",Resource.get("option_keep_list_open","\u4FDD\u6301\u597D\u53CB\u5217\u8868\u59CB\u7EC8\u5C55\u5F00"),_m8);var _14=_4A("div","lt_statusBlock",null,_R9);ChatBar._78=_4A("span","lt_status",(ChatBar._X1=Resource.get("current_status","\u60A8\u5904\u4E8E\u5728\u7EBF\u72B6\u6001")),_14);var _26=ChatBar._h6=_4A("span","lt_statusToggle",(ChatBar._T3=Resource.get("toggle_status",'\u6211\u8981"\u79BB\u7EBF"')),_14);ChatBar._W2=Resource.get("current_status_alt","\u60A8\u5904\u4E8E\u79BB\u7EBF\u72B6\u6001");ChatBar._g4=Resource.get("toogle_status_alt",'\u6211\u8981"\u5728\u7EBF"');_r9=_o9._r9;var _L7=_4A("div","lt_header",null,_r9);_4A("span","lt_mini",null,_L7).title=ChatBar._A8;var _e9=ChatBar._D4=_4A("a","lt_avatarLink",null,_L7);_e9.href="#";var _I9=ChatBar._M3=_4A("img","lt_avatar");ChatBar._Z5=_I9.src=ChatBar._v8;_e9.appendChild(_I9);var _K9=ChatBar._55=_4A("a",null,"&nbsp;",_4A("div","lt_headerName",null,_L7));_K9.href="#";_K9.title=_e9.title=Resource.get("my_avatar_tip","\u67E5\u770B\u6211\u7684\u4E3B\u9875");_R9=_4A("div","lt_body",null,_r9);var _T4=_4A("div","lt_infoBlock",null,_R9);var _J5=ChatBar._J5=_4A("div","lt_signature",null,_T4);_J5.style.wordWrap="break-word";ChatBar._b6=_4A("div","lt_listEmptyBlock",Resource.get("list_empty","\u6CA1\u6709\u53EF\u4EE5\u5728\u7EBF\u804A\u5929\u7684\u597D\u53CB"),_R9);var _J9=ChatBar._J9=_4A("div","lt_listContainer",null,_R9);if(ChatBar._l9){_J9.style.maxHeight=ChatBar._r4+"px"}_J9.style.display="none";ChatBar._h3();var _d5=_4A("div","lt_searchBlock",null,_R9);var _25=_4A("div","lt_iconSearch",null,_d5);var _W9=document.createElement("input");_W9.type="text";_W9.className="lt_textSearch lt_prompt";_d5.appendChild(_W9);_r9=_d9._r9;var _S5=_4A("div","lt_header",null,_r9);_4A("span","lt_mini",null,_S5).title=ChatBar._A8;_4A("span","lt_title",_J3,_S5);_R9=_4A("div","lt_body",null,_r9);ChatBar._f7=_4A("div","lt_listEmptyBlock",Resource.get("group_empty","\u60A8\u8FD8\u6CA1\u6709\u52A0\u5165\u4EFB\u4F55\u7FA4\u7EC4"),_R9);var _C4=Config.get("group_list_url");if(_C4){var _H6=document.createElement("a");_H6.href=_C4;_H6.innerHTML=Resource.get("join_group","\u52A0\u5165\u7FA4\u7EC4");ChatBar._f7.appendChild(_H6)}var _z8=ChatBar._z8=_4A("div","lt_listContainer lt_groupList",null,_R9);if(ChatBar._l9){_z8.style.maxHeight=ChatBar._O6+"px"}_z8.style.display="none";var _v5=_d5.cloneNode(false);var _T5=_25.cloneNode(false);_v5.appendChild(_T5);var _N9=_W9.cloneNode(false);_v5.appendChild(_N9);_R9.appendChild(_v5);_r9=_p9._r9;var _b5=_4A("div","lt_header",null,_r9);_4A("span","lt_mini",null,_b5).title=ChatBar._A8;_4A("span","lt_title",_w1,_b5);_R9=_4A("div","lt_body",null,_r9);ChatBar._d6=_4A("div","lt_noteEmptyBlock",Resource.get("note_empty","\u6682\u65E0\u63D0\u9192\u6D88\u606F"),_R9);var _q8=ChatBar._q8=_4A("div","lt_reminderList",null,_R9);_q8.style.display="none";var _b9=ChatBar._b9=new Panel._C("lt_prePanel",_i9,true,true);var _G1=_b9._u9,_p2=_b9._r9;_G1.className+=" lt_preTab";_p2.className+=" lt_dialogListWin";_b9._O4=_4A("span","lt_num","0",_b9._x7);_b9._M8=ChatBar._s7(_G1,"lt_preArrow");_b9._t8();var _I=ChatBar._D6=_4A("div","lt_dialogsWrap",null,_i9);var _j9=ChatBar._j9=new Panel._C("lt_nextPanel",_i9,true,true);var _E1=_j9._u9,_N3=_j9._r9;_E1.className+=" lt_nextTab";_N3.className+=" lt_dialogListWin";_j9._O4=_4A("span","lt_num","0",_j9._x7);_j9._M8=ChatBar._s7(_E1,"lt_nextArrow");_j9._t8();if(ChatBar._a9){_r9=_O9._r9;var _27=_4A("div","lt_header",null,_r9);_4A("span","lt_mini",null,_27).title=ChatBar._A8;_4A("span","lt_title",Config.get("chatbar_menu_title","\u5FEB\u6377\u83DC\u5355",true),_27);_O9._R9=_4A("div","lt_body",null,_r9);_O9._Q8.attach(function(){_s1._t8()});_27.onclick=function(){_O9.collapse(false,true)};ChatBar._S9(_27)}_f9._Q8.attach(function(){_b7._t8();_p9.collapse(true);_o9.collapse(true);_d9.collapse(true)});_p9._Q8.attach(function(){_x3._t8();_f9.collapse(true);_o9.collapse(true);_d9.collapse(true);ChatBar._T8()});_o9._Q8.attach(function(){_f9.collapse(true);_p9.collapse(true);_d9.collapse(true);var _u8=ChatBar._s5;if(_u8){_u8._t8()}ChatBar._x8()});_d9._Q8.attach(function(){_f9.collapse(true);_p9.collapse(true);_o9.collapse(true);ChatBar._y8()});_b9._Q8.attach(function(){_j9.collapse(true);var _0A=ChatBar._y9;if(_0A){_0A.collapse(true,true)}});_j9._Q8.attach(function(){_b9.collapse(true);var _0A=ChatBar._y9;if(_0A){_0A.collapse(true,true)}});_M7.onclick=function(){var _c9=this.checked;ChatBar.setTransparentOption(_c9);ChatBar.onTransparentChange.fire(_c9)};_n7.onclick=function(){var _c9=this.checked;ChatBar.setAutoHideOption(_c9);ChatBar.onAutoHideChange.fire(_c9)};_08.onclick=function(){var _c9=this.checked;ChatBar.setAutoWidthOption(_c9);ChatBar.onAutoWidthChange.fire(_c9)};_C8.onclick=function(){var _c9=this.checked;ChatBar._a5=_c9;ChatBar.onAutoExpandChange.fire(_c9)};_X7.onclick=function(){var _c9=this.checked;ChatBar._Z3=_c9;ChatBar.onBlinkChange.fire(_c9)};_05.onclick=function(){var _c9=this.checked;ChatBar._A6=_c9;ChatBar.onPlaySoundChange.fire(_c9)};_g8.onclick=function(){var _c9=this.checked;ChatBar._q7=_c9;ChatBar.onKeepDialogChange.fire(_c9)};_C6.onclick=function(){var _c9=this.checked;ChatBar._p8=_c9;ChatBar.onKeepBuddyListChange.fire(_c9)};_26.onclick=function(){if(ChatBar._A3){ChatBar.onOnline.fire()}else{ChatBar.onOffline.fire()}};_f5.onclick=function(){_f9.collapse(false,true)};ChatBar._S9(_f5);ChatBar._S9(_26);_b5.onclick=function(){_p9.collapse(false,true)};ChatBar._S9(_b5);_L7.onclick=function(){_o9.collapse(false,true)};ChatBar._S9(_L7);_S5.onclick=function(){_d9.collapse(false,true)};ChatBar._S9(_S5);_K9.onclick=_e9.onclick=ChatBar._I8;_K9.onmouseover=_e9.onmouseover=function(){Dom.addClass(_L7,"lt_subHover")};_K9.onmouseout=_e9.onmouseout=function(){Dom.removeClass(_L7,"lt_subHover")};var _y6=Resource.get("list_filter_prompt","\u8FC7\u6EE4\u67E5\u627E\u597D\u53CB");_W9.value=_y6;var _I7=Resource.get("group_filter_prompt","\u8FC7\u6EE4\u67E5\u627E\u7FA4\u7EC4");_N9.value=_I7;_W9.onfocus=function(){if(this.value==_y6){this.value="";setTimeout(function(){Dom.removeClass(_W9,"lt_prompt")},0)}};_W9.onblur=function(){if(this.value==""){Dom.addClass(this,"lt_prompt");this.value=_y6}};_N9.onfocus=function(){if(this.value==_I7){this.value="";setTimeout(function(){Dom.removeClass(_N9,"lt_prompt")},0)}};_N9.onblur=function(){if(this.value==""){Dom.addClass(this,"lt_prompt");this.value=_I7}};var _H3=function(_2A,_Y1,_o4,_m6,_f8){var _F9=_2A.value;if(_F9!=_Y1){if(_F9==""){for(var _39 in _o4){if(_o4.hasOwnProperty(_39)){_o4[_39]._t9.style.display=""}}}else{_F9=_F9.toLowerCase();var _W8;for(var _39 in _o4){if(_o4.hasOwnProperty(_39)){_W8=_o4[_39];if(_W8._X9.toLowerCase().indexOf(_F9)==-1){_W8._t9.style.display="none"}else{_W8._t9.style.display=""}}}}if(!ChatBar._l9){ChatBar._H7(_m6);if(_m6.style.height==""){_f8._P8()}else{setTimeout(function(){ChatBar._H7(_m6);_f8._P8()},0)}}}};var _w5=function(){_H3(_W9,_y6,ChatBar._B9,_J9,_o9)};var _G6=function(){_H3(_N9,_I7,ChatBar._19,_z8,_d9)};if(Environment.isIE){_W9.onpropertychange=function(){if(window.event.propertyName=="value"){_w5()}};_N9.onpropertychange=function(){if(window.event.propertyName=="value"){_G6()}}}else{Event.addListener(_W9,"input",_w5);Event.addListener(_N9,"input",_G6)}var _6=ChatBar._K3,_7=ChatBar._z3;_J8.style.bottom=0;_J8.style.right=_7+"px";var _r8=0,_l8=0,_p3=64;ChatBar._49=function(){if(ChatBar._k6){return }var _x9=ChatBar._x9;var _B7=_x9.length;var _09,_W=_5A._P2||0;var _V6=_Z7.offsetWidth+_I1.offsetWidth+_52.offsetWidth+_V.offsetWidth+_X.offsetWidth+_p3+2;if(ChatBar._U8){_V6+=_a6.offsetWidth}var _a=_B7>0?_V6+_W:_V6;var _89=ChatBar._89,_K4=ChatBar._a7;if(!_K4&&_89>0){_09=_89}else{var _i3=_6+_7;if(Environment.isStrict){_09=document.documentElement.clientWidth-_i3}else{_09=document.body.clientWidth-_i3}if(_K4){_09=Math.min(_B7*_W+_V6,_09)}}if(ChatBar._l9){if(_09<_a){_J8.style.left="";_J8.style.width=_a+"px"}else{if(_K4||_89>0){_J8.style.left="";_J8.style.width=_09+"px"}else{_J8.style.left=_6+"px";_J8.style.width=""}}}else{if(_09<_a){_09=_a}_J8.style.width=_09+"px"}if(_B7>0){_09=_i9.offsetWidth-_V6;if(_09>0){var _s4=Math.floor(_09/_W)||1;var _0A,i,_M1=true,_01=true;do{if(_B7>_s4){var _M5=ChatBar._R6,n=_B7-1;if(_M5>-1&&_r8>_M5){_r8=_M5}_l8=_r8+_s4-1;if(_l8>n){_l8=n;_r8=_l8-_s4+1}else{if(_l8<_M5){_l8=_M5;_r8=_l8-_s4+1}}ChatBar._H4(_b9,_r8);ChatBar._H4(_j9,n-_l8);if(_01&&++_s4*_W+_G1.offsetWidth+_E1.offsetWidth<_09+_p3){_01=false;continue}var _w3=0,_E4=0;for(i=0;i<_r8;i++){_0A=_x9[i];_0A._T1(_p2,i);_w3+=_0A._E8}for(i=_r8;i<=_l8;i++){_x9[i]._I2()}for(i=n;i>_l8;i--){_0A=_x9[i];_0A._T1(_N3,n-i);_E4+=_0A._E8}ChatBar._j8(_b9,_w3);ChatBar._j8(_j9,_E4)}else{_r8=0;_l8=_B7-1;for(i=0;i<_B7;i++){_x9[i]._I2()}_b9._t8();_j9._t8()}_M1=false}while(_M1)}}else{_r8=_l8=0;_b9._t8();_j9._t8()}};_T9.appendChild(_b8);if(ChatBar._x6){ChatBar.setTransparentOption(true)}if(ChatBar._e6){ChatBar.setAutoHideOption(true)}if(ChatBar._a7){ChatBar.setAutoWidthOption(true)}_X7.checked=ChatBar._Z3;_05.checked=ChatBar._A6;_g8.checked=ChatBar._q7;_C6.checked=ChatBar._p8;_i9.onclick=function(){var _O8=ChatBar._Z8,_0A=ChatBar._y9;var _S=true,_E=true,_K=true,_R=true,_Q=true,_P=true,_H=_0A?true:false;var _S2=ChatBar._a9?true:false;if(_O8){if(_H&&_O8==_0A){_H=false}else{if(_O8==_f9){_S=false}else{if(_O8==_o9){_E=false}else{if(_O8==_d9){_K=false}else{if(_O8==_p9){_R=false}else{if(_O8==_b9){_Q=false}else{if(_O8==_j9){_P=false}else{if(_S2&&_O8==_O9){_S2=false}}}}}}}}}if(_S){_f9.collapse()}if(_R){_p9.collapse()}if(_E&&!ChatBar._p8){_o9.collapse()}if(_K&&!ChatBar._p8){_d9.collapse()}if(_H&&!ChatBar._q7){_0A.collapse(false,true)}if(_Q){_b9.collapse()}if(_P){_j9.collapse()}if(_S2){_O9.collapse()}ChatBar._Z8=_i9};var _D5=function(){if(ChatBar._Z8!=_i9){_f9.collapse();_p9.collapse();if(!ChatBar._p8){_o9.collapse();_d9.collapse()}if(!ChatBar._q7&&ChatBar._y9){ChatBar._y9.collapse(false,true)}_b9.collapse();_j9.collapse();if(ChatBar._a9){_O9.collapse()}ChatBar._w2()}ChatBar._Z8=null};Event.addListener(document,"click",_D5);var _y3,_A4=ChatBar._l9?ChatBar._49:function(){clearTimeout(_y3);_y3=setTimeout(ChatBar._49,100)};Event.addListener(window,"resize",_A4);disposehandler(function(){var _q9=ChatBar._q9;_q9(_i9);Event.removeListener(document,"click",_D5);Event.removeListener(window,"resize",_A4);var _x9=ChatBar._x9;for(var i=0;i<_x9.length;i++){_x9[i]._k9()}var _B9=ChatBar._B9;for(var _39 in _B9){if(_B9.hasOwnProperty(_39)){_B9[_39]._k9()}}var _19=ChatBar._19;for(_39 in _19){if(_19.hasOwnProperty(_39)){_19[_39]._k9()}}var _l7=ChatBar._l7,_k7;for(var i=0;i<_l7.length;i++){_k7=_l7[i];if(_k7._k9){_k7._k9()}}if(Environment.isIE){_N9.onpropertychange=_W9.onpropertychange=null}else{Event.removeListener(_W9,"input",_w5);Event.removeListener(_N9,"input",_G6)}_N9.onfocus=_N9.onblur=_W9.onfocus=_W9.onblur=null;_M7.onclick=_n7.onclick=_08.onclick=_C8.onclick=_X7.onclick=_05.onclick=_g8.onclick=_C6.onclick=null;_q9(_f5);_q9(_26);_q9(_b5);_q9(_L7);_q9(_S5);_q9(_e9);_q9(_K9);if(_w4){_s1._k9()}_f9._k9();_p9._k9();if(ChatBar._a9){_q9(_27);_O9._k9()}_o9._k9();_d9._k9();_b9._k9();_j9._k9()});var _W1=function(){if(!Environment.isStrict){if(Environment.isIE){ChatBar._g6(_25);ChatBar._z6(_25);ChatBar._g6(_T5);ChatBar._z6(_T5)}if(Environment.isOpera){_o9._r9.style.display=_T9.style.display=""}ChatBar._g6(_W9);ChatBar._z6(_W9);ChatBar._g6(_N9);ChatBar._z6(_N9);if(Environment.isOpera){_o9._r9.style.display=_T9.style.display="none"}}if(ChatBar._a9&&ChatBar._U7>0){_O9._r9.style.width=ChatBar._U7+"px";var _Z6=_O9._R9;var _I6=ChatBar._U7-Dom.getStyleValue(_Z6,"paddingLeft")-Dom.getStyleValue(_Z6,"paddingRight");_I6-=Dom.getStyleValue(_Z6,"borderLeftWidth")+Dom.getStyleValue(_Z6,"borderRightWidth");ChatBar._W7=_I6>0?_I6:0}if(ChatBar._a9){var _b4=Config.get("chatbar_menu_items");if(_b4&&_b4.length>0){ChatBar.addQuickMenuItems(_b4)}}if(ChatBar._U8){var _Z4=Config.get("chatbar_link_items");if(_Z4&&_Z4.length>0){ChatBar.addQuickLinkItems(_Z4)}}_p9._t8();_d9._t8();_o9._t8();ChatBar._q2=true;var _C2=ChatBar._v4;if(_C2){_C2()}};var _E3=32;(function(){if(Dom.getStyleValue(_T9,"zIndex")>0){_W1();return true}if(_E3>16000){return false}setTimeout(arguments.callee,_E3);_E3*=2})()};ChatBar._h3=function(){ChatBar._F4=ChatBar._4A("div","lt_onlineList",null,ChatBar._J9)};ChatBar._H7=function(_m6){var _48=_m6==ChatBar._J9?ChatBar._r4:ChatBar._O6;if(_m6.scrollHeight>_48){_m6.style.height=_48+"px"}else{_m6.style.height=""}};ChatBar._H4=function(_f8,_o){_f8._O4.innerHTML=_o;if(_o>0){_f8._i7()}else{_f8._t8()}};ChatBar._s7=function(_99,_c2){var _4A=ChatBar._4A;var _88=_4A("div","lt_arrow "+_c2,null,_99);var _L=_4A("div","lt_arrowInner",null,_88);var _O4=_4A("span","lt_arrowNum","0",_L);return _O4};ChatBar._j8=function(_f8,_E8){_f8._M8.innerHTML=_E8;if(_E8>0){Dom.addClass(_f8._u9,"lt_highlight")}else{Dom.removeClass(_f8._u9,"lt_highlight")}};ChatBar._w2=function(){if(ChatBar._F7&&ChatBar._U3){var _i9=ChatBar._h4;_i9.onmouseout=null;ChatBar._S3=setTimeout(function(){var _u8=ChatBar._s5;if(_u8){_u8._t8()}var _m9=_i9.offsetHeight;if(_m9>0){if(!ChatBar._l9){ChatBar._d2.style.overflow="hidden"}var _S4=(_m9-1)*-1;var _j4=Dom.getStyleValue(_i9,"bottom");var _K1=625,_61=Math.floor(_K1/Math.abs(_j4-_S4));var _H1=new Date().getTime();ChatBar._o3=setInterval(function(){var _i3=Math.floor((new Date().getTime()-_H1)/_61);if(_i3>0){_j4-=_i3;if(_j4<=_S4){_j4=_S4;clearInterval(ChatBar._o3)}_i9.style.bottom=_j4+"px"}},5)}},1000);ChatBar._U3=false;_i9.onmouseover=ChatBar._84}};ChatBar._84=function(){var _i9=ChatBar._h4;if(!ChatBar._U3){clearTimeout(ChatBar._S3);clearInterval(ChatBar._o3);_i9.style.bottom=0;if(!ChatBar._l9){ChatBar._d2.style.overflow=""}ChatBar._U3=true}if(ChatBar._F7){_i9.onmouseover=null;_i9.onmouseout=ChatBar._w2}else{_i9.onmouseover=_i9.onmouseout=null}};ChatBar._Y8=function(_x){var _L5=false;if(!_x&&ChatBar._e6){_L5=true;if(ChatBar.buddyListPanel._h9||ChatBar.groupPanel._h9||ChatBar.settingPanel._h9||ChatBar.reminderPanel._h9||ChatBar._b9._h9||ChatBar._j9._h9||(ChatBar._a9&&ChatBar.leftPanel._h9)){_L5=false}else{var _y9=ChatBar._y9;if(_y9&&_y9._h9){_L5=false}else{var _x9=ChatBar._x9,_0A;for(var i=0;i<_x9.length;i++){_0A=_x9[i];if(_0A._E8>0){_L5=false;break}}}}}if(ChatBar._F7!=_L5){ChatBar._F7=_L5;if(_L5){ChatBar._T6.style.height="25px"}else{ChatBar._T6.style.height=""}ChatBar._84()}};ChatBar._i7=function(){if(ChatBar._q2){if(ChatBar._k6){ChatBar._T9.style.display="";ChatBar._k6=false}else{Dom.removeClass(ChatBar.settingPanel._u9,["lt_offline","lt_alert","lt_anonym"]);ChatBar.settingPanel._U();ChatBar._b7._D3(ChatBar._z1);if(ChatBar._98){ChatBar.enableInput()}else{ChatBar.disableInput()}}ChatBar._49()}else{throw new Error("unable to set state while chat bar is not ready.")}};ChatBar.clearPanels=function(){ChatBar.reminderPanel._t8();ChatBar.buddyListPanel._t8();ChatBar.groupPanel._t8();ChatBar._49()};ChatBar.online=function(){ChatBar._98=true;ChatBar.reminderPanel._i7();ChatBar.buddyListPanel._i7();ChatBar.groupPanel._i7();ChatBar._i7();ChatBar._78.innerHTML=ChatBar._X1;ChatBar._h6.innerHTML=ChatBar._T3;ChatBar._A3=false};ChatBar.offline=function(){ChatBar._98=false;ChatBar._i7();Dom.addClass(ChatBar.settingPanel._u9,"lt_offline");ChatBar._78.innerHTML=ChatBar._W2;ChatBar._h6.innerHTML=ChatBar._g4;ChatBar._A3=true};ChatBar._e7=function(_59,_F3){ChatBar._98=false;ChatBar._i7();var _f9=ChatBar.settingPanel;Dom.addClass(_f9._u9,_59);_f9._b();ChatBar._b7._D3(_F3)};ChatBar.anonymous=function(tip){ChatBar._e7("lt_anonym",tip)};ChatBar.invalidate=function(tip){ChatBar._e7("lt_alert",tip)};ChatBar.disconnect=function(tip){ChatBar._e7("lt_alert",tip);ChatBar.settingPanel._u9.onclick=function(){ChatBar.onReconnect.fire()}};ChatBar.addQuickMenuItems=function(items){if(ChatBar._a9){var _O9=ChatBar.leftPanel,_R9=_O9._R9;var _W8,_k8,_33,_e8,_F3;for(var i=0;i<items.length;i++){_W8=items[i];_k8=document.createElement("div");_k8.className="lt_menuItem";if(ChatBar._W7>0){_k8.style.width=ChatBar._W7+"px"}_k8.style.textOverflow="ellipsis";_33=document.createElement("img");_33.src=_W8.icon;_k8.appendChild(_33);_e8=document.createElement("a");_e8.href=_W8.url;if(_W8.target){_e8.target=_W8.target}_e8.innerHTML=Text.process(_W8.text);_k8.appendChild(_e8);if(_W8.tip){_F3=document.createElement("span");_F3.className="lt_menuItemTip";_F3.title=_F3.innerHTML=Text.process(_W8.tip);_k8.appendChild(_F3)}_R9.appendChild(_k8)}}};ChatBar.addQuickLinkItems=function(items){if(ChatBar._U8){var _A1=ChatBar._a6;var _W8,_k8,_e8,_33,_k7;for(var i=0;i<items.length;i++){_W8=items[i];_k8=document.createElement("div");_k8.className="lt_quickLinkWrap";_e8=document.createElement("a");_e8.href=_W8.url;if(_W8.target){_e8.target=_W8.target}_33=document.createElement("img");_33.src=_W8.icon;_e8.appendChild(_33);_k8.appendChild(_e8);_A1.appendChild(_k8);_k7=new _i8(_k8,Text.process(_W8.text),"lt_quickToolTip",_e8,function(){this._i7()});ChatBar._l7.push(_k7)}}};ChatBar.setMyAvatar=function(avatarUrl){if(avatarUrl!=ChatBar._Z5){if(avatarUrl&&avatarUrl!=""){ChatBar._Z5=ChatBar._M3.src=avatarUrl}}};ChatBar.setMyNickname=function(nickname){if(nickname){ChatBar._n8(ChatBar._55,nickname)}};ChatBar.setMyProfileUrl=function(profileUrl){if(profileUrl){ChatBar._D4.href=ChatBar._55.href=profileUrl}};ChatBar.setMySignature=function(signature){if(signature){var _H9=ChatBar._J5;_H9.title=_H9.innerHTML=ChatBar._u6(signature)}};ChatBar.showBuddyListTip=function(tipText,timeout,isBold){var _o9=ChatBar.buddyListPanel,_u8=ChatBar._s5;if(!_u8){_u8=ChatBar._s5=new _i8(_o9._t9,tipText,"lt_buddyListTip")}else{_u8._D3(tipText)}if(isBold){Dom.addClass(_u8._34,"lt_bold")}else{Dom.removeClass(_u8._34,"lt_bold")}if(!_o9._h9){_u8._i7();setTimeout(function(){_u8._t8()},timeout>0?timeout:6000)}};ChatBar._q9=function(_t9){if(!_t9){_t9=this._t9}_t9.onmouseover=_t9.onmouseout=_t9.onclick=null};ChatBar._92=function(_39,_X9,_I9,_R8,_j7){var _4A=ChatBar._4A;var _t9,_C9,_69;_t9=_4A("div","lt_buddy");_C9=_4A("img","lt_buddyAvatar");if(!_I9){_I9=ChatBar._v8}_C9.src=_I9;_t9.appendChild(_C9);_4A("span","lt_buddyStatus",null,_t9);_69=_4A("div","lt_buddyName");ChatBar._n8(_69,_X9);_t9.appendChild(_69);if(_j7){var _H9=_4A("div","lt_signature");_H9.title=_H9.innerHTML=ChatBar._u6(_j7);_t9.appendChild(_H9)}ChatBar._F4.appendChild(_t9);if(Environment.isIE6||!Environment.isStrict){ChatBar._S9(_t9)}var _U9={_39:_39,_X9:_X9,_I9:_I9,_R8:_R8,_j7:_j7,_t9:_t9,_69:_69,_C9:_C9,_H9:_H9,_k9:ChatBar._q9};_t9.onclick=function(e){if(ChatBar._98){ChatBar._I8(e);var _0A=ChatBar.getDialog(_39);if(_0A){if(!_0A._h9){_0A.expand();_0A.onExpand.fire()}}else{_0A=new Dialog(_39,_I9);_0A.setUrl(_U9._R8);_0A.setName(_U9._X9);_0A.setSignature(_U9._j7);_0A.expand();setTimeout(function(){ChatBar.onDialogOpen.fire(_0A);_0A.onExpand.fire()},0)}}};ChatBar._B9[_39]=_U9;ChatBar._Z9++};ChatBar._x8=function(){var _Z9=ChatBar._Z9;ChatBar._79.innerHTML=_Z9;var _o9=ChatBar.buddyListPanel;if(_o9._h9){if(_Z9>0){ChatBar._b6.style.display="none";ChatBar._J9.style.display="";if(!ChatBar._l9){ChatBar._H7(ChatBar._J9);_o9._P8()}}else{ChatBar._b6.style.display="";ChatBar._J9.style.display="none";if(!ChatBar._l9){_o9._P8()}}}};ChatBar.addBuddy=function(id,profileUrl,name,online,avatar,signature){var _U9=ChatBar._B9[id];if(_U9){ChatBar.updateBuddy(id,profileUrl,name,online,avatar,signature)}else{ChatBar._92(id,name,avatar,profileUrl,signature);ChatBar._x8()}};ChatBar.updateBuddy=function(id,profileUrl,name,online,avatar,signature){var _U9=ChatBar._B9[id];if(_U9){if(name&&_U9._X9!=name){_U9._X9=name;ChatBar._n8(_U9._69,name)}if(avatar&&avatar!=""&&avatar!=_U9._I9){_U9._I9=_U9._C9.src=avatar}if(profileUrl&&profileUrl!=_U9._R8){_U9._R8=profileUrl}if(signature&&_U9._j7!=signature){var _H9=_U9._H9;if(!_H9){_H9=_U9._H9=ChatBar._4A("div","lt_signature",null,_U9._t9)}_H9.title=_H9.innerHTML=ChatBar._u6(signature);_U9._j7=signature}}};ChatBar.addBuddies=function(buddies){for(var i=0,_U9;i<buddies.length;i++){_U9=buddies[i];ChatBar._92(_U9.id,_U9.name,_U9.avatar,_U9.profileUrl,_U9.signature)}ChatBar._x8()};ChatBar.removeBuddy=function(id){var _U9=ChatBar._B9[id];if(_U9){_U9._k9();var _t9=_U9._t9;_t9.parentNode.removeChild(_t9);delete ChatBar._B9[id];ChatBar._Z9--;ChatBar._x8()}};ChatBar.clearBuddies=function(){var _B9=ChatBar._B9;for(var _39 in _B9){if(_B9.hasOwnProperty(_39)){_B9[_39]._k9()}}ChatBar._J9.innerHTML="";ChatBar._h3();ChatBar._B9={};ChatBar._Z9=0;ChatBar._x8()};ChatBar._A2=function(_39,_E7,_X9,_I9,_Z9,_d8,_o2){var _4A=ChatBar._4A;var _t9,_C9,_69;_t9=_4A("div",_o2?"lt_groupItem lt_mute":"lt_groupItem");_C9=_4A("img","lt_groupItemAvatar");if(!_I9){_I9=ChatBar._V7}_C9.src=_I9;_t9.appendChild(_C9);var _78=_4A("span","lt_groupItemStatus",null,_t9);_78.appendChild(document.createTextNode("("));var _79=_4A("span","lt_groupItemOnlineCount",_Z9,_78);_78.appendChild(document.createTextNode("/"));var _L8=_4A("span","lt_groupItemMemberCount",_d8,_78);_78.appendChild(document.createTextNode(")"));_69=_4A("div","lt_groupItemName");ChatBar._n8(_69,_X9);_t9.appendChild(_69);ChatBar._z8.appendChild(_t9);if(Environment.isIE6||!Environment.isStrict){ChatBar._S9(_t9)}var _g9={_39:_39,_X9:_X9,_I9:_I9,_E7:_E7,_t9:_t9,_69:_69,_C9:_C9,_Z9:_Z9,_79:_79,_d8:_d8,_L8:_L8,_o2:_o2,_k9:ChatBar._q9};_t9.onclick=function(e){if(ChatBar._98){ChatBar._I8(e);var _M9=ChatBar.getDialog(_39);if(_M9){if(!_M9._h9){_M9.expand();_M9.onExpand.fire()}}else{_M9=new GroupDialog(_39,_I9);_M9.setUrl(_g9._E7);_M9.setName(_g9._X9);_M9.setCount(_g9._Z9,_g9._d8);_M9.expand();setTimeout(function(){ChatBar.onDialogOpen.fire(_M9);_M9.onExpand.fire()},0)}}};ChatBar._19[_39]=_g9;ChatBar._u7++};ChatBar._y8=function(){var _u7=ChatBar._u7;ChatBar._94.innerHTML=_u7;var _d9=ChatBar.groupPanel;if(_d9._h9){if(_u7>0){ChatBar._f7.style.display="none";ChatBar._z8.style.display="";if(!ChatBar._l9){ChatBar._H7(ChatBar._z8);_d9._P8()}}else{ChatBar._f7.style.display="";ChatBar._z8.style.display="none";if(!ChatBar._l9){_d9._P8()}}}};ChatBar.addGroup=function(id,url,name,avatar,onlineCount,memberCount,mute){var _g9=ChatBar._19[id];if(_g9){ChatBar.updateGroup(id,url,name,avatar,onlineCount,memberCount,mute)}else{ChatBar._A2(id,url,name,avatar,onlineCount,memberCount,mute===true);ChatBar._y8()}};ChatBar.updateGroup=function(id,url,name,avatar,onlineCount,memberCount,mute){var _g9=ChatBar._19[id];if(_g9){if(name){_g9._X9=name;ChatBar._n8(_g9._69,name)}if(avatar&&avatar!=""&&avatar!=_g9._I9){_g9._I9=_g9._C9.src=avatar}if(url){_g9._E7=url}if(onlineCount||onlineCount===0){_g9._Z9=_g9._79.innerHTML=onlineCount}if(memberCount||onlineCount===0){_g9._d8=_g9._L8.innerHTML=memberCount}if(typeof mute=="boolean"&&_g9._o2!=mute){_g9._o2=mute;if(mute){Dom.addClass(_g9._t9,"lt_mute")}else{Dom.removeClass(_g9._t9,"lt_mute")}}}};ChatBar.addGroups=function(groups){for(var i=0,_g9;i<groups.length;i++){_g9=groups[i];ChatBar._A2(_g9.id,_g9.url,_g9.name,_g9.avatar,_g9.onlineCount,_g9.memberCount,_g9.mute)}ChatBar._y8()};ChatBar.removeGroup=function(id){var _g9=ChatBar._19[id];if(_g9){_g9._k9();var _t9=_g9._t9;_t9.parentNode.removeChild(_t9);delete ChatBar._19[id];ChatBar._u7--;ChatBar._y8()}};ChatBar.clearGroups=function(){var _19=ChatBar._19;for(var _39 in _19){if(_19.hasOwnProperty(_39)){_19[_39]._k9()}}ChatBar._z8.innerHTML="";ChatBar._19={};ChatBar._u7=0;ChatBar._y8()};ChatBar._76=function(_y9){if(!_y9){_y9=ChatBar._y9}if(_y9){var _x9=ChatBar._x9,_0A;for(var i=0;i<_x9.length;i++){_0A=_x9[i];if(_0A==_y9){ChatBar._y9=_0A;ChatBar._R6=i;return }}}ChatBar._y9=null;ChatBar._R6=-1};ChatBar.getDialogs=function(){return ChatBar._x9};ChatBar.getDialog=function(id){var _x9=ChatBar._x9,_0A;for(var i=0;i<_x9.length;i++){_0A=_x9[i];if(_0A._39==id){return _0A}}return null};ChatBar.getActiveDialog=function(){return ChatBar._y9};ChatBar.openDialog=function(type,id,avatar){var _0A=ChatBar.getDialog(id);if(!_0A){if(type==0){_0A=new Dialog(id,avatar)}else{_0A=new GroupDialog(id,avatar)}}return _0A};ChatBar.clearDialogs=function(){for(var i=0,_x9=ChatBar._x9;i<_x9.length;i++){_x9[i]._k9()}ChatBar._D6.innerHTML=ChatBar._j9._r9.innerHTML=ChatBar._b9._r9.innerHTML="";ChatBar._x9=[];ChatBar._y9=null;ChatBar._R6=-1;ChatBar._b9._t8();ChatBar._j9._t8();ChatBar._49();ChatBar._Y8()};ChatBar.disableInput=function(tip){var _x9=ChatBar._x9,_0A;for(var i=0;i<_x9.length;i++){_0A=_x9[i];_0A.disableInput(tip)}};ChatBar.enableInput=function(){var _x9=ChatBar._x9,_0A;for(var i=0;i<_x9.length;i++){_0A=_x9[i];_0A.enableInput()}};ChatBar.getTransparentOption=function(){return ChatBar._x6};ChatBar.setTransparentOption=function(checked){ChatBar._M7.checked=ChatBar._x6=checked;if(Environment.isIE){ChatBar._03.style.filter=checked?"alpha(opacity="+ChatBar._B3*100+")":""}else{ChatBar._03.style.opacity=checked?ChatBar._B3:""}};ChatBar.getAutoHideOption=function(){return ChatBar._e6};ChatBar.setAutoHideOption=function(checked){ChatBar._n7.checked=ChatBar._e6=checked;ChatBar._Y8(!checked)};ChatBar.getAutoWidthOption=function(){return ChatBar._a7};ChatBar.setAutoWidthOption=function(checked){ChatBar._08.checked=ChatBar._a7=checked;ChatBar._49()};ChatBar.getAutoExpandOption=function(){return ChatBar._a5};ChatBar.setAutoExpandOption=function(checked){ChatBar._C8.checked=ChatBar._a5=checked};ChatBar.getBlinkOption=function(){return ChatBar._Z3};ChatBar.setBlinkOption=function(checked){ChatBar._X7.checked=ChatBar._Z3=checked};ChatBar.getPlaySoundOption=function(){return ChatBar._A6};ChatBar.setPlaySoundOption=function(checked){ChatBar._A5.checked=ChatBar._A6=checked};ChatBar.getKeepDialogOption=function(){return ChatBar._q7};ChatBar.setKeepDialogOption=function(checked){ChatBar._g8.checked=ChatBar._q7=checked};ChatBar.getKeepBuddyListOption=function(){return ChatBar._p8};ChatBar.setKeepBuddyListOption=function(checked){ChatBar._N6.checked=ChatBar._p8=checked};ChatBar._T8=function(){var _p9=ChatBar.reminderPanel;if(_p9._h9){if(ChatBar._58>0){ChatBar._d6.style.display="none";ChatBar._q8.style.display=""}else{ChatBar._d6.style.display="";ChatBar._q8.style.display="none"}if(!ChatBar._l9){_p9._P8()}}};ChatBar.addNotification=function(id,text,url,icon){var _D9=ChatBar._N8[id];if(_D9){if(text){_D9._f1.innerHTML=text}if(url){_D9._f1.href=url}if(icon!=_D9._Y){_D9._Y=_D9._c.src=icon}}else{var _4A=ChatBar._4A;var _56=_4A("div","lt_noteItem");_56.style.wordWrap="break-word";if(!icon){icon=ChatBar._N5}var _s3=document.createElement("img");_s3.src=icon;_56.appendChild(_s3);var _t3=_4A("a",null,text);_t3.href=url;_56.appendChild(_t3);ChatBar._q8.appendChild(_56);_D9={_39:id,_j3:_56,_Y:icon,_c:_s3,_f1:_t3};ChatBar._N8[id]=_D9;ChatBar._j8(ChatBar.reminderPanel,++ChatBar._58);ChatBar._T8()}};ChatBar.removeNotification=function(id){var _D9=ChatBar._N8[id];if(_D9){var _j3=_D9._j3;if(_j3){_j3.parentNode.removeChild(_j3)}delete ChatBar._N8[id];ChatBar._j8(ChatBar.reminderPanel,--ChatBar._58);ChatBar._T8()}};ChatBar.clearNotifications=function(){ChatBar._N8={};ChatBar._58=0;ChatBar._q8.innerHTML="";ChatBar._j8(ChatBar.reminderPanel,0);ChatBar._T8()}}with({base:Object}){_i8.prototype[""]=function(_99,_G3,_59,_U5,_u1){var _4A=ChatBar._4A;var _88=this._T9=_4A("div",_59?"lt_toolTip "+_59:"lt_toolTip");var _34=this._34=_4A("div","lt_tipContent",_G3,_88);this._Z1=_4A("div","lt_tipArrow",null,_88);_88.style.display="none";_99.appendChild(_88);if(_U5){var _k7=this;var _n2=function(){_u1.call(_k7)};var _H2=function(){_k7._t8()};Event.addListener(_U5,"mouseover",_n2);Event.addListener(_U5,"mouseout",_H2);this._k9=function(){Event.removeListener(_U5,"mouseover",_n2);Event.removeListener(_U5,"mouseout",_H2)}}};_i8.prototype._T9=undefined;_i8.prototype._34=undefined;_i8.prototype._Z1=undefined;_i8.prototype._i7=function(){this._T9.style.display=""};_i8.prototype._t8=function(){this._T9.style.display="none"};_i8.prototype._D3=function(_G3){this._34.innerHTML=_G3}}with({base:Object}){Panel.prototype._C=function(_59,_99,_D1,_V1,_96){this._Q8=new EventCast();this.onExpand=new EventCast();this.onCollapse=new EventCast();var _4A=ChatBar._4A;var _t9=this._t9=_4A("div","lt_panel "+_59,null,_99);var _r9=this._r9=_4A("div","lt_win",null,_t9);_r9.style.display="none";this._h9=false;var _u9=this._u9=_4A("div","lt_tab",null,_t9);if(ChatBar._D7==1){_u9.className+=" lt_itemBg"}var _p6=this._x7=_4A("div","lt_tabInner",null,_u9);if(Environment.isOpera){_p6.style.position="relative"}if(!_V1){this._21=_4A("div","lt_tabSplit",null,_p6)}if(!ChatBar._E6&&!_D1){this._G8=ChatBar._I3(_r9)}this._96=_96||false;var _u3=this;_u9.onclick=this._74=function(){if(_u3._h9){_u3.collapse(false,true)}else{_u3.expand();_u3.onExpand.fire()}};ChatBar._S9(_u9);_t9.onclick=function(){ChatBar._Z8=_u3}};Panel._C=function(){var _E5=this;_z9._c5=false;try{if(!(_E5 instanceof Panel)){_E5=new Panel()}}finally{_z9._c5=true}Panel.prototype._C.apply(_E5,arguments);return _E5};Panel.prototype._k9=function(){ChatBar._q9(this._u9);this._t9.onclick=null};Panel.prototype._t9=undefined;Panel.prototype._u9=undefined;Panel.prototype._x7=undefined;Panel.prototype._r9=undefined;Panel.prototype._74=undefined;Panel.prototype._Q8=null;Panel.prototype.onExpand=null;Panel.prototype.onCollapse=null;Panel.prototype._C5=false;Panel.prototype._b=function(){if(!this._C5){this.collapse();this._u9.onclick=null;this._C5=true}};Panel.prototype._U=function(){if(this._C5){this._u9.onclick=this._74;this._C5=false}};Panel.prototype._P8=function(){if(this._G8){var _r9=this._r9,_K5=this._G8.style;_K5.width=_r9.offsetWidth+"px";_K5.height=_r9.offsetHeight+"px"}};Panel.prototype._h9=false;Panel.prototype.expand=function(){if(!this._h9){if(!this._96){this._t9.style.zIndex=1}this._r9.style.display="";Dom.addClass(this._u9,"lt_expanded");if(!ChatBar._l9){this._P8()}this._h9=true;this._Q8.fire();ChatBar._Y8(true)}};Panel.prototype.collapse=function(){if(this._h9){this._r9.style.display="none";if(!this._96){this._t9.style.zIndex=""}Dom.removeClass(this._u9,"lt_expanded");this._h9=false;if(arguments[0]!==true){ChatBar._Y8()}if(arguments[1]===true){this.onCollapse.fire()}}};Panel.prototype._k6=false;Panel.prototype._i7=function(){if(this._k6){this._t9.style.display="";this._k6=false}};Panel.prototype._t8=function(){if(!this._k6){this.collapse();this._t9.style.display="none";this._k6=true}}}with({base:Panel}){_5A.prototype=new Panel();_5A._E2=undefined;_5A._j6="uchome";_5A._j1=undefined;_5A._i1=undefined;_5A._O3=false;_5A._P2=undefined;_5A._y4=undefined;_5A._Z2=75;_5A._24=undefined;_5A._68=undefined;_5A._04=undefined;_5A._M6=undefined;_5A._16=undefined;_5A._u2=undefined;_5A._O2=undefined;_5A._G4=undefined;_5A[""]=function(){_5A._E2="/images/linktalk/emoticon.gif";var _j6=Config.get("chatbar_emoticon");if(_j6){var _Q2=Config.get("chatbar_emoticon_list");if(_Q2){var _s=false;for(var i=0;i<_Q2.length;i++){if(_j6.toLowerCase()==_Q2[i].toLowerCase()){_s=true;break}}if(!_s){_j6=null}}if(_j6){_5A._j6=_j6}}_5A._j1="/images/"+_5A._j6+"/";_5A._i1=Config.get("chatbar_emoticon_count",30);_5A._16=Config.get("security_tip_enabled",false);if(_5A._16){_5A._u2=Config.get("security_tip_text","\u5B89\u5168\u63D0\u793A:\u8BF7\u52FF\u900F\u9732\u79C1\u4EBA\u4FE1\u606F",true);_5A._O2=Config.get("security_tip_url",null);_5A._G4=Config.get("security_tip_timeout",5000);_5A._t2=Resource.get("security_tip_close","\u6211\u77E5\u9053\u4E86")}_5A._41=Resource.get("close","\u5173\u95ED");_5A._k1=Resource.get("choose_emoticon","\u9009\u62E9\u8868\u60C5");_5A._43=Resource.get("input_prompt","\u5728\u8FD9\u91CC\u8F93\u5165\u6D88\u606F,Enter\u952E\u53D1\u9001.");_5A._68=Config.get("chatbar_send_button",false);_5A._04=Resource.get("send","\u53D1\u9001")};_5A.prototype[""]=function(_39,_d7){var _59,_Y2,_g5,_v8;if(this.type==1){_59="lt_dialog lt_groupDialog";_Y2=" lt_dialogTab lt_groupDialogTab";_g5=" lt_dialogTabInner lt_groupDialogTabInner";_v8=ChatBar._V7}else{_59="lt_dialog";_Y2=" lt_dialogTab";_g5=" lt_dialogTabInner";_v8=ChatBar._v8}var _b8=document.createDocumentFragment();base._C.call(this,_59,_b8,false,false,true);var _0A=this;this._39=_39;var _4A=ChatBar._4A;var _u9=this._u9,_p6=this._x7,_r9=this._r9;_u9.className+=_Y2;_p6.className+=_g5;var _c7=this._c7=_4A("span","lt_close lt_tabClose",null,_p6);this._o5=_4A("div","lt_label lt_dialogName",null,_p6);var _w8=this._w8=_4A("div","lt_header",null,_r9);var _y7=this._y7=_4A("span","lt_close lt_winClose",null,_w8);_c7.title=_y7.title=_5A._41;_4A("span","lt_mini lt_winMini",null,_w8).title=ChatBar._A8;var _e9=this._e9=_4A("a","lt_avatarLink",null,_w8);_e9.href="#";var _I9=this._C9=_4A("img","lt_avatar");if(!_d7){_d7=_v8}this._d7=_I9.src=_d7;_e9.appendChild(_I9);var _K9=this._K9=_4A("a",null,"&nbsp;",_4A("div","lt_headerName",null,_w8));_K9.href="#";var _R9=_4A("div","lt_body",null,_r9);var _T4=_4A("div","lt_infoBlock",null,_R9);this._H9=_4A("div","lt_signature",null,_T4);var _O1=_4A("div","lt_convBlock",null,_R9);this._k5=_4A("div","lt_convBar",null,_O1);var _a8=this._o7=_4A("div","lt_convContent",null,_O1);var _86=_4A("div","lt_inputBlock",null,_R9);var _V3=this._F2=_4A("div","lt_emWrap",null,_86);var _h1=this._R4=_4A("div","lt_emBtn",null,_V3);_h1.title=_5A._k1;var _D2=document.createElement("img");_D2.src=_5A._E2;_h1.appendChild(_D2);var _R2=this._l3=_4A("div","lt_emMenu",null,_V3);_R2.style.display="none";var _2A=this._2A=_4A("textarea","lt_textInput lt_prompt",null,_86);this._H9.style.wordWrap=_2A.style.wordWrap=_a8.style.wordWrap="break-word";var _77=_2A.value=_5A._43;if(_5A._68){var _q6=this._q6=_4A("div","lt_btnSend",_5A._04,_86)}this._M8=ChatBar._s7(_u9,"lt_dialogArrow");ChatBar._D6.appendChild(_b8);ChatBar._x9.push(this);_2A.onfocus=function(){if(this.value==_77){this.value=""}setTimeout(function(){Dom.removeClass(_2A,"lt_prompt")},0)};_2A.onblur=function(){if(this.value==""){Dom.addClass(this,"lt_prompt");this.value=_77}};var _i2=true,_F6=this._F6=[];_h1.onclick=function(){if(_i2){for(var i=1;i<=_5A._i1;i++){var _g1=document.createElement("img");_g1.src=_5A._j1+i+".gif";(function(){var j=i;_g1.onclick=function(){_0A._Q7();if(!_0A._K8){if(_2A.value==_77){_2A.value="";Dom.removeClass(_2A,"lt_prompt")}_2A.value+="[em:"+j+":]";_2A.focus();if(Environment.isMozilla){_2A.scrollTop=_2A.scrollHeight}}}})();_R2.appendChild(_g1);_F6.push(_g1)}_i2=false}if(_R2.style.display=="none"){_0A._72()}else{_0A._Q7()}};_V3.onclick=this._54;this._t9.onclick=function(){if(ChatBar._Z8!=_V3){_0A._Q7()}ChatBar._Z8=_0A};this.onExpand.attach(function(){ChatBar.onDialogExpand.fire(_0A)});this.onCollapse.attach(function(){ChatBar.onDialogCollapse.fire(_0A)});_c7.onclick=_y7.onclick=function(e){ChatBar._I8(e);_0A.close();ChatBar.onDialogClose.fire(_0A)};ChatBar._S9(_c7);_y7.onmouseover=function(){Dom.addClass(this,"lt_hover");Dom.addClass(_w8,"lt_subHover")};_y7.onmouseout=function(){Dom.removeClass(this,"lt_hover");Dom.removeClass(_w8,"lt_subHover")};_w8.onclick=function(){_0A.collapse(false,true)};ChatBar._S9(_w8);_K9.onclick=_e9.onclick=ChatBar._I8;_K9.onmouseover=_e9.onmouseover=function(){Dom.addClass(_w8,"lt_subHover")};_K9.onmouseout=_e9.onmouseout=function(){Dom.removeClass(_w8,"lt_subHover")};if(!_5A._O3){if(Environment.isOpera){_r9.style.display=""}_5A._P2=_u9.offsetWidth;if(_5A._68){_r9.style.display="";var _A=Dom.getStyleValue(_2A,"width")-Dom.getStyleValue(_q6,"right")-_q6.offsetWidth;if(_A>0){_5A._M6=_A+"px"}_r9.style.display="none"}_5A._y4=Dom.getStyleValue(_2A,"height")||18;_5A._24=Dom.getStyleValue(_2A,"paddingTop")+Dom.getStyleValue(_2A,"paddingBottom");if(Environment.isOpera){_r9.style.display="none"}_5A._O3=true}if(_5A._68&&_5A._M6){_2A.style.width=_5A._M6}var _h7=_5A._y4,_48=_5A._Z2,_K6=_5A._24;if(!Environment.isStrict){_h7+=_K6;_48+=_K6;_2A.style.height=_h7+"px"}var _Y7=_h7,_t7,_P9;if(Environment.isIE){_2A.style.overflowX=_a8.style.overflowX="hidden";_P9=function(){var _m9=_2A.scrollHeight;if(_m9!=_t7){_t7=_m9;if(Environment.isStrict){_m9-=_K6}if(_m9>_48){_m9=_48;_2A.style.overflowY=""}else{if(_m9<_h7){_m9=_h7}_2A.style.overflowY="hidden"}if(_m9!=_Y7){_a8.style.height=Dom.getStyleValue(_a8,"height")+_Y7-_m9+"px";_2A.style.height=_m9+"px";_Y7=_m9}}};_2A.onpropertychange=function(){if(window.event.propertyName=="value"){_P9()}}}else{var _87=document.createElement("div");_87.style.position="fixed";_87.style.left=_87.style.top="-99999px";var _97=_4A("textarea","lt_textInput",null,_87);_97.style.width=_2A.style.width;_86.appendChild(_87);var _h=35;if(!Environment.isStrict){_h+=_K6}this._P9=_P9=function(){_97.value=_2A.value;var _m9=_97.scrollHeight;if(Environment.isWebKit){_m9-=_K6}if(_m9!=_t7){_t7=_m9;if(!Environment.isStrict){_m9+=_K6}if(_m9<_h&&_2A.scrollWidth>_2A.clientWidth){_m9=_h}if(_m9>_48){_m9=_48}else{if(_m9<_h7){_m9=_h7}}if(_m9!=_Y7){_a8.style.height=Dom.getStyleValue(_a8,"height")+_Y7-_m9+"px";_2A.style.height=_m9+"px";_Y7=_m9}}};if(Environment.isWebKit){_97.style.wordWrap="break-word";_2A.style.resize=_97.style.resize="none";_2A.onkeyup=_2A.onclick=_P9}Event.addListener(_2A,"input",_P9)}var _T7=0,_g;_2A.onkeydown=function(e){if(!e){e=window.event}if(e.keyCode==13&&!e.shiftKey){Event.preventDefault(e);_T7=0;if(_2A.value!=""&&_2A.value!=_77){ChatBar.onMessageSend.fire(_0A)}}else{if(Environment.isWebKit){if(e.keyCode==13&&e.shiftKey){Event.preventDefault(e);_2A.value+="\n"}_P9()}if(_0A.showTypingTip){_g=new Date().getTime();if(_g-_T7>4000){_T7=_g;ChatBar.onTyping.fire(_0A)}}}};if(_5A._68){_q6.onclick=function(){_T7=0;if(_2A.value!=""&&_2A.value!=_77){_0A.focus();ChatBar.onMessageSend.fire(_0A)}}}this._a3=function(){try{_a8.scrollTop=_a8.scrollHeight}catch(ex){}};ChatBar._49();if(_5A._16){this.showSecurityTip(_5A._u2,_5A._O2,_5A._G4)}};_5A.prototype._39=undefined;_5A.prototype.getId=function(){return this._39};_5A.prototype._o5=undefined;_5A.prototype._c7=undefined;_5A.prototype._y7=undefined;_5A.prototype._w8=undefined;_5A.prototype._K9=undefined;_5A.prototype._e9=undefined;_5A.prototype._H9=undefined;_5A.prototype._E8=0;_5A.prototype._M8=undefined;_5A.prototype._k5=undefined;_5A.prototype._o7=undefined;_5A.prototype._F2=undefined;_5A.prototype._R4=undefined;_5A.prototype._l3=undefined;_5A.prototype._F6=undefined;_5A.prototype._2A=undefined;_5A.prototype._d7=undefined;_5A.prototype._C9=undefined;_5A.prototype._K8=false;_5A.prototype._54=function(){ChatBar._Z8=this};_5A.prototype._q6=undefined;_5A.prototype._p=false;_5A.prototype._k9=function(){base.prototype._k9.call(this);var _q9=ChatBar._q9;_q9(this._c7);_q9(this._y7);_q9(this._w8);_q9(this._e9);_q9(this._K9);var _2A=this._2A;_2A.onfocus=_2A.onblur=_2A.onkeydown=null;if(Environment.isIE){_2A.onpropertychange=null}else{if(Environment.isWebKit){_2A.onkeyup=_2A.onclick=null}else{Event.removeListener(_2A,"input",this._P9)}}this._R4.onclick=this._F2.onclick=null;for(var i=0,_F6=this._F6,_g1;i<_F6.length;i++){_g1=_F6[i];_g1.onclick=null}if(this._06){_q9(this._06);clearTimeout(this._r6)}if(this._q6){this._q6.onclick=null}this._p=true};_5A.prototype.expand=function(){ChatBar._b9.collapse(true);ChatBar._j9.collapse(true);var _y9=ChatBar._y9;if(_y9&&_y9!=this){_y9.collapse(true)}ChatBar._76(this);this.setNewMsgCount(0);base.prototype.expand.call(this);setTimeout(this._a3,0)};_5A.prototype.collapse=function(){this._Q7();base.prototype.collapse.call(this,arguments[0],arguments[1]);if(ChatBar._y9==this){ChatBar._y9=null}Dom.removeClass(this._u9,"lt_hover")};_5A.prototype._T1=function(_99,_k2){var _u9=this._u9;if(_u9.parentNode!=_99){this._t8();_99.insertBefore(_u9,_99.childNodes[_k2]||null)}};_5A.prototype._I2=function(){var _u9=this._u9,_t9=this._t9;if(_u9.parentNode!=_t9){_t9.appendChild(_u9);this._i7()}};_5A.prototype.close=function(){this._k9();var _t9=this._t9,_u9=this._u9,_v2=_u9.parentNode;if(_v2!=_t9){_v2.removeChild(_u9)}_t9.parentNode.removeChild(_t9);var _x9=ChatBar._x9;for(var i=0;i<_x9.length;i++){if(_x9[i]==this){_x9.splice(i,1);break}}if(ChatBar._y9==this){ChatBar._y9=null}ChatBar._76();ChatBar._49();ChatBar._Y8()};_5A.prototype._72=function(){this._l3.style.display="";Dom.addClass(this._R4,"lt_expanded")};_5A.prototype._Q7=function(){this._l3.style.display="none";Dom.removeClass(this._R4,"lt_expanded")};_5A.prototype.setNewMsgCount=function(count){if(this._h9){count=0}this._M8.innerHTML=count;var _u9=this._u9;if(count>0){Dom.addClass(_u9,"lt_highlight")}else{Dom.removeClass(_u9,"lt_highlight")}this._E8=count;if(_u9.parentNode!=this._t9){ChatBar._49()}ChatBar._Y8(count>0?true:false)};_5A.prototype.setAvatar=function(avatarUrl){if(avatarUrl!=this._d7){if(avatarUrl&&avatarUrl!=""){this._d7=this._C9.src=avatarUrl}}};_5A.prototype._X9=undefined;_5A.prototype.getName=function(){return this._X9};_5A.prototype.setName=function(name){this._X9=name;var _l2=ChatBar._n8;_l2(this._o5,name);_l2(this._K9,name)};_5A.prototype.setUrl=function(url){if(url){this._e9.href=this._K9.href=url}};_5A.prototype.setSignature=function(signature){if(signature){var _H9=this._H9;_H9.title=_H9.innerHTML=ChatBar._u6(signature)}};_5A.prototype.getTextValue=function(){return this._2A.value};_5A.prototype.getDataValue=function(){return this._2A.value.replace(/\[em\:(\d{1,3})\:\]/g,"[em|"+_5A._j1+"$1.gif|]")};_5A.prototype.clearTextValue=function(){if(Environment.isWebKit||Environment.isOpera){var _0A=this;setTimeout(function(){_0A._2A.value="";_0A._P9()},0)}else{this._2A.value="";if(Environment.isMozilla){this._P9()}}};_5A.prototype.focus=function(){if(!this._K8){this._2A.focus()}};_5A.prototype._15=function(_j2){return _j2.replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\n/g,"<br/>")};_5A.prototype._l=function(_E7){return'<a target="_blank" href="'+_E7+'">'+_E7+"</a>"};_5A.prototype._i4=function(_99,_K2,_P4,_G9,_R8){var _v1=/(?:\w+):\/\/(?:[^\s\/]+)(?:\/[^\s\"\'\<\>]*)?/ig;var _67=[],_Y5,_42=0;var _W5,_73;while(_Y5=_v1.exec(_G9)){_W5=_G9.substring(_42,_Y5.index);_73=_W5.length;if(_W5.substring(_73-4,_73)=="[em|"){_67.push(_W5);_67.push(_Y5[0])}else{_67.push(this._15(_W5));_67.push(this._l(_Y5[0]))}_42=_v1.lastIndex}if(_42>0){_67.push(this._15(_G9.substring(_42)))}else{_67.push(this._15(_G9))}_G9=_67.join("");_G9=_G9.replace(/\[em\|([^\|]+)\|\]/g,'<img src="$1" />');var _4A=ChatBar._4A;var _88=_4A("div","lt_msg");var _P1=_4A("div","lt_msgHeader",null,_88);_4A("span","lt_msgTime",ChatBar._k4(_P4),_P1);var _69;if(_R8){_69=document.createElement("a");_69.href=_R8;_69.innerHTML=_K2}else{_69=document.createTextNode(_K2)}_P1.appendChild(_69);_4A("div","lt_msgBody",_G9,_88);_99.appendChild(_88)};_5A.prototype.appendMessage=function(nickname,date,message,profileUrl){this._i4(this._o7,nickname,date,message,profileUrl);setTimeout(this._a3,0)};_5A.prototype._q5=function(_99,_P4,_G9){var _4A=ChatBar._4A;var _88=_4A("div","lt_statusMsg");_4A("span","lt_msgTime",ChatBar._k4(_P4),_88);_88.appendChild(document.createTextNode(_G9));_99.appendChild(_88)};_5A.prototype.appendUserStatus=function(date,message){this._q5(this._o7,date,message);setTimeout(this._a3,0)};_5A.prototype.appendHistory=function(messages){var _b8=document.createDocumentFragment();for(var i=0,_G9,_L1;i<messages.length;i++){_G9=messages[i];_L1=_G9.type;if(_L1==0){this._i4(_b8,_G9.nickname,_G9.date,_G9.message,_G9.profileUrl)}else{if(_L1==1){this._q5(_b8,_G9.date,_G9.message)}}}this._o7.appendChild(_b8);setTimeout(this._a3,0)};_5A.prototype.clearHistory=function(){this._o7.innerHTML=""};_5A.prototype.disableInput=function(tip){if(!this._K8){var _2A=this._2A;if(Environment.isMozilla){_2A.blur()}this._U2=_2A.value;if(tip){_2A.value=tip}_2A.style.color="#666";_2A.setAttribute("disabled","true");this._K8=true}};_5A.prototype.enableInput=function(){if(this._K8){var _2A=this._2A;_2A.removeAttribute("disabled");_2A.style.color="";_2A.value=this._U2||"";this._K8=false}};_5A.prototype.showSecurityTip=function(tip,href,timeout){if(href){tip='<a href="'+href+'" target="_blank">'+tip+"</a>"}var _e5=this._y1;if(_e5){this._P3.innerHTML=tip}else{var _4A=ChatBar._4A;_e5=this._y1=_4A("div","lt_seTip");var _N4=this._06=_4A("span","lt_close lt_seTipClose",null,_e5);this._P3=_4A("div","lt_seTipContent",tip,_e5);this._k5.appendChild(_e5);_N4.title=_5A._t2;ChatBar._S9(_N4);var _0A=this;_N4.onclick=this._U1=function(){clearTimeout(_0A._r6);ChatBar._q9(_N4);_e5.parentNode.removeChild(_e5);_0A._y1=_0A._06=_0A._P3=null}}clearTimeout(this._r6);if(timeout>0){this._r6=setTimeout(this._U1,timeout)}}}with({base:_5A}){Dialog.prototype=new _5A();Dialog._g2=undefined;Dialog._Q3=undefined;Dialog._m7=undefined;Dialog[""]=function(){Dialog._g2=Resource.get("clear_history","\u6E05\u9664\u804A\u5929\u5386\u53F2\u8BB0\u5F55");Dialog._Q3=Resource.get("typing","\u6B63\u5728\u8F93\u5165...");Dialog._m7=Resource.get("avatar_tip","\u67E5\u770BTA\u7684\u4E3B\u9875")};Dialog.prototype.type=0;Dialog.prototype._C7=undefined;Dialog.prototype._44=undefined;Dialog.prototype._J4=undefined;Dialog.prototype[""]=function(id,avatar){base.call(this,id,avatar);this._K9.title=this._e9.title=Dialog._m7;var _4A=ChatBar._4A;var _c1=this._k5;var _Y4=this._C7=_4A("span","lt_clearHistory",Dialog._g2,_c1);var _p5=this._44=_4A("span","lt_typingTip",null,_c1);_p5.style.display="none";this._J4=_4A("span","lt_typingName",null,_p5);_p5.appendChild(document.createTextNode(Dialog._Q3));this._m4=function(){_p5.style.display="none";_Y4.style.display=""};var _0A=this;_Y4.onclick=function(){ChatBar.onHistoryClear.fire(_0A)};ChatBar._S9(_Y4)};Dialog.prototype._k9=function(){base.prototype._k9.call(this);ChatBar._q9(this._C7);clearTimeout(this._P6)};Dialog.prototype.setName=function(name){base.prototype.setName.call(this,name);ChatBar._n8(this._J4,name)};Dialog.prototype.setStatus=function(online){if(online){Dom.removeClass(this._u9,"lt_offline")}else{Dom.addClass(this._u9,"lt_offline")}};Dialog.prototype.appendMessage=function(nickname,date,message,profileUrl){this._m4();base.prototype.appendMessage.call(this,nickname,date,message,profileUrl)};Dialog.prototype.showTypingTip=function(timeout){clearTimeout(this._P6);this._C7.style.display="none";this._44.style.display="";this._P6=setTimeout(this._m4,timeout>0?timeout:5000)}}with({base:_5A}){GroupDialog.prototype=new _5A();GroupDialog._85=undefined;GroupDialog._e=0;GroupDialog._m7=undefined;GroupDialog[""]=function(){GroupDialog._85=Resource.get("block_group","\u5C4F\u853D\u8BE5\u7FA4\u7EC4\u6D88\u606F");GroupDialog._m7=Resource.get("group_avatar_tip","\u8BBF\u95EE\u8BE5\u7FA4\u7EC4\u9996\u9875")};GroupDialog.prototype.type=1;GroupDialog.prototype._Z9=0;GroupDialog.prototype._79=undefined;GroupDialog.prototype._d8=0;GroupDialog.prototype._L8=undefined;GroupDialog.prototype._N1=false;GroupDialog.prototype._17=undefined;GroupDialog.prototype[""]=function(id,avatar){base.call(this,id,avatar);this._K9.title=this._e9.title=GroupDialog._m7;var _4A=ChatBar._4A,_b8=document.createDocumentFragment();_b8.appendChild(document.createTextNode("("));this._79=_4A("span","lt_groupOnlineCount",this._Z9,_b8);_b8.appendChild(document.createTextNode("/"));this._L8=_4A("span","lt_groupMemberCount",this._d8,_b8);_b8.appendChild(document.createTextNode(")"));var _r5=this._o5;_r5.appendChild(_b8);this._o5=_4A("span","lt_groupDialogName",null,_r5);var _M9=this;var _17=this._17=ChatBar._36("linktalk_blockOption"+this._t(),GroupDialog._85,this._k5);_17.onclick=function(){var _c9=this.checked;_M9.setBlockOption(_c9);ChatBar.onBlockChange.fire(_M9)}};GroupDialog.prototype._k9=function(){base.prototype._k9.call(this);this._17.onclick=null};GroupDialog.prototype._t=function(){if(!this._y){this._y=++GroupDialog._e}return this._y};GroupDialog.prototype.setCount=function(onlineCount,memberCount){if(onlineCount||onlineCount===0){this._Z9=this._79.innerHTML=onlineCount}if(memberCount||onlineCount===0){this._d8=this._L8.innerHTML=memberCount}};GroupDialog.prototype.getBlockOption=function(){return this._N1};GroupDialog.prototype.setBlockOption=function(checked){if(checked){Dom.addClass(this._u9,"lt_mute")}else{Dom.removeClass(this._u9,"lt_mute")}this._17.checked=this._N1=checked}}}}}}_z9._I4=function(){_z9._t6();_z9._R3();init(linktalk.common.Host);init(linktalk.common.Time);init(linktalk.common.Text);init(linktalk.common.Config);init(linktalk.common.Resource);init(linktalk.common.CookieStorage);init(linktalk.common.ProgramVersion);init(linktalk.common.FlashAvailableEventCast);init(linktalk.common.Flash);init(linktalk.dhtml.Event);init(gemui.chatbars.dhtml.Dom);init(gemui.chatbars.ui.DialogEventCast);init(gemui.chatbars.ui.OptionEventCast);init(gemui.chatbars.ui.ChatBar);init(gemui.chatbars.ui._i8);init(gemui.chatbars.ui.Panel);init(gemui.chatbars.ui._5A);init(gemui.chatbars.ui.Dialog);init(gemui.chatbars.ui.GroupDialog);_z9._f3()};_z9._c5=true;if(this["JsBox$configuration$manual_start"]!==true){setTimeout(function(){if(!_z9._c4){_z9._c4=true;_z9._I4()}},166)}}};if(_z9._s8._53){_z9._P5.call()}else{_z9._s8._i(_z9._P5)}_z9._s8._c3(window,"unload",function(){_z9._L4()})})();