var forum={init:function(){$.each($('#forum .buttonsPanel'),function(){forum.loadPanel(this)})},deletePost:function(postID){$.ajax({url:'/ajax/forum/hidepost/?postID='+postID,beforeSend:function(){},success:function(response){var postContentHandle='div.postContent'+postID;var postPanelHandle='div.postPanel'+postID;$(postContentHandle).html(NMHandler.AJAXResponse(response).stream_html);forum.loadPanel($(postPanelHandle))},error:function(XMLHttpRequest,textStatus,errorThrown){NMHandler.AJAXError(XMLHttpRequest,textStatus,errorThrown)}})},loadPanel:function(helper){$.ajax({url:'/ajax/forum/getpanel/?postID='+$(helper).attr('postID'),beforeSend:function(){},success:function(response){$(helper).html(NMHandler.AJAXResponse(response).stream_html)},error:function(XMLHttpRequest,textStatus,errorThrown){NMHandler.AJAXError(XMLHttpRequest,textStatus,errorThrown)}})},moderatePost:function(postID){$.ajax({url:'/ajax/forum/moderatepost/?postID='+postID,beforeSend:function(){},success:function(response){var postContentHandle='div.postContent'+postID;var postPanelHandle='div.postPanel'+postID;$(postContentHandle).html(NMHandler.AJAXResponse(response).stream_html);forum.loadPanel($(postPanelHandle))},error:function(XMLHttpRequest,textStatus,errorThrown){NMHandler.AJAXError(XMLHttpRequest,textStatus,errorThrown)}})},reportPost:function(postID){$.ajax({url:'/ajax/forum/reportpost/?postID='+postID,beforeSend:function(){},success:function(response){},error:function(XMLHttpRequest,textStatus,errorThrown){NMHandler.AJAXError(XMLHttpRequest,textStatus,errorThrown)}})},restorePost:function(postID){$.ajax({url:'/ajax/forum/restorepost/?postID='+postID,beforeSend:function(){},success:function(response){var postContentHandle='div.postContent'+postID;var postPanelHandle='div.postPanel'+postID;$(postContentHandle).html(NMHandler.AJAXResponse(response).stream_html);forum.loadPanel($(postPanelHandle))},error:function(XMLHttpRequest,textStatus,errorThrown){NMHandler.AJAXError(XMLHttpRequest,textStatus,errorThrown)}})}};
