var Ping={host:"https://comment.52pk.com",uchost:"https://pass.52pk.com",cmshost:"https://content.52pk.com",requesturl:"",type:"arc",elements:{},panels:{},cfg:{},floors:{},_close:false,maxfl:5,wordmax:140,total:0,url:"",sid:0,allowguest:0,power:0,retitle:1,isjump:1,_withhot:0,charset:"GBK",pInit:function(a){Ping.charset=getPageCharset();Ping.requesturl=Ping.host+"/ping.php";Ping.checkVars(a);Ping.checkPing()},checkVars:function(a){if(typeof $!="function"){alert("\u8bc4\u8bba\u811a\u672c\u9700\u8981JQuery \u5e93\u652f\u6301");return false}if(typeof a!=
"object"){alert("\u521d\u59cb\u5316\u5931\u8d25");return false}Ping.id=parseInt(a.id);Ping.type=a.type;Ping.title=a.title;Ping.security=a.security;if(typeof a.retitle!="undefined"&&a.retitle==0)Ping.retitle=a.retitle;if(typeof a.isjump!="undefined")Ping.isjump=a.isjump;Ping.url=typeof a.url=="undefined"||a.url==""?window.location.href:a.url;Ping.elements=typeof a.elements!="object"?{cids:[0],prefix:"ping_box_"}:a.elements;Ping.panels=typeof a.panels!="object"?{reply:{name:"ping_reply",pos:"bottom"},quote:{name:"ping_quote"}}:
a.panels;var c=Ping.panels.quote.name;if($("#"+c).length>0)c=$("#"+c);else{c=Ping.QuotePanel(0);c=$(c)}$(".quote_panel").remove();$(c).appendTo("body").hide();$(".frontpage cite").hover(function(){$(this).addClass("current")},function(){$(this).removeClass("current")});Ping.methods=typeof a.methods=="object"?a.methods:{pHot:{size:3,appendReply:false},pList:{pagesize:15}};if(typeof Ping.methods.pQuick=="object"&& Ping.methods.pQuick.withot==1)Ping._withhot=1},runMethod:function(){for(var a in Ping.methods)if(a==
"pList")Ping.pList(Ping.methods[a]);else if(a=="pHot")Ping.pHot(Ping.methods[a]);else if(a="pQuick")Ping.pQuick(Ping.methods[a]);$("#quick_reply").length>0&&$("#quick_reply").click(function(){var c=$(".panel_content").parent();if(c.is(":visible")){Ping.scrollto(c,-300);$(".panel_content",c).focus()}})},checkAuth:function(){$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:{m:"checkauth",pid:Ping.id},dataType:"jsonp",jsonp:"callback",success:function(a){if(a.status=="1")Ping.power=1},
error:function(){alert("send request error!");return false}})},checkPing:function(a){var c=Ping.elements.prefix+"hot_0";$.ajax({url:Ping.requesturl+"?callback=?",type:"get",data:{type:Ping.type,action:Ping._withhot==1?"hp":"",pid:Ping.id,url:Ping.url,sid:Ping.sid,title:Ping.title,security:Ping.security,charset:Ping.charset},dataType:"jsonp",jsonp:"callback",success:function(b){var d="",e=$(".topicinfo");if(Ping.type=="arc"&&b.status<=0){Ping._close=true;d="\u8bc4\u8bba\u4e0d\u5b58\u5728"}else{Ping.cfg=b;d="\u8bc4\u8bba\uff1a"+b.topicinfo.title;
if(typeof b.classinfo=="object"){var f=0,g=0;for(var h in b.classinfo){var j=parseInt(b.classinfo[h].cmtnum),i=parseInt(b.classinfo[h].suportnum);$("#ping_"+h+"_cmtnum").length>0&&$("#ping_"+h+"_cmtnum").html(j);$("#ping_"+h+"_suportnum").length>0&&$("#ping_"+h+"_suportnum").html(i);f+=j;g+=i}}if(typeof b.hots=="object"){$("#ping_loading_hot_0").show();j=b.hots.length;if(j<=0)$("#"+c).remove();else{for(h=0;h<j;h++){i=b.hots[h];i.deepth=1;var k=Ping.compileTpl(b.tplcode,i);$('<div class="item">'+k+
"</div>").appendTo("#"+c);Ping.appendHotFolder(0,i.id,i.replynum)}Ping.bindQuote(0,"hot");$("#"+c).show()}$("#ping_loading_hot_0").hide()}if(Ping.type=="arc"&&$("#ping_arc_nav").length>0){typeid=b.topicinfo.typeid;Ping.getArcNav("arc",typeid)}else $("#ping_arc_nav").html("<a href='"+b.topicinfo.url+"'>"+b.topicinfo.title+"</a>");$("#ping_cmtnum").html(f);Ping.total=f+g;$("#ping_total").html(Ping.total);Ping.allowguest=b.allow_guest;Ping.sid=b.topicinfo.sid;f=Ping.elements.cids;for(h=0;h<f.length;h++)Ping.appendReplyPanel(f[h]);
Ping.runMethod()}if(Ping.retitle==1)document.title=d;if(e.length>0){$("h3 a",e).eq(0).html(d);if(!Ping._close)if(Ping.type=="arc")$("h3 a",e).attr("href",Ping.cmshost+"/ajax.php?m=toarc&aid="+Ping.id);else b.topicinfo.url!==""&&$("h3 a",e).attr("href",b.topicinfo.url)}typeof a=="function"&&a()},error:function(){alert("send request error!");return false}})},pHot:function(a){var c=Ping.elements.cids;a=a.size;for(var b=0;b<c.length;b++){$("#ping_loading_hot_"+c[b]).show();Ping.getHot(c[b],a)}},pQuick:function(){if($("#quick_reply_box").length>
0){var a=Ping.panels.reply.name;if($("#"+a).length>0)a=$("#"+a);else{a=Ping.ReplyPanel(0,Ping.isjump);a=$(a)}$("#ping_total ",a).html(Ping.total);Ping.panelWorldLimit(a);Ping.allowguest>0&&$(".anonymous",a).html('<input type="checkbox"> \u533f\u540d');$("#quick_reply_box").after(a)}else alert("\u5feb\u901f\u56de\u590d\u6807\u7b7e(ID:quick_reply_box)\u4e0d\u5b58\u5728\uff0c\u8bf7\u5728\u9875\u9762\u4e2d\u521b\u5efa");return false},switchHot:function(a,c){a=$("#ping_box_hot_"+a);if(a.length>0)c?a.show():a.hide()},getHot:function(a,c){var b=Ping.elements.prefix+"hot_"+a;$.ajax({url:Ping.requesturl+
"?callback=?",type:"get",data:{action:"hp",type:Ping.type,pid:Ping.id,sid:Ping.sid,cid:a,size:c},dataType:"jsonp",jsonp:"callback",success:function(d){if(typeof d.hots=="object"){var e=d.hots.length;if(e<=0)$("#"+b).remove();else{for(var f=0;f<e;f++){var g=d.hots[f];g.deepth=1;var h=Ping.compileTpl(d.tplcode,g);$('<div class="item">'+h+"</div>").appendTo("#"+b);Ping.appendHotFolder(a,g.id,g.replynum)}Ping.bindQuote(a,"hot");$("#"+b).show()}}},error:function(){alert("send request error!");return false}});
$("#ping_loading_hot_"+a).hide()},appendHotFolder:function(a,c,b){var d=$("#"+Ping.elements.prefix+"hot_"+a+" #ping_"+c);if(d.length>0&&b>0){a='<div class="ping level2 " id="hot_'+c+'"><h3  onclick="Ping.synFloor(\''+c+"','"+a+'\');"><span class="folder_open"></span> ';a+='<div class="ping_user"><a class="folder_tips"  >\u70b9\u51fb\u5c55\u5f00<code>'+b+"</code> \u4e2a\u8bc4\u8bba</a></div></h3></div>";$(d).after(a)}},synFloor:function(a,c){$.ajax({url:Ping.requesturl+"?callback=?",type:"get",data:{action:"fl",cmtid:a,type:Ping.type,
pid:Ping.id,sid:Ping.sid},dataType:"jsonp",jsonp:"callback",success:function(b){var d=Ping.elements.prefix+"hot_"+c;for(var e in b.fl){var f=b.fl[e];if(f.deepth>Ping.maxfl)f.deepth=Ping.maxfl;var g=Ping.compileTpl(Ping.cfg.tplcode,f);append=Ping.getLastChildPing("#"+d,f.reid);append.after($(g));$("#hot_"+a+" h3",$("#"+d)).hide();Ping.bindPingJob(d)}},error:function(){alert("send request error!");return false}})},bindPingJob:function(a){var c=$("#"+a);if(c.length>0){$(".ping",c).each(function(){var b=
$(this),d=b.attr("deepth");parseInt(d);var e=$("h3",b);e.hover(function(){$(".ping_folder",e).removeClass("folder_close").addClass("folder_close")},function(){$(".ping_folder",e).removeClass("folder_close")}).unbind("click").click(function(){sons=b.closest(".ping").nextUntil(".level"+d);if(e.hasClass("have_fold")){$("dl",b).show();sons.show();$("h3 .ping_user .username",b).show();$("h3 .ping_user .folder_tips",b).remove();e.removeClass("have_fold");$(".ping_folder",e).removeClass("folder_open")}else{$(".ping_folder",
e).removeClass("folder_open").addClass("folder_open");e.addClass("have_fold");sons.hide();$("dl",b).hide();$("h3 .ping_user a",b).addClass("username").hide();$("h3 .ping_user",b).append('<a class="folder_tips">\u70b9\u51fb\u5c55\u5f00 <code>'+(sons.length+1)+"</code> \u4e2a\u8bc4\u8bba</a>")}})});Ping.power==1&&$(".ping",c).each(function(){var b=$(this);b.hover(function(){$(".del",b).show()},function(){$(".del",b).hide()});$(".del",b).unbind("click").click(function(){var d=b.attr("id").split("_");d=parseInt(d[1]);confirm("\u5220\u9664\u672c\u8bc4\u8bba\u5219\u4e0b\u9762\u6240\u6709\u7684\u5b50\u8bc4\u8bba\u4e5f\u5c06\u5220\u9664\uff0c\u786e\u5b9a\u5220\u9664\u561b\uff1f")&&
Ping.delPing(d,c)})})}},delPing:function(a,c){a>0&&Ping.power==1&&$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:{m:"delping",type:Ping.type,pid:Ping.id,cmtid:a},dataType:"jsonp",jsonp:"callback",success:function(b){if(b.status==1){b=$("#ping_"+a,c);var d=b.attr("deepth");sons=b.closest(".ping").nextUntil(".level"+d);$("#ping_"+a).remove();sons.remove()}else alert(b.msg)},error:function(){alert("send request error!");return false}})},getFloor:function(a,c,b){$.ajax({url:Ping.requesturl+
"?callback=?",type:"get",data:{action:"fl",cmtid:a,type:Ping.type,pid:Ping.id,sid:Ping.sid,charset:Ping.charset},dataType:"jsonp",jsonp:"callback",success:function(d){var e=b=="hot"?Ping.elements.prefix+"hot_"+c:Ping.elements.prefix+c;for(var f in d.fl){var g=d.fl[f];if(g.deepth>Ping.maxfl)g.deepth=Ping.maxfl;var h=Ping.compileTpl(Ping.cfg.tplcode,g);append=Ping.getLastChildPing("#"+e,g.reid);append.after($(h))}Ping.bindPingJob(e)},error:function(){alert("send request error!");return false}})},pList:function(a){Ping.pagesize=
a.pagesize;a=a.nopage;for(var c=Ping.elements.cids,b=0;b<c.length;b++)Ping.getList(c[b],0,a)},getTopPing:function(a,c,b,d){$(".ping_toping").hide();if($(d).length>0)if($(d).html().indexOf("<li")!=-1)$(d).show();else{$(d).html("\u52a0\u8f7d\u4e2d\u2026\u2026");$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:{m:"toping",type:a,day:c,size:b,charset:Ping.charset},dataType:"jsonp",jsonp:"callback",success:function(e){e=e.data;var f="";for(var g in e){var h=e[g];f+="<li><b>"+h.cmtnum+'</b><span><a href="'+h.url+
'" target="_blank">'+h.title+"</a></span></li>\r\n"}$(d).empty().html(f).show()},error:function(){alert("send request error!");return false}})}},getList:function(a,c,b){var d=Ping.elements.prefix+a;b=b?1:0;$("#ping_loading_"+a).show();Ping.resetQuotePanel(a);$.ajax({url:Ping.requesturl+"?callback=?",type:"get",data:{action:"pl",type:Ping.type,pid:Ping.id,sid:Ping.sid,cid:a,psize:Ping.pagesize,p:c,charset:Ping.charset},dataType:"jsonp",jsonp:"callback",success:function(e){if(typeof e.comments=="object"&&
e.comments.length>0){c<=1?Ping.switchHot(a,1):Ping.switchHot(a,0);$("#"+d+" .ping").remove();for(var f=0,g=0;g<e.comments.length;g++){var h=Ping.compileTpl(e.tplcode,e.comments[g]);$('<div class="item">'+h+"</div>").appendTo("#"+d);if(e.comments[g].replynum>0){Ping.getFloor(e.comments[g].id,a);f=1}}f==0&&Ping.bindPingJob(d);e.pages.length>0&&b<=0&&Ping.appendPages(e.pages,a);Ping.bindQuote(a);$("#ping_loading_"+a).hide();$("#"+d).show()}},error:function(){alert("send request error!");return false}});
$("#ping_loading_"+a).hide()},resetQuotePanel:function(a){Ping.closeQuote(a)},closeQuote:function(a){var c=$(".quote_panel");if(c.length>0){$(".auth_code_box",c).remove();$(".panel_content textarea",c).val("");$(".panel_content .word_limit",c).html(Ping.wordmax);$(".ping_send_loading",c).hide();$(".ping_send",c).show().unbind("click");$(c).appendTo("body").hide()}$(".quote_close").html("\u56de\u590d").removeClass("quote_close").addClass("ping_quote");Ping.switchReplyPanel(a,1)},resetReplyPanel:function(a){a=
$("#reply_"+a+"_panel");if(a.length>0){$(" .panel_content textarea",a).val("");$(" .auth_code_box",a).remove();$(".word_limit",a).html(Ping.wordmax)}},getLastChildPing:function(a,c){a=$("#ping_"+c,$(a));c=a.attr("deepth");c=a.closest(".ping").nextUntil(".level"+c).last();if(c.length<=0)c=a;return c},getPingChilds:function(a){if(typeof a=="object"){var c=a.attr("deepth");a=a.closest(".ping").nextUntil(".level"+c);$(a).each(function(b){$(this).attr("deepth");(void 0)[b]=$(this)})}},bindPages:function(a,
c,b){if(b.length>0){$(".ping_pages",b).remove();$(c).appendTo(b);$(" .ping_pages a",b).not(".now").click(function(){var d=$(this).html();if(d=="\u5c3e\u9875")d=$(this).attr("page");else if(d=="\u9996\u9875")d=1;Ping.getList(a,d)})}},appendPages:function(a,c){Ping.bindPages(c,a,$("#"+(Ping.elements.prefix+c)));$(".frontpage").length>0&&Ping.bindPages(c,a,$(".frontpage"));return false},panelWorldLimit:function(a){if(a.length>0){var c=$(".panel_content textarea",a),b=$(".panel_content .word_limit",a);c.bind("keyup change",
function(){var d=c.val(),e=b.html();e=parseInt(e);if(e<=0){c.val(d.substring(0,Ping.wordmax));b.html(0)}else b.html(Ping.wordmax-d.length)})}return false},appendReplyPanel:function(a,c){var b=Ping.panels.reply.pos=="top"?"top":"bottom",d=Ping.ReplyPanel(a);d=$(d);$(".panel_content .panel_bar code",d).hover(function(){$(this).addClass("current")},function(){$(this).removeClass("current")});$(".panel_content .panel_bar b cite",d).hover(function(){$(this).addClass("current")},function(){$(this).removeClass("current")});
$("#ping_total ",d).html(Ping.total);Ping.panelWorldLimit(d);Ping.allowguest>0&&$(".anonymous",d).html('<input type="checkbox"> \u533f\u540d');a=c=="hot"?Ping.elements.prefix+"hot_"+a:Ping.elements.prefix+a;b=="top"?$("#"+a).before(d):$("#"+a).after(d);return false},bindQuote:function(a,c){var b=c=="hot"?Ping.elements.prefix+"hot_"+a:Ping.elements.prefix+a;$("#"+b+" .ping_quote").live("click",function(){Ping.closeQuote(a);var d=$(this).parentsUntil(".ping").parent().attr("id");$(this).html("\u5173\u95ed").removeClass("ping_quote").addClass("quote_close");
return Ping.quote(d,a,c)});$("#"+b+" .quote_close").live("click",function(){$(this).html("\u56de\u590d").removeClass("quote_close").addClass("ping_quote");Ping.resetQuotePanel(a);return false});$("#"+b+" .ping_suport").live("click",function(){var d=$(this).parentsUntil(".ping").parent().attr("id");Ping.suport(d,a,c);return false})},quote:function(a,c,b){var d=b=="hot"?Ping.elements.prefix+"hot_"+c:Ping.elements.prefix+c,e=$(".quote_panel");if(e.length>0){$(".panel_content .panel_bar code",e).hover(function(){$(this).addClass("current")},
function(){$(this).removeClass("current")});$(".panel_content .panel_bar b cite",e).hover(function(){$(this).addClass("current")},function(){$(this).removeClass("current")});$(".ping_send",e).show().unbind("click");$(".ping_send_loading",e).hide();Ping.panelWorldLimit(e);Ping.allowguest>0&&$(".anonymous",e).html('<input type="checkbox"> \u533f\u540d');d=$("#"+d+" #"+a);var f=d.width();e.width(f-32);$(".ping_bar cite",d).after(e);Ping.switchReplyPanel(c,0);e.show();a=a.split("_");var g=parseInt(a[1]);$(".ping_send",
e).click(function(){return Ping.sendReply("quote",g,c,b)})}return false},switchButton:function(a,c,b){c==1?$(a).html("\u53d1\u5e03"):$(a).html("loading\u2026\u2026");typeof b=="function"&&b()},suport:function(a,c,b){c=$("#"+(b=="hot"?Ping.elements.prefix+"hot_"+c:Ping.elements.prefix+c)+" #"+a);if(c.length>0){b=a.split("_");b=parseInt(b[1]);var d=$(".ping_suport code",c);$(".ping_suport",c).click(function(){return false});$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:{m:"suport",cmtid:b,suportnum:parseInt(d.html()),
type:Ping.type,pid:Ping.id},dataType:"jsonp",jsonp:"callback",success:function(e){$("#"+a+" .ping_suport").html('<font color="red">\u5df2\u9876</font><code>'+e.suportnum+"</code>");e.msg&&alert(e.msg)},error:function(){alert("send request error!");return false}})}},sendReply:function(a,c,b,d,e){var f=a=="quote"?$(".quote_panel"):$("#reply_"+b+"_panel"),g=$(".panel_content textarea",f),h=$(".auth_code",f),j=$(".anonymous :checkbox",f);_data={m:"sendreply",type:Ping.type,pid:Ping.id,content:g.val(),rpid:c,sid:Ping.sid,
cid:b,code:h.val()};if(j.length>0)_data.is_anony=j.attr("checked")?1:0;if(!Ping._close&&g.val()!=""){$(".ping_send",f).hide();$(".ping_send_loading",f).show();$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:_data,dataType:"jsonp",jsonp:"callback",success:function(i){if(i.success==1){if(a=="quote"){var k=Ping.compileTpl(Ping.cfg.tplcode,i.ping),l=Ping.getLastChildPing("#"+(d=="hot"?Ping.elements.prefix+"hot_"+b:Ping.elements.prefix+b),i.ping.reid);l.after($(k));Ping.scrollto("#ping_"+
i.ping.id,-400);$(".quote_close",l).removeClass("quote_close").addClass("ping_quote").html("\u56de\u590d");Ping.resetQuotePanel(b)}else{Ping.getList(b,1);Ping.resetReplyPanel(b)}if(typeof e=="string"&&e.indexOf("http://")>=0&&Ping.isjump>0)window.location=e;else Ping.isjump==0&&alert(i.msg)}else if(i.success==-1)Ping.appendAuthCode(f);else{a=="quote"?Ping.resetQuotePanel(b):Ping.resetReplyPanel(b);alert(i.msg);g.focus()}$(".ping_send",f).show();$(".ping_send_loading",f).hide();i=$("#ping_total",f);i.length>
0&&i.html(parseInt(i.html())+1);return false},error:function(){alert("send request error!");return false}})}return false},scrollto:function(a,c){if($(a).length>0){a=$(a).offset().top;if(c)a+=c;$("html,body").animate({scrollTop:a})}},compileTpl:function(a,c){s=$.trim(a);s=s.replace(/^<\!--([\s\S]*)--\>$/im,"$1");a=s.match(/\[\$\.[\w\d\_]+\]/ig);if(a!=null)for(var b=0;b<a.length;b++)s=s.replace(a[b],function(d){d=d.match(/\[\$\.([\w\d\_]+)\]/i)[1];return c[d]});return s},quoteTpl:function(){var a='<div class="quote">';
a+='<p>[$.address] <a href="#">[$.username]</a><span style="float:right">[$.flnum]</span></p>';a+="<p>[$.msg]</p>";a+="";a+="</div>";return a},ReplyPanel:function(a,c){c=c?Ping.host+"/comment.html?id="+Ping.id+"&type="+Ping.type:0;var b='<div class="ping_panel pinglun" id="reply_'+a+'_panel" > ';b+='<dl class="panel_content">';b+='<dt ><span><a href="'+Ping.host+"/comment.html?id="+Ping.id+"&type="+Ping.type+'" target="_blank" class="link" >\u6709<code id="ping_total">0</code> \u4eba\u53c2\u4e0e\uff0c\u70b9\u51fb\u67e5\u770b\u5168\u90e8\u8bc4\u8bba</a></span>\u8bf7\u6587\u660e\u53d1\u8a00\uff0c\u8fd8\u53ef\u4ee5\u8f93\u5165 ';
b+='<code class="word_limit">140</code> \u5b57</dt>';b+='<textarea cols="60" name="msg" rows="5" ></textarea>';b+='<dd  class="panel_bar">';b+='<span class="api_login_box"><code onclick="UClient.showLogin();">\u767b\u5f55</code>';b+='<a href="javascript:void(0);" onclick="UClient.showReg();return false;">\u6ce8\u518c</a><a href="http://bbs.52pk.cn/member.php?mod=logging&action=login" target="_blank">\u5fd8\u8bb0\u5bc6\u7801</a></span>';b+='<span class="api_userinfo_box" style="display:none;"><a href="http://bbs.52pk.cn/home.php?mod=space&username=[$.username]" target="_blank" class="username">[$.username]</a>';
b+='<a href="javascript:;" onclick="UClient.logout();return false;">\u5b89\u5168\u9000\u51fa</a><a xmlns="http://www.w3.org/1999/xhtml"  class="anonymous"></a></span>';b+='<b><cite  href="javascript:;" class="ping_send"  onclick="Ping.sendReply(\'reply\',0,'+a+",0,'"+c+"');\">\u53d1\u5e03</cite>";b+='<img class="ping_send_loading" src="'+Ping.host+'/images/loading.gif"/>';b+="</b></dd></dl></div>";return b},switchReplyPanel:function(a,c){a=$("#reply_"+a+"_panel");if(a.length>0)c?a.show():a.hide();return false},QuotePanel:function(){var a=
'<div class="quote_panel">';a+='<dl class="panel_content">';a+='<dt >\u8bf7\u6587\u660e\u53d1\u8a00\uff0c\u8fd8\u53ef\u4ee5\u8f93\u5165 <code class="word_limit">140</code> \u5b57</dt>';a+='<textarea cols="60" name="msg" rows="5"></textarea>';a+='<dd class="panel_bar">';a+='<span class="api_login_box"><code onclick="UClient.showLogin();">\u767b\u5f55</code>';a+='<a href="javascript:void(0);" onclick="UClient.showReg();return false;">\u6ce8\u518c</a><a href="http://bbs.52pk.cn/member.php?mod=logging&action=login" target="_blank">\u5fd8\u8bb0\u5bc6\u7801</a></span>';a+='<span class="api_userinfo_box" style="display:none;"><a href="http://bbs.52pk.cn/home.php?mod=space&username=[$.username]" target="_blank" class="username">[$.username]</a>';
a+='<a href="javascript:;" onclick="UClient.logout();return false;">\u5b89\u5168\u9000\u51fa</a><a xmlns="http://www.w3.org/1999/xhtml"  class="anonymous"></a></span><b>';a+='<cite  href="javascript:;" class="ping_send">\u53d1\u5e03</cite>';a+='<img class="ping_send_loading" src="'+Ping.host+'/images/loading.gif"/>';a+="</b></dd></dl></div>";return a},appendAuthCode:function(a){var c='<em class="auth_code_box">\u8bf7\u8f93\u9a8c\u8bc1\u7801\uff1a<input type="text" class="auth_code" size="5"><img id="vdimgck" align="absmiddle" onclick="Ping.refreshVcode(this);return false;" style="cursor:pointer;margin-left:0px;text-transform:uppercase;" alt="\u770b\u4e0d\u6e05\uff1f\u70b9\u51fb\u66f4\u6362" src="'+
Ping.cmshost+"/include/vdimgck.php?"+Math.random()+'"></em>',b=$(".panel_bar",a);if($(".auth_code_box",b).length>0){alert("\u8bf7\u586b\u5199\u6b63\u786e\u7684\u9a8c\u8bc1\u7801");a=$("#vdimgck",b);Ping.refreshVcode(a);$(".auth_code",b).focus()}else $(c).prependTo($(".panel_bar",a))},refreshVcode:function(a){var c=$(a).attr("src");c+="?"+Math.random();$(a).attr("src",c)},getArcNav:function(a,c){var b=$("#ping_arc_nav");if(a=="arc"&&b.length>0){$(b).html("\u5bfc\u822a\u52a0\u8f7d\u4e2d\u2026\u2026");$.ajax({url:Ping.cmshost+"/ajax.php?callback=?",type:"get",data:{m:"getnav",type:a,
typeid:c,charset:Ping.charset},dataType:"jsonp",jsonp:"callback",success:function(d){$(b).empty().html(d.arcnav)},error:function(){alert("send request error!");return false}})}}};function urlRequest(a){for(var c={},b=location.search.substring(1).split("&"),d=0;d<b.length;d++){var e=b[d].indexOf("=");if(e!=-1){var f=b[d].substring(0,e);e=b[d].substring(e+1);e=decodeURIComponent(e);c[f]=e}}return c[a]}
function getPageCharset(){var a="";if(navigator.userAgent.indexOf("MSIE")!=-1)a=document.charset;else{navigator.userAgent.indexOf("Firefox");a=document.characterSet}return a};
