$(function() {
	
	/* foto-wissel */
	$("#portfolio-foto-nummers a").click(function () {
		$("#portfolio-foto-nummers a").removeClass("actief");
		$(this).addClass("actief");
		$("#portfolio-foto").attr("src",$(this).attr("href"));
		return false;
    });
	$("#portfolio-vorige").click(function () {
		if($("#portfolio-foto-nummers a.actief").prev().prev().length > 0 ){
			$("#portfolio-foto").attr("src",$("#portfolio-foto-nummers a.actief").prev().attr("href"));
			$("#portfolio-foto-nummers a.actief").removeClass("actief").prev().addClass("actief");
		}
    });
	$("#portfolio-volgende").click(function () {
		if($("#portfolio-foto-nummers a.actief").next().next().length > 0 ){
			$("#portfolio-foto").attr("src",$("#portfolio-foto-nummers a.actief").next().attr("href"));
			$("#portfolio-foto-nummers a.actief").removeClass("actief").next().addClass("actief");
		}
    });
	/* einde foto-wissel */
});