// Code weergeven bij krabbels
function toggle(id) {    
	if (document.getElementById) {
		var obj = document.getElementById(id);
		if (obj.style.display == "") {
			obj.style.display = "none";          
		}
		else {                    
			obj.style.display = "";
			obj.length = 3;                    
		}
	}
	else if (document.all) {
		if (document.all[id].style.display == "") {
			document.all[id].style.display = "none";          
		}
		else {                    
			document.all[id].style.display = "";
			document.all[id].length=3;                    
		}
	}
}

$(document).ready(function() {

	// Fancybox
	$("a.fancybox").fancybox({
		'hideOnContentClick': true,
		'overlayShow': true,
		'overlayOpacity': 0.85,
		'padding': 0
	});
	
	// Checkboxes selecteren / deselecteren
	$('#select_all').click(function(){
		$("#checkboxes input").each(function() {
			$(this).attr("checked", 'checked');
		});	
	});

	$('#deselect_all').click(function(){
		$("#checkboxes input").each(function() {
			 $(this).removeAttr('checked');
		});	
	});

});
