$(document).ready(function(){$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:"fast",padding:120,opacity:0.35,showTitle:true,allowresize:true,counter_separator_label:"/"})});function sendComment(){var a=$("#name").val();var c=$("#message").val();var e=$("#verify").val();var b=$("#code").val();var d={name:a,message:c,verify:e,code:b};ajax(d,"Comments::sendComment","finishComment",true,true)}function finishComment(b){var a="";if(b.error!=true){$("#name").val("");$("#message").val("");$("#verify").val("")}else{refreshTable("commentstable")}if(isArray(b.notice)){for(key in b.notice){a=a+b.notice[key]+"<br />"}}else{a=b.notice+"<br />"}$("#result").show().html(a)};