function verify(url,text){if(text=='')
text='Are you sure you want to delete this comment?';if(confirm(text)){document.location=url;}
return void(0);}
jQuery(document).ready(function($){if(WPWallSettings.expand_box!='on')
$("#wall_post").css("display","none");$("#wall_post_toggle").click(function(){$("#wall_post").slideToggle("fast");$("#wall_post #comment").focus();$("#wall_post #author").focus();});$('#wallform').ajaxForm({target:'#wallcomments',success:function(responseText,statusText){$('#wallresponse').html('<div class="wall-success">'+'<span>Thank You.</span><br />Your comment has been posted.'+'</div>');$('#submit_wall_post').attr('value',' ');$("#wall_post").hide("fast");$("#wall_post #author").attr('value','');$("#wall_post #comment").attr('value','');$("#wall_post #wpwall_comment").attr('value','');},error:function(request){if(request.responseText.search(/<title>WordPress &rsaquo; Error<\/title>/)!=-1){var data=request.responseText.match(/<p>(.*)<\/p>/);$('#wallresponse').html('<span class="wall-error">'+data[1]+'</span>');}else{$('#wallresponse').html('<div class="wall-error">An error occurred, please notify the administrator.</div>');}
$('#submit_wall_post').attr('value',' ');$("#wall_post #author").attr('value','');$("#wall_post #comment").attr('value','');},beforeSubmit:function(formData,jqForm,options){$('#wallresponse').empty();for(var i=0;i<formData.length;i++){if(!formData[i].value){$('#wallresponse').html('<div class="wall-error">'+'You didn&#8217;t type anything</span><br />Enter text and try again.'+'</div>');return false;}}
$('#submit_wall_post').attr('value',' ');}});$('.wallnav #img_left').click(function(){var page=$('#wallcomments #page_left');var wallform=$('#wallform');if(wallform[0])
$('#wallcomments').load(wallform[0].action+'?refresh='+page[0].value);});$('.wallnav #img_right').click(function(){var page=$('#wallcomments #page_right');var wallform=$('#wallform');if(wallform[0])
$('#wallcomments').load(wallform[0].action+'?refresh='+page[0].value);});refreshtime=parseInt(WPWallSettings.refreshtime);if(refreshtime)
timeoutID=setInterval(refresh,(refreshtime<5000)?5000:refreshtime);function refresh(){var wallform=$('#wallform');var page=$('#wallcomments #wallpage');if(wallform[0])
$('#wallcomments').load(wallform[0].action+'?refresh='+page[0].value);}});
