function closeReply(A){var B=$("#"+A);B.slideUp("normal",function(){B.remove()})}function postReply(A,B,C){$.ajax({type:"POST",url:C.action,data:$(C).serialize(),dataType:"script",error:ajaxError,success:function(D){$("#"+A).remove();$("#"+B).after(D)}});return false
}function closeNewCommentForm(){$("#new-comment-form").slideUp();$("form")[0].reset()}$(function(){$("#add-comment-link").toggle(function(){$("#new-comment-form").slideDown()},function(){});$("#new-comment-form").submit(function(){if($("#comment_user_name").length>0&&$("#comment_user_name").val()==""){$("#comment-form-error").html("Please enter your name.")
}else{if($("#comment_comment").val()==""){$("#comment-form-error").html("That's not much of a comment.")}else{$.ajax({type:"POST",url:this.action,data:$(this).serialize(),dataType:"script",error:ajaxError,success:function(A){$("#comments_container").append(A);
$("#no_comments").remove();closeNewCommentForm()}})}}return false})});