
(function($){var CanoeComment={appendReportButtons:function(){$('li.comment').each(function(){$(this).append('<div class="comment_report"><a href="'+(cc_report_url!=''?cc_report_url:'#')+'">'+cc_report_button_text+'</a></div>');});$('.comment_report a').click(function(e){if(cc_report_url!='')
return true;window.location=cc_blog_url+'/report/?id='+$(this).parent().parent().attr('id').split('-')[1];return false;});$('.comment_report a').mousedown(function(e){e.preventDefault();});},appendAdviceToCommentForm:function(){if(cc_commentform_moderated==1)
$('#commentform').prepend('<p id="commentform-advice">'+cc_commentform_advice_text+'</p>');}};$(document).ready(function(){CanoeComment.appendReportButtons();CanoeComment.appendAdviceToCommentForm();$('#commentform #submit').click(function(){if($('#commentform #commentform-terms').attr('checked')==undefined||$('#commentform #commentform-terms').attr('checked')==false){alert(cc_commentform_terms_notchecked);return false;}
return true;});});})(jQuery);
