
   $(document).ready(function(){

	 
     $("h1").click(function(event){
	 
		var $header = $(this);
	 
		if($header.data('uitgeklapt')){
			 $(this).next('div').toggle("slow"); 
			$header.data('uitgeklapt', false);
		}
		else{
			$("h1").each(
				function(){
					$(this).next('div').hide("slow"); 
					$(this).data('uitgeklapt', false);
				}
			);
				
			$(this).next('div').toggle("slow"); 
			$header.data('uitgeklapt', true);
		}
     });
	 
	$(".remove").click(function(event){
		var $icon = $(this);
		var $header = $icon.parent('div');
		var id = $header.attr("id");
			
		/*
		$.ajax({
			type: "POST",
			url:  "deleteNieuws.php",
			data: id,
			cache: false,
			success: function(){$header.parent('div').hide("slow");}
		});*/
	});
	
});
