$(document).ready(function(){
	$("#navmenu-h li,#navmenu-v li").hover( function() { $(this).addClass("iehover"); }, function() { $(this).removeClass("iehover"); } );
	$("a.zoom").fancybox();
	$("a.video").fancybox({
			'autoScale'     	: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'				: 'iframe'
	});
	$("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>';
		}
	});
});

function validateq(){
	if(document.zoeken.q.value=='' || document.zoeken.q.value.length<3){
		alert('Uw zoekopdracht moet uit meer dan 3 karakters bestaan (exclusief spaties)');
		document.zoeken.q.focus();
		return false;
	}else{
		document.zoeken.submit();
		return true;
	}
}

<!--
//Start fleXcroll using any method you like, either inside your html like this, or you may use seperate files
//The latter is more ideal, but this code is here for easy viewing
if (document.getElementById && document.getElementsByTagName) {
if (window.addEventListener) window.addEventListener('load', initScrollBars, false);
else if (window.attachEvent) window.attachEvent('onload', initScrollBars);
}


function initScrollBars() {
CSBfleXcroll('scroll_all');
}

//-->

navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", navHover);

