
$(document).ready(function() {

//rounded corners nav + contactbox alleen voor IE 8 en lager

	

	jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

	}; 
    
    // Vrije uren
	//Hide (Collapse) the toggle containers on load
	//$(".vrije-uren").hide(); 

	//Switch the "Open" and "Close" state per click
	$("p.extra").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("p.extra").click(function(){
		$(this).next(".vrije-uren").fadeToggle("1200");
		$(this).next().next(".vrije-uren").fadeToggle("2000");
	});

	// Openingstijden
	//Hide (Collapse) the toggle containers on load
	$("#tijden-show").hide(); 

	//Switch the "Open" and "Close" state per click
	$("#tijden h3").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("#tijden h3").click(function(){
		$(this).next("#tijden-show").fadeToggle("1200");
		$(this).next().next("#tijden-show").fadeToggle("2000");
	});


$(function(){
	$('.sfeer img:gt(0)').hide();
	setInterval(function(){$('.sfeer :first-child').fadeOut(0).next('img').fadeIn(0).end().appendTo('.sfeer');}, 8000);
});

	
//$('#hoofdnav').corner("6px");
//$('#contactFormContainer').corner("6px bottom");
	 
});

