	$(document).ready(function() { 

	$("#foo").validate();
							   
		$("a.fotoPop").fancybox({

			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
			'overlayShow'	:	true
		});

		$("#leesmeer,.leesmeer").toggler();
		
							   
		$("a[rel=fotos]").fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	300, 
			'speedOut'		:	300, 
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Foto ' + (currentIndex + 1) + ' van ' + currentArray.length + (title.length ? ' &nbsp; <strong>' + title : '') + '</strong></span>';
		}
		});
		
	$(".panorama2").panorama({
		viewport_width: 620,
        speed: 80000,
        direction: 'left'
    });		
		
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("h2.toggle_fysio").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
	});
		
	$('#slideShow').fadeIn('fast');
	$('#rotateWelkom').fadeIn('fast');
		
    $('#slideShow').cycle({
		fx: 'fade',
		timeout:5000
	});
    $('#rotateWelkom').cycle({
		fx: 'scrollLeft',
		timeout:8000
	});


	$('a').click(function() {
	  this.blur();
	});
});		


