$(function() {
	$("#foto-navigatie-vorige").click(function () {
		if ($("#foto-wissel img.actief").prev("img").length > 0) {
			$("#foto-navigatie-volgende").css("visibility","visible");
			$("#foto-wissel img.actief").removeClass("actief").prev().addClass("actief");
			if (!$("#foto-wissel img.actief").prev("img").length > 0) {
				$("#foto-navigatie-vorige").css("visibility","hidden");	
			}
		}
	});
	
	$("#foto-navigatie-volgende").click(function () {
		if ($("#foto-wissel img.actief").next("img").length > 0) {
			$("#foto-navigatie-vorige").css("visibility","visible");
			$("#foto-wissel img.actief").removeClass("actief").next().addClass("actief");
			if (!$("#foto-wissel img.actief").next("img").length > 0) {
				$("#foto-navigatie-volgende").css("visibility","hidden");	
			}
		}
	});
});
