for(var i=0,got=-1,len=document.getElementsByTagName("script").length;i<=len&&got==-1;){var js_url=document.getElementsByTagName("script")[i].src;got=js_url.indexOf("comments-ajax.js");i++}
var edit_mode="0",ajax_php_url=js_url.replace("-ajax.js","-ajax.php"),wp_url=js_url.substr(0,js_url.indexOf("wp-content")),pic_sb=wp_url+"wp-content/themes/private/images/cmloading.gif",pic_no=wp_url+"wp-admin/images/no.png",pic_ys=wp_url+"wp-admin/images/yes.png",txt1='<div id="loading"><img src="'+pic_sb+'" style="vertical-align:middle;" alt=""/> \u6b63\u5728\u63d0\u4ea4, \u8bf7\u7a0d\u5019...</div>',txt2='<div id="error">#</div>',txt3='"><img src="'+pic_ys+'" style="vertical-align:middle;" alt=""/> \u63d0\u4ea4\u6210\u529f',
edt1=', \u5237\u65b0\u9875\u9762\u4e4b\u524d\u53ef\u4ee5<a rel="nofollow" class="comment-reply-link" href="#edit" onclick=\'return addComment.moveForm("',edt2=")'>\u518d\u7f16\u8f91</a>",cancel_edit="\u53d6\u6d88\u7f16\u8f91",edit,num=1,comm_array=[];comm_array.push("");
jQuery(document).ready(function(a){function m(){$new_comm.show();$new_sucs.show();a("textarea").each(function(){this.value=""});edit=""}function o(){if(k>0){$submit.val(k);k--;setTimeout(o,1E3)}else{$submit.val(r).attr("disabled",false).fadeTo("slow",1);k=15}}$comments=a("#comments");$commentsinfo=a("#comments-info");$cancel=a("#cancel-comment-reply-link");cancel_text=$cancel.text();$submit=a("#commentform #sb");$submit.attr("disabled",false);a("#comment").after(txt1+txt2);a("#loading").hide();
a("#error").hide();$body=window.opera?document.compatMode=="CSS1Compat"?a("html"):a("body"):a("html,body");a("#commentform").submit(function(){a("#loading").slideDown();$submit.attr("disabled",true).fadeTo("slow",0.5);edit&&a("#comment").after('<input type="text" name="edit_id" id="edit_id" value="'+edit+'" style="display:none;" />');a.ajax({url:ajax_php_url,data:a(this).serialize(),type:a(this).attr("method"),error:function(b){a("#loading").slideUp();a("#error").slideDown().html('<img src="'+pic_no+
'" style="vertical-align:middle;" alt=""/> '+b.responseText);setTimeout(function(){$submit.attr("disabled",false).fadeTo("slow",1);a("#error").slideUp()},3E3)},success:function(b){a("#loading").hide();comm_array.push(a("#comment").val());a("textarea").each(function(){this.value=""});var d=addComment,e=d.I("cancel-comment-reply-link"),c=d.I("wp-temp-form-div"),f=d.I(d.respondId),g=d.I("comment_post_ID").value,h=d.I("comment_parent").value;if(!edit&&$comments.length){n=parseInt($comments.text().match(/\d+/));
$comments.text($comments.text().replace(n,n+1));$commentsinfo.text($comments.text())}new_htm='" id="new_comm_'+num+'"></';new_htm=h=="0"?'\n<ol style="clear:both;" class="commentlist'+new_htm+"ol>":'\n<ul class="children'+new_htm+"ul>";ok_htm='\n<span id="success_'+num+txt3;if(edit_mode=="1"){div_=document.body.innerHTML.indexOf("div-comment-")==-1?"":document.body.innerHTML.indexOf("li-comment-")==-1?"div-":"";ok_htm=ok_htm.concat(edt1,div_,"comment-",h,'", "',h,'", "respond", "',g,'", ',num,edt2)}ok_htm+=
"</span><span></span>\n";a("#respond").after(new_htm);a("#new_comm_"+num).hide().append(b);a("#new_comm_"+num+" li").append(ok_htm);a("#new_comm_"+num).fadeIn(4E3);$body.animate({scrollTop:a("#new_comm_"+num).offset().top-200},900);o();num++;edit="";a("*").remove("#edit_id");e.style.display="none";e.onclick=null;d.I("comment_parent").value="0";if(c&&f){c.parentNode.insertBefore(f,c);c.parentNode.removeChild(c)}}});return false});addComment={moveForm:function(b,d,e,c,f){b=this.I(b);var g=this.I(e),
h=this.I("cancel-comment-reply-link"),s=this.I("comment_parent"),p=this.I("comment_post_ID");edit&&m();f?(this.I("comment").value=comm_array[f],edit=this.I("new_comm_"+f).innerHTML.match(/(comment-)(\d+)/)[2],$new_sucs=a("#success_"+f),$new_sucs.hide(),$new_comm=a("#new_comm_"+f),$new_comm.hide(),$cancel.text(cancel_edit)):$cancel.text(cancel_text);this.respondId=e;c=c||false;if(!this.I("wp-temp-form-div")){e=document.createElement("div");e.id="wp-temp-form-div";e.style.display="none";g.parentNode.insertBefore(e,
g)}!b?(temp=this.I("wp-temp-form-div"),this.I("comment_parent").value="0",temp.parentNode.insertBefore(g,temp),temp.parentNode.removeChild(temp)):b.parentNode.insertBefore(g,b.nextSibling);$body.animate({scrollTop:a("#respond").offset().top-180},400);if(p&&c)p.value=c;s.value=d;h.style.display="";h.onclick=function(){edit&&m();var l=addComment,j=l.I("wp-temp-form-div"),q=l.I(l.respondId);l.I("comment_parent").value="0";if(j&&q){j.parentNode.insertBefore(q,j);j.parentNode.removeChild(j)}this.style.display=
"none";this.onclick=null;return false};try{this.I("comment").focus()}catch(t){}return false},I:function(b){return document.getElementById(b)}};var k=15,r=$submit.val()});
