function initMenu() {
	$('#faqmenu ul').hide();
	$('#faqmenu li a').click(
		function() {
			var checkElement = $(this).next();
			if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
				checkElement.slideUp('normal');
				return false;
			}
			if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
				$('#faqmenu ul:visible').slideUp('normal');
				checkElement.slideDown('normal');
				return false;
			}
		}
	);
}

$(document).ready(function(){
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
	$("ul#navmenu-h li ul.menu1").hover(function(){
		 $("#selectie select.hide").css({ visibility: "hidden" });
	   },function(){
		$("#selectie select.hide").css({ visibility: "visible" });
	});
}
	jQuery(document).pngFix();

	$("#navmenu-h li,#navmenu-v li").hover( function() { $(this).addClass("iehover"); }, function() { $(this).removeClass("iehover"); } );
	
	$("a.zoom").fancybox();
	
	$("a[rel=fotogroep]").fancybox({
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over"><span style="float:right">Afbeelding ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>' + (title && title.length ? title : '&nbsp;' ) + '</span>';
		}
	});
});

Cufon.replace('h1');
Cufon.replace('h2');

jQuery(function($){
	$("#nform").validate();
});


function goToByScroll(id){
	$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
