Qiao.define("base",["base.dom","base.object","base.string","base.json","base.swf","base.browser","base.event","base.date","base.cookie"],function(b,a){});Qiao.define("base.dom",["base.browser","base.string"],function(d,b){var a=d.base.browser.opera,e=d.base.browser.ie,c={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};if(e<8){c["for"]="htmlFor";c["class"]="className"}else{c.htmlFor="for";c.className="class"}b.g=function(f){if(typeof f=="string"){return document.getElementById(f)}else{return f}};b.q=function(n,k,g){var o=[],j=d.base.string.trim,m,l,f,h;if(!(n=j(n))){return o}if("undefined"==typeof k){k=document}else{k=baidu.dom.g(k);if(!k){return o}}g&&(g=j(g).toUpperCase());if(k.getElementsByClassName){f=k.getElementsByClassName(n);m=f.length;for(l=0;l/g,">").replace(/"/g,""").replace(/'/g,"'")};a.decodeHTML=function(d){var e=String(d).replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");return e.replace(/&#([\d]+);/g,function(g,f){return String.fromCharCode(parseInt(f,10))})};a.escapeReg=function(d){return String(d).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\\x241")};a.format=function(f,d){f=String(f);var e=Array.prototype.slice.call(arguments,1),g=Object.prototype.toString;if(e.length){e=e.length==1?(d!==null&&(/\[object Array\]|\[object Object\]/.test(g.call(d)))?d:e):e;return f.replace(/#\{(.+?)\}/g,function(h,j){var i=e[j];if("[object Function]"==g.call(i)){i=i(j)}return("undefined"==typeof i?"":i)})}return f}});Qiao.define("base.json",null,function(d,b){var c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(h){if(/["\\\x00-\x1f]/.test(h)){h=h.replace(/["\\\x00-\x1f]/g,function(i){var j=c[i];if(j){return j}j=i.charCodeAt();return"\\u00"+Math.floor(j/16).toString(16)+(j%16).toString(16)})}return'"'+h+'"'}function f(o){var j=["["],k=o.length,h,m,n;for(m=0;m@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+\x24')).test(c)};a.getRaw=function(d){if(a._isValidKey(d)){var e=new RegExp("(^| )"+d+"=([^;]*)(;|\x24)"),c=e.exec(document.cookie);if(c){return c[2]||null}}return null};a.get=function(c){var d=a.getRaw(c);if("string"==typeof d){d=decodeURIComponent(d);return d}return null};a.setRaw=function(e,f,d){if(!a._isValidKey(e)){return}d=d||{};var c=d.expires;if("number"==typeof d.expires){c=new Date();c.setTime(c.getTime()+d.expires)}document.cookie=e+"="+f+(d.path?"; path="+d.path:"")+(c?"; expires="+c.toGMTString():"")+(d.domain?"; domain="+d.domain:"")+(d.secure?"; secure":"")};a.remove=function(d,c){c=c||{};c.expires=new Date(0);a.setRaw(d,"",c)};a.set=function(d,e,c){a.setRaw(d,encodeURIComponent(e),c)}});Qiao.define("net",null,function(b,a){a.interfaces=["request","get","post","abort"]});Qiao.define("net.flash",["base"],function(i,h){var j=i.base.dom.g,e=i.base.swf.get,c=i.base.swf.create,b="BD_QIAO_NET";var d=0;function f(l){var k=e(b+"_FLASH");if(k&&k.request){l.call(null,k)}else{setTimeout(function(){f(l)},100)}}function a(m){var k=b+"_FLASH_CONTAINER",l=j(k);if(!l){l=document.createElement("div");l.id=k;l.style.height="1px";l.style.width="1px";l.style.lineHeight="0px";l.style.fontSize="0px";document.body.appendChild(l);c({id:b+"_FLASH",url:h.path+"?req="+(new Date().getTime()),width:1,height:1,bgcolor:"#FFF",quality:"high",menu:"false",allowscriptaccess:"always"},l)}f(m)}function g(m,l){var o,k,p,n=(new Date()).getTime()+""+(d++);m=encodeURI(m);l.method=l.method||"get";l.charset=l.charset||"utf-8";if(l.onsuccess){o=l.onsuccess;delete l.onsuccess}p=Qiao.cb[b];p["succ"+n]=function(q){q=unescape(q);if(o){o.call(null,null,q)}};if(l.onfailure){k=l.onfailure;delete l.onfailure}p["error"+n]=k||function(){};a(function(q){q.request(m,l,{onsucc:"Qiao.cb."+b+".succ"+n,onerror:"Qiao.cb."+b+".error"+n})});return{abort:function(){h.abort()}}}h.path="http://qiao.baidu.com/v3/swf/crossdomain.swf";h.get=function(m,n,k){var l={method:"get"};l.onsuccess=n;l.onfailure=k;l.data="req="+(new Date().getTime());if(m.indexOf("&")>=0){l.data="&"+l.data}return g(m,l)};h.post=function(m,n,o,k){var l={method:"post"};l.onsuccess=o;l.onfailure=k;l.data=n;return g(m,l)};h.request=g;h.abort=function(){var k=e(b+"_FLASH");if(k&&k.abort){k.abort()}};Qiao.cb[b]=Qiao.cb[b]||{}});Qiao.define("im",["base","im.net","im.message","im.lang"],function(h,w){var i=h.im.net,v=h.im.message,r=h.im.editor,y=h.im.lang,b=h.base.json.parse,j=h.base.string.encodeHTML,o={},k={},e={bid:"",type:1,subid:"",siteid:"",bridgeTid:0,tid:0,referrer:"",location:"",title:"",coding:"utf8",word:"",wordtype:"",wordid:"",bdclickid:"",from:"",userName:"",csName:y.TEXT.DEFAULT_CSNAME,userStatus:0,csNameMap:{}},x=2000,p=1000,d="",f={WAIT:"wait",DROP:"block"},t=false;function u(B,A){var z;for(z in A){if(A.hasOwnProperty(z)){B[z]=A[z]}}}function m(){var z=Array.prototype.slice.call(arguments),A=o[z[0]];if(A){A.apply(null,z.slice(1))}}function q(){var z=Array.prototype.slice.call(arguments),A=k[z[0]];if(A){A.apply(null,z.slice(1))}}function a(z){e.session=z.session;i.setSession(z.session);i.bridgeInit("type="+e.type+"&chattype="+e.chattype+"&sub="+e.subid+"&username="+encodeURIComponent(e.userName)+"&siteid="+e.siteid+"&bridgetid="+e.bridgeTid+"&fromsite="+encodeURIComponent(e.referrer)+"&srcword="+encodeURIComponent(e.word)+"&wordtype="+e.wordtype+"&wordid="+e.wordid+"®ion="+encodeURIComponent(e.from)+"&insite="+encodeURIComponent(e.location)+"&title="+encodeURIComponent(e.title)+"&imuss="+e.bid,s,c)}function c(z,A){switch(z){case f.WAIT:s(A);A.autoResponse&&(w.fire("info",v.parseMessage(A.autoResponse||[]).content));e.userStatus=1;break;case f.DROP:w.fire("stop");break;default:g(z)}}function s(z){if(z.subid){e.subid=z.subid;w.fire("changesubid",z.subid)}switch(e.csNameType){case 2:z.subid&&(i.getClientName(z.subid,w.updateCSName));break;case 1:e.bridgeTid&&(i.getGroupName(e.bridgeTid,w.updateCSName));break;case 3:e.customName&&(w.updateCSName({status:0,data:e.customName}));break}e.tid=z.tid;i.pick(e.ack,true);w.fire("connected",e.session,e.tid,e.subid)}function g(z){w.fire("error",{msg:y.ERROR.INIT});if(z){i.uploadLog("initerror")}}function l(z){w.fire("error",{msg:y.ERROR.INIT});if(z){i.uploadLog("loginerror")}}function n(A,D){var C;if(e.csNameType==0||e.csNameType==3){C=e.customName||"在线客服"}else{if(e.csNameMap[A]){C=e.csNameMap[A]}else{var B=e.csNameType==1?"默认分组":"在线客服";var z=e.csNameType==1?i.getGroupName:i.getClientName;z(A,function(E){E.data=E.data.replace(/^.*?:/,"");var F=e.csNameMap[A]=E.status?B:E.data;if(D){D.call(null,F)}},true);return}}if(C&&D){D.call(null,C)}return C}o.conflict=function(){w.fire("error",{msg:y.ERROR.CONFLICT})};o.sendFail=function(){w.fire("error",{msg:y.ERROR.SEND_FAIL})};o.offline=function(){w.fire("error",{msg:y.ERROR.OFFLINE});w.fire("stop")};o.kicked=function(){w.fire("error",{msg:y.ERROR.KICKED});w.fire("stop")};k.fileUnsupport=function(){var z={content:y.TEXT.FILE_UNSUPPORT,csName:e.csName,time:new Date().getTime()};w.fire("message",z)};k.assigntask=function(z){if(z.result){e.tid=z.tid!==undefined?z.tid:e.tid;e.subid=z.subid!==undefined?z.subid:e.subid;e.bridgeTid=z.bridgeid!==undefined?z.bridgeid:e.bridgeTid;z.subid!==undefined&&(w.fire("changesubid",z.subid))}if(e.userStatus){w.fire("info",y.TEXT.ONLINE.replace("#{0}",z.from||""));if(e.csNameType==2){e.csName=z.from}e.userStatus=0}w.fire("assigntask",z.subid)};k.offline=function(z){w.fire("stat:offline",z)};k.taskbegin=function(z){w.fire("taskbegin",z)};k.kick=function(){w.fire("error",{msg:y.ERROR.DROP_KICKED});w.fire("stop");i.stopPick();w.fire("stat:error",{type:"kick"})};k.chatover=function(){w.fire("error",{msg:y.ERROR.DROP_CHATOVER});w.fire("stop");i.stopPick();w.fire("stat:error",{type:"kick"})};k.transfer=function(z){e.tid=z.new_tid;e.subid=z.new_subid;e.bridgeTid=z.new_bridgetid;w.fire("changesubid",z.new_subid);if(e.csNameType==1){i.getGroupName(e.bridgeTid,w.updateCSName)}else{if(e.csNameType==2){i.getClientName(e.subid,w.updateCSName)}}w.fire("info",y.TEXT.TRANSFER);w.fire("stat:transfer")};k.message=function(A,B,z,C){A=v.parseMessage(A);A.time=new Date().getTime();n(C,function(D){A.csName=D;w.fire("message",A,B,z)})};k.input=function(){w.fire("input",y.TEXT.INPUT)};k.customInput=function(){w.fire("customInput")};w.init=function(z,A){u(e,z||{});i.on("error",m);i.on("pick",q);i.on("timeupdate",function(){w.fire("timeupdate")});i.init(e.siteid,e.bid,A);i.on("stat:visitor",function(){w.fire("stat:visitor")})};w.sendText=function(z,A){z=j(z);i.communicate(v.parseText(z).xml,{tid:e.tid,to:e.userName,time:A})};w.sendRichText=function(A,z,B){i.communicate(v.parseRichText(A,z).xml,{tid:e.tid,to:e.userName,time:B})};w.sendStatus=function(E,D){var F=v.parseRichText(E,D).xml.replace(/url\s+ref="(.*?)"/,'text c="$1"').replace(/ /g,"");var A;var B=0;F=F.match(/<.*?>/g);for(var C=0,z=F.length;Cp){F.splice(C,1);--C;continue}A=A[1].replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");if(B+A.length>p){F[C]=F[C].replace(/".*?"/,'"'+h.base.encodeHTML(A.slice(0,p-B))+'..."')}B+=A.length}}var G=F;F=F.join("");if(F==d||G.length<=3||F.length>x){if(F!=d){d=F}return}else{d=F}i.writing({imuss:e.bid,to:e.userName,body:F})};w.login=function(z){u(e,z||{});t=false;i.welcome("source=0&imuss="+e.bid+"&anonym=true&clienttype=3",a,l)};w.pick=function(z){i.pick(z||e.ack)};w.pause=function(){var z=i.pause();z.session=e.session;z.tid=e.tid;z.bridgeTid=e.bridgeTid;z.subid=e.subid;return z};w.restart=function(z){e.session=z.session||e.session;e.tid=z.tid||e.tid;i.setSession(e.session);i.restart(z.ack,z.seq)};w.logout=function(){if(t){return}i.logout();t=true};w.getData=function(z){return e[z]};w.updateCSName=function(z){if(z.status){e.csName=y.TEXT.DEFAULT_CSNAME}else{e.csName=z.data.replace(/.*?:/,"")||y.TEXT.DEFAULT_CSNAME}}});Qiao.define("im.config",null,function(b,a){a.FACE_ROOT="img/face/";a.URL={QIAO_ROOT:"http://qiao.baidu.com/v3/",HI_SERVER:"http://webim.qiao.baidu.com/"};a.face={"\u5fae\u7b11":"1e376a99d4059562772aad9ac065fd71","\u5927\u7b11":"c5ce7689438e5ee92c5942d4885fc198","\u5077\u7b11":"d2ff68289e44c32d61f17e9cfb8f781a","\u61a8\u7b11":"564396330c9e704c27533dd0a9f38d56","\u5f97\u610f":"33991a718d98b7bde46d1656acd1d84f","\u53ef\u7231":"1eac4820cb2162ad0ea9050f730701ea","\u5bb3\u7f9e":"afb7b910b894d8638a5f5f60d66080bb","\u4e56":"6eeeea78151b0d992342b5d974ea9748","\u6dd8\u6c14":"3567d74d273570047d563a52487b458d","\u8c03\u76ae":"17a002956048d2cc3e7136a60995f4c5","\u6d41\u6cea":"6d177c2e8caa44b47950afd1c2d94ea1","\u5927\u54ed":"f2468ad19982b6109525f86e60da0a40","\u6487\u5634":"f4075f32764665658fe69d475536685f","\u95ed\u5634":"97aac5ef30ca5c313f5055d3303a901a","\u5618":"ea12132c217e29cc32a70ef2123baa55","\u9119\u89c6":"0fd150d82ae7f2d174c9601f9ee09247","\u50b2\u6162":"8484e2fcd13826ff6d311fa23f6133f1","\u767d\u773c":"46e7c6b53203f314943f5af66f6b9daf","\u601d\u8003":"8c1066c3a4fc9115b46e3ae72a19e3f4","\u56f0":"fd2bdb138346f328795d068df107ec90","\u7761":"d6c03a77dc812595b2f41fdde34d05a6","\u6c57":"fd2f51cd66989306299d8ad075abbc89","\u5c34\u5c2c":"b143058415f04e4f21302736326fb37c","\u60ca\u8bb6":"c6fbb9628da63dc12c9a1fef25dea934","\u60ca\u6050":"4a19620c98f2d809ea46900a0b552d7c","\u7591\u95ee":"7e9cbda5e0b325f01d478f8e4adf69b2","\u6655":"18c3ccd14d992d8e5aa30acfe670d42f","\u6572\u6253":"d237de97c3277b7749ce839db39b0649","\u96be\u8fc7":"f2e7df81f1e48584a82c82f99d266b7c","\u59d4\u5c48":"3ced67ed7484ec180470b6cf8f0e44b3","\u8272":"5c0aacf4ce01a07aa72ced20edfb1fb0","\u6293\u72c2":"fd78f2b8f16086a940e90f370b2bb0d4","\u6124\u6012":"c6d1d4982260a4bad13aab943f7799f0","\u5410":"658d87d64e128385f28a59c15aa8cb91","\u8870":"ae2b37bc2c8186a5dad63a583ad278cb","\u518d\u89c1":"b6db7f3a9e8a9c864046eb0eaa15942d","\u5de6\u62e5\u62b1":"3890735fdd2f25319367532f660bbcd2","\u53f3\u62e5\u62b1":"28a6dcccc96ad6d3082a0ff5554bebd6","\u95ea\u4eba":"eb06e9170d5b470f124d3943f537e714","\u5200":"d32893593db6217773e102bd694db4d8","\u543b":"11d117a72c9cd5ffa2110c31cb4a385b","\u7231\u60c5":"7f73aeabe8ddb4bb23e06de4e6072e40","\u5fc3\u788e":"b5fbcef53bf2d695db6bd48faa326585","\u9c9c\u82b1":"5bc342dfc4b92d4c0cad3a4207a99380","\u67af\u840e":"9ef7d4c187f298a10953f5096cbe9162","\u80dc\u5229":"f08d998e04027d92feaf0f8667bb016c",OK:"f143718613f47bb929e7134b2457f260","\u5927\u62c7\u6307":"2f5113cfd0a33bfec485c222051db205","\u5f31":"2ea09b4e887a6871e22d6e52a014179c","\u63e1\u624b":"a21bf8c01f41b9148b81aa1b53fb3a0e","\u86cb\u7cd5":"47198bf11c75a03e6249a1ccc1064bce","\u5496\u5561":"d6bde4b624846fd08500053358e154ae","\u5403\u996d":"e3aac3a4e1e36a02959f62d9bbcab7ac","\u592a\u9633":"75132ac5d361fd71a0b8acc6d99b7692","\u6708\u4eae":"5bbb83756e3e652b43f9f03d638718b4","\u661f\u661f":"dcb31cac1b742034e9cdc5254f309d00","\u4fbf\u4fbf":"490183579bb95ab6eee1d695cdaef213","\u732a\u5934":"ede07ac7f02fbc613381069a77ff1b5c","\u94b1":"eeb68b5c092155df924e69b2a1de21f9",Hi:"33037bedc05c33f5998f875c608d4ba1","\u7537\u515c":"d923dbf00b642078c2e3783f6f79b7bc","\u5973\u515c":"f054e7cb63e9c3ae6dc92e4f7970b15a","\u5f00\u5fc3":"3984744c44406f9516ac97f14f8f4a94","\u4e56\u4e56":"97a3bc26de5e7d5c578ffcff92784234","\u5077\u7b11\u3000":"a75928d0fe98d17c084ac411750da03b","\u5927\u7b11\u3000":"a2d411f7eb8472b2dc5cb5d0e6cd871d","\u62bd\u6ce3":"eb4e6ddad686dc9a01983ade1c2959c0","\u5927\u54ed\u3000":"1eb8aabfaa423e6fbdfa2e6faedea210","\u65e0\u5948":"480e05a180234b2eed917659ad8bc5b9","\u6ef4\u6c57":"e63b0f3f136ff6f48b214c19b0547a1d","\u53f9\u6c14":"01025799c89cb1eb67814b5ef3f102b6","\u72c2\u6655":"24bdf1f85b7335a2bfdea21aecaa502d","\u59d4\u5c48\u3000":"a8a488035f25ca63530a8a979beb72e5","\u8d85\u8d5e":"f6dffd7867799a07b36a6d5d548c8247","\u56e7\u56e7":"da3c71a49ef9ea18e10b6201d9fb793f","\u7591\u95ee\u3000":"5a68de543ec8c72fb3142c939e2fb2e2","\u98de\u543b":"1693bff59ce27d5537f8c1c35bea08f6","\u5929\u4f7f":"0228e4709bddba1e11e0df49f40b039a","\u6492\u82b1":"e22e54f7be1e2e999c0a4b10c6c1fd36","\u751f\u6c14":"ce0efd9b1065a9c32120f57cfce01fa7","\u88ab\u7838":"64996975385f3239169de64f0726e351","\u53e3\u6c34":"d4696e8fba488cf64b920900eae2474b","\u6cea\u5954":"865e4984298507c91356f7ea93bb9c91","\u5413\u50bb":"a95a3f61f00c3c6a2542c44e5a8c54f1","\u5410\u820c\u5934":"4f4dd01413a96ec2982cd318f4b7f317","\u70b9\u5934":"c66071425f7cfffa00acc9c5ae299e77","\u968f\u610f\u5410":"f1a07cb1c44d659831dbef7e8d4fa13d","\u65cb\u8f6c":"a9a909e49309d8430bd88bedcd213d9f","\u56f0\u56f0":"0f6c2477050285a33347805d86a94d17","\u9119\u89c6\u3000":"c5c3990f843ff99b964dfbc5ce77f3ac","\u544a\u793a":"3c0f70c965fb07a0c92ba6010b115c93","\u7bee\u7403":"d6c92983218597f1e03374f90b0c8896","\u72c2\u9876":"c2cd066e8df775ee02e1f84f4c8febb0","\u7529\u5934\u53d1":"9b7632dc820b2a952e34dff1bee17db1","\u518d\u89c1\u3000":"0d98833aee6e63fcd3f1cfc728dad66b","\u8d85\u4eba\u3000":"6210166e868bfc9747648b62b46cfcc6","\u8fc7\u5e74\u597d":"09689b9307f90b6568340befafe39e5c","\u7ea2\u5305\u62ff\u6765":"bf58f8260b994cf6fa07601f5d194e3f","\u606d\u559c\u53d1\u8d22":"399ca36413576124428b2a89c51e6970","\u6b22\u8fce\u5149\u4e34":"98b000b5aa8f6f200d4c227bd0406e42","\u7a0d\u7b49":"ac7bb47cb022f8215e059573b7a721f5","\u6211\u5728\u7ebf":"3b225583cb9c3bdd7f4e7d47f3ff98a6","\u6055\u4e0d\u8bae\u4ef7":"e62073630069871b7f8ade45ba13c9a3","\u5e93\u623f\u6709\u8d27":"cf8370a69fbdf95f4cf56145687b37cd","\u8d27\u5728\u8def\u4e0a":"64ffe8e7895c8a69bd72d9d5a2a1ed40","\u5fae\u7b11 ":"36c7fbde6243e1ab056d26ed04da4626","\u5e05\u54e5":"8173ba953e8b2cba6a9745e798964940","\u7f8e\u5973":"266fc64ac2949059bc4247ff36c8c72a","\u8001\u5927":"013f44177c9661fa9e9b53a5d7ad810a","\u54c8\u54c8\u54c8":"ece2d90fabf36d2868d033fe941c2505","\u5978\u7b11":"ed27bd44748988b291e3de517000a8ea","\u50bb\u4e50":"9c1abc04d03aef9f13672fcb7c27b5df","\u98de\u543b ":"82f2fac9575da046058dd47e204a2a5f","\u5bb3\u7f9e ":"29c4befb29a5b1d3856b2812c6426246","\u82b1\u75f4":"d2f1967481629b751c015ddb2897aef5","\u61a7\u61ac":"2d27536e0981cec8f6654f3f638e0cfe","\u4f60\u725b":"07f0eab7fc6e195da290fee8bb61861a","\u9f13\u638c":"63ceb8fc549ab868cc2eb588f24805fa","\u53ef\u7231 ":"f593596553738a8070b15cbe3b453a4b","\u59d4\u5c48 ":"6f5cf65eb4860e5b9c161e96334257a5","\u5927\u54ed ":"4b5649fe0d7ca648e9ef875430726629","\u6cea\u5954 ":"5231f00f23672f96b49e23b903f51571","\u5bfb\u6b7b":"ea8dd5a956ba9e59160e9a6a97fd3159","\u60ca\u8bb6 ":"eb2defeb5905451d0d07f1ff466909aa","\u7591\u95ee ":"b7c86b2b58cfded752fef914143325bb","\u9119\u89c6 ":"9b84f79c40188db4771c2577187b154e","\u5927\u9a82":"646ec54dda651d383db0038e925eb601","\u72c2\u6012":"e70bf9f4757ae74b4f86471aa0dc72d5","\u56e7":"40ad40f89dce47fc7f020e86cf951750","\u6655 ":"83128d1230675135df522efa6fdd32e7","\u5455\u5410":"4fc9d77ddbc754ee674f0f9c50e2056f","\u8d22\u8ff7":"97d24895c4d6033ab5d302ebbb72edb6","\u7761\u4e86":"31f561aa78f16cea9e1f02183312b58c","\u601d\u8003 ":"1105a0ae3b17c52432a65833ad825739","\u6c57 ":"e5744442fa792ea055ad78137f1a1cac","\u65e0\u8bed":"2d15778775f3c0f76bcf47abc8a375f8","\u62dc":"fcf60dc85c60f1800d030bd89e07e3f4","\u97a0\u8eac":"6915fe7dea48ceb50e57296782b423f7","\u7d2f\u4e86":"5e5db52f522182d91051c607be072a37","\u75c5\u4e86":"47ad9be303e3f1ffe93876051959a787","\u5899\u89d2":"0022cb45e57684b4e87b48783dc12183","\u8d85\u4eba":"b26fcee08cea8022c47f75f2a092823f","\u6233":"6fc208bfaff0d8f40bb0db9196446b12","\u8df3\u821e":"d9513f71ad92be76312f665fcb241879","\u9b3c\u8138":"8006125c59cb94d0f73d5404a25725ae","\u65e0\u804a":"e23def0114dd74dca485b1c31d59f3f3","\u649e\u5899":"e91b1ccab6f366af693fec4067cdbd7a","\u9876":"8bf6b90924fe625318b23753915d179b","Hi ":"630df8bd6950c9395b39c611809822fb","\u996d":"82fa0db5f4ac8e95c7fa97c2f028a411","\u86cb\u7cd5 ":"78703efec3547b13f2e6e5a3dd63286a","\u793c\u7269":"2e95741468c5cf64bb9d51a12c374646","\u5fc3":"a0bed224deffa67327623313cc5c5231","\u5fc3\u788e ":"745e57c9ea78d1c48a030b793a2539af","\u73ab\u7470":"4afbd9e87b0e27b98d4620e457a8ac63","\u70b8\u5f39":"5f4fdb939b838fce3f78161d4f5b5a3e","\u96c6\u4f53\u821e":"f0d88e469af4fefd1170c4c85d2bfb99","\u6253\u4eba":"5ef9889599d2f0ddfd990746809d6166","\u62cd\u62cd":"d885a150c3d14aafeaf823fa57a09c68","\u4eb2\u4eb2":"1aa61038900f78cb8b4f57ca6f00fa17","\u63e1\u624b ":"4c753e16dd5c9dc0da21402374691735","\u5b89\u6170":"ee8fa5bcbd36241820d14ae1b46648d2","\u77f3\u5934":"53cdc51684cc27b688cebd3e8a4801a5","\u526a\u5200":"8467ecac043b423891b928f654483156","\u5e03":"7b7492097c2fbb7a4c553c254f4a5994","\u606d\u559c\u5566":"ee79ba86cbf7c888fb05a1284617857d","\u5575\u5575":"8916a811f491ddfafd61986375665cc9"}});Qiao.define("im.lang",null,function(b,a){a.TEXT={WELCOME:"\u60a8\u597d\uff01\u6709\u4ec0\u4e48\u9700\u8981\u5e2e\u5fd9\u7684\u4e48\uff1f",DEFAULT_CSNAME:"\u5728\u7ebf\u5ba2\u670d",FILE_UNSUPPORT:"[\u6587\u4ef6]",FACE_UNSUPPORT:"[\u6269\u5c55\u5934\u50cf]",IMG_UNSUPPORT:"[\u56fe\u7247]",CFACE_UNSUPPORT:"[\u81ea\u5b9a\u4e49\u5934\u50cf]",ONLINE:"\u5ba2\u670d#{0}\u5df2\u7ecf\u4e0a\u7ebf\u4e86\uff0c\u60a8\u73b0\u5728\u53ef\u4ee5\u53d1\u8d77\u6c9f\u901a\uff01",TRANSFER:"\u60a8\u5df2\u88ab\u8f6c\u79fb\u7ed9\u5176\u4ed6\u5ba2\u670d",INPUT:"\u6b63\u5728\u8f93\u5165..."};a.ERROR={INIT:"\u5bf9\u4e0d\u8d77\uff0c\u8f6c\u63a5\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u8fde\u63a5",CONFLICT:"\u60a8\u8f93\u5165\u7684\u5185\u5bb9\u5b58\u5728\u5b89\u5168\u9690\u60a3\uff0c\u53d1\u9001\u5931\u8d25",OFFLINE:"\u5ba2\u670d\u5df2\u7ecf\u79bb\u7ebf\uff0c\u60a8\u76ee\u524d\u65e0\u6cd5\u53d1\u9001\u6d88\u606f",SEND_FAIL:"\u6d88\u606f\u53d1\u9001\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5",DROP_KICKED:"\u4f1a\u8bdd\u5df2\u88ab\u5ba2\u670d\u4e2d\u6b62",DROP_CHATOVER:"\u672c\u6b21\u6c9f\u901a\u5df2\u7ed3\u675f\uff0c\u5982\u6709\u95ee\u9898\u6b22\u8fce\u518d\u6b21\u54a8\u8be2",KICKED:"\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\uff0c\u60a8\u5df2\u79bb\u7ebf"}});Qiao.define("im.net",["base","net","im.config"],function(c,J){var K=1000;var D=c.net,x=c.base.cookie,q=c.base.json.parse,g=c.base.dom.g,N=null,F=null,o=null,r=null,s={},w={},e={},z={},E={seq:0,bid:"",siteid:"",session:"",ack:""},C="BD_QIAO_IM_NET",p={GETUSERNAME:C+"_SCRIPT_USERNAME",GETGROUPNAME:C+"_SCRIPT_GETGROUPNAME",GETCOMPNAME:C+"_SCRIPT_COMPNAME"},A=c.im.config.URL;var v=true;function d(Q,O){var P=document.getElementsByTagName("head")[0];if(g(Q)){P.removeChild(g(Q))}if(O.indexOf("_t")<0){O+=(O.indexOf("?")>=0?"&":"?")+"_t="+u()}var G=document.createElement("script");G.setAttribute("type","text/javascript");G.setAttribute("language","javascript");G.setAttribute("id",Q);G.setAttribute("src",O);G.setAttribute("charset","utf-8");P.appendChild(G)}function h(S,P,G){var Q=document.getElementsByTagName("head")[0];var R="jsonp_"+(+new Date());if(g(S)){Q.removeChild(g(S))}if(P.indexOf("_t")<0){P+=(P.indexOf("?")>=0?"&":"?")+"_t="+u()}if(P.indexOf("callback")<0){Qiao.cb[R]=function(T){delete Qiao.cb[R];G(T)};P+="&callback=Qiao.cb."+R}var O=document.createElement("script");O.setAttribute("type","text/javascript");O.setAttribute("language","javascript");O.setAttribute("id",S);O.setAttribute("src",P);O.setAttribute("charset","utf-8");Q.appendChild(O)}function k(Q,R){if(!Q){return}var O=A.QIAO_ROOT+"statlog/stat.gif";var G=new Image();var P="__IMG_LOG_"+u()+"__";O+="?siteid="+E.siteid+"&type="+Q;if(R){O+="&"+R}O+="&_t="+u();O+="&vis=float";window[P]=G;G.onload=G.onerror=function(){window[P]=null};G.src=O;G=null}function u(){return new Date().getTime().toString(36)}function b(P,O){var R=O.onsuccess,G=O.onfailure,Q=O.data||"";O.onsuccess=function(T,S){S=q(S);if(S.result&&S.result.toLowerCase()=="ok"){R&&R.call(null,S.content)}else{G&&G.call(null,S.result,S.content)}};O.onfailure=function(){G&&G.call();k("webimneterror","url="+encodeURIComponent(P))};Q+="&session="+E.session;Q+="&seq="+E.seq++;Q+="&_t="+u();if(Q.charAt(0)=="&"){Q=Q.substring(1)}O.data=Q;return D.request(P,O)}function m(O,P,Q,G){return b(O,{method:"post",data:P,onsuccess:Q,onfailure:G})}function L(O,P,Q,G){return b(O,{method:"get",data:P,onsuccess:Q,onfailure:G})}function M(Q){var O,P;if(!N){return}N=null;clearTimeout(F);J.fire("timeupdate");var R=0;var S=0;var G=false;if(Q.fields&&"[object Array]"==Object.prototype.toString.call(Q.fields)){E.ack=Q.ack||E.ack;x.set("BRIDGE_ACK",E.ack,{expires:15*1000});for(O=0;P=Q.fields[O];O++){if(s[P.command]){s[P.command](P)}if(P.command=="message"&&P.result=="ok"){R++;if(P.acks){S+=P.acks.split(";").length}}else{if(P.command=="msgacknotify"&&P.result=="ok"){if(P.content&&P.content.acks){S+=P.content.acks.split(";").length}}}}}else{G=true}n({recMsgNum:R,recAckNum:S,recEmpty:G})}function i(G,O){if(!N){return}N=null;clearTimeout(F);if(G=="offline"){clearInterval(r);J.fire("error","offline")}else{if(G=="kicked"){clearInterval(r);J.fire("error","kicked")}else{n();J.fire("timeupdate")}}}function a(){clearTimeout(F);N.abort();N=null;n();k("picktimeout")}function n(P){if(N){return}if(!v){return}var O=A.HI_SERVER+"pick";var R=[];var Q="";if(P&&P.recMsgNum){R.push("recmsgs="+P.recMsgNum)}if(P&&P.recAckNum){R.push("recacks="+P.recAckNum)}if(P&&P.recEmpty){R.push("recempty=1")}if(R.length>0){Q=R.join("&")}var G=x.get("BRIDGE_ACK");N=L(O,Q+"&imuss="+E.bid+"&ack="+(G==null?E.ack:G),M,i);F=setTimeout(a,40000)}function H(G,O){J.fire("error",G,O)}function B(){J.fire("stat:visitor")}function y(G){m(A.HI_SERVER+"communicate","imuss="+G.bid+"&from=&to="+G.to+"&tid="+G.tid+"&siteid="+G.siteid+"&body="+G.msg+"&time="+G.time+"&messageid="+G.id,B,H)}function I(G){y(G);G.resendTick=null;G.failTick=setTimeout(function(){H("sendFail");delete e[G.time];k("sendfail")},30*1000)}function t(Q){var G,O,P;for(G=0;O=Q[G];G++){P=e[O];if(P){clearTimeout(P.resendTick);clearTimeout(P.failTick);delete e[O]}}}function l(O,G){m(A.HI_SERVER+"msgack","imuss="+E.bid+"&from="+encodeURIComponent(c.im.getData("referrer"))+"&to="+encodeURIComponent(c.im.getData("userName"))+"&to_sub="+(G||"0")+"&ackid="+O)}function f(R){var P,Q,O=[],G;for(P in R){Q=R[P];if(Object.prototype.toString.call(Q)=="[object Array]"){G=Q.length;while(G--){O.push(P+"="+encodeURIComponent(Q[G]))}}else{O.push(P+"="+encodeURIComponent(Q))}}return O.join("&")}function j(O,P){var G=new Image();G.onload=function(){};O+=(O.indexOf("?")>-1?"&":"?")+"_t="+(new Date().getTime()).toString(36);if(typeof(P)=="object"){P=f(P)}P+=(P.length>0?"&":"")+"seq="+E.seq++;if(P.indexOf("&session=")==-1){P+="&session="+E.session}G.src=O+"&"+P}s.message=function(O){var Q,P;var G;if(O.showOnceType==undefined){G=-1;if(O.time==undefined){J.fire("pick","message",O.content,O.time,G,O.from_sub)}else{Q=O.time;l(Q,O.from_sub);if(!w[Q]){w[Q]=true;J.fire("pick","message",O.content,O.time,G,O.from_sub)}}}else{P=G=O.showOnceType;if(P==1&&O.time!=undefined){l(O.time,O.from_sub)}if(!z[P]){z[P]=true;J.fire("pick","message",O.content,O.time,G,O.from_sub)}}if(O.acks){t(O.acks.split(";"))}};s.msgacknotify=function(G){t(G.content.acks.split(";"))};s.scenefocusnotify=function(G){clearInterval(r);r=setInterval(function(){J.fire("pick","customInput")},K)};s.sceneunfocusnotify=function(G){clearInterval(r)};s.scenemsgnotify=function(G){J.fire("pick","input")};s.sendfileacknotify=function(G){};s.sendfilecancelnotify=function(G){};s.sendfilenotify=function(G){G=G.content;m(A.HI_SERVER+"sendfilecancel","username="+G.username+"&fid="+encodeURIComponent(G.fid)+"&imuss="+E.bid);J.fire("pick","fileUnsupport")};s.sendfilestatusnotify=function(){};s.communicatetransfernotify=function(G){J.fire("pick","transfer",G.content)};s.kicknotify=function(G){if(G.content&&G.content.type=="1"){J.fire("pick","kick")}else{if(G.content&&G.content.type=="2"){J.fire("pick","chatover")}}clearInterval(r);v=false};s.offlinenotify=function(G){J.fire("pick","offline",G.content)};s.assigntaskacknotify=function(G){J.fire("pick","assigntask",G.content)};s.taskbeginnotify=function(G){J.fire("pick","taskbegin",G.content)};J.init=function(O,G,P){E.siteid=O;E.bid=G;c.implement(c.net,P)};J.setSiteId=function(G){E.siteid=G};J.setSession=function(G){E.session=G};J.setBid=function(G){E.bid=G};J.welcome=function(P,O,G){m(A.HI_SERVER+"welcome",P,O,G)};J.bridgeInit=function(P,O,G){m(A.HI_SERVER+"bridgeinit",P,O,G)};J.getPrepareWord=function(P,O,G){m(A.HI_SERVER+"prepare",P,O,G)};J.pick=function(O,G){if(G){v=G}E.ack=O||"";n()};J.pause=function(){if(N){clearTimeout(F);N.abort();N=null}return{seq:E.seq,ack:E.ack}};J.stopPick=function(){if(N){N.abort();N=null}clearTimeout(F)};J.restart=function(O,G){if(N){return}v=true;E.seq=G||E.seq;E.ack=O||E.ack;n()};J.communicate=function(Q,G){var P=G.time||(new Date().getTime()),O={bid:E.bid,msg:encodeURIComponent(Q),tid:G.tid,siteid:E.siteid,to:encodeURIComponent(G.to)};O.id=E.seq;O.time=P;O.resendTick=setTimeout(function(){I(O)},30*1000);e[P]=O;y(O)};J.logout=function(){j(A.HI_SERVER+"logout",{imuss:E.bid})};J.writing=function(G){m(A.HI_SERVER+"scenemsg",f(G))};J.getClientName=function(G,P){var O=["siteid="+E.siteid];O.push("subid="+G);h(p.GETUSERNAME,A.QIAO_ROOT+"?module=default&controller=webim&action=getUserName&"+O.join("&"),P)};J.getGroupName=function(Q,P,G){var O=["siteid="+E.siteid];if(G){O.push("subid="+Q)}else{O.push("groupid="+Q)}h(p.GETGROUPNAME,A.QIAO_ROOT+"?module=default&controller=webim&action=getGroupName&"+O.join("&"),P)};J.getCompName=function(G,P){var O=["siteid="+E.siteid];O.push("mainid="+G);h(p.GETCOMPNAME,A.QIAO_ROOT+"?module=default&controller=webim&action=getUserCompName&"+O.join("&"),P)};J.setURL=function(G){var O;for(O in A){if(A.hasOwnProperty(O)){if(G[O]){A[O]=G[O]}}}};J.uploadLog=k});Qiao.define("im.message",["base","im.config","im.lang"],function(f,r){var q=f.im.config,s=f.im.lang,l=q.face,p=f.base.browser,h=f.base.string.encodeHTML,b=f.base.string.decodeHTML,a={simpleFace:{replacer:function(t){t=t.replace(/\(([^)]+)\)/g,function(v,u){var w="("+u+")";if(l[u]){w="\x0f\x0eface "+u+"\x0f"}return w});return t},parse:function(u){var t={};t.xml='';t.json='{"type":"face","n":"'+u+'"}';return t}},face:{replacer:function(t){t=t.replace(/]+)>/ig,function(v,u){var w;if(u.indexOf('data-type="face"')>=0){u.replace(/data-name="(.+?)"/,function(y,x){w=x});if(l[w]){w="\x0f\x0eface "+w+"\x0f"}}else{w=v}return w});return t},parse:function(u){var t={};t.xml='';t.json='{"type":"face","n":"'+u+'"}';return t}},url:{replacer:function(t){t=t.replace(/]+href=(\'|\")([^\'\"\s]+)\1[^>]*>[^<>]+<\/a>/ig,function(v,u,w){if(w!==""){return"\x0f\x0eurl "+w+"\x0f"}return v});return t},parse:function(u){var t={};t.xml='';t.json='{"type":"url","ref":"'+u+'","c":"'+u+'"}';return t}}},d={n:{name:"fontFamily",handle:function(t){return t}},s:{name:"fontSize",handle:function(t){return t+"pt"}},c:{name:"color",handle:function(t){return k(t)}},b:{name:"fontWeight",handle:function(t){return t=="1"?"bold":"normal"}},i:{name:"fontStyle",handle:function(t){return t=="1"?"italic":"normal"}},ul:{name:"textDecoration",handle:function(t){return t=="1"?"underline":"none"}}},e={text:function(u){var t=h(u.c);return t.replace(/\r\n/gi,"
").replace(/&#xD;&#xA;/gi,"
").replace(/%2B/gi,"+")},html:function(t){return g(t.c)},font:function(x){var u,w,v,t={};for(u in d){if(d.hasOwnProperty(u)){w=x[u];v=d[u];t[v.name]=v.handle.call(null,w)}}return t},face:function(v){var u=l[v.n],t=q.URL.QIAO_ROOT+q.FACE_ROOT;if(u){return''}else{return s.TEXT.FACE_UNSUPPORT}},img:function(t){return s.TEXT.IMG_UNSUPPORT},cface:function(t){return s.TEXT.CFACE_UNSUPPORT},url:function(v){var u=v.ref;if(u.search(/^http/)==-1){u="http://"+u}var t=v.c.replace(/\r\n/gi,"
");return''+t+""}};var i={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};var c=(p.ie&&p.ie==6)?"\ufeff":"\u200B";function g(v){var u=new RegExp(c,"g"),t=v.replace(/[\n\r]/g,"");t=t.replace(/<(p|div)[^>]*>(| )<\/\1>/gi,"\n").replace(//gi,"\n").replace(/<[^>/]+>/g,"").replace(/(\n)?<\/([^>]+)>/g,function(x,w,y){return i[y.toLowerCase()]?"\n":w?w:""}).replace(/<[^>]+>/g,"").replace(/(\n)+/g,"
");return t.replace(u,"").replace(/\u00a0/g," ").replace(/ /g," ")}function k(t){if(isNaN(t)){return"#000000"}t=new Number(t).toString(16).toUpperCase();t=("000000"+t).substr(t.length);return"#"+t.substr(4)+t.substr(2,2)+t.substr(0,2)}function m(t){if(!/^\#[\da-f]{6}$/i.test(t)){return 0}t=t.substr(5)+t.substr(3,2)+t.substr(1,2);return parseInt(t,16)}function j(v){var t,u;if(v.indexOf("#")>=0){return v}else{if(v.toLowerCase().indexOf("rgb")>=0){v=v.toLowerCase().replace(/\s*rgb\s*\(/g,"").replace(/\s*\)\s*/g,"");v=v.split(/\s*,\s*/);for(t=0;u=v[t];t++){v[t]=parseInt(u,10).toString(16);if(v[t].length<=1){v[t]="0"+v[t]}}return"#"+v.join("")}else{return""}}}function o(x){var u=["");w.push('{"type":"font",');w.push('"n":"'+(x.fontFamily?x.fontFamily:"simsun")+'",');w.push('"s":"'+v+'",');w.push('"c":"'+(t?m(t):"0")+'",');w.push('"b":"'+(x.fontWeight=="bold"||x.fontWeight=="700"?1:0)+'",');w.push('"i":"'+(x.fontStyle=="italic"?1:0)+'",');w.push('"ul":"'+(x.textDecoration=="underline"?1:0)+'"');w.push("}");return{xml:u.join(""),json:w.join("")}}function n(x,t){var v,w,u={};for(v=0;w=t[v];v++){w=a[w];if(w){x=w.replacer(x)}}x=x.replace(//ig," ").replace(/<[^>]+>/mg,"").replace(/\ ?/g," ").replace(/\"/g,""").replace(//g,">").replace(/(\r|\n|\r\n)/g," ");u.json=x.replace(/(^|\x0f)([^\x0f\x0e]+)(\x0f|$)/mg,'$1{"type":"text", "c":"$2"},$3');u.xml=x.replace(/(^|\x0f)([^\x0f\x0e]+)(\x0f|$)/mg,'$1$3');u.json=u.json.replace(/\x0f\x0e([^\x0f]+)\x0f/g,function(z,y){var A;y=y.split(" ");A=a[y[0]];if(A){return A.parse(y[1]).json+","}});u.xml=u.xml.replace(/\x0f\x0e([^\x0f]+)\x0f/g,function(z,y){var A;y=y.split(" ");A=a[y[0]];if(A){return A.parse(y[1]).xml}});u.json=u.json.replace(/,\s*$/,"");return u}r.parseText=function(w){var u=[],t=[],v;v=o();t.push(v.xml);u.push(v.json);v=n(w,["simpleFace"]);t.push(v.xml);u.push(v.json);return{xml:""+t.join("")+"",json:"["+u.join(",")+"]"}};r.parseRichText=function(x,v){var u=[],t=[],w;w=o(v);t.push(w.xml);u.push(w.json);w=n(x,["face"]);t.push(w.xml);u.push(w.json);return{xml:""+t.join("")+"",json:"["+u.join(",")+"]"}};r.parseMessage=function(y){var v=[],u,x,w,t={};for(u=0;x=y[u];u++){w=e[x.type];if(w){if(x.type=="font"){t.style=w(x)}else{v.push(w(x))}}}t.content=v.join("");return t}});Qiao.define("im.face",["base","im.config"],function(e,c){var d=e.base.dom,j=e.base.event,k=d.g,a=e.im.config,i=j.on,h=j.un;var f={ROOT:a.URL.QIAO_ROOT+a.FACE_ROOT,FACE_TAB:"FaceTab",FACE_GROUP:"FaceGroup",ROW:6,CELL:12,_index:{},wrap:null,curEle:null};var b={init:function(m,z,x){var t=[],n=[],s,w,l,p,y,q,r,v=f._index,o=a.face,u=f.ROOT;m=k(m);z=z||f.ROW;x=x||f.CELL;t.push('');for(s in o){n.push({name:s,md5:o[s]})}for(var q=0,y=0;q");for(var p=0;p'+r.name+'')}else{t.push("")}y++}t.push("")}t.push("
");m.innerHTML=t.join("");d.addClass(m,"BD-QIAO-IM-FACE-WRAP");f.wrap=m;m.style.display="none";b.bindEvents(m)},bindEvents:function(l){i(l,"click",g.clickHandle)},bindBlankEvent:function(){i(document,"click",g.onBlankClick)},unbindBlankEvent:function(){h(document,"click",g.onBlankClick)},hide:function(){f.wrap.style.display="none";c.fire("facehide",f.curEle);b.unbindBlankEvent()}};var g={onBlankClick:function(l){var n=l||window.event,m=n.target||n.srcElement;if(m==f.curEle){return}b.hide()},clickHandle:function(l){var n=l||window.event,m=n.target||n.srcElement;j.stopPropagation(n);if(d.hasClass(m,"J-face-tab")){g.switchTab(n,m)}else{if(d.hasClass(m,"J-face-item")){g.insert(n,m)}}},switchTab:function(q,o){j.preventDefault(q);d.addClass(o,"active");o.blur();var m=k(f.FACE_TAB).getElementsByTagName("a"),p=k(f.FACE_GROUP).getElementsByTagName("table"),l,r;for(l=0,r=m.length;l';c.fire("faceselect",l)}};c.init=b.init;c.show=function(l){f.curEle=l;f.wrap.style.display="";c.fire("faceshow");b.bindBlankEvent()};c.hide=b.hide});Qiao.define("im.font",["base"],function(g,d){var e=g.base.dom,m=e.g,a=g.base.browser,l=g.base.event,j=l.on;var f=["\u5b8b\u4f53","\u6977\u4f53_utf-8","\u9ed1\u4f53","\u96b6\u4e66","Times New Roman","Arial"],k=[{text:"8",value:"8pt"},{text:"9",value:"9pt"},{text:"10",value:"10pt"},{text:"11",value:"11pt"},{text:"12",value:"12pt"},{text:"14",value:"14pt"},{text:"16",value:"16pt"},{text:"18",value:"18pt"},{text:"20",value:"20pt"},{text:"22",value:"22pt"},{text:"24",value:"24pt"},{text:"26",value:"26pt"},{text:"28",value:"28pt"},{text:"36",value:"36pt"},{text:"48",value:"48pt"},{text:"72",value:"72pt"}],c='
';var h={wrap:null,_b:false,_i:false,_u:false,view:{}};var b={init:function(p){var o=document.createDocumentFragment(),n=h.view;e.addClass(p,"BD-QIAO-IM-FONT-WRAP");n.family=b.createSelect("m-font-family-select",f);o.appendChild(n.family);n.fontSize=b.createSelect("m-font-size-select",k,"9pt");o.appendChild(n.fontSize);n.bold=e.create("a",{className:"m-font-bold m-font-btn",title:"\u52a0\u7c97"});n.italic=e.create("a",{className:"m-font-italic m-font-btn",title:"\u659c\u4f53"});n.underline=e.create("a",{className:"m-font-underline m-font-btn",title:"\u4e0b\u5212\u7ebf"});n.fontColor=e.create("a",{className:"m-font-color m-font-btn",title:"\u5b57\u4f53\u989c\u8272"});n.palette=e.create("div",{className:"m-font-palette"});n.palette.style.display="none";n.palette.innerHTML=c;o.appendChild(n.bold);o.appendChild(n.italic);o.appendChild(n.underline);o.appendChild(n.fontColor);o.appendChild(n.palette);p.appendChild(o);h.wrap=p;p.style.display="none";b.bindEvents()},createSelect:function(o,u,t){var n=e.create("select",{className:o||""}),s=Object.prototype.toString,r,q,p=0;for(r=0;(q=u[r]);r++){if(s.call(q)=="[object Object]"){if(q.value==t){p=r}n.options.add(new Option(q.text,q.value))}else{if(q==t){p=r}n.options.add(new Option(q,q))}}n.selectedIndex=p;return n},bindEvents:function(){var n=h.view;j(n.family,"change",i.setFontFamily);j(n.fontSize,"change",i.setFontSize);j(h.wrap,"click",i.clickHandle);j(n.palette,"click",i.onColorSelect)},bindBlankEvent:function(){j(document,"click",i.onBlankClick)},unbindBlankEvent:function(){l.un(document,"click",i.onBlankClick)},showSelect:function(){var n=h.view;if(h.wrap.style.display=="none"){return}if(a.ie){n.family.style.visibility="visible";n.fontSize.style.visibility="visible"}}};var i={onColorSelect:function(n){var p=n||window.event,o=p.target||p.srcElement;if(o.tagName.toLowerCase()=="span"){i.setColor(p,o)}},setFontFamily:function(){d.fire("fontfamilychange",this.options[this.selectedIndex].value)},setFontSize:function(){d.fire("fontsizechange",this.options[this.selectedIndex].value)},onBlankClick:function(n){var p=n||window.event,o=p.target||p.srcElement;if(o==h.view.palette){return}i.hidePalette()},clickHandle:function(n){var p=n||window.event,o=p.target||p.srcElement;if(e.hasClass(o,"m-font-bold")){i.setBold(o)}else{if(e.hasClass(o,"m-font-italic")){i.setItalic(o)}else{if(e.hasClass(o,"m-font-underline")){i.setUnderline(o)}else{if(e.hasClass(o,"m-font-color")){i.showPalette(p,o)}}}}},setBold:function(n){if(!h._b){e.addClass(n,"m-font-bold-on");h._b=true}else{e.removeClass(n,"m-font-bold-on");h._b=false}d.fire("fontboldchange",h._b)},setItalic:function(n){if(!h._i){e.addClass(n,"m-font-italic-on");h._i=true}else{e.removeClass(n,"m-font-italic-on");h._i=false}d.fire("fontitalicchange",h._i)},setUnderline:function(n){if(!h._u){e.addClass(n,"m-font-underline-on");h._u=true}else{e.removeClass(n,"m-font-underline-on");h._u=false}d.fire("fontunderlinechange",h._u)},showPalette:function(o,n){l.stopPropagation(o);n.blur();h.view.palette.style.display="";e.addClass(n,"m-font-color-on");b.bindBlankEvent()},hidePalette:function(){var n=h.view;n.palette.style.display="none";e.removeClass(n.fontColor,"m-font-color-on");b.unbindBlankEvent()},setColor:function(o,n){l.preventDefault(o);i.hidePalette();d.fire("fontcolorchange",n.style.backgroundColor)}};d.init=b.init;d.toggle=function(o){var n=h.wrap;o.blur();if(n.style.display==""){n.style.display="none";e.removeClass(o,"btn-font-active")}else{n.style.display="";e.addClass(o,"btn-font-active");b.showSelect()}};d.hideSelect=function(){var n=h.view;if(h.wrap.style.display=="none"){return}if(a.ie){n.family.style.visibility="hidden";n.fontSize.style.visibility="hidden"}n.palette.style.display="none"};d.showSelect=b.showSelect});Qiao.define("im.editor",["im.face","im.font"],function(g,e){var f=g.base.dom,b=g.base.browser,m=f.create,k=g.base.event.on,i=g.im.face,c=g.im.font;var a={tool:'\u5bfc\u51fa\u804a\u5929\u8bb0\u5f55',editor:'
Baidu
sogou
'},l="CE",j={};var d={init:function(n){var o;j.tool=m("div",{className:"m-lite-tool"});j.tool.innerHTML=a.tool;j.face=m("div",{className:"m-lite-tool-face"});j.tool.appendChild(j.face);j.font=m("div",{className:"m-lite-tool-font"});j.tool.appendChild(j.font);n.appendChild(j.tool);j.inputArea=m("div",{className:"m-lite-input-area"});j.input=m("iframe",{frameborder:0});j.inputArea.appendChild(j.input);n.appendChild(j.inputArea);j.wrap=n;i.init(j.face,6,10);c.init(j.font);o=j.input.contentWindow.document;o.open();o.write(a.editor);o.close();o.designMode="on";d.bindEvents()},bindEvents:function(){var n=j.input.contentWindow.document;k(j.wrap,"click",h.clickHandle);k(n,"keydown",h.handleInput);k(n,"click",h.clickMontior);if(b.ie){k(n,"click",h.saveRange);k(n,"keyup",h.saveRange);k(n,"select",h.saveRange)}i.on("faceshow",h.onFaceShow);i.on("facehide",h.onFaceHide);i.on("faceselect",h.onFaceSelect);c.on("fontshow",h.onFontShow);c.on("fonthide",h.onFontHide);c.on("fontboldchange",h.onFontBoldChange);c.on("fontitalicchange",h.onFontItalicChange);c.on("fontunderlinechange",h.onFontUnderlineChange);c.on("fontfamilychange",h.onFontFamilyChange);c.on("fontsizechange",h.onFontSizeChange);c.on("fontcolorchange",h.onFontColorChange)},getEditorBody:function(){return j.input.contentWindow.document.body},editorFocus:function(){var o=j.input.contentWindow;o.focus();if(b.ie){var n=o.range||(o.document.selection.createRange());n.select()}},getEditorStyle:function(){var o={},n,q,p=d.getEditorBody(),r=["fontFamily","fontSize","color","fontWeight","fontStyle","textDecoration"];for(n=0;q=r[n];n++){if(p.style[q]){o[q]=p.style[q]}}return o}};var h={clickMontior:function(){e.fire("focus")},clickHandle:function(n){var p=n||window.event,o=p.target||p.srcElement;if(f.hasClass(o,"btn-face")){h.showFace(o)}else{if(f.hasClass(o,"btn-font")){h.toggleFont(o)}else{if(f.hasClass(o,"btn-export")){h.exportHistory()}}}},saveRange:function(){var n=j.input.contentWindow;n.range=n.document.selection.createRange()},exportHistory:function(){e.fire("exporthistory")},onFontBoldChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.fontWeight=n?"bold":"normal"},onFontItalicChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.fontStyle=n?"italic":"normal"},onFontUnderlineChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.textDecoration=n?"underline":"none"},onFontFamilyChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.fontFamily=n?n:"\u5b8b\u4f53"},onFontSizeChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.fontSize=n?n:"9pt"},onFontColorChange:function(n){d.editorFocus();var o=d.getEditorBody();o.style.color=n?n:"#000"},showFace:function(n){n.blur();f.addClass(n,"btn-face-active");i.show(n)},toggleFont:function(n){c.toggle(n)},onFaceShow:function(){c.hideSelect()},onFaceHide:function(n){c.showSelect();f.removeClass(n,"btn-face-active")},onFaceSelect:function(q){var s=j.input.contentWindow;var r=s.document;s.focus();if(b.ie){var o=s.range||(s.document.selection.createRange());o.select();o.pasteHTML(q);o.select();var u=r.getElementsByTagName("img");var t=u.length;for(var p=0;p\u5728\u7ebf\u54a8\u8be2\u60a8\u6709\u672a\u8bfb\u6d88\u606f',tool:'
\u5bfc\u51fa\u804a\u5929\u8bb0\u5f55',msg:'
#{csName} #{time}
#{content}
',info:'
#{content}
',opt:'\u767e\u5ea6\u5546\u6865',editor:'
Baidu
sogou
',history:'',titleBgColor:"border-color:#{color};background-image:none;background: -webkit-gradient(linear, left top, left bottom, from(#fdfeff), to(#{color})); background: -webkit-linear-gradient(top, #fdfeff, #{color}); background:-moz-linear-gradient(top, #fdfeff, #{color}); background:-o-linear-gradient(top, #fdfeff, #{color}); background:linear-gradient(top bottom, #fdfeff, #{color});"},z={flashTitle:["\u3010\u65b0\u6d88\u606f\u3011","\u3010\u3000\u3000\u3000\u3011"]};var d={from:0,open:2,count:1};var D={siteId:"",mainId:""};var X=BDBridgeStat;function U(){var ad,G,ac;var Q=(J.position==1)?"left:0px;right:auto;":"";g.container=W("div",{id:"BD_QIAO_WEBIM_LITE_WRAP",className:"BD-QIAO-WEBIM-LITE-WRAP",style:"display:none;"+Q});g.title=W("div",{className:"m-lite-title"});if(J.bgColor){g.title.style.cssText=i.ie?"background-image:none;border-color:"+J.bgColor+";background-color:"+J.bgColor:h(T.titleBgColor,{color:J.bgColor})}g.title.innerHTML=T.title;g.container.appendChild(g.title);ad=g.title.getElementsByTagName("a");for(G=0;ac=ad[G];G++){if(ac.className.indexOf("btn-min")>=0){g.minBtn=ac}else{if(ac.className.indexOf("btn-max")>=0){g.maxBtn=ac}}}g.content=W("div",{className:"m-lite-content"});if(J.bgColor){g.content.style.borderColor=J.bgColor}g.container.appendChild(g.content);g.editor=W("div",{className:"m-lite-editor"});g.container.appendChild(g.editor);g.opt=W("div",{className:"m-lite-opt"});g.opt.innerHTML=T.opt;g.container.appendChild(g.opt);g.widgets=[g.content,g.editor,g.opt];if(i.ie<=6){g.iframe=W("iframe",{src:"about:blank",scrolling:"no",frameborder:0,style:"width:100%;z-index:-1;position:absolute;top:0;left:0;"});g.container.appendChild(g.iframe);g.container.style.position="absolute";window.attachEvent("onscroll",c);window.attachEvent("onresize",c)}document.body.appendChild(g.container);s.init(g.editor);g.tip=W("div",{className:"m-lite-tip",style:"display:none"});g.container.appendChild(g.tip)}function q(Q,ac){var G=new Image();G.onload=function(){};G.src=Q+ac}function c(){var Q=i.isStrict?document.documentElement:document.body;var G=g.container;G.style.top=Q.clientHeight+Q.scrollTop-G.clientHeight+"px"}function aa(){var G=/(^|\s+)btn-([^-]+)(\s+|$)/;g.container.onclick=function(ac){var Q;ac=ac||window.event;Q=ac.target||ac.srcElement;if(Q.tagName.toLowerCase()=="a"&&Q.className.indexOf("btn")>=0){Q.className.replace(G,function(ae,ad,ah,ag){var af;if(af=x[ah]){af.call(null,Q)}});H(ac)}else{if(Q.tagName.toLowerCase()=="span"&&Q.className.indexOf("m-lite-title-notify-text")>=0){I("all")}}t(false)};s.on("focus",function(){t(false)});C.on("message",function(ad,ac,Q){if(!f.showOnce&&Q==1){return}ad.type="server";f.messages.push(ad);ab(ad);if(f.showType=="none"){I("min")}t(true);C.fire("stat:message")});C.on("connected",function(ag,af,Q){V.set("imConnected","true");f.status=1;f.sendAbled=true;P.fire("ready");var ae,ah,ad,ac;if(f.reLogin){f.reLogin=false;ah=f.messages=u(V.get("imMessage"))||[];g.content.innerHTML="";for(ac=0;(ad=ah[ac]);ac++){ab(ad)}g.content.lastChild&&g.content.lastChild.scrollIntoView();I("all")}else{ab({content:"\u8f6c\u63a5\u6210\u529f",type:"info"})}V.set("imLastPickTime",(+new Date()))});C.on("info",function(Q){ab({content:Q,type:"info"})});C.on("input",function(Q){j(K(Q))});C.on("taskbegin",function(ac){var Q=J.SITE_ID;C.fire("stat:taskbegin",{subId:ac.subid,siteId:Q,chatId:ac.sessionid})});C.on("customInput",R);C.on("error",function(Q){var ac={content:Q.msg,type:"info"};ab(ac);f.messages.push(ac)});C.on("changesubid",function(Q){if(Q!==undefined&&Q!==""){P.fire("changesubid",Q)}});C.on("stop",function(){f.sendAbled=false;V.set("imConnected","");P.fire("unload")});C.on("timeupdate",function(){V.set("imLastPickTime",(+new Date()))});s.on("exporthistory",m);s.on("editorsend",x.send);y()}function y(){D.siteId=J.SITE_ID;D.mainId=J.mainid;var G;var Q=function(){d.chatId="";clearInterval(G)};var ac=function(){G=window.setInterval(function(){X("REFRESH_IM",D,d)},10*60*1000)};C.on("stat:visitor",function(){X("VISITOR_IM",D,d)});C.on("stat:taskbegin",function(ad){d.subId=ad.subId;d.sessionId=D.siteId+"_"+J.bid;d.chatId=ad.chatId;V.set("stat_subid",ad.subId);V.set("stat_chatid",ad.chatId);X("START_IM",D,d);ac()});C.on("stat:message",function(){if(!d.chatId){return}X("SERVER_IM",D,d)});C.on("stat:offline",function(){Q()});C.on("stat:transfer",function(ad){Q()});C.on("stat:error",function(ad){if(ad.type=="kick"){Q()}});C.on("stat:revert",function(ad){D.siteId=ad.siteId;D.mainId=ad.mainId;d.subId=V.get("stat_subid");d.chatId=V.get("stat_chatid");d.sessionId=D.siteId+"_"+J.bid;ac()})}function k(G){if(f.flashTimer){clearTimeout(f.flashTimer);f.flashTimer=null}G=G%z.flashTitle.length;document.title=z.flashTitle[G]+f.pageTitle;f.flashTimer=setTimeout(function(){k(++G)},500)}function t(G){if(G&&g.title.className.indexOf("notify")<0){g.title.className+=" m-lite-title-notify";f.pageTitle=document.title;k(0)}else{if(!G&&g.title.className.indexOf("notify")>=0){g.title.className=g.title.className.replace(/\s+m-lite-title-notify/g,"");clearTimeout(f.flashTimer);f.flashTimer=null;document.title=f.pageTitle||document.title}}}function j(G){if(f.tiptimer){clearTimeout(f.tiptimer)}if(f.showType!=="all"){return}g.tip.innerHTML=G;g.tip.style.display="";f.tiptimer=setTimeout(function(){g.tip.style.display="none"},3000)}function r(){if(f.tiptimer){clearTimeout(f.tiptimer)}g.tip.style.display="none"}function m(){var ae=o("BD_Qiao_History"),Q,ad,ac,G,af;if(!ae){ae=W("form",{id:"BD_Qiao_History",method:"post",target:"_blank"});ae.setAttribute("accept-charset","utf-8");ae.setAttribute("action",J.root+"download_record.htmp");ae.style.display="none";ae.innerHTML=T.history;document.body.appendChild(ae)}Q=ae.getElementsByTagName("input");for(ac=0,G=Q.length;ac").replace(/.*?<\/table>/gi,"(\u56fe\u7247)");break;case"t":ad.value=J.userGroupName||"";break;case"z":ad.value=i.ie?true:false;break;case"prefix":ad.value=J.root;break}}if(i.ie){af=document.charset;document.charset="utf-8";ae.submit();document.charset=af;return}ae.submit()}function ab(ad){var ac=ad.type=="info"?T.info:T.msg,G=new Date(),Q;ad=p({},ad);G.setTime(ad.time);ad.time=L(G,"HH:mm:ss");Y(g.content,"beforeend",h(ac,ad));if(ad=ad.style){ac="";for(Q in ad){if(ad.hasOwnProperty(Q)){ac+=Q+":"+(Q.toLowerCase()=="color"?ad[Q].toLowerCase():ad[Q])+";"}}g.content.lastChild.children[1].style.cssText=ac.replace(/[A-Z]/g,function(ae){return"-"+ae.toLowerCase()})}g.content.lastChild.scrollIntoView()}function S(){if(g.container){return}U();aa();C.init({bid:J.bid,siteid:J.siteid,mainid:J.mainid,userName:J.userName,csNameType:J.csNameType,customName:J.customName},l.net.flash)}function a(){var ad,af,Q,G;if(!V.isActived()){return}ad=V.get("imStatus");if(!ad){setTimeout(a,300);return}ad=u(ad);J.userGroupName=ad.userGroupName;delete ad.userGroupName;P.fire("revertsession");af=f.messages=u(V.get("imMessage"))||[];g.content.innerHTML="";for(G=0;Q=af[G];G++){ab(Q)}g.content.lastChild&&g.content.lastChild.scrollIntoView();C.restart(ad);f.sendAbled=true;f.status=1;I("all");if(f.firstEnterFlag){var ae=J.SITE_ID;var ac=J.mainid;C.fire("stat:revert",{siteId:ae,mainId:ac})}V.set("imStatus","")}function E(){var ac;var ad;var G;var Q;if(!V.isActived()){return}ac=V.get("imStatus");if(!ac){setTimeout(E,300);return}ad=f.messages=u(V.get("imMessage"))||[];g.content.innerHTML="";for(G=0;Q=ad[G];G++){ab(Q)}g.content.lastChild&&g.content.lastChild.scrollIntoView()}function A(){var G;G=C.pause();G.userGroupName=J.userGroupName;G=B(G);V.set("imStatus",G);V.set("imMessage",B(f.messages))}function O(){var G;if(V.get("imConnected")){f.showOnce=false;f.reLogin=true;G=u(V.get("imStatus"));G=p(w(),G);S();C.login(G);V.set("imStatus","")}}function F(){f.firstEnterFlag=true}function n(G){var ae,af,ac,ad;if(!G&&f.status==1){A();f.status=2}else{if(G){if(V.get("imConnected")){var Q=V.get("imLastPickTime");if((+new Date())-Q>v){return}S();a()}else{if(f.status==2){E();f.sendAbled=false}}}}}function N(){if(f.status==1){A()}}function Z(Q,G){if(G){if(i.ie){Q=Q.replace(/(^

|<\/P>$)/ig,"").replace(/<\/P>\s*

/ig,"
").replace(/\ ?/g," ")}else{if(i.firefox){Q=Q.replace(/
$/," ")}else{if(i.opera){Q=Q.replace(/
/ig," ").replace(/(^

|<\/p>$)/ig,"").replace(/<\/p>

/ig,"
")}else{Q=Q.replace(/

/i,"
").replace(/<\/div>$/i,"").replace(/<\/div>
/ig,"
").replace(/
/g," ");Q=Q.replace(/
/g,"
")}}}}else{Q=Q.replace(/
/g,"
")}return Q}function R(){var Q=s.getContent();var G=s.getStyle();Q=b(Q);if(!Q){return}Q=Z(Q,s.isMultilineMode());C.sendStatus(Q,G)}function w(){return p({},J.searchInfo)}function I(Q){var G,ac;if(!g.container){return}if(Q=="none"){g.container.style.display="none";f.showType="none"}else{g.container.style.display="";g.title.style.display="";for(G=0;ac=g.widgets[G];G++){ac.style.display=Q=="all"?"":"none"}g.minBtn.style.display=Q=="all"?"":"none";g.maxBtn.style.display=Q=="all"?"none":"";f.showType=Q=="all"?"all":"min";if(Q=="all"){g.content.lastChild&&g.content.lastChild.scrollIntoView()}else{r()}if(i.ie<=6){g.iframe.style.height=g.container.clientHeight-2+"px";setTimeout(function(){c()},0)}}}x.close=function(){I("none")};x.max=function(G){I("all")};x.min=function(G){I("min")};x.send=function(){var Q=s.getContent(),G=s.getStyle(),ac;if(!f.sendAbled){return}Q=b(Q);if(!Q){return}Q=Z(Q,s.isMultilineMode());ac={content:Q,csName:"\u6211",type:"client",style:G};ac.time=new Date().getTime();C.sendRichText(Q,G,ac.time);ab(ac);f.messages.push(ac);s.clear();C.net.uploadLog("sendmsg")};P.init=function(ac){J.bid=ac.bid;J.siteid=ac.siteid;J.mainid=ac.mainid;J.SITE_ID=ac.SITE_ID;J.userName=ac.userName;J.offsetTime=parseInt(ac.offsetTime,10);J.root=ac.root||"http://qiao.baidu.com/v3/";J.bgColor=ac.bgColor;J.position=ac.position;J.csNameType=ac.csNameType;J.customName=ac.customName;J.searchInfo=ac.searchInfo;if(isNaN(J.offsetTime)){J.offsetTime=0}V.on("firstEnter",F);V.on("active",n);V.on("leave",N);var G={};G.siteid=J.siteid;V.init(G);if(V.get("imConnected")=="true"){var Q=V.get("imLastPickTime");if((+new Date())-Q>v){return}S();a()}f.firstEnterFlag=false};P.accept=function(G){if(G.userGroupName){J.userGroupName=G.userGroupName;delete G.userGroupName}G=p(w(),G);if(V.isActived()){S();C.login(G);I("all");ab({content:"\u6b63\u5728\u8fde\u63a5...",type:"info"});return true}else{return false}};P.show=function(){I("all")}});