function goToPage(page)
{
	window.location.href = page;
}

$(document).ready(function($){

   	$('#sfeer').nivoSlider({
	        effect:'fold,sliceDownLeft', // Specify sets like: 'fold,fade,sliceDown'
	        slices:16, // For slice animations
	        boxCols: 2, // For box animations
	        boxRows: 4, // For box animations
	        animSpeed:3100, // Slide transition speed
	        pauseTime:6200, // How long each slide will show
	        startSlide:0, // Set starting Slide (0 index)
	        directionNav:true, // Next & Prev navigation
	        directionNavHide:false, // Only show on hover
	        controlNav:true, // 1,2,3... navigation
	        controlNavThumbs:false, // Use thumbnails for Control Nav
	        controlNavThumbsFromRel:false, // Use image rel for thumbs
	        keyboardNav:false, // Use left & right arrows
	        pauseOnHover:false, // Stop animation while hovering
	        manualAdvance:false, // Force manual transitions
	
	        prevText: 'Vorige', // Prev directionNav text
	        nextText: 'Volgende' // Next directionNav text
	    });
	
	jQuery("a.photobox").fancybox({
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0,
		'overlayShow': true,
		'overlayOpacity': 0.7
	});    
	jQuery("a.youtube").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	100,
		'width': 425,
		'height': 344,
		'overlayShow': true,
		'overlayOpacity': 0.6
	});  
	
	$(".iframe").fancybox({
		'width'				: 900,
		'height'			: '95%',
        'autoScale'     	: false,
		'type'				: 'iframe',
		'overlayShow': true,
		'overlayOpacity': 0.6
	});

	
	$.datepicker.setDefaults($.datepicker.regional['nl']);
	$(".datepicker").datepicker({
		dateFormat:'dd-mm-yy', 
		altField: "#arrival",
		altFormat: "yy-mm-dd",
		showOn: 'both', 
		buttonImage: '/assets/img/calendar.gif', 
		buttonImageOnly: true,
		minDate: 0/*,
		onClose: function(dateText, inst) { 
			$('#arrivalday').val(inst.selectedDay);
			$('#arrivalmonth').val(inst.selectedMonth+1);
			$('#arrivalyear').val(inst.selectedYear); 
		}*/
	});	  
	$(".datepicker2").datepicker({
		dateFormat:'dd-mm-yy', 
		altField: "#arrival2",
		altFormat: "yy-mm-dd",
		showOn: 'both', 
		buttonImage: '/assets/img/calendar.gif', 
		buttonImageOnly: true,
		minDate: 0
	});	  
	
	//$("select").wwselect({ });
	//$(".nights").wwselect({ width: 100 }); 
});





