function cancelEditMode(comment_id)
{
	jQuery('#edit_form_'+comment_id).hide();
	jQuery('#b_'+comment_id).show();
}

function init_rte(where)
{
	jQuery(where).markItUp(myBbcodeSettings);
}

function comments_init(action)
{
	jQuery('#fbody').markItUp(myBbcodeSettings);

//	jQuery('.comment.me .comment_body').click(function(){
//		//jQuery(this).css('background', '#d00');
//	});
	
	switch (action) {
	    case "refresh":
			// -30 weil wegen userbar
			window.scrollTo( 0, jQuery('#last_comment').offset().top - 30 );
	        break;

	    default: break; 
	  }

}

jQuery(document).ready(function(){
	comments_init();
});
