var carrousel_currentPhoto = -1;
var carrousel_numPhotos;
var carrousel_photos;

function init_carrousel() {
	carrousel_numPhotos = ($("#vestigingdetail_carrousel img").length)-1;
	carrousel();
}

function carrousel() {
	carrousel_currentPhoto++;
	if(carrousel_currentPhoto > carrousel_numPhotos) carrousel_currentPhoto = 0;
	nextPhoto = $("#vestigingdetail_carrousel img")[carrousel_currentPhoto];
	
	$("#vestigingdetail_carrousel img").hide();
	$(nextPhoto).css({display: 'block'});
	
	setTimeout(carrousel, 5000);
}
