echats 中有barminmin widthh这个属性吗

/* @file chat.view.in.js
(function(a,q){a.myScroll=a.Class.create();a.myScroll.prototype={name:"myScroll",mainBox:null,contentBox:null,scrollBar:null,_wheelFlag:0,_wheelData:-1,timeID:null,options:null,initialize:function(b,c,d,e){this.mainBox=b.talkVersion?b:a(b);this.contentBox=c.talkVersion?c:a(c);this.options=a.extend({width:0},e);this.mainBox.length&&this.contentBox.length&&(this._createScroll(d),this.resizeScroll(),this._tragScroll(),this._wheelChange(),this._clickScroll())},scrollBottom:function(){var a=this.mainBox.length&&
this.contentBox.length&&(clearTimeout(this.timeID),this.timeID=setTimeout(function(){a.resizeScroll();a.mainBox.scrollTop(a.mainBox.scrollHeight());a.scrollBox.css("top",Math.floor(a.mainBox.offset().top-a.scrollBox.offset().top)+"px");a.scrollBar.css("top",a.scrollBox.height()-a.scrollBar.height()+"px");a._wheelFlag=12*(a.mainBox.height()-a.scrollBar.height())},50))},_createScroll:function(b){this.mainBox.css("overflow-y","hidden");this.scrollBox=a({className:"view-scrollBox",style:a.STYLE_NBODY+
"display:border-radius:10"}).appendTo(this.mainBox);this.scrollBar=a({className:b,style:a.STYLE_NBODY+"background:#d8d8d8;border-radius:10position:width:6top:0;"}).appendTo(this.scrollBox);a({tag:"span",style:a.STYLE_NBODY}).appendTo(this.scrollBar);return this.scrollBar},resizeScroll:function(){var a=this.mainBox.width(),c=(parseInt(this.mainBox.css("border-left-width"))||0)+(parseInt(this.mainBox.css("border-right-width"))||0),d=parseInt(this.contentBox.css("margin-left"))+
parseInt(this.contentBox.css("margin-right")),e=this.mainBox.height()-10-c,f=this.scrollBar.width()||6;this.scrollBox.css({position:"absolute",background:"#f9f9f9",width:this.scrollBar.width()+"px",height:this.mainBox.height()+"px",left:a-f-c+"px",top:"0px"});this.contentBox.css({width:Math.max(this.options.width,a-f-d)+"px"});a=Math.max(this.contentBox.height(),this.mainBox.height());e=parseInt(e*(e/a))||300;e>=this.mainBox.height()?this.scrollBox.display():this.scrollBox.display(1);this.scrollBar.css("height",
e+"px")},_tragScroll:function(){var b=this.scrollBar.bind("mousedown",function(c){function d(c){c=a.Event.fixEvent(c).clientY-g+f;c>e-b.scrollBar.height()&&(c=e-b.scrollBar.height());0>=c&&(c=0);var d=c*(b.contentBox.height()/b.mainBox.height());b.mainBox.scrollTop(d);b.scrollBox.css("top",Math.floor(d)+"px");b.scrollBar.css("top",c+"px");b._wheelData=c}var c=a.Event.fixEvent(c),e=b.mainBox.height(),f=b.scrollBar.offset().top-b.scrollBox.offset().top,g=c.clientY;a(document).bind("mousemove",
d);a(document).bind("mouseup",function(){a(document).removeEvent("mousemove",d)})}).hover(function(){a(this).css("background","#a6a6a6")},function(){a(this).css("background","#d8d8d8")})},_wheelChange:function(){var a=this,c=0;this._mouseWheel(this.mainBox,function(d){a._wheelFlag+=d;0=c&&(c=0,a._wheelFlag=0);c>=a.mainBox.height()-a.scrollBar.height()&&(c=a.mainBox.height()-
a.scrollBar.height(),a._wheelFlag=12*(a.mainBox.height()-a.scrollBar.height()));d=c*(a.contentBox.height()/a.mainBox.height());a.mainBox.scrollTop(d);a.scrollBox.css("top",Math.floor(d)+"px");a.scrollBar.css("top",c+"px")})},_clickScroll:function(){var b=this.scrollBox.click(function(c){var c=a.Event.fixEvent(c),d=c.clientY+a(window).scrollTop()-b.mainBox.offset().top-b.scrollBar.height()/2;0>=d&&(d=0);d>=b.mainBox.height()-b.scrollBar.height()&&(d=b.mainBox.height()-b.scrollBar.height());c.target!=
b.scrollBar&&(c=d*(b.contentBox.height()/b.mainBox.height()),b.mainBox.scrollTop(c),b.scrollBox.css("top",Math.floor(c)+"px"),b.scrollBar.css("top",d+"px"),b._wheelData=d)})},_mouseWheel:function(b,c){function d(b){b=a.Event.fixEvent(b);return b.wheelDelta?b.wheelDelta:40*b.detail}b.bind("mousewheel",function(a){var b=-d(a);c(b);document.all?window.event.returnValue=!1:a.preventDefault()}).bind("DOMMouseScroll",function(a){var b=d(a);c(b);a.preventDefault()})}};a.chatView=a.Class.create();a.chatView.prototype=
{name:"chatView",contains:null,loadElement:null,chatElement:null,messageElement:null,displayiFrame:null,chatHistory:null,objFile:null,objImage:null,_tempHeader:null,_chatsHeader:null,_chatsElement:null,_maxNumber:50,_sendKey:"Enter",_editorStart:0,_initFace:!1,_eventFunction:new Function,scroll:null,_listenNumber:0,_listenTimeID:null,_inputTimerID:null,buttonSelectors:null,imageHash:{},evalRepeatClick:!0,receiveMsgCount:0,mode:null,options:null,siteid:"",settingid:"",initialize:function(b,c){this.options=
b;this.siteid=this.options.this.settingid=this.options.this.mode=c;this.buttonSelectors={face:"chat-view-face",image:"chat-view-image",file:"chat-view-file",history:"chat-view-history",loadhistory:"chat-view-load-history",evaluate:"chat-view-evaluate",capture:"chat-view-capture",capoptions:"chat-view-capture-options",csr:"chat-view-change-csr",manual:"chat-view-switch-manual",submit:"chat-view-submit",exp:"chat-view-exp",xiaonengver:"chat-view-xiaoneng-version"};this.mode?(this.scroll=
null,this._create()):a.Log("mode is null",3)},_create:function(){this.contains=a({className:"chat-view-contains",key:this.settingid,style:a.STYLE_NBODY+"overflow:width:100%;height:position:left:0;top:0;padding-top:1px solid #fff\\0;"}).appendTo(this.options.chatContainter);this.loadElement=a({className:"chat-view-load",style:a.STYLE_BODY+"height:"+this.options.height+"_height:"+(this.options.height-240)+"box-sizing:border-display:"}).appendTo(this.contains).html(this._getViewHtml("load"));
this.chatElement=a({className:"chat-view-window",style:a.STYLE_BODY+"width:100%;height:display:padding-top:1px solid #fff\\0;"}).appendTo(this.contains).html(this._getViewHtml("window"));this.messageElement=a({className:"chat-view-message",style:a.STYLE_BODY+"height:"+this.options.height+"display:float:width:100%;"}).appendTo(this.contains).html(this._getViewHtml("message"));this.displayiFrame=a({tag:"iframe",id:"chat-view-submit-iframe",name:"chat-view-submit-iframe",className:"chat-view-submit-iframe",
style:a.STYLE_NBODY+"display:"}).appendTo(this.contains);this.contains.append(this._getViewHtml("alert"));this.chatHistory=this.chatElement.find(".chat-view-window-history");this._tempHeader=this.options.chatHeader.find(".chat-header-icon,.chat-header-name,.chat-header-sign,.ntalk-button-maxresize,.ntalk-button-min,.ntalk-button-close");this.options.chatHeader.find(".header-chatrecord-title").length||a({className:"header-chatrecord-title",style:a.STYLE_BODY+"font-weight:float:margin:15px 10px 5px 20height:20visibility:overflow:display:"}).appendTo(this.options.chatHeader.find(".chat-header-body")).html(a.lang.button_view);
this.options.chatHeader.find(".header-chatrecord-close").length||a({className:"header-chatrecord-close",style:a.STYLE_NBODY+"float:cursor:margin:20px 5px 0 0;width:20height:20position:display:"}).appendTo(this.options.chatHeader);this._chatsHeader=this.options.chatHeader.find(".header-chatrecord-title,.header-chatrecord-close");this._chatsElement=this.chatElement.find(".chat-view-float-history");this._bind();this.callChatResize(this.options.width,this.options.height)},
close:function(){this.contains.remove();this.contains=a.isFunction(this._eventFunction)&&a(document.body).removeEvent("click",this._eventFunction)},minimize:function(){this.contains.css({width:(a.browser.msie&&7>=a.browser.ieversion?1:0)+"px",height:(a.browser.msie&&7>=a.browser.ieversion?1:0)+"px"})},maximize:function(){this.contains.css({width:"100%",height:"auto"})},switchUI:function(b){if(this.contains)switch(b){case this.mode.CON_VIEW_WINDOW:this.contains.find(".chat-view-load,.chat-view-message").display();
this.contains.find(".chat-view-window").display(1);this.scroll||(this.scroll=new a.myScroll(this.chatHistory,this.chatHistory.find("ul"),"chat-view-scrollBar",{width:411}));case this.mode.CON_VIEW_MESSAGE:this.contains.find(".chat-view-load,.chat-view-window").display();this.contains.find(".chat-view-message").display(1);this._viewHistory(!1);this._stopListen();case this.mode.CON_VIEW_ERROR:this.contains.find(".chat-view-window,.chat-view-message").display();this.contains.find(".chat-view-load").display(1);
this.contains.find(".chat-view-load-icon, .chat-view-load-info").display();this.contains.find(".chat-view-load-error").display(1).find("span");default:this.contains.find(".chat-view-window,.chat-view-message").display(),this.contains.find(".chat-view-load").display(1),this.contains.find(".chat-view-load-error").display(),this.contains.find(".chat-view-load-icon, .chat-view-load-info").display(1)}},showMessage:function(b,c){var d=this,e,f,g,h,j,i=1;for(f=[a.STYLE_NBODY+"background:list-style:display:padding:5px 30px 0 0;",
a.STYLE_NBODY+"background:list-style:display:padding:5px 0 0 30text-align:",a.STYLE_NBODY+"background:list-style:display:padding:5px 10px 0 10text-align:"];this.chatHistory.find("li[class]").length>=this._maxN)this.chatHistory.find("li[class]").first().remove();switch(b){case "left":f=f[0];g=c.case "bottom":f=f[0];g="systembottom";case "right":f=f[1];g=c.case "goods":f=f[2];
g="first";case "system":f=f[2];g="system";case "system0":f=f[2];g="system0";case "info":f=f[2];g=c.case "otherinfo":f=f[0];g=c.default:f=f[2],g="first"}if(this.chatHistory.find("li."+g).length&&"system"!=g)"systembottom"==g&&this.chatHistory.find("li."+g).css("visibility","visible"),e=this.chatHistory.find("li."+g).html(this._getMessageHtml(b,this._contentFilter(c)));else if(c){("system"===g||"system0"===g)&&this.chatHistory.find("li."+g).remove();if("first"===
g&&1<this.chatHistory.find("ul li").length)h=this.chatHistory.find("li").eq(0);else if(j=this.chatHistory.find("li").eq(0-i),j.indexOfClass("first"))h=else{j.indexOfClass("systembottom")&&(i++,h=j,j=this.chatHistory.find("li").eq(0-i));if("system"===g&&this.mode.enterUserId){for(;j&&j.attr("userid")==this.mode.enterUserId&&!(5<=i);)i++,h=j,j=this.chatHistory.find("li").eq(0-i);this.mode.enterUserId=""}for(;j&&(!j.indexOfClass("first")&&!j.indexOfClass("system")&&j.attr("localtime")&&i=c.localtime)&&!(5j||h.height()>j))h.css({height:j+"px","overflow-y":"hidden"}),g.find(".view-history-more").display(1);
switch(c+""){case "1":"string"===typeof d?this._showResend(b,d).click(function(c){a.Event.fixEvent(c).stopPropagation();a(this).parent().parent().display();f.mode.resend(b)}):h.find(".ntalk-preview").length&&h.find(".ntalk-preview").each(function(){var c=this,e=a(c).attr("sourceurl");a.require(e+"#image",function(e){if(e.error)a(c).display();else{var d=a.zoom(e,332,500);a(c).attr({width:d.width,height:d.height,src:e.src}).click(function(){f._fullScreenImage(this,b)}).css({width:d.width+"px",height:d.height+
"px",cursor:"pointer"})}f.scroll&&f.scroll.scrollBottom&&f.scroll.scrollBottom()})});case "13":var f=this,i,l=[],k=d.msg.item||d.msg.items||{};if(!k||a.isEmptyObject(k))k.url=k.url||"javascript:void(0)";k.name&&l.push('");a.each(k,function(b,c){a.isArray(c)?(c[1]=(-1=(c[1]+"").indexOf(k.currency)?k.currency:"")+""+c[1],l.push(''+c[0]+(/zh_cn|zh_tw/i.test(a.lang.language)?"&#65306;":":")+""+c[1]+""),a.Log(c[0]+": "+c[1])):a.isObject(c)?(c.v=(-1=(c.v+"").indexOf(k.currency)?k.currency:"")+""+c.v,l.push(''+c.k+(/zh_cn|zh_tw/i.test(a.lang.language)?"&#65306;":":")+""+c.v+""),a.Log(c.k+": "+c.v)):a.lang.goodsinfo[b]&&(c=(-1=(c+"").indexOf(k.currency)?
k.currency:"")+c,l.push(''+a.lang.goodsinfo[b]+(/zh_cn|zh_tw/i.test(a.lang.language)?"&#65306;":":")+" "+c+""),a.Log(a.lang.goodsinfo[b]+""+c))});k.imageurl&&a.require(k.imageurl+"#image",function(b){b.error?f.chatHistory.find(".view-history-goods-image").html(""):(i=a.zoom(b,75,75),f.chatHistory.find(".view-history-goods-image").html(''));f.scroll&&f.scroll.scrollBottom()});f.scroll&&f.scroll.scrollBottom();this.chatHistory.find(".view-history-goods-info").html(l.join(""));case "2":case "4":2==d.type&&1==d.emotion?(a.require(d.sourceurl+"#image",function(b){b.error?(a.Log("emotion file failure.",3),d.msgid&&f.removeMessage(d.msgid)):(b=a.zoom(b,100,85),h.css({background:"none",cursor:"auto",height:b.height+
"px"}).html(''));f.scroll&&f.scroll.scrollBottom()}),f.scroll&&f.scroll.scrollBottom()):"UPLOADING"==d.status?(g.find("table").css("width","138px"),h.css({width:"100px",height:"85px",background:"url("+a.imageicon+") no-repeat "+(2==c?"-98px -145px":"0 -245px")})):a.isNumeric(d)&&0=d?g.find(".view-history-progress").display(1).find(".view-history-upload-progress").css("width",
d+"%"):0>d||d.error?(2==c?(g.find("table").css("width","138px"),h.css({width:"100px",height:"85px",background:"url("+a.imageicon+") no-repeat "+(2==c?"0 -145px":"-98px -245px")}),-1==d?this._transCancel(b):this._showFailure(b)):this._showFileUpload(g,h,{name:"",size:"",error:e},-1),g.find(".view-history-progress").display()):a.isObject(d)&&d.url&&(2==c?a.require(d.url+"#rnd#image",function(c){if(c.error)a.Log("upload file failure.",3),g.find("table").css("width","120px"),h.css({width:"100px",background:"url("+
a.imageicon+") no-repeat 0 -145px"});else{var e='',j=c.width,i=c.if(138>c.width)if(j=138,100>c.height)var i=100,k=!a.browser.Quirks&&(6==a.browser.ieversion||7==a.browser.ieversion)?c.height:i,e=''+
e+"";else e=''+e+"";else 100>c.height&&(i=100,k=!a.browser.Quirks&&(6==a.browser.ieversion||7==a.browser.ieversion)?c.height:i,e=''+e+"");g.find("table").css("width",
(220>j?j:220)+26+"px");a.Log("upload file(width:"+c.width+", height:"+c.height+") success:"+d.url);h.css({background:"none",cursor:"pointer",width:220>j?j+"px":"220px",height:160>i?i+"px":"160px","max-width":"220px","max-height":"160px"}).html(e).find("img").click(function(){f._fullScreenImage(this,b)});c=g.attr("userid");1>=a.base.checkID(c)&&c?h.parent().css({padding:"2px",border:"1px solid #e2e2e2"}):h.parent().css({padding:"2px",border:"1px solid #78bde9"});c=g.find(".view-history-angle");c.css("margin-top",
"15px");c.parent().css("vertical-align","top");f.imageHash[b]=1;"function"!=typeof webInfoChanged&&h.bind("mouseenter",function(){var b=['',a.lang.news_download,"&&"].join("");a(this).css("position","relative");a(this).append(b);a(this).find(".mouse-enter-download").css("opacity",0.5);a(this).find(".mouse-enter-download").click(function(b){a.Event.fixEvent(b).stopPropagation();
f.displayiFrame.attr("src",d.sourceurl||d.url)})}).bind("mouseleave",function(){a(this).css("position","static");a(this).find(".mouse-enter-download").remove()})}f.scroll&&f.scroll.scrollBottom()}):this._showFileUpload(g,h,d,1),g.find(".view-history-progress").display());case "6":new a.Music(b,d.url,"audio/mpeg",d.duration||d.length,this.audioView,this.audioBindEvent,this.contains);case "9":default:h.html(d)}},loadLinkContainer:function(b){var c=this,b=this.chatHistory.find("."+
b).last().find(".view-history-body").find(".ntalk-link-contains");b.length&&b.each(function(b,e){var f=a(e).attr("data-source"),g=a(e).attr("class");f&&c.mode.loadLink(f,"."+g.replace(/ntalk\-link\-contains\s+/gi,""))})},viewLinkContainer:function(b,c){var d=this,e=a(c),f;if("string"==typeof b)try{b=a.JSON.parseJSON(b)}catch(g){}e.css({margin:"5px","border-radius":"5px",border:"1px solid #CCC","background-color":"#FAFAFA",width:"250px"});f=a({className:"link-image",style:a.STYLE_BODY+"margin:10background-color:#width:77height:77overflow:float:display:inline-"}).appendTo(e);
container=a({className:"link-container",style:a.STYLE_BODY+"overflow:zoom:1;"}).appendTo(e);a({className:"link-title",style:a.STYLE_BODY+"margin:10px 0 0 0;width:100%;height:24white-space:text-overflow:-o-text-overflow:overflow:"}).appendTo(container).html(['"].join(""));a({className:"link-desc",style:a.STYLE_BODY+"margin:5px 0 10px 0;width:100%;max-height:60overflow:"}).appendTo(container).html(a.enCut(b.description,
96,1)+"&");a({className:"link-clear",style:a.STYLE_BODY+"clear:"}).appendTo(e);a.require(b.imageurl+"#image",function(c){c=a.zoom(c,75,75);f.html([''].join(""));d.scroll&&d.scroll.scrollBottom()})},scrollBottom:function(){},suggest:function(b){var c=this,d=this.chatElement.find(".chat-view-hidden-area .chat-view-suggest-list");d.find("ul li").remove();
a.each(b,function(b,f){a({tag:"LI",talk_index:b,className:"",style:a.STYLE_BODY+"padding:0 0 0 20list-style:line-height:28height:28overflow:cursor:"}).appendTo(d.find("ul")).html(f).hover(function(){a(this).css({color:"#fff","background-color":"#4297e0"})},function(){a(this).css({color:"#000","background-color":"#fafafa"})}).click(function(b){a.Event.fixEvent(b).stopPropagation();b=parseFloat(a(this).attr("talk_index"))+1;c.mode.send({msg:b,botindex:"index"});c.textEditor.val("");
d.css("display","none")})});d.css({display:"block",top:22-26*b.length+"px"})},_selectSuggest:function(b){var c=this.chatElement.find(".chat-view-suggest-list li"),d=0;c.each(function(){a(this).attr("talk_selected")&&(d=a(this).attr("talk_index"));a(this).attr("talk_selected","").css({color:"#000","background-color":"#fafafa"})});d=parseFloat(d)+b;d=0>d?c.length-1:d;d=d>=c.length?d-c.length:d;a.Log("set selected index:"+d);c.eq(d).attr("talk_selected","1").css({color:"#fff","background-color":"#4297e0"});
this.textEditor.val(d+1)},displayStatusInfo:function(b,c){var d=this.chatElement.find(".chat-view-window-status-info");c&&d.html(c);b?d.display(1):d.hide(function(){a(this).css({display:"none",opacity:1})})},showInputState:function(a){if(!(this._inputStateTimeID&&a===q)){var a=a?a:-140,c=this,d=this.chatHistory.find(".view-history-body-wait");this._inputStateTimeID=setTimeout(function(){d.length?(a=-170>=a?-140:a-10,d.css("background-position",a+"px -60px"),c.showInputState(a)):(clearTimeout(c._inputStateTimeID),
c._inputStateTimeID=null)},500)}},_showResend:function(b,c){this.chatHistory.find("."+b).last().find(".view-history-status").display(1);this.chatHistory.find("."+b).last().find(".view-history-status-icon").display(1);return this.chatHistory.find("."+b).last().find(".view-history-status-link").html(a.utils.handleLinks(c||a.lang.news_send_failure)).find("a")},_showCancel:function(b){this.chatHistory.find("."+b).last().find(".view-history-status").display(1);this.chatHistory.find("."+b).last().find(".view-history-status-icon").display();
return this.chatHistory.find("."+b).last().find(".view-history-status-link").html(''+(a.lang.news_cancel_trans||"")+"").find("span")},_showDownload:function(b,c,d){d=4==d.type&&d.oldfile?d.oldfile:"";c=c?[''+a.lang.news_download+"",d?''+this._toFileName(d)+"":""].join(""):[d?''+this._toFileName(d)+"":"",''+
a.lang.news_download+""].join("");this.chatHistory.find("."+b).last().find(".view-history-status").display(1);this.chatHistory.find("."+b).last().find(".view-history-status-icon").display();return this.chatHistory.find("."+b).last().find(".view-history-status-link").html(c).find(".chat-view-download-link")},_toFileName:function(b){b=b||"";return 16>a.enLength(b)?b:a.enCut(b,10)+".."+b.substr(b.length-4,4)},_showFailure:function(b){this.chatHistory.find("."+b).last().find(".view-history-status").display(1);
this.chatHistory.find("."+b).last().find(".view-history-status-icon").display(1);return this.chatHistory.find("."+b).last().find(".view-history-status-link").html(a.lang.news_trans_failure)},_transCancel:function(b){this.chatHistory.find("."+b).last().find(".view-history-status").display(1);this.chatHistory.find("."+b).last().find(".view-history-status-icon").display(1);return this.chatHistory.find("."+b).last().find(".view-history-status-link").html(a.lang.news_trans_cancel)},_showFileUpload:function(b,
c,d,e){var f=b.find("table").css("width","293px");b.find("table").css("height","104px");c.css("height","104px");var g=[104,76,28],h=[11,78],j=[8,-44],i=[110,80,30],l=[13,80],k=[10,-42],r=b.attr("userid"),q=1>=a.base.checkID(r),s;q&&r?(s=270,g=i,i="1px solid #e2e2e2",h=l,j=k):(s=265,i="none");var n="",k="",l=d.oldfile||this.uploadFileName,p=d.oldfile||this.uploadFileName,m=!this.uploadFileSize?d.size?parseInt(d.size.replace("KB","")):"":(this.uploadFileSize/1024).toFixed(2),n=p.toLowerCase().match(/\.[^\.]+$/),
u=[".doc",".docx"];mp3Flag=[".mp3"];txtFlag=[".txt"];-1<a.inArray(n[0],".jpg .jpeg .png .gif .bmp .pjpeg".split(" "))?(n=d.url||"''",k=' width=50 height=50 style="border: 1px solid #d4d4d4;border-radius:5margin:2px"'):n=-1<a.inArray(n[0],mp3Flag)?a.sourceURI+"images/filetype/mp3.png":-1<a.inArray(n[0],u)?a.sourceURI+"images/filetype/doc.png":-1<a.inArray(n[0],txtFlag)?a.sourceURI+"images/filetype/txt.png":a.sourceURI+"images/filetype/zip.png";12<p.length&&(p=p.substr(0,4)+"..."+p.substr(p.length-
6,p.length));m?1024m&&(m="("+m+" KB)"):m="";var t=1==e,u=q&&r?" display:none ":"",e=t?" -287px -96px ":" -159px -37px ";s=['',p,'',m,'',t?a.lang.news_trans_success:a.lang.news_trans_failure,'',t?a.lang.news_download:"",""].join("");c.append(s);q&&r?c.parent().css({padding:"0px",border:"none"}):c.parent().css({padding:"2px",border:"1px solid #78bde9"});r=b.find(".view-history-angle");r.css("margin-top","15px");r.parent().css("vertical-align","top");b.find(".view-history-status-link").last().display(0);b.find(".view-history-status").last().display(0);
t||(d.error.maxSize?d.error.error=a.utils.handleLinks(a.lang.news_trans_failure_size,{maxsize:d.error.maxSize/1048576}):d.error.ext&&(d.error.error=a.utils.handleLinks(a.lang.news_trans_failure_type,{type:d.error.ext})),f.showMessage("system",{type:9,msg:''+d.error.error}));c.find(".view-fileupload-download").click(function(b){a.Event.fixEvent(b).stopPropagation();
t&&("function"==typeof openURLToBrowser?openURLToBrowser(d.sourceurl||d.url):f.displayiFrame.attr("src",d.sourceurl||d.url))})},_getPositionForTextArea:function(a){var c=0;if(document.selection){a.focus();var d=document.selection.createRange(),e=d.duplicate();try{e.moveToElementText(a)}catch(f){}for(c=-1;e.inRange(d);)e.moveStart("character"),c++}else if(a.selectionStart||"0"==a.selectionStart)c=a.selectionSreturn c},_setCursorPosition:function(a,c){this._editorStart=c;if(a.setSelectionRange)a.focus(),
a.setSelectionRange(c,c);else if(a.createTextRange){var d=a.createTextRange();d.collapse(!0);d.moveEnd("character",c);d.moveStart("character",c);d.select()}},_insertText:function(b){var c=this.textEditor.get(0),d=c.value==a.lang.default_textarea_text?"":c.value,e=Math.min(d.length,this._editorStart),e=0>e?d.length:e;c.value=d.substr(0,e)+b+d.substr(e,d.length);a.browser.mobile||(this._setCursorPosition(c,e+b.length),c.focus())},createEvaluation:function(b,c,d,e,f){var g=this,h,c=['','',''+c+"","",a.FORM.createInput(b),'','',
""].join("");this.evalDialog||(this.evalDialog=new a.DialogChat(c,{margin:2,border:3,style:{border:"3px solid #00ACFF",height:"auto"},parent:this.chatElement.get(0)}));h=this.evalDialog.for(d=0;dh.find(b).attr("maxsize")?"#f00":"#ccc",e=a.enLength(a(this).val())+"/"+h.find(b).attr("maxsize");h.find(b).html(e).css("color",c)});a.FORM.bindFormEvent(b,h);h.find("input[type!=hidden],textarea").get(0).focus();h.find(".ntkf-alert-close").click(function(){g.evalDialog.close();g.evalDialog=null});h.find(".view-alert-submit").click(function(b){a.Event.fixEvent(b).stopPropagation();
g.evalRepeatClick&&g.evalDialog&&(g.evalRepeatClick=!1,g.mode.submitEvaluationForm(function(){a.isFunction(f)&&f();g.evalDialog.close();g.evalDialog=g.evalRepeatClick=!0},function(){g.evalRepeatClick=!0}))}).gradient("top","#f5f5f5","#ffffff");h.find(".chat-view-evaluation-title").gradient("top","#ffffff","#f5f5f5");return h.get(0)},createFileButton:function(a){this.objFile=this._createUpload(a,"uploadfile",this.contains.find(".chat-view-file"));this.objImage=this._createUpload(a,"uploadimage",
this.contains.find(".chat-view-image"),"image/jpg,image/png,image/gif,image/jpeg")},_createUpload:function(b,c,d,e,f){var g=this,h={action:c,roomid:"T2D",siteid:this.siteid,settingid:this.settingid,charset:a.charset};return!b.filetranserver?null:new a.Transfer({server:b.filetranserver+"/imageupload.php",name:"userfile",maxSize:e,accept:f,params:h,onError:function(b){var c=a.chatManage.get(h.settingid);c&&c.uploadFailure(h.action,b)},onChange:function(a){g.uploadFileName=a.g.uploadFileSize=a.size},
callback:function(b){a.Log(h.settingid+"::jsonp: "+a.JSON.toJSONString(b));var c=a.chatManage.get(h.settingid);-2==b.result||9==b.type?c&&c.uploadFailure(h.action,b):(c&&c.startUpload(h.action,b.oldfile),setTimeout(function(){c&&c.uploadSuccess(h.action,b)}))}},d)},createMessageForm:function(b,c,d,e){var f=this,g=0;this.evalDialog&&(this.evalDialog.close(),this.evalDialog=null);if(!this.messageElement.find(".chat-view-message-table table").length){d&&(g=this.messageElement.find(".chat-view-message-announcement").html(d).display(1).height()+
20);for(d=0;d<b.d++)b[d]=a.extend(b[d],{titlewidth:/zh_cn|zh_tw/ig.test(a.lang.language)?"80px":"140px",inputwidth:"auto",input:{width:"90%",height:"textarea"==b[d].type?"140px":"auto"},messageid:"chat-view-message-"+b[d].name});this.messageElement.find(".chat-view-submit-submit").gradient("top","#f5f5f5","#ffffff");this.messageElement.find(".chat-view-message-body").css("height",this.messageElement.height()-g+"px");this.messageElement.find(".chat-view-message-table").html(['',c?"":[a.FORM.createInput(b,null,a.lang.message_no_null),'','','"].join(""),""].join(""));this.messageElement.find("input[name=myuid]").val(e.myuid);this.messageElement.find("input[name=destuid]").val(e.destid);this.messageElement.find("input[name=ntkf_t2d_sid]").val(e.sessionid);this.messageElement.find("input[name=source]").val(e.source);this.messageElement.find("input[type=text],textarea,select").css("color",
"#ccc").attr("disabled","");e.fileError&&(c=a({tag:"tr",style:a.STYLE_NBODY}).appendTo(this.messageElement.find(".chat-view-message-table tbody"),this.messageElement.find(".chat-view-message-table tbody tr").eq(-1)),a({tag:"td",style:a.STYLE_NBODY}).appendTo(c),a({tag:"td",style:a.STYLE_NBODY}).appendTo(c).html([''].join("")));this.messageElement.find(".chat-view-submit-submit").show(function(){a(this).css("display",a.browser.oldmsie?"inline-block":"block")});this.messageElement.find(".submit_message_complete").display();a.FORM.bindFormEvent(b,this.messageElement);this.messageElement.find(".chat-view-submit-submit").click(function(){f.mode.submitMessageForm()});
this.messageElement.find("textarea").val(e.content)}},submitMessageForm:function(b,c){var d=a.FORM.verificationForm(b,function(){d.messageElement.find(".chat-view-message-form").attr("action",c);d.messageElement.find(".chat-view-message-form").get(0).submit();a.Log("chatView.submitMessageForm complete",1);d.messageElement.find("input[type=text],textarea,select").attr("disabled",!0);d.messageElement.find(".chat-view-submit-submit").display();d.messageElement.find(".submit_message_complete").css("display",
"block")},this.messageElement)},_fullScreenImage:function(b,c){var d=this,e=this._createfullScreen(b),f=a(b).attr("sourceurl")||b.src,g=function(){a.Log("download image "+f);"function"==typeof openURLToBrowser?openURLToBrowser(f):d.displayiFrame.attr("src",f)};a.Log(this.settingid+":chatView._fullScreenImage(), src:"+f,1);a(".view-fullScreen-background").css("opacity",0.6);e.click(function(b){a.Event.fixEvent(b).stopPropagation();d._hideScreenImage()}).find(".view-fullScreen-close").click(function(b){a.Event.fixEvent(b).stopPropagation();
d._hideScreenImage()});this.nextClick&&this.prevClick&&(e.find(".view-next-picture").removeEvent("click",this.nextClick),e.find(".view-prev-picture").removeEvent("click",this.prevClick));this.nextClick=function(b){a.Event.fixEvent(b).stopPropagation();var b=0,e=1E7;for(hashMsgId in d.imageHash){var f=parseInt(hashMsgId.substr(0,c.length-1)),g=parseInt(c.substr(0,c.length-1));0<f-g&&f-gf-g&&f-g>e&&(b=hashMsgId,e=f-g)}0==b?d._hideScreenImage():d._fullScreenImage(a("."+b).find(".view-history-body").find("img"),b)};e.find(".view-next-picture").addEvent("click",this.nextClick);e.find(".view-prev-picture").addEvent("click",this.prevClick);e.find(".view-fullScreen-download").removeEvent("click",
g).bind("click",g);a(document).bind("keypress",function(b){27==a.Event.fixEvent(b).keyCode&&d._hideScreenImage()});a(window).bind("resize",function(){a(".view-fullScreen-background,.view-fullScreen-iframe,.view-fullScreen-container").css({width:a(window).width()+"px",height:a(window).height()+"px"})});e.find("img").attr("src")!=f&&(e.find("td").css({background:"url("+a.imageloading+") no-repeat center center"}),a.require(f+"#image",function(b){a.Log("nTalk._fullScreenImage() width:"+b.width+", height:"+
b.height);var c=a(window).width(),d=a(window).height(),b=a.zoom(b,c-100,d);0<e.find("td img").length&&e.find("td img").remove();e.find("td").append('');e.find("td img")&&e.find("td").css({"background-image":""})}))},_hideScreenImage:function(){a(".view-fullScreen-container,.view-fullScreen-background,.view-fullScreen-iframe").display()},
_createfullScreen:function(){var b=a(window).width(),c=a(window).height();a(".view-fullScreen-iframe").length||a({tag:"iframe",className:"view-fullScreen-iframe",style:a.STYLE_NBODY+"display:width:"+b+"height:"+c+""}).appendTo(!0).fixed();a(".view-fullScreen-background").length?a(".view-fullScreen-background").display(1):a({className:"view-fullScreen-background",style:a.STYLE_NBODY+"background:#000;opacity:0.6;filter:alpha(opacity=60);width:"+b+"height:"+c+"position:top:0;left:0;z-index:;"}).appendTo(!0).fixed();
a(".view-fullScreen-container").length?(a(".view-fullScreen-container img").remove(),a(".view-fullScreen-container").width()!=b&&a(".view-fullScreen-container").css("width",b+"px"),a(".view-fullScreen-container").height()!=c&&a(".view-fullScreen-container").css("height",c+"px"),a(".view-fullScreen-container").display(1)):a({className:"view-fullScreen-container",style:a.STYLE_NBODY+"width:"+b+"height:"+c+"text-align:position:top:0left:0;z-index:;"}).appendTo(!0).html(['',
'',''].join("")).fixed();return a(".view-fullScreen-container")},_getMessageHtml:function(b,
c){var d="auto";"system"===b&&a.browser.oldmsie&&(d=Math.min(6*a.enLength(a.clearHtml(c.msg)),340));"otherinfo"===b&&(b="left",c.userid="",c.name="",c.msg=['',c.title,'',c.msg,""].join(""));
return"right"===b?['',1==c.type?c.msg:6==c.type?['','',''].join(""):"",''].join(""):/left|bottom/gi.test(b)?['',/^(1|9)$/i.test(c.type)?c.msg:"",'",c.userid&&!this.mode.isVisitor(c.userid)&&this.mode.dest.id!=c.userid?['',c.name,""].join(""):"",'',/^(2|4)$/i.test(c.type)&&!c.emotion?['"].join(""):"",''].join(""):"first"===
b?['',c.msg,''].join(""):"goods"===b?[''].join(""):['',c.msg,''].join("")},_getViewHtml:function(b){var c=a.browser.msie&&8>=a.browser.ieversion?"":"box-shadow:inset 0px 0px 5px #-moz-box-shadow:inset 0px 0px 5px #-webkit-box-shadow:inset 0px 0px 5px #";return"load"==b?['"].join(""):"window"==b?['\u25bc',a.lang.button_capture_show_chatWin,'',a.lang.button_more,' &\u25bc',a.lang.button_ctrl_enter,'',a.lang.chat_button_send,'',a.lang.button_end_session,'',a.lang.chat_xiaoneng_version,''].join(""):"message"==b?['','','','','',''].join(""):[''].join("")},_bind:function(){var b=this.textEditor=this.chatElement.find(".chat-view-window-editor textarea").css({width:a.browser.Quirks?
"411px":"391px",height:a.browser.Quirks?"93px":"73px"}).bind("keypress",function(c){c=a.Event.fixEvent(c);c.stopPropagation();13==c.keyCode&&c.shitfKey||("Enter"==b._sendKey?13==c.keyCode&&c.ctrlKey||10==c.keyCode?b.textEditor.val(b.textEditor.val()+"\r\n"):13==c.keyCode&&(c.preventDefault(),b._send()):"Ctrl+Enter"==b._sendKey&&(/^(10|13)$/.test(c.keyCode)&&c.ctrlKey)&&(c.preventDefault(),b._send()));b._editorStart=b._getPositionForTextArea(this)+1}).bind("keyup",function(c){var c=a.Event.fixEvent(c),
d=c.keyCa.enLength(a(this).val())>b.mode.inputMaxByte&&a(this).val(a.enCut(a(this).val(),b.mode.inputMaxByte));38==d?(c.preventDefault(),b._selectSuggest(-1)):40==d&&(c.preventDefault(),b._selectSuggest(1))}).bind("click",function(){b._editorStart=b._getPositionForTextArea(this)}).bind("focus",function(){a.promptwindow.stopPrompt();b.chatElement.find(".chat-view-hidden-area .chat-view-span").display();var c={color:"#000"};a.browser.msie&&7>=a.browser.ieversion?a(this).css(a.merge(c,{width:a(this).parent().width()-
26+"px",height:a(this).parent().height()-26+"px","border-width":"1px"})):a(this).css(a.merge(c,{"outline-width":"1px"}));a.browser.html5||a(this).val()==a.lang.default_textarea_text&&a(this).val("");b._listenTextEditor()}).bind("blur",function(){a.browser.html5||(""===a(this).val()&&a(this).val(a.lang.default_textarea_text),a(this).val()==a.lang.default_textarea_text&&a(this).css({color:"#ccc"}));a.browser.msie&&7>=a.browser.ieversion?a(this).css({"border-width":"0px",width:a(this).parent().width()-
24+"px",height:a(this).parent().height()-24+"px"}):a(this).css({"outline-width":"0"});b._stopListen()}).bind("paste",function(c){(new a.paste(c,function(c){if(c){a.pasteBase64=c;var d=(a(window).height()-510)/2,e=d+480,j=(a(window).width()-640)/2,d=[''].join("");
0==a(".pastepic-background").length&&(a(document.body).append(d),a(".pastepic-choose-no").bind("click",function(){i.display(0);l.display(0);k.display(0)}),a(".pastepic-choose-yes").bind("click",function(){i.display(0);l.display(0);k.display(0);b.objImage.base64Transf(a.pasteBase64)}));var i=a(".pastepic-background"),l=a(".pastepic-container"),k=a(".pastepic-toolbar");a(".pastepic-show").attr("src",c);i.display(1);l.display(1);k.display(1)}})).getImgBase64Str()});""==this.textEditor.val()&&!a.browser.html5&&
this.textEditor.val(a.lang.default_textarea_text);this.chatElement.find(".chat-view-end-session").hover(function(){a(this).css("color","#005fea")},function(){a(this).css("color","#010101")}).click(function(c){a.Event.fixEvent(c).stopPropagation();b._endSession()});var c,d;this.chatElement.find(".chat-view-button,.chat-view-switch-manual").hover(function(b){a.Event.fixEvent(b).stopPropagation();!a(this).attr("talk_disable")&&!a(this).attr("selected")&&(c=a(this).css("background-position").split(" ").shift(),
d=a(this).indexOfClass("chat-view-load-history")||a(this).indexOfClass("chat-view-switch-manual")||a(this).indexOfClass("chat-view-change-csr")?" -60px":" -19px",a(this).css("background-position",c+d))},function(b){a.Event.fixEvent(b).stopPropagation();!a(this).attr("talk_disable")&&!a(this).attr("selected")&&(c=a(this).css("background-position").split(" ").shift(),d=a(this).indexOfClass("chat-view-face")?" 1px":a(this).indexOfClass("chat-view-load-history")||a(this).indexOfClass("chat-view-switch-manual")||
a(this).indexOfClass("chat-view-change-csr")?" -40px":" 0px",a(this).css("background-position",c+d))});this.chatElement.find(".chat-view-face").click(function(c){b.mode.callTrack("10-02-02");a.Event.fixEvent(c).stopPropagation();b.chatElement.find(".chat-view-window-face").display(1);b._initFaceGroup()});this.chatElement.find(".chat-view-image").click(function(c){b.mode.callTrack("10-02-03");a.Event.fixEvent(c).stopPropagation();b._image(c)});this.chatElement.find(".chat-view-file").click(function(c){b.mode.callTrack("10-02-05");
a.Event.fixEvent(c).stopPropagation();b._file(c)});this.chatElement.find(".chat-view-history").click(function(c){a.Event.fixEvent(c).stopPropagation();a(this).attr("talk_disable")||b._download(c)});this.chatElement.find(".chat-view-load-history").click(function(c){a.Event.fixEvent(c).stopPropagation();a(this).attr("talk_disable")||b._viewHistory(!a(this).attr("selected"))});this.chatElement.find(".chat-view-evaluate").click(function(c){b.mode.callTrack("10-02-09");a.Event.fixEvent(c).stopPropagation();
a(this).attr("talk_disable")||b._evaluate(c)});this.chatElement.find(".chat-view-capture").click(function(c){b.mode.callTrack("10-02-04");a.Event.fixEvent(c).stopPropagation();a(this).attr("talk_disable")||b._capture(c)});this.chatElement.find(".chat-view-switch-manual").click(function(c){a.Event.fixEvent(c).stopPropagation();a(this).attr("talk_disable")||b._switchManual(c)});this.chatElement.find(".chat-view-change-csr").click(function(c){a.Event.fixEvent(c).stopPropagation();a(this).attr("talk_disable")||
b._changeCsr(c)});this.chatElement.find(".chat-view-exp").click(function(c){a.Event.fixEvent(c).stopPropagation();b._expansion(c)});this._eventFunction=function(){b._hiddenFloatMenu()};a(document.body).click(this._eventFunction);this.chatElement.find(".chat-view-submit").hover(function(b){a.Event.fixEvent(b).stopPropagation();a(this).css({"background-color":"#F1F1F1"})},function(b){a.Event.fixEvent(b).stopPropagation();a(this).css({"background-color":"none"})});this.chatElement.find(".chat-view-submit").click(function(c){a.Event.fixEvent(c).stopPropagation();
a(this).attr("talk_disable")||b._send(!0)});this.chatElement.find(".chat-view-options").click(function(c){a.Event.fixEvent(c).stopPropagation();b.chatElement.find(".chat-view-hidden-area .chat-view-options-menu").display(1)});this.chatElement.find(".chat-view-capture-options").click(function(c){a.Event.fixEvent(c).stopPropagation();b.chatElement.find(".chat-view-capture-hidden-area .chat-view-options-capture-menu").display(1)});this.chatElement.find(".chat-view-options-menu div").click(function(c){a.Event.fixEvent(c).stopPropagation();
b.chatElement.find(".chat-view-options-menu div").each(function(b,c){a(c).removeClass("talk_selected").css("background","none")});b._sendKey=a(this).indexOfClass("view-option-enter")?"Enter":"Ctrl+Enter";a(this).addClass("talk_selected").css("background","#f1f1f1");a(this).parent().display()});this.chatElement.find(".chat-view-options-capture-menu div").click(function(c){a.Event.fixEvent(c).stopPropagation();b.chatElement.find(".chat-view-options-capture-menu div").each(function(b,c){a(c).removeClass("talk_selected").css("background",
"none")});a.Capture.captureWithMin=a(this).indexOfClass("view-option-hidden")?!0:!1;a(this).addClass("talk_selected").css("background","#f1f1f1");a(this).parent().display()});this.options.chatHeader.find(".header-chatrecord-close").css({margin:"20px 5px 0 0",background:"url("+a.imageicon+") no-repeat -60px 0"}).attr("title",a.lang.chat_button_close).hover(function(){a(this).css("background-position","-60px -20px")},function(){a(this).css("background-position","-60px 0")}).click(function(c){a.Event.fixEvent(c).stopPropagation();
b._viewHistory(!1)})},audioProgress:function(){},_hiddenFloatMenu:function(){this.chatElement.find(".chat-view-hidden-area .chat-view-span").display();this.chatElement.find(".chat-view-capture-hidden-area .chat-view-span").display()},disableButton:function(b,c){var d=this,e=[],b=a.isArray(b)?b:[b];a.each(b,function(a,b){e.push("."+d.buttonSelectors[b])});e=e.join(",");if(c)return-1<e.indexOf("chat-view-image")&&this.chatElement.find(".chat-view-image").find("object,embed,form").css("visibility","hidden"),
-1<e.indexOf("chat-view-file")&&this.chatElement.find(".chat-view-file").find("object,embed,form").css("visibility","hidden"),-1<e.indexOf("chat-view-change-csr")&&a(".chat-view-change-csr").css("background-position-y"," -40px"),this.chatElement.find(e).attr("talk_disable","disable").css("opacity","0.4"),!1;-1<e.indexOf("chat-view-image")&&this.chatElement.find(".chat-view-image").find("object,embed,form").css("visibility","visible");-1<e.indexOf("chat-view-file")&&this.chatElement.find(".chat-view-file").find("object,embed,form").css("visibility",
"visible");this.chatElement.find(e).attr("talk_disable","").css("opacity",1);return!0},displayButton:function(b,c){var d=this,e=[],b=a.isArray(b)?b:[b];a.each(b,function(a,b){e.push("."+d.buttonSelectors[b])});e=e.join(",");this.chatElement.find(e).display(!c)},disabledAudioButton:function(){},_listenTextEditor:function(){var b=this._listenTimeID=setInterval(function(){var c=b.textEditor.val(),d=b._cacheL!a.browser.html5&&c==a.lang.default_textarea_text&&(c="");500=h?"border-top:1px solid #DFEFF8;":"")+(0==h%6?"border-right:1px solid #DFEFF8;":"");b.chatElement.find("."+g).append('')});0==e?a({className:"chat-view-face-tag "+h+" tag-selected",title:f.name,index:"0",
style:a.STYLE_NBODY+"zoom:1;margin:0 5px 0 0;float:background:#position:top:-1border-left:1px solid #D4D4D4;border-right:1px solid #D4D4D4;"}).appendTo(b.chatElement.find(".chat-view-face-tags")).append(''):a({className:"chat-view-face-tag "+h,title:f.name,index:e,style:a.STYLE_NBODY+"zoom:1;margin:0 5px 0 0;float:position:top:0border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;"}).appendTo(b.chatElement.find(".chat-view-face-tags")).append('')}),this.chatElement.find(".chat-view-face-group").hover(function(b){a.Event.fixEvent(b).stopPropagation();b=a.Event.fixEvent(b)."img"===b.tagName.toLowerCase()&&a(b).css({cursor:"pointer","background-color":"#FFF"})},function(b){a.Event.fixEvent(b).stopPropagation();b=a.Event.fixEvent(b)."img"===b.tagName.toLowerCase()&&a(b).css({"background-color":"#F6FBFE"})}).click(function(c){a.Event.fixEvent(c).stopPropagation();c=a.Event.fixEvent(c).
"img"===c.tagName.toLowerCase()&&(b.chatElement.find(".chat-view-window-face").display(),a(this).indexOfClass("chat-view-face-group-0")?b._insertText("["+a(c).attr("title")+"]"):(a.Log("selected current face:"+a(c).attr("sourceurl")),b.mode.send({type:2,emotion:1,msg:"current face",url:a(c).attr("src"),sourceurl:a(c).attr("sourceurl"),oldfile:"",size:"",extension:""})))}),this.chatElement.find(".chat-view-face-tags").hover(function(b){a.Event.fixEvent(b).stopPropagation();b=a.Event.fixEvent(b).
b="img"==b.tagName.toLowerCase()?b.parentNode:b;a(b).indexOfClass("chat-view-face-tag")&&!a(b).indexOfClass("tag-selected")&&a(b).css({"background-color":"#fafafa",top:"-1px","border-left":"1px solid #D4D4D4","border-right":"1px solid #D4D4D4","margin-right":"5px",zoom:"1"})},function(b){a.Event.fixEvent(b).stopPropagation();b=a.Event.fixEvent(b).b="img"==b.tagName.toLowerCase()?b.parentNode:b;a(b).indexOfClass("chat-view-face-tag")&&!a(b).indexOfClass("tag-selected")&&a(b).css({"background-color":"transparent",
top:"0px","border-left":"1px solid #f1f1f1","border-right":"1px solid #f1f1f1","margin-right":"5px",zoom:"1"})}).click(function(c){a.Event.fixEvent(c).stopPropagation();c=a.Event.fixEvent(c).c="img"==c.tagName.toLowerCase()?c.parentNode:c;a(c).indexOfClass("chat-view-face-tag")&&(b.chatElement.find(".chat-view-face-tag").css({"background-color":"transparent",top:"0px","border-left":"1px solid #f1f1f1","border-right":"1px solid #f1f1f1","margin-right":"5px",zoom:"1"}).removeClass("tag-selected"),
b.chatElement.find(".chat-view-face-group").display(),a(c).css({"background-color":"#fff",top:"-1px","border-left":"1px solid #D4D4D4","border-right":"1px solid #D4D4D4","margin-right":"5px",zoom:"1"}).addClass("tag-selected"),b.chatElement.find(".chat-view-face-group-"+a(c).attr("index")).display(1))}))},_contentFilter:function(b){if("string"!==typeof b.msg||/\/gi.test(b.msg))return 1==b.type&&//gi.test(b.msg)&&(b.msg=b.msg.replace(//gi,
'')),b;b.msg=b.msg.replace(/[\r\n]/ig," ");b.msg=b.msg.replace(/(\s{2})/ig," {$null}");b.msg=a.myString(b.msg).linkFilter1(a.STYLE_BODY+"color:#0a8cd2;");b.msg=b.msg.replace(/\{\$null\}/ig,"&&");b.msg=b.msg.replace(/\t/ig,"&&&&");b.msg=a.utils.handleLinks(b.msg,{settingid:this.settingid});b.msg=this._faceFilter(b.msg);return b=a.extend({color:"000000",fontsize:"12",bold:"false",
italic:"false",underline:"false"},b)},_faceFilter:function(b){var c=b.match(/\[([a-z]+)\]/ig),d=function(b){var c=a.each(a.lang.editorFaceAlt,function(a,d){d&&RegExp(b.replace(/\[/,"\\[").replace(/\]/,"\\]"),"gi").test("["+d+"]")&&(c=a)});return c};if(!c||!b)for(var e,f=0;f<c.f++)if(e=d(c[f]))b=b.replace(c[f],'');
return b},_image:function(){},_file:function(){},_download:function(){this.mode.download&&this.mode.download(this.settingid)},_viewHistory:function(a){this.mode.viewHistory&&(a?this.chatElement.find(".chat-view-load-history").attr("selected","selected").css("background-position","-220px -60px"):this.chatElement.find(".chat-view-load-history").attr("selected","").css("background-position","-220px -40px"),this._tempHeader.display(!a),this._chatsHeader.display(a),this._chatsElement.css({height:this.chatHistory.height()+
"px"}).display(a),a&&this.mode.viewHistory(this.settingid,this._chatsElement.find("IFRAME.chat-view-float-iframe").get(0)))},_evaluate:function(){this.mode.showEvaluation&&this.mode.showEvaluation()},_capture:function(){this.mode.startCapture&&this.mode.startCapture(this.settingid)},_switchManual:function(){this.mode.switchServerType&&this.mode.switchServerType(!0,this.settingid)},_changeCsr:function(){this.mode.changeCustomerServiceInfo&&this.mode.changeCustomerServiceInfo()},_expansion:function(){this.options.toggleExpansion(this.settingid)},
updateMore:function(b){this.chatElement.find(".chat-view-exp").html(a.lang.button_more+(b?" &":" &"))},switchToolbar:function(b){var c=a.Log("nTalk.chat.view.switchToolbar("+b+")");b?(this.chatElement.find(".chat-view-button,.chat-view-capture-options").each(function(){var b=a(this).indexOfClass("chat-view-capture-options");(!b&&"disable"!=a(this).attr("talk_disable")||b&&"block"==c.chatElement.find(".chat-view-capture").css("display"))&&a(this).display(1)}),this.displayButton("csr",1!=
this.mode.config.changecsr),this.displayButton("history",1!=this.mode.config.chatingrecord),this.displayButton("loadhistory",1!=this.mode.config.viewchatrecord),this.displayButton(["capture","capoptions"],0==this.mode.config.captureimage),this.displayButton("evaluate",0==this.mode.config.evaluation),this.chatElement.find(".chat-view-exp").display(this.mode._moreData&&this.mode._moreData.length),this.chatElement.find(".chat-view-switch-manual").display()):(this.chatElement.find(".chat-view-button,.chat-view-capture-options").each(function(){a(this).display()}),
this.chatElement.find(".chat-view-exp").display(this.mode._moreData&&this.mode._moreData.length),this.chatElement.find(".chat-view-switch-manual").display(1))},_send:function(b){this.chatElement.find(".chat-view-hidden-area .chat-view-suggest-list").display();if(/QUERY|QUEUE/i.test(this.mode.statusConnectT2D))return!1;var c=this._clearEditor();c.length&&c!=a.lang.default_textarea_text&&this.mode.send(c);!a.browser.html5&&!0===b&&this.textEditor.css({color:"#ccc"}).val(a.lang.default_textarea_text).get(0).focus();
a.fn.isReaded()},_endSession:function(){this.mode.endSession()},_clearEditor:function(){var a=this.textEditor.val().replace(/(^\s*)|(\s*$)/g,"");this.textEditor.val("");return a},callChatResize:function(a,c){this.chatHistory.find("ul").css({width:a-2+"px"});this.chatHistory.css({height:c-165+"px"});this.chatElement.find(".chat-view-float-history, .chat-view-float-history iframe").css({height:c-165+"px"});this.chatElement.find(".chat-view-window-status-info").css("width",a-40+"px");this.evalDialog&&
this.evalDialog.resize();this.textEditor.css({width:a-22+"px"});this.scroll&&this.scroll.resizeScroll()},changeQueueStyle:function(){return!1},audioView:function(b){if(!this.msgid&&a.musicEl)a.musicEl.emit(),a.musicEl=else{var c=this.msgid,d=this.duration,e=a("."+c).find(".view-history-body"),f,g,h;-1<c.indexOf("J")?(f=a.sourceURI+"images/mySound.png",g="#CEF2FF",h="left",durationAlign="right"):(f=a.sourceURI+"images/kfSound.png",g="#FFFFFF",h="right",durationAlign="left");switch(b){case "init":a.Log("[nTalk music]: mp3 view init, msgid is "+
c);b=['',d,"'''].join("");e.parent().css("padding","0px");e.append(b);a.browser.msie&&7>=a.browser.ieversion&&(a("#player_"+c).css("width","50px"),a("."+c).find("table").css("width",
"100px"));case "play":a.Log("[nTalk music]: mp3 view play, msgid is "+c);a.musicEl&&(a.Log("[nTalk music]: stop playing mp3 view, msgid is "+a.playMsgid,2),a.musicEl.emit());a.musicEl=c=a("#player_"+c+" img")[0];c.src=c.src.replace("png","gif");case "stop":a.Log("[nTalk music]: mp3 view stop, msgid is "+c),a.musicEl=null,c=a("#player_"+c+" img")[0],c.src=c.src.replace("gif","png")}}},audioBindEvent:function(b){var c=this.switch(b){case "init":a.Log("[nTalk music]: mp3 event init, msgid is "+
c);var d=a("#player_"+c).click(function(){a.Log("[nTalk music]: mp3 trigger click, msgid is "+c);d.emit()})}}};a.minimizeView=a.Class.create();a.minimizeView.prototype={_width:0,_height:0,_isMessageView:!1,element:null,title:"",status:0,count:0,initialize:function(b,c,d){var e=a.Log("new nTalk.minimizeView()",1);this.status=b.status||0;this._isMessageView=c;this.callback=d||new Fthis.element=a(".ntalk-minimize-window");this._width=213;this._height=44;this.element.length||(this.element=
a({className:"ntalk-minimize-window",style:a.STYLE_BODY+"width:"+(this._width-2)+"height:"+(this._height-2)+"border:1px solid #c8c7c6;background:#e5e5e4;cursor:z-Index:;"}).appendTo(!0).gradient("top","#e5e5e4","#f2f3f3").fixed({left:a(window).width()-this._width-2,top:a(window).height()-this._height-2}).html([''].join("")));a(window).bind("resize",function(a){e._fiexd(a)});this.update(b.name||"",b.logo||"");if(this.status)this.online();else this.offline();this.element.click(function(b){a.Event.fixEvent(b).stopPropagation();e.remove()})},online:function(){this.element.find(".ntalk-minimize-icon").css("opacity",1)},offline:function(){this.element.find(".ntalk-minimize-icon").css("opacity",
0.5)},update:function(b,c){this.title=b?a.utils.handleLinks(a.lang.toolbar_min_title,{destname:b}):a.lang.toolbar_default_this.element.find(".ntalk-minimize-title").html(this.title);if(c&&c!=a.CON_SINGLE_SESSION){var d=this,e;a.require(c+"#image",function(b){b.error?a.Log("load logo:"+c,2):(e=a.zoom(b,35,35),d.element.find(".ntalk-minimize-icon").css("background-position","-500px -8px").html(''))})}else this.element.find(".ntalk-minimize-icon").css("background-position","-383px -8px")},remove:function(){a(window).removeEvent("resize",this._fiexd);this.stopFlicker();this.element.remove();this.callback()},startFlicker:function(b,c){var d=this,e=99<this.count?"99+":this.count,f=b?1E3:500,c=c||0;b===q&&this.stopFlicker(!0);a.Log("$.minView.startFlicker("+a.JSON.toJSONString(arguments)+") timeid:"+this.timeID,1);b?this.element.css({"border-color":"#d55f01"}).gradient("top",
"#ff8803","#ff7b16"):this.element.css({"border-color":"#c8c7c6"}).gradient("top","#e5e5e4","#f2f3f3").find(".ntalk-minimize-title").html(a.utils.handleLinks(a.lang.toolbar_min_news,{count:''+e+""}));7<=c||(this.timeID=setTimeout(function(){c++;d.startFlicker(!b,c)},f))},stopFlicker:function(b){a.Log("$.minView.stopFlicker()",1);clearTimeout(this.timeID);this.timeID=b||(this.count=0);this.element.find(".ntalk-minimize-icon").css("background-position",
"-98px -38px");this.element.css({"border-color":"#d55f01"}).gradient("top","#e5e5e4","#f2f3f3").find(".ntalk-minimize-title").html(this.title)},_fiexd:function(){(this.element=a(".ntalk-minimize-window"))&&this.element.length&&this.element.fixed({width:this.width-2,height:this.height-2,left:a(window).width()-this.width-2,top:a(window).height()-this.height-2})}};a.fn.extend({isReaded:function(){a.chatManage&&(a.chatManage.get()&&a.chatManage.get().view&&a.chatManage.get().view.receiveMsgCount)&&(a.chatManage.get().view.receiveMsgCount=
0);a.im&&(a.im.receiveMsgCount=0);"function"==typeof window.webInfoChanged&&webInfoChanged(400,'{"num":0, "showNum":1}',!1)}});a.chatManageView=a.Class.create();a.chatManageView.prototype={name:"chatManageView",defaultOptions:{dropHeight:55,width:415,height:465,minWidth:415,minHeight:520,leftElementWidth:140,rightElementWidth:200,resizeHeight:595,drag:!0,resize:!1,fixed:!0,zIndex:1E6},_flickerTimeID:[],_objView:null,_manageMode:null,tagKey:"",tagTitle:"",extended:null,options:null,header:null,body:null,
leftContent:null,leftElement:null,chatBody:null,chatContainter:null,rightElement:null,chatWidth:0,chatHeight:0,CON_ICON_WIDTH:53,CON_ICON_HEIGHT:53,initialize:function(b,c){this.options=a.extend({},this.defaultOptions,b);this.extended={leftElement:!1,rightElement:!1};this._manageMode=c;this._getChatPosition(b.position||{});this._create();this._bind()},close:function(){a.Log("nTalk.chatManageView.close()",1);try{a.browser.oldmsie?this._objView.containter.display():this._objView.containter.remove()}catch(b){a.Log(b,
3)}},addChatTag:function(b){var c=this.leftContent&&(this.tagKey=b,this.tagTitle=a.lang.toolbar_default_text,b=a({tag:"li",style:a.STYLE_NBODY+"margin:5px 0 0 5list-style:border:1px solid #border-right:position:cursor:",className:this.tagKey,key:this.tagKey}).appendTo(this.leftContent).html([''].join("")).click(function(a){c._onSwitchChat(this,a)}).hover(this._onOverChatTag,this._onOutChatTag),this._onSelectedChatTag(b),b.find("div.tag-button-close").click(function(a){c._onCloseChatTag(this,a)}),1=this.leftContent.find("li").length&&this.extended.leftElement&&this.toggleExpansion("leftElement",!1)},updateChatTag:function(b,c,d){var e=this.header.find(".chat-header-icon"),f=this.header.find(".chat-header-name"),g=this.header.find(".chat-header-sign");this.leftContent.find("li."+b+" .tag-head-icon").css("background-color",1!==c.status?"#666":"#060");!0!==d&&(this.leftContent.find("li."+
b+" .tag-content-text").html(c.id==a.CON_SINGLE_SESSION?a.lang.toolbar_default_text:c.name),c.id?(a.CON_MULTIPLAYER_SESSION===c.logo?c.logo=a.imagemultiplayer:a.CON_SINGLE_SESSION===c.logo&&(c.logo=a.imagesingle),e.css("visibility","visible").css("background-image","none"),!e.find("img").length||e.find("img").attr("src")!=c.logo?e.html(''):e.find("img").attr({"data-single":a.CON_MULTIPLAYER_SESSION!=c.logo?"1":"0",width:c.attr.width,height:c.attr.height}).css({margin:(this.CON_ICON_HEIGHT-c.attr.height)/2+"px "+(this.CON_ICON_WIDTH-c.attr.width)/2+"px",width:c.attr.width+"px",height:c.attr.height+"px"}),0==c.status&&a.CON_SINGLE_SESSION!==c.id?e.find("img").css("opacity",
"0.5"):e.find("img").css("opacity","1"),f.css("visibility","visible").html(c.title||c.name),b=Math.max(0,this.header.width()-f.width()-165),g.css("visibility","visible").attr("title",c.sign).css("width",b+"px").html(c.sign)):this.header.find(".chat-header-icon,.chat-header-name,.chat-header-sign").css("visibility","hidden"))},switchChatTag:function(b){var c=a("li."+b,this.leftContent);c.length&&this._onSelectedChatTag(c);this._manageMode.callSwitchChat(b)},toggleExpansion:function(b,c){!1===a.inArray(["leftElement",
"rightElement"],b)&&(b="leftElement");c=a.isBoolean(c)?c:!this.extended[b];"rightElement"===b?(c?(this[b].css({width:this.options.rightElementWidth+"px",display:"block"}),this.chatWidth=this.options.width+this.options.rightElementWidth):c||(this[b].css({width:this.options.rightElementWidth+"px",display:"none"}),this.chatWidth=this.options.width),this.extended[b]=c,this.chatHeight=this.options.height+this.options.dropHeight,this.chatWidth+=this.extended.leftElement?this.options.leftElementWidth:0):
(c?(this.chatWidth=this.options.width+this.options.leftElementWidth,this[b].css("display","block"),this.chatContainter.css("border-bottom-left-radius","0px")):c||(this.chatWidth=this.options.width,this[b].css("display","none"),this.chatContainter.css("border-bottom-left-radius","5px")),this.extended[b]=c,this.chatWidth+=this.extended.rightElement?this.options.rightElementWidth:0);this._objView.minWidth=this.defaultOptions.width+(this.extended.leftElement?this.options.leftElementWidth:0)+(this.extended.rightElement?
this.options.rightElementWidth:0);this.headBody.css("width",this.chatWidth+"px");this.body.css("width",this.chatWidth-(this.extended.rightElement?this.options.rightElementWidth:0)+"px");this._objView.changeAttr(this.chatWidth,this.chatHeight);var d=this.header.find(".chat-header-name"),e=this.header.find(".chat-header-sign"),d=Math.max(0,this.header.width()-d.width()-165);e.css("visibility","visible").css("width",d+"px");return this.extended[b]},updateRightData:function(b,c){var d=this,e=!1;this.settingid=
b;!c||!c.length?this.toggleExpansion("rightElement",!1):(this._clearTag(),a.each(c,function(a,b){b.data&&b.data.length&&(!0==b.selected&&(e=!0),!e&&a==c.length-1&&(b.selected=!0),d._addRightLabel(b.title,b.data,c.length,b.selected))}),this._bindTag())},updateViewStatus:function(){},updataSkin:function(b,c,d){var e=/^#[0-9a-f]{6}$/i;c==d?e.test(c)?(d=a.toHSL(c).l,this.headBody.css({background:c,color:0.75>d?"#fff":"#525252"}),this.rightElement.find(".window-right-head").css({background:c,color:0.75>
d?"#fff":"#525252"})):(this.headBody.css({background:"url("+c+") repeat"}),this.rightElement.find(".window-right-head").css({background:"url("+c+") repeat"})):(this.headBody.gradient("top",c,d),this.rightElement.find(".window-right-head").gradient("top",c,d));(c=this._manageMode.get())&&e.test(b)?c.view.chatElement.find(".chat-view-window-history").css("background-color",b):c&&b&&c.view.chatElement.find(".chat-view-window-history").css("background-image","url("+b+")")},minimize:function(a){this._objView.minimize(a)},
maximize:function(a){this._objView.maximize(a)},hidden:function(){this._objView.minimize(null,!0);a.Log("chatManageView.hidden:"+this._objView.containter.css("visibility"),2)},visible:function(){this._objView.maximize(null,!0);a.Log("chatManageView.visible:"+this._objView.containter.css("visibility"),2)},labelFlicker:function(a,c,d){var e=this,f=c?1E3:500,d=d||0;c===q&&this.stopFlicker(a);c?this.leftContent.find("."+a).css({"background-color":"#FE800F"}).addClass("talk_flicker"):this.leftContent.find("."+
a).css({"background-color":"#fafafa"}).addClass("talk_flicker");7<=d||(this._flickerTimeID[a]=setTimeout(function(){d++;e.labelFlicker(a,!c,d)},f))},stopFlicker:function(a){clearTimeout(this._flickerTimeID[a]);this._flickerTimeID[a]=this.leftBody.find("."+a).css({"background-color":"#fafafa"}).removeClass("talk_flicker")},_create:function(){var b=this,c=a.extend({},this.options,{width:this.options.width,height:this.options.height+this.options.dropHeight,minWidth:this.defaultOptions.minWidth,
minHeight:this.defaultOptions.minHeight});this._objView=new a.Window(a.extend({onChanage:function(a){b._callResize.call(b,a)},onClose:function(){b._callClose.call(b)},onMinimize:function(){b._callMinimize.call(b)},onMaximize:function(){b._callMaximize.call(b)},onMaxResize:function(){b._callMaxResize.call(b)}},c));this.header=this._objView.this.body=this._objView.this.chatWidth=this.options.this.chatHeight=this.options.height+this.options.dropHthis._objView.buttonClose.hover(function(){a(this).css("background-position",
"-60px -20px")},function(){a(this).css("background-position","-60px 0")}).attr("title",a.lang.chat_button_close).css({margin:"20px 5px 0 0",background:"url("+a.imageicon+") no-repeat -60px 0"});this._objView.buttonResize&&this._objView.buttonResize.css({width:"12px",height:"15px",background:"url("+a.imageicon+") no-repeat -298px -5px"});this._objView.buttonMax.hover(function(){var b=a(this).css("background-position").split(" ").shift();a(this).css("background-position",b+" -20px")},function(){var b=
a(this).css("background-position").split(" ").shift();a(this).css("background-position",b+" 0")}).css({margin:"20px 5px 0 0",background:"url("+a.imageicon+") no-repeat -40px 0"}).attr("title",a.lang.chat_button_resize_max);this._objView.buttonMin.hover(function(){a(this).css("background-position","-1px -20px")},function(){a(this).css("background-position","-1px 0")}).css({margin:"20px 5px 0 0",background:"url("+a.imageicon+") no-repeat -1px 0"}).attr("title",a.lang.chat_button_min);this.headBody=
a({className:"chat-header-body",style:a.STYLE_BODY+"background:#ebe9e9;z-index:0;color:#525252;"}).appendTo(this.header,!0).css({position:"absolute","border-top":"1px solid #5f6467","border-left":"1px solid #5f6467","border-right":"1px solid #5f6467","border-bottom":"0",top:"13px","border-right":"1px solid #5f6467","border-radius":"5px 5px 0px 0px","-moz-border-radius":"5px 5px 0px 0px","-webkit-border-radius":"5px 5px 0px 0px",width:this.options.width-2+"px",height:this.options.dropHeight-13+"px"});
this.headName=a({tag:"span",className:"chat-header-name",style:a.STYLE_BODY+"color:#margin:10px 0px 10px 80display:inline-float:height:20line-height:20max-width:220visibility:overflow:font-weight:cursor:font-size:12color:#"}).appendTo(this.headBody).html("");this.headSign=a({tag:"span",className:"chat-header-sign",style:a.STYLE_BODY+"color:#c3c3c3;margin:10px 0px 10px 10display:inline-float:height:20line-height:20visibility:white-space:text-overflow:overflow:cursor:"}).appendTo(this.headBody);
this.headIcon=a({tag:"div",className:"chat-header-icon",style:a.STYLE_NBODY+"visibility:border-radius:0overflow:background:url("+a.imageicon+");background-repeat:no-background-position:-374px 0; background-color:#position:left:20top:0width:"+this.CON_ICON_WIDTH+"height:"+this.CON_ICON_HEIGHT+"border:1px solid #5f6467;z-index:1;"}).appendTo(this.header,!0);this.chatBody=this._objView.chatBthis.leftElement=a({className:"body-chat-tags",style:a.STYLE_NBODY+
"display:float:background:#overflow:"}).css({"border-left":"1px solid #5f6467","border-bottom":"1px solid #5f6467","border-radius":"0px 0px 0px 5px",width:this.options.leftElementWidth-1+"px",height:this.options.height-1+"px"}).appendTo(this.chatBody);this.chatContainter=a({className:"body-chat-containter",style:a.STYLE_NBODY+"float:overflow:background:#"}).css({"border-right":"1px solid #5f6467","border-bottom":"1px solid #5f6467","border-left":"1px solid #5f6467",
"border-radius":"0px 0px 0px 5px","-moz-border-radius":"0px 0px 0px 5px","-webkit-border-radius":"0px 0px 0px 5px",width:+this.options.width-2+"px",height:+this.options.height-1+"px"}).appendTo(this.chatBody);a({style:a.STYLE_NBODY+"clear:"}).appendTo(this.chatBody);this.rightElement=this._objView.rightElement.css({width:this.options.rightElementWidth+"px"});this.rightBody=a({className:"window-right-body",style:a.STYLE_BODY+"width:199background:#"}).css({"border-right":"1px solid #5f6467",
"border-bottom":"1px solid #5f6467",height:+this.options.height-1+"px","border-radius":"0px 0px 5px 0px","-moz-border-radius":"0px 0px 5px 0px","-webkit-border-radius":"0px 0px 5px 0px"}).appendTo(this.rightElement);this.buttonScrollTop=a({tag:"div",className:"nTalk-scroll-top",style:a.STYLE_NBODY+"height:20width:100%;z-index:99;background:url("+a.imageicon+") no-repeat 20px -92display:cursor:"}).appendTo(this.leftElement);this.leftBody=a({tag:"div",className:"nTalk-scroll-body",
style:a.STYLE_NBODY+"overflow:height:424"}).appendTo(this.leftElement);this.leftContent=a({tag:"ul",className:"ntalke-scroll-content",style:a.STYLE_NBODY}).appendTo(this.leftBody);this.buttonScrollBottom=a({tag:"div",className:"nTalk-scroll-bottom",style:a.STYLE_NBODY+"height:20width:100%;z-index:99;background:url("+a.imageicon+") no-repeat 20px -108display:cursor:"}).appendTo(this.leftElement)},_bind:function(){var b=this.buttonScrollTop.click(function(){b._verificationScroll(!0)&&
b.leftBody.scrollTop(b.leftBody.scrollTop()-40)}).hover(function(){b._verificationScroll(!0)&&a(this).css("background-position","-79px -92px")},function(){a(this).css("background-position","20px -92px")});this.buttonScrollBottom.click(function(){b._verificationScroll(!1)&&b.leftBody.scrollTop(b.leftBody.scrollTop()+40)}).hover(function(){b._verificationScroll(!1)&&a(this).css("background-position","-79px -108px")},function(){a(this).css("background-position","20px -108px")})},_onOverChatTag:function(){for(var b=
"LI"!==b.tagName.toUpperCase();)b=b.parentNa(b).find(".tag-button-close").css({background:"url("+a.imageicon+") no-repeat -159px -39px"});a(b).indexOfClass("talk_flicker")||a(b).css({"border-top":"1px solid #ccc","border-bottom":"1px solid #ccc","border-left":"1px solid #ccc",left:"1px",background:"#fff"})},_onOutChatTag:function(){for(var b="LI"!==b.tagName.toUpperCase();)b=b.parentNa(b).find(".tag-button-close").css({background:"none"});a(b).indexOfClass("talk_flicker")||a(b).indexOfClass("talk_selected")||
a(b).css({"border-top":"1px solid #fafafa","border-bottom":"1px solid #fafafa","border-left":"1px solid #fafafa",left:"0px",background:"#fafafa"})},_onSelectedChatTag:function(b){var c=a("li",this.leftContent).each(function(b,e){a(e).removeClass("talk_selected");a(e).indexOfClass("talk_flicker")||c._onOutChatTag.apply(e)});this.stopFlicker(a(b).attr("key"));a(b).addClass("talk_selected").css({"border-top":"1px solid #ccc","border-bottom":"1px solid #ccc","border-left":"1px solid #ccc",left:"1px",
background:"#fff"})},_callResize:function(a){var c=a.width,d=a.this.extended.leftElement&&(c-=this.options.leftElementWidth);this.extended.rightElement&&(c-=this.options.rightElementWidth);this.options.width=c;this.options.height=d-this.options.dropHthis.headBody.css("width",a.width-2+"px");this.body.css("width",this.options.width+(this.extended.leftElement?this.options.leftElementWidth:0)+"px");this.leftElement.css({width:this.options.leftElementWidth-1+"px",height:this.options.height-
1+"px"});this.leftBody.css("height",this.options.height-40+"px");this.chatContainter.css({width:this.options.width-2+"px",height:this.options.height-1+"px"});this.rightBody.css({height:this.options.height-1+"px"});a=this.options.height-29;this.rightElement.find(".view-right-content").css({height:a+"px"});this.rightElement.find(".window-right-content iframe").attr("height",a).css({height:a+"px"});this._manageMode.callManageResize(this.options.width,this.options.height)},_callMaxResize:function(){var b=
this.options.height<this.defaultOptions.resizeHthis.chatHeight=this.options.dropHeight+(b?this.defaultOptions.resizeHeight:this.defaultOptions.height);this._objView.changeAttr(this.chatWidth,this.chatHeight);b?this._objView.buttonMax.css("background-position","-20px 0").attr("title",a.lang.chat_button_resize_min):this._objView.buttonMax.css("background-position","-40px 0").attr("title",a.lang.chat_button_resize_max);this._callResize({width:this.chatWidth,height:this.chatHeight})},_callMaximize:function(){},
_callClose:function(){this._manageMode.close()},_callMinimize:function(){this._manageMode.callMinimize()},_onSwitch}

我要回帖

更多关于 media min width 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信