$(document).ready(function() {
						   
// L-Open
	$('#open').click(function() {
		$('#panel').slideDown('normal');
	});	
	
// L-Close
	$('#close').click(function() {
		$('#panel').slideUp('normal');
	});		
	
// L-switch 
	$('.loginlinks .button').click(function() {
		$('.loginlinks .button').toggle();
	});
	
// FAQ items show/hide and add class
	$(".faq-answer").hide();
	$(".faq-question").click(function() {
		$(this).next().slideToggle (300);
	});

// Voorlichtling items show/hide
	$("#hidden-content").hide();
 	$('.open-hidden-content').click(function() {
		$(this).prev('#hidden-content').slideToggle('slow'); 
	$(this).toggleClass("active");
	});
	
// SMOOTHSCROLL ANCHOR LINKS
$(function(){
    $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 750);
                return false;
            }
        }
    });
});

// BASE HREF ANCHOR LINKS FIX
jQuery("a[ href ^= '#' ]").each(function() {
        var href = window.location + jQuery(this).attr('href').replace('/#.*/i','');
        jQuery(this).attr('href',href);
    });

// NAVIGATION
 $('ul.sf-menu').superfish({ 
    delay: 500,
    animation: {opacity:'show',height:'show'},   
    speed: 300,
    autoArrows: true,  
    dropShadows: false
	}); 

});
