/* version:2010-12-08 11:01:62 */
(function(A){A.debug=false;A.extend({error:function(B){A.log(B)},log:function(D,C){if(A.debug===false){return }var B={info:"info",error:"error",warning:"warning",dir:"dir"};C=B[C]||B.info;if(A.browser.mozilla&&window.console!==undefined){C=(C=="error"?"error":"info");console[C](D)}else{A().ready(function(){if(!A.tb_debug_wrapper){A.tb_debug_wrapper=A.tieba_debug_wrapper||A('<div class="tbdebug"><ul>&nbsp;</ul></div>').find("UL")[0];var E=A("body")[0];E.insertBefore(A.tb_debug_wrapper,E.firstChild)}if(C=="dir"){var H="<ul>";A.each(D,function(I){H+="<li>"+I+" : "+this+"</li>"});H+="</ul>";D=H}var F=new Date();var G=F.getHours()+":"+F.getMinutes()+":"+F.getSeconds()+":"+F.getMilliseconds();A.tb_debug_wrapper.innerHTML+='<li class="tb_debug_'+C+'"><span class="tb_debug_time">['+G+"]</span> "+D+"</li>"})}}});A.console=(function(D){var B=function(){};if(A.debug){try{return console}catch(C){return{log:B,debug:B,error:B,info:B,warn:B}}}else{return{log:B,debug:B,error:B,info:B,warn:B}}})();A.body={width:function(){var B,C;if(A.browser.msie&&A.browser.version<7){B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);C=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(B<C){return A(window).width()+"px"}else{return B+"px"}}else{return A(document).width()+"px"}},height:function(){var C,B;if(A.browser.msie&&A.browser.version<7){C=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);B=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(C<B){return A(window).height()}else{return C}}else{return A(document).height()}}};A.tb=A.tb||{};A.tb.ajax=function(B){var D=jQuery.extend({},{cache:false},B),C=B&&B.context||D;if(D.dataType==="jsonp"||D.dataType==="json"){A.ajax(B);return }var G=/^(\w+:)?\/\/([^\/?#]+)/.exec(D.url),F=G&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);if(F){A.log("Sorry, but cross domain request is not allowed, maybe you need to check you url replacment! ^-^<br/>the remote url is: "+G[1]+"//"+G[2],"error");return }var E=D.success||A.noop;D.success=function(I){json=typeof I==="string"?A.parseJSON(I):I;if(!json||json.no===undefined||json.data===undefined||json.error===undefined){E.call(C,{no:-1,data:I,msg:"not json data format"});return }var H={"4":"用户未登录!","5":"提交参数校验失败！","6":"对不起，您无权限进行此操作!","7":"请使用post方式提交数据!","8":"您的IP被封禁!","9":"您的ID被封禁!","10":"您说的太快了，请停下来先喝杯茶吧!"};if(H[json.no]){if(json.no==4){TbUtil.login?TbUtil.login():A.log("TbUtil.login function is not exists","warning")}else{A.dialog.open('<div style="font-size:12px;color:red;text-align:center;padding:10px;">'+H[json.no]+"</div>",{title:"错误提示",width:310})}}else{E.call(C,json)}};A.ajax(D)};A.tb.get=function(B,D,E,C){if(jQuery.isFunction(D)){C=C||E;E=D;D=null}return A.tb.ajax({type:"GET",url:B,data:D,success:E,dataType:C})};A.tb.post=function(B,E,F,C){if(jQuery.isFunction(E)){C=C||F;F=E;E={}}var D="utf-8";if(typeof E=="string"){if(E.indexOf("ie")<0){E+="&ie="+D}}else{if(A.isPlainObject(E)){E=A.extend({ie:D},E)}else{if(A.isArray(E)){E.push({name:"ie",value:D})}}}return A.tb.ajax({type:"POST",url:B,data:E,success:F,dataType:C})}})(jQuery);(function(C){var A=["DOMMouseScroll","mousewheel"];C.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var D=A.length;D;){this.addEventListener(A[--D],B,false)}}else{this.onmousewheel=B}},teardown:function(){if(this.removeEventListener){for(var D=A.length;D;){this.removeEventListener(A[--D],B,false)}}else{this.onmousewheel=null}}};C.fn.extend({mousewheel:function(D){return D?this.bind("mousewheel",D):this.trigger("mousewheel")},unmousewheel:function(D){return this.unbind("mousewheel",D)}});function B(F){var D=[].slice.call(arguments,1),G=0,E=true;F=C.event.fix(F||window.event);F.type="mousewheel";if(F.wheelDelta){G=F.wheelDelta/120}if(F.detail){G=-F.detail/3}D.unshift(F,G);return C.event.handle.apply(this,D)}})(jQuery);(function(B,C){B.draggable=function A(N){if(!N.handle){return }var M=B.extend({},N);var F=B(M.handle);var G=M.target&&B(M.target);var I=null;var H=(M.type||"").toString().toUpperCase();F[0].onselectstart=function(){return false};F.attr("unselectable","on").css("MozUserSelect","none");var J=null,L=null;var K=function(P){var O=P.pageX-L[0],R=P.pageY-L[1];if(G){var Q={};if(H!=="Y"){Q.left=I.left+O}if(H!=="X"){Q.top=I.top+R}if(!B.isEmptyObject(Q)){G.css(Q)}}if(B.isFunction(M.onMove)){M.onMove(P,O,R)}};var E=function(O){B(document).unbind("mousemove",K).unbind("mouseup",E);J=false;if(B.isFunction(M.onUp)){M.onUp(O)}};var D=function(O){if(J){E()}if(B.isFunction(M.onDown)){M.onDown(O)}if(G){I={left:G[0].offsetLeft,top:G[0].offsetTop}}L=[O.pageX,O.pageY];B(document).bind("mousemove",K).bind("mouseup",E)};M.handle.bind("mousedown",D);this.remove=function(){B(document).unbind("mousemove",K);B(document).unbind("mousemove",E);B(document).unbind("mousedown",D)}}})(jQuery);(function(B,C){var A=function(E){var D=this;this.cfg=B.extend({},{className:"dialogJmodal",resizeable:true},E);this.element=B('<div class="'+this.cfg.className+'"/>').appendTo(document.body).css({display:"none",zIndex:B.getzIndex(),width:this.width(),height:this.height()});if(this.cfg.show){this.show()}this.resizeFunc=function(){D.css("width",D.width());D.css("height",D.height());D.triggerHandler("resize")};if(this.cfg.resizeable){B(window).bind("resize",this.resizeFunc)}};A.prototype={constructor:A,show:function(){this.element.show.apply(this.element,arguments);this._processTages(1)},hide:function(){this.element.hide.apply(this.element,arguments);this._processTages(0)},width:function(){return B.body.width()},height:function(){return B.body.height()},css:function(){this.element.css.apply(this.element,arguments)},triggerHandler:function(){this.element.triggerHandler.apply(this.element,arguments)},bind:function(){this.element.bind.apply(this.element,arguments)},remove:function(){this._processTages(0);this.element&&this.element.remove();B(window).unbind("resize",this.resizeFunc);for(var D in this){delete this[D]}},_processTages:function(G){var E=this;if(!B.browser.msie||B.browser.version>6){return }E.special=E.special||[];if(G){if(E.special.length>0){return }var H=B("SELECT,OBJECT,EMBED");if(this.cfg.safety){H=H.filter(function(I){return B(this,E.cfg.safety).length==0})}H.each(function(){var I=B(this);E.special.push({dom:this,css:I.css("visibility")});I.css("visibility","hidden")})}else{for(var F=0,D=E.special.length;F<D;F++){B(E.special[F].dom).css("visibility",E.special[F].css||"");E.special[F].dom=null}}}};B.modal=A;B.getzIndex=function(){B.zIndex=(B.zIndex||50000);return B.zIndex++}})(jQuery);(function(C,D){var E=C.browser.msie&&C.browser.version<7;var B=function(H){B.INST.push(this);this.cfg=C.extend({},B.setting,H);if(!this.cfg.showTitle){this.cfg.draggable=false}if(this.cfg.top!=null||this.cfg.left!=null){this.cfg.autoCenter=false}var G="dialogJ";if(!C.browser.msie&&this.cfg.fixed){G+=" dialogJfix"}if(this.cfg.showShadow){G+=" dialogJshadow"}var F=this;if(this.cfg.modal){if(this.cfg.modalClassName){cfg.className=this.cfg.modalClassName}this.modal=new C.modal()}this.element=C('<div class="'+G+'"></div>').css({zIndex:C.getzIndex(),display:"none"}).appendTo(document.body);this._setupTitleBar();this.setTitle(this.cfg.title);if(this.cfg.contentType==="iframe"){this.cfg.html=C("<iframe></iframe>").css({width:"100%",height:"100%",border:"none"}).attr({src:this.cfg.html,frameBorder:0})}this._setupContent();this.setContent(this.cfg.html);this.width(this.cfg.width);this.height(this.cfg.height);this.setPosition(this.cfg.left,this.cfg.top);this.cfg.show&&this.show();this.cfg.autoCenter&&C(window).bind("resize",I);this._setScroll();C.each(A,function(J,K){if(F.cfg[K]){F.bind(K,F.cfg[K])}});this._setupEscKey();function I(){if(F.dragged){return }F.element.triggerHandler("onresize");if(F.sizeTimer){clearTimeout(F.sizeTimer)}F.sizeTimer=setTimeout(function(){F.setPosition()},5)}this.close=function(){if(F.element.triggerHandler("onclose")===false){return false}C(window).unbind("resize",I);F.modal&&F.modal.remove();F.dragobj&&F.dragobj.remove();F._setScroll(true);F.element.remove();for(var K=0,J=B.INST.length;K<J;K++){if(B.INST[K]==F){B.INST.splice(K,1);break}}}};var A=["onaccept","oncancel","onclose","onresize"];C.extend(B,{open:function(F,G){return new B(C.extend({},G,{html:F}))},ask:function(G,J,K,H){var I=new B(C.extend({modal:true},H||{},{html:G||"",show:false}));if(C.isArray(J)&&J.length>0){var F=C('<div class="dialogJanswers"></div>').appendTo(I.element).html(C.map(J,function(L){return'<input type="button" class="dialogJbtn" value="'+L+'" />'}).join(" "));I.buttons=C("input[type=button]",F).each(function(M,L){C(this).bind("click",function(){if(K.call(this,M,I)!==false){I.close()}})})}I.setPosition();if(!H||!H.show){I.show()}return I},alert:function(H,G){var F=C.extend({},G||{});return B.ask(H,[F.acceptValue||"确定"],function(I,J){return J.element.triggerHandler(A[I],this)},F)},confirm:function(H,G){var F=C.extend({},G||{});return B.ask(H,[F.acceptValue||"确定",F.cancelValue||"取消"],function(I,J){return J.element.triggerHandler(A[I],this)},F)},assert:function(H,J,G){var F=C.extend({button:true},G||{});if(arguments.length==2){F=J;J=C.noop}var I=B.ask(H,(F.button?[F.acceptValue||"确定"]:[]),function(K,L){return L.element.triggerHandler(A[K],this)},F);setTimeout(function(){if(I&&I.close){I.close()}J&&J()},parseInt(F.time)||2000);return I},load:function(G,F){F=F||{};var H={url:G,type:"GET",dataType:"html",cache:false,success:function(J){if(F.filter){J=C(F.filter,J)}I.setContent(J)}};C.each(["type","cache"],function(){if(this in F){H[this]=F[this];delete F[this]}});C.ajax(H);var I=new B(F||{});return I},close:function(){for(var G=0;G<this.INST.length;G++){var F=this.INST[G].close();if(F!==false){G--}}},setting:{modal:true,showShadow:true,showTitle:true,width:300,height:null,fixed:true,left:null,top:null,show:true,closeable:true,hideOnclose:false,draggable:true,contentType:null,resizeable:false,closeTips:null,escable:true,scrollable:false,modalClassName:null,autoCenter:true,html:null,minWidth:200,minHeight:100,maxWidth:null,maxHeight:null}});B.prototype={constructor:B,setTitle:function(F){this.element.find(".dialogJtitle>span.dialogJtxt").html(F||"")},setContent:function(F){if(F){this.element.find(".dialogJbody").html(F)}},width:function(F){return this.element.css("width",F)},height:function(F){return C(".dialogJbody",this.element).css("height",F)},setPosition:function(I,H){if((I!==0&!I)&&(H!==0&&!H)){var G=C(document);var F=C(window);var J=this.cfg.fixed&!C.browser.msie?[0,0]:[G.scrollLeft(),G.scrollTop()];I=J[0]+(F.width()-this.element.outerWidth())/2;H=J[1]+(F.height()-this.element.outerHeight())/2;H=(H>=0)?H:0}this.element.css({left:I,top:H});this.triggerHandler("resize")},getTitle:function(){return this.element.find(".dialogJtitle>span").html()},getContent:function(){return C(".dialogJbody",this.element).html()},show:function(){this.element.show.apply(this.element,arguments);if(this.modal){this.modal.cfg.safety=this.element;this.modal.show.apply(this.modal,arguments)}},hide:function(){this.element.hide.apply(this.element,arguments);if(this.modal){this.modal.hide.apply(this.modal,arguments)}},getElement:function(){return this.element[0]},getButtons:function(){return this.element.find(".dialogJanswers").find("input[type=button]")},bind:function(){this.element.bind.apply(this.element,arguments);return this},triggerHandler:function(){this.element.triggerHandler.apply(this.element,arguments)},getButtons:function(){return this.buttons},_setupTitleBar:function(){if(!this.cfg.showTitle){return }var F=this;var G=F.titleBar=C('<div class="dialogJtitle"><span class="dialogJtxt"></span></div>').appendTo(this.element);if(this.cfg.closeable){C('<a href="#" class="dialogJclose" title="'+(this.cfg.closeTips||"关闭本窗口")+'"><img src="http://img.baidu.com/hi/img/dialogclose.gif"></a>').appendTo(G).bind("mousedown",function(I){I.stopPropagation()}).click(function(I){if(F.cfg.hideOnclose){F.hide()}else{F.close()}return false})}if(this.cfg.draggable){G[0].style.cssText="-moz-user-select: none;cursor:move";var H=null;this.dragobj=new C.draggable({handle:G,target:F.element,onDown:function(){F._setupHackDiv(1)},onUp:function(){F.dragged=true;F._setupHackDiv(0)}})}},_setupHackDiv:function(H){var G=this;if(H){if(C("IFRAME",G.element).length>0){var F=C(".dialogJcontent",G.element);G.hack_div=(G.hack_div||C("<div></div>").appendTo(F).css({position:"absolute",left:0,top:0,cursor:"move"})).css({display:"block",width:G.element.outerWidth(),height:G.element.outerHeight()})}}else{if(G.hack_div){G.hack_div.css("display","none")}}},_setupEscKey:function(){var F=this;var G=function(H){if(H.which==27){if(F.showTitle){C(".dialogJclose",F.titleBar).triggerHandler("click")}else{F.close()}}};C(document).bind("keydown",G);C(F.element).bind("onclose",function(){C(document).unbind("keydown",G)})},_setupContent:function(){var H=C('<div class="dialogJcontent"><div class="dialogJbody"></div></div>'),G=this;this.element.append(H);if(this.cfg.resizeable){var F=C(".dialogJcontent",G.element);this.cfg.minWidth=this.cfg.minWidth||0;this.cfg.minHeight=this.cfg.minHeight||0;C.each(["es"],function(J,I){var L=C('<div class="resizable-'+I+'"></div>');L[0].style.cssText="-moz-user-select:none;"+(J==3?("z-index:"+C.getzIndex()):"");G.element.append(L);var M=null,K=null;new C.draggable({handle:L,onDown:function(N){G._setupHackDiv(1);M=parseInt(G.element.width());K=parseInt(F.height())},onMove:function(S,O,T){var R=M+O;var N=K+T;if(!((G.cfg.minWidth&&R<G.cfg.minWidth&&O<0)||(G.cfg.maxWidth&&(R>G.cfg.maxWidth)&&O>0))){G.element.width(R)}if(!((G.cfg.minHeight&&(N<G.cfg.minHeight)&&T<0)||((G.cfg.maxHeight)&&(N>G.cfg.maxHeight)&&T>0))){F.height(N)}var P=G.element.outerWidth(),Q=G.element.outerHeight();if(G.hack_div){G.hack_div.css({width:P,height:Q})}if(G.onResize){G.onResize.call(G,P,Q)}},onUp:function(N){G._setupHackDiv(0)}})})}},_setScroll:function(F){}};C.each(A,function(F,G){B.prototype[G]=function(H){this.bind(G,H)}});B.INST=[];C.dialog=B})(jQuery);jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D)},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A}return E/2*((C-=2)*C*C+2)+A},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A}return -E/2*((C-=2)*C*C*C-2)+A},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A}return E/2*((C-=2)*C*C*C*C+2)+A},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A}if(C==D){return A+E}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A}return E/2*(-Math.pow(2,-10*--C)+2)+A},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A},easeOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A},easeInOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G/2)==2){return A+H}if(!F){F=G*(0.3*1.5)}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A},easeInBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*(C/=E)*C*((D+1)*C-D)+A},easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A},easeInOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A},easeInBounce:function(B,C,A,E,D){return E-jQuery.easing.easeOutBounce(B,D-C,0,E,D)+A},easeOutBounce:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A}}}},easeInOutBounce:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.easeInBounce(B,C*2,0,E,D)*0.5+A}return jQuery.easing.easeOutBounce(B,C*2-D,0,E,D)*0.5+E*0.5+A}});(function($,window,undefined){var $$=function(path,s){this.instance="jswf_"+(new Date).getTime();var options=this.options=$.extend({},$$.options,s);var id=this.id=options.id||this.instance;var container=$(options.container||"<div></div>");$$.CallBacks[this.instance]={};var params=options.params,vars=options.vars,callBacks=options.callBacks;var properties=$.extend({},{height:options.height,width:options.width},options.properties);var self=this;for(var callBack in callBacks){$$.CallBacks[this.instance][callBack]=(function(option){return function(){return option.apply(self.object,arguments)}})(callBacks[callBack]);vars[callBack]="$.swf.CallBacks."+this.instance+"."+callBack}params.flashVars=$.param(vars);if($.browser.msie){properties.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";properties.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";params.movie=path}else{properties.type="application/x-shockwave-flash";properties.data=path}var build=['<object id="',id,'"'];for(var property in properties){build.push(" ",property,'="',properties[property],'"')}build.push(">");for(var param in params){if(params[param]!==undefined){build.push('<param name="',param,'" value="',params[param],'" />')}}build.push("</object>");$.each(container,function(i,v){v.innerHTML=build.join("")});this.getObject()};$.extend($$,{options:{id:null,height:1,width:1,container:null,properties:{align:"middle"},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true,menu:false},callBacks:{},vars:{}},CallBacks:{},remote:function(obj,fn){var rs=obj.CallFunction('<invoke name="'+fn+'" returntype="javascript">'+__flash__argumentsToXML(arguments,2)+"</invoke>");return eval(rs)}});$.extend($$.prototype,{toElement:function(){return this.object},getObject:function(){var self=this;this.object=document[this.id]||window[this.id];if(!this.object){setTimeout(function(){self.getObject()},1)}},remote:function(){var par=[this.toElement()];for(var i=0,len=arguments.length;i<len;i++){par.push(arguments[i])}return $$.remote.apply($$,par)}});$$.getVersion=function(){var n=navigator;if(n.plugins&&n.mimeTypes.length){var plugin=n.plugins["Shockwave Flash"];if(plugin&&plugin.description){return plugin.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"}}else{if(window.ActiveXObject&&!window.opera){for(var i=10;i>=2;i--){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);if(c){var version=c.GetVariable("$version");return version.replace(/WIN/g,"").replace(/,/g,".")}}catch(e){}}}}};$.swf=$$})(jQuery,window);(function(A,B){A.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\s/g,"&nbsp;").replace(/"/g,"&quot;")},unescapeHTML:function(){return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&quot;/g,'"')},trim:function(){return this.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+$)/g,"")},format:function(G){if(typeof G==="undefined"){return }var F=/([.*+?^=!:${}()|[\]\/\\])/g,D="{".replace(F,"\\$1"),I="}".replace(F,"\\$1");var E=(new RegExp("#"+D+"([^"+D+I+"]+)"+I,"g")),C=(new RegExp("#"+D+"(\\d+)"+I,"g"));if(typeof (G)=="object"){return this.replace(E,function(K,M){var L=G[M];if(typeof L=="function"){L=L(M)}return typeof (L)=="undefined"?"":L})}else{if(typeof (G)!="undefined"){var J=Array.prototype.slice.call(arguments,0);var H=J.length;return this.replace(C,function(K,L){L=parseInt(L,10);return(L>=H)?K:J[L]})}}},tempFormat:function(G){if(typeof G==="undefined"){return }var F=/([.*+?^=!:${}()|[\]\/\\])/g,D="{".replace(F,"\\$1"),I="}".replace(F,"\\$1");var E=(new RegExp("#"+D+"([^"+D+I+"]+)"+I,"g")),C=(new RegExp("#"+D+"(\\d+)"+I,"g"));if(typeof (G)=="object"){return this.replace(E,function(K,M){var L=G[M];if(typeof L=="function"){L=L(M)}return typeof (L)=="undefined"?"":L})}else{if(typeof (G)!="undefined"){var J=Array.prototype.slice.call(arguments,0);var H=J.length;return this.replace(C,function(K,L){L=parseInt(L,10);return(L>=H)?K:J[L]})}}},getByteLength:function(){return this.replace(/[^\x00-\xff]/g,"mm").length},subByte:function(G,F){if(this.getByteLength()<=G){return String(this)}for(var D=Math.floor((G=G-2)/2),C=this.length;D<C;D++){var E=this.substring(0,D);if(this.getByteLength(E)>=G){return String(E+(F!=B?F:"..."))}}},subChar:function(D,C){if(this.length<=D){return String(this)}else{return String(this.substr(0,D-1)+(C!=B?C:"..."))}},escapeUTF8:function(){return escape(this).replace(/%u(\w{4})/g,function(C,D){return encodeURIComponent(String.fromCharCode("0x"+D)).replace(/%/g,"%25")})}})})(jQuery);(function($,window,undefined){$.json=$.json||{};$.json.encode=(function(){var escapeMap={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function encodeString(source){if(/["\\\x00-\x1f]/.test(source)){source=source.replace(/["\\\x00-\x1f]/g,function(match){var c=escapeMap[match];if(c){return c}c=match.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+source+'"'}function encodeArray(source){var result=["["],l=source.length,preComma,i,item;for(i=0;i<l;i++){item=source[i];switch(typeof item){case"undefined":case"function":case"unknown":break;default:if(preComma){result.push(",")}result.push($.json.encode(item));preComma=1}}result.push("]");return result.join("")}function pad(source){return source<10?"0"+source:source}function encodeDate(source){return'"'+source.getFullYear()+"-"+pad(source.getMonth()+1)+"-"+pad(source.getDate())+"T"+pad(source.getHours())+":"+pad(source.getMinutes())+":"+pad(source.getSeconds())+'"'}return function(value){switch(typeof value){case"undefined":return"undefined";case"number":return isFinite(value)?String(value):"null";case"string":return encodeString(value);case"boolean":return String(value);default:if(value===null){return"null"}else{if(value instanceof Array){return encodeArray(value)}else{if(value instanceof Date){return encodeDate(value)}else{var result=["{"],encode=$.json.encode,preComma,item;for(key in value){if(value.hasOwnProperty(key)){item=value[key];switch(typeof item){case"undefined":case"unknown":case"function":break;default:if(preComma){result.push(",")}preComma=1;result.push(encode(key)+":"+encode(item))}}}result.push("}");return result.join("")}}}}}})();$.json.decode=function(string,secure){if(typeof (string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null}try{return eval("("+string+")")}catch(e){return{}}}})(jQuery,window);(function(B,A,C){B.JsLoadManager={use:function(F,D,E){if(typeof F==="string"){this.loadUrl(F,D);return }else{if(!this.isArray(F)){throw new Error("Arguments Illegal!")}}if(E){this.loadSerial(F,D)}else{this.loadParallel(F,D)}},loaded:{},loadSerial:function(E,D){var H=0,F=this;this.loadUrl(E[H],G);function G(J,I){F.loaded[J]=I;if(E[++H]){F.loadUrl(E[H],G)}else{D()}}},loadParallel:function(G,E){var I=this,D=false;for(var H=0,F=G.length;H<F;H++){this.loadUrl(G[H],function(K,J){if(I.checkLoaded(G)){E();D=true}});if(D){break}}},checkLoaded:function(E){if(typeof E==="string"){return !!this.loaded[E]}for(var F=0,D=E.length;F<D;F++){if(!this.loaded[E[F]]){return false}}return true},isArray:function(D){return typeof D==="object"&&D.constructor===Array},loadUrl:function(D,F){var E=this;if(this.loaded[D]!==C){if(F&&typeof F=="function"){F(D,this.loaded[D])}}else{this.createScriptTag(D,function(H,G){E.loaded[H]=G;if(F&&typeof F=="function"){F(H,G)}})}},createScriptTag:function(D,F){var E=document.createElement("script");E.setAttribute("type","text/javascript");E.setAttribute("src",D);E.onload=E.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){E.onload=E.onreadystatechange=null;if(typeof F==="function"){F(D,true)}}};E.onerror=function(G){if(typeof F==="function"){F(D,false)}};document.getElementsByTagName("head")[0].appendChild(E)}}})(jQuery,window);(function(C){C.type=function(E){var D=Object.prototype.toString;var F={"undefined":"undefined",number:"number","boolean":"boolean",string:"string","[object Function]":"function","[object RegExp]":"regexp","[object Array]":"array","[object Date]":"date","[object Error]":"error"};return F[typeof E]||F[D.call(E)]||(E?"object":"null")};var B={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var A=function(D){return B[D]||"\\u00"+Math.floor(D.charCodeAt()/16).toString(16)+(D.charCodeAt()%16).toString(16)}})(jQuery);$.stats={statsParams:{},onElementClick:function(E){var E=window.event||E;var D=E.target||E.srcElement;if(D.tagName!="A"&&D.tagName!="INPUT"&&D.tagName!="IMG"){return }var B=this.id;var G=D;var C="";var A="";var F="";while(true){C=G.getAttribute("st_type")||G.getAttribute("cId");if(C){F="area="+C;if(C in $.stats.statsParams){A=G.getAttribute("st_value");F=$.stats.statsParams[C]+(A==null?"":("&st_value="+A))}$.stats.sendRequest(F);break}if(G.id==B||G.tagName=="BODY"){break}else{G=G.parentNode}}},init:function(A,D){var C=document.getElementById(A);if(C){if(typeof D=="object"){for(var B in D){$.stats.statsParams[B]=D[B]}}C.onclick=$.stats.onElementClick}},sendRequest:function(B){if(document.images){var A=new Image();window["bd_pv_"+(new Date().getTime())]=A;A.src="http://static.tieba.baidu.com/tb/img/pv.gif?"+B+"&t="+new Date().getTime();A=null}},getUrl:function(D,F){var B="";B=D.href;var E=B;var C="";var A=B.indexOf("#");if(A>=0){E=B.slice(0,A);C=B.slice(A)}E+=(E.indexOf("?")==-1?"?":"&");B=E+F+C;return B},addParams:function(B,C){var A=$.stats.getUrl(B,C);_html=B.innerHTML;B.href=A;B.innerHTML=_html},scanPage:function(){var B="stats-data";var A=$("*["+B+"]");if(!A.length){return }$.each(A,function(C,D){$.stats.processTag($(D))})},processTag:function(A){var B="stats-event";_dataAttrName="stats-data",_typeAttrName="stats-datatype",_data=A.attr(_dataAttrName),_event=A.attr(B),_datatype=A.attr(_typeAttrName);if(!_data||_data==""){return }if(!_datatype||_datatype==""){_datatype="query"}if(_datatype=="json"){_data=$.param($.json.decode(_data))}_event=(_event&&_event!="")?_event:"click";A.attr(_dataAttrName,_data);A.bind(_event,function(){$.stats.sendRequest($(this).attr(_dataAttrName))})}};var Stats=$.stats,Statistics=$.stats;$.getFluxResult=function(A){var G=$.cookie("BAIDUID").replace(/\:FG(\=1)?$/,"");var C=A||0;var B="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";if(!G||G.toString().trim()==""){return false}G=G.toString().trim();try{var D=G.charAt(G.length-1);var F=B.indexOf(D);if(F<(C*B.length)){return true}else{return false}}catch(E){return false}};$.SimplePopupMsg={delayTime:3000,show:function(B,G,F){var D='<div class="simple_popup_msg"'+(G?(' id="'+G+'" '):"")+'> <div class="rc_top"><b></b><i></i></div> <div class="rc_content"><div class="cnt">'+B+' </div></div> <div class="rc_bottom"><b></b><i></i></div></div>';var C=this.getPopupElem();var A=$("body");C.css({top:Math.max((parseInt(window.screen.availHeight/2)+A.scrollTop()-40),0),left:Math.max((parseInt(window.screen.availWidth/2)+A.scrollLeft()-100),0),"z-index":30000,opacity:0,display:""});C.html(D);var E=this;E._slowShow(C,1,10);setTimeout(function(){E.hide()},F||$.SimplePopupMsg.delayTime)},_slowShow:function(D,A,B){var C=this;if(A<=10){D.css({opacity:(A*0.1)});setTimeout(function(){C._slowShow(D,(A+1),B)},B)}},getPopupElem:function(){var A;if(!document.getElementById("simplePopupMsg_wrap")){A=$('<div id="simplePopupMsg_wrap"></div>');A.css("position","absolute");$("body").prepend(A)}else{A=$("#simplePopupMsg_wrap")}return A},hide:function(){this.getPopupElem().css("display","none")}};$.getBrowser=function(){var C=navigator.userAgent;var D={};var A="",B="";if(C.indexOf("AppleWebKit")>=0){A="webkit"}else{if(C.indexOf("Gecko")>=0){A="gecko"}else{if(C.indexOf("MSIE")>=0){A="ie"}}}if(C.indexOf("Firefox")>=0){B="firefox"}else{if(C.indexOf("360SE")>=0){B="360se"}else{if(C.indexOf("SE")>=0){B="sougou"}else{if(C.indexOf("Maxthon")>=0){B="maxthon"}else{if(C.indexOf("MSIE")>=0){B="ie"}else{if(C.indexOf("Chrome")>=0){B="chrome"}else{if(C.indexOf("Safari")>=0){B="safari"}}}}}}}return{core:A,name:B}};$.SimpleTipMsg=function(B,E,C,D){this.view_panel_id=B;this.cookie_name=E;this.cookie_option=C||{path:"/",expires:(3600*1000*24*30*12),domain:"tieba.baidu.com"};this.view_html=D;var A=Fe.Cookie.get(E);if(!A){if(D){Fe.G(B).innerHTML=D}Fe.show(B)}};$.SimpleTipMsg.prototype.close=function(){Fe.Cookie.set(this.cookie_name,"readed",this.cookie_option);Fe.hide(this.view_panel_id)};$.showErrorTip=function(E,D,F,A){var C='<div style="padding:20px 20px; text-align:'+F+'; line-height:20px;font-size:13px;">'+D.replace(/\r?\n/gi,"<br>")+"</div>";var B=A||false;if(B){$.dialog.open(C,{title:"",width:200});setTimeout(function(){$.dialog.close()},500)}else{$.dialog.alert(C,{title:E,width:380})}};$.handleError=function(D,E,F,C,A){D.no=D.no||D.error_no;_autoHide=A||false;if(D.no==4){TbCom.process("User","buildLoginFrame")}else{var B=E||"操作失败";var F=F||"left";var C=C||D.error||FORUM_ERROR_INFO[D.no]||"操作失败";$.showErrorTip(B,C,F,_autoHide)}};$.resizePic=function(D,A,K,F){var J=A||120;var G=K||120;var C=false;var H=D;if(H.width()==0){var I=this;var M=arguments;var E;E=setTimeout(function(){clearTimeout(E);E=null;M.callee.apply(I,M)},100);return false}function L(N,Q,O,S){var P=0,R=N,T=Q;if(N>O){P+=1}if(Q>S){P+=2}switch(P){case 1:R=O;R=Q*O/N;case 2:T=S;R=N*S/Q;case 3:T=(Q/S>N/O)?S:Q*O/N;R=(Q/S>N/O)?N*S/Q:O}if(P!=0){C=true}return[R,T]}var B=L(H.width(),H.height(),J,G);D.css("width",B[0]);D.css("height",B[1]);D.css("visibility","visible");if(F==true){D.css("margin-top",(K-parseInt(B[1]))/2)}return C};$.disableInput=function(G,H,C){var J,F,D;var A=[8,9,16,17,18,20,13,27,37,38,39,40,33,34,35,36,45,46,112,113,114,115,116,117,118,119,120,121,122,123,144,145];var I=function(){J=G;if(H&&typeof H=="function"){F=H||null}if(C&&typeof C=="function"){D=C||null}B()};var B=function(){J.bind("keydown",function(K){return E(K)})};var E=function(K){var L=K;if($.inArray(L.keyCode,A)>=0){return true}if(L.ctrlKey||L.altKey){return true}if(D&&!D(L.keyCode)){L.preventDefault();return false}if(F&&!F(J.val().toString().trim())){L.preventDefault();return false}};I()};$.subInput=function(B,C){$.disableInput(B,function(E){if(E.toString().getByteLength()>=C){return false}else{return true}});var A=function(){var E=B.val().toString();if(E.getByteLength()>C){B.val(E.subByte(C,""))}};B.bind("propertychange",A);try{B.bind("input",A)}catch(D){}B.bind("keyup",A)};$.getFlash=function(A){if(navigator.appName.indexOf("Microsoft")!=-1){return window[A]}else{return document[A]}};$.dateFormat=function(A,F){if("string"!=typeof F){return A.toString()}function D(L,K){F=F.replace(L,K)}var B=TbFw.number.pad,G=A.getFullYear(),E=A.getMonth()+1,J=A.getDate(),H=A.getHours(),C=A.getMinutes(),I=A.getSeconds();D(/yyyy/g,B(G,4));D(/yy/g,B(G.toString().slice(2),2));D(/MM/g,B(E,2));D(/M/g,E);D(/dd/g,B(J,2));D(/d/g,J);D(/HH/g,B(H,2));D(/H/g,H);D(/hh/g,B(H%12,2));D(/h/g,H%12);D(/mm/g,B(C,2));D(/m/g,C);D(/ss/g,B(I,2));D(/s/g,I);return F};
