$(document).ready(function(){
	$(document).pngFix(); 
	
	$("#menu dd").hide("fast");

    $(".withSubmenu").hoverIntent(function () {
		$("#menu dd").show("fast");
    }, function () { });

    $("#menu").hover(function () {
    }, function () {
		$("#menu dd").hide("fast");
 	});

	$(".editMenu").show();


	$('.slideshow').innerfade({
		animationtype: 'fade',
		speed: 'slow',
		timeout: 8000,
		type: 'random_start',
		containerheight: '285px'
	});
	
	
	$(".gallery a, a.editBox").fancybox({
		'zoomSpeedIn': 0, 
		'zoomSpeedOut': 0, 
		'hideOnContentClick': true,
		'overlayShow': true 
	});
	
	var jqoptions = 
	{
		title: false,
		zoomWidth: 250,
	  	zoomHeight: 183
	}
	
	$(".jqzoom").jqzoom(jqoptions);
	
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("googleMap"));
		map.setCenter(new GLatLng(52.20357, 4.39697), 13);
		map.addControl(new GLargeMapControl()); // creates the zoom feature
		map.addControl(new GMapTypeControl()); // switch map modes  
		map.openInfoWindowHtml(map.getCenter(), ("Katwijks Museum<br>Voorstraat 46<br>2225 ER Katwijk "));
	}
	else{
		alert("Uw browser ondersteund de map op deze pagina niet. Als u deze pagina wilt bekijken dient u uw browser te updaten.");
	}
});