function slideSwitch() {	
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');
    $active.addClass('last-active');	
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
} 



$(document).ready(function() {	
						   
	 $('ul.sf-menu').superfish({ 
		delay:       200,                            // one second delay on mouseout 
		animation:   {height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:    false,               		// if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance 
    	dropShadows:   true
	}); 
	 
	// slideshow
	$(function() {
		setInterval( "slideSwitch()", 2000 );
	});	
	
	$('.doorzichtig').pngFix();
	
	
	//$(".jumpmenu").change(function () {
        //alert("test");
		//window.location = $(this).val(); 
	//}
	
	$("select").change(function () {
		window.location.href = $(this).val();
	});
	
	$("a.fotoboekfoto").fancybox({
		'zoomSpeedIn':		300, 
		'zoomSpeedOut':		300, 
		'overlayShow':		false
	});
	
	$("a.opennews").fancybox({
		'frameWidth':		500, 
		'frameHeight':		450, 
		'zoomSpeedIn':		300, 
		'zoomSpeedOut':		300, 
		'overlayShow':		true, 
		'hideOnContentClick':	false, 
		'overlayColor':		'#000'
	});
	
	$("a#formulier").fancybox({
		'frameWidth':		700, 
		'frameHeight':	450, 
		'overlayOpacity':	0.7, 
		'overlayColor':	'#000', 
		'hideOnContentClick':	false, 
		'overlayShow':		true
	});
	
	$('#pane1').jScrollPane({showArrows:true, scrollbarWidth: 17, arrowSize: 14});

});
	
	

