$(document).ready(function() {
		$("a.#maps").fancybox({ 'frameWidth': 640, 'frameHeight': 485}); 
		$("a.beeldbankPop").fancybox({ 'frameWidth': 800, 'frameHeight': 505});
		$("a.nieuwsbriefPop").fancybox({ 'frameWidth': 400, 'frameHeight': 500}); 
		$("a.anieuwsbriefPop").fancybox({ 'frameWidth': 400, 'frameHeight': 550}); 
		$("a.stuurdoorPop").fancybox({ 'frameWidth': 500, 'frameHeight': 470}); 
		$("a.vriendenPop").fancybox({ 'frameWidth': 500, 'frameHeight': 500, 'hideOnContentClick': false}); 
				
		$('.sitemap').click(function(){
			$("#sidemapContainer").toggle();
			//return false;
		});
		
		// submit form on change selectbox
		$('form #genre, form #periode').change(function () {
		$(this).parents('form').submit();
		});
		
		var headerW=$("#header").width();
		
		//function resizeMenu()
		//{
		//    var h = $(window).height();
		//    var w = $(window).width();
		//    
		//    
		//    var hBigMin=920+250+30;
		//    if(w > hBigMin){
		//    	$("#wrapper").css('width',hBigMin);
		//    	$("#header").css('width',headerW+14);
		//    	//$("#taalkeuze").insertAfter("#floatfix");
		//    	$("#taalkeuze").css("right",-145);//-159
		//    	$("#hoofdNavi2").css('left',690);
		//    	$("#hoofdNavi3").css('left',860);
		//    }else{
		//    	$("#header").css('width',headerW);
		//    	//$("#nieuwsHome").css('top',0).insertAfter("#hierKomtNieuws");
		//    	$("#taalkeuze").css("right",0);
		//    	$("#hoofdNavi2").css('left',665);
		//    	$("#hoofdNavi3").css('left',785);
		//    	$("#wrapper").css('width',920);
		//    }
		//}
		//resizeMenu();
		//jQuery.event.add(window, "resize", resizeMenu);
});

