	// popup
	function PopupPic(sPicURL) { 
		window.open( "popup_img.html?"+sPicURL, "","resizable=1,HEIGHT=200,WIDTH=200"); 
	} 
	// einde popup
	
	function switch1(div) {
		if (document.getElementById('one')) {
		var option=['one','two','three','four','five','six','seven','eight','nine'];
		for(var i=0; i<option.length; i++)
		{ obj=document.getElementById(option[i]);
		obj.style.display=(option[i]==div)? "block" : "none"; }
		}
		}
		//
		function switchImg(i){
		document.images["wine"].src = i;
	}
	
	// controleer de inhoud van het reserveerformulier
	function reserveervalideer() {
	if (document.reserveer.naam.value == "") {
	alert("Uw naam moet verplicht ingevuld worden.");
	return false
	}
	if (document.reserveer.adres.value == "") {
	alert("Uw adres moet verplicht ingevuld worden.");
	return false
	}
	if (document.reserveer.woonplaats.value == "") {
	alert("Uw woonplaats moet verplicht ingevuld worden.");
	return false
	}
	if (document.reserveer.land.value == "") {
	alert("Uw land moet verplicht ingevuld worden.");
	return false
	}
	if (document.reserveer.email.value == "") {
	alert("Uw e-mailadres moet verplicht ingevuld worden.");
	return false
	}
	if (document.reserveer.telefoon.value == "") {
	alert("Uw telefoonnummer moet verplicht ingevuld worden.");
	return false
	}
	return true;
	} // einde reserveervalideer
	
	///////////////////////////////////////
	// Frontpage Slideshow
	///////////////////////////////////////
	function slideSwitch() {
		var $active = $('#slideshow IMG.active');
	
		if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
	
		// use this to pull the images in the order they appear in the markup
		var $next =  $active.next().length ? $active.next()
			: $('#slideshow IMG:first');
	
		// uncomment the 3 lines below to pull the images in random order
		
		// var $sibs  = $active.siblings();
		// var rndNum = Math.floor(Math.random() * $sibs.length );
		// var $next  = $( $sibs[ rndNum ] );
	
	
		$active.addClass('last-active');
	
		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
				$active.removeClass('active last-active');
			});
	}
	
	$(function() {
		setInterval( "slideSwitch()", 3000 );
	});
	///////////////////////////////////////
	// End Frontpage Slideshow
	///////////////////////////////////////