
$(document).ready(function() {
	
$("ul#topnav li").hover(function() { //Hover over event on list item
	$(this).css({ 'background' : '#C6BCA3 url(../img/nav-bg-h.png) repeat-x'}); //Add background color + image on hovered list item
	$(this).find("ul#topnav > ul").show(); //Show the subnav
} , function() { //on hover out...
	$(this).css({ 'background' : 'none'}); //Ditch the background
	$(this).find("ul#topnav > ul").hide(); //Hide the subnav
});
	

	jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

	}; 

	//Hide (Collapse) the toggle containers on load
	$("fieldset#contact-secundair").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("#contact-secundair").fadeToggle("1000");
		//$(this).next().next("ul.overview").fadeToggle("2000");
	});
	


	$("#home article").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});



});







