/*! 2018-07-13 */
!function(a,b){function c(a,b,c,d,e,f){var g,h=parseInt($("#boxDom").width()),i=parseInt($("#boxDom").height());if(h,2==f)var j="<img src = "+d+" width=40px height = 40px />";else var j=n(d,60);var k=$("<ul class='string d_show'></ul>");k.html('<li><div class="tmtx"><img src="'+b+'"></div><div class="tmwz"><p class="tmnc">'+c+'</p><p class="tmnr">'+j+"</p></div></li>"),g=parseInt(i*Math.random()),k.css({top:g,right:-300,color:"#FFF"}),$("#boxDom").append(k);var l=$("#boxDom>ul:last-child"),m=parseInt(3e4*Math.random())+5e3;l.stop().animate({right:h+300},m,"linear",function(){$(this).remove()})}function d(a,d,e,f,g){c(b(j[r]),a,d,e,f,g)}function e(a,d,e,f,g){if(j=k.children(),s<=l){var h=b(j[s]);h.fadeIn(),c(h,a,d,e,f,g)}else{var h=b(j[0]);c(h,a,d,e,f,g)}s++}function f(){var a;u.length>0?(a=u.pop(),v.push(a)):y>0&&v.length>0&&z>3&&(a=g()),a&&("0"==x?e(a.avatar,a.nick_name,a.content,a.shenhetime,a.type):d(a.avatar,a.nick_name,a.content,a.shenhetime,a.type))}function g(){var a=v.length,c=Math.floor(Math.random()*a),d=v[c];return b(".MsgItem[msg_id="+d.shenhetime+"]",".Panel.MsgList").length<=0?d:g()}function h(a){b.getJSON(PATH_ACTIVITY+Path_url("ajax_act_new_msg.php"),{shenhetime:t},function(a){a&&0==a.ret&&b.isArray(a.data)&&a.data.length>0&&(u=a.data.concat(u),t=a.data[0].shenhetime)}).complete(function(){a&&"function"==typeof a&&a.call()})}var i,j,k,l,m=["#微笑#","#喜欢#","#晕#","#尴尬#","#汗#","#惊讶#","#郁闷#","#疑问#","#书呆子#","#悲伤#","#口罩#","#再见#","#冷#","#奸诈#","#困#","#被打#","#财迷#","#大哭#","#无聊#","#中毒#","#可爱#","#呲牙#","#大笑#","#馋#","#吵闹#","#愤怒#","#怀疑#","#闭嘴#","#鄙视#","#不屑#","#色#","#无聊#","#斜眼#","#酸#","#亲#","#恐吓#","#左鄙夷#","#右鄙夷#","#嘘#","#委屈#","#可怜#","#感动#","#酷#","#逗趣#","#黑#"],n=function(a,c){return b.each(m,function(b,d){a.indexOf(d)>-1&&(flg=!0,a=a.replace(new RegExp(d,"g"),p(b,c)))}),a},o=64,p=function(a,c){return i||(i=b(".faceicon")),'<span class="faceicon" style="width:'+c+"px;height: "+c+'px;display: inline-block"><img style="width:'+2880*c/o+"px;height:"+c+"px;left:-"+c*a+'px" src="'+i.find(".icon-seed").attr("src")+'" ></span>'},q=a.WBActivity.resize=function(){if(k){k.height();j.each(function(a,b){})}},r=0,s=0,t=0,u=[],v=[],w=1e3*WALL_INFO.re_time,x=WALL_INFO.show_style,y=WALL_INFO.show_type,z=WALL_INFO.chistory?1*WALL_INFO.chistory:0;a.WBActivity.start=function(){k=b(".Panel.MsgList"),l=k.children().length-1,j=k.children(),h(function(){a.WBActivity.hideLoading(),b(".Panel.Top").css({top:0}),b(".Panel.Bottom").css({bottom:0}),b(".Panel.MsgList").css({display:"block",opacity:1}),q(),a.setInterval(function(){f()},w),a.setInterval(function(){h()},3e3)})}}(window,jQuery);