/* aev: apartgezet om rendertijd op items te verminderen */
/* Ktc, class beleid (md5 waarde) gewijzigd voor menuitem beleid, 02/08/2010 */
$(document).ready(function(){
	
	$("#menu").show();
	$("#hidemenu2").show();

	$('#jnavigation').load('/?id=EXTRANAVIGATION', function() {
	  	$('#menu>ul li,#menu>ul li a').css('z-index', '5');
		$('#menu>ul ul li,#menu>ul ul li a').css('z-index', '901');
		$('#menu>ul>li:first').addClass('first');
		$('#menu>ul>li:last').addClass('last');
		$('#menu>ul ul li:first-child').addClass('first');
		$('#menu>ul ul li:last-child').addClass('last');	
	});

	$("#menu").mouseover(function(){
		$("#menu>ul").stop(true,true).delay(400).slideDown(800);
		$('.headmenu').addClass('headmenuhover');
	});

	$("#menu").mouseout(function(){
		$("#menu>ul").stop(true,true);		
	});

	$(".mainColumn,.logo,#hidemenu2,#hidemenu3").mouseover(function(){
		$("#menu>ul").stop(true,true).hide(1);
		$('.headmenu').removeClass('headmenuhover');		
	});

});

