$().ready(function(){

	$('.mn a').each(function(){
		
		var $sub = '';		
		var $page_id = $(this).attr('id');
		$.get('/ajax/submenu.php?id=' + $page_id, function(data) {
			$sub = data;
		});
		
		$(this).mouseover(function(){
			$('.mn_sub div:first').html($sub);	
		});
		
	});
	
	/*
	$('#hd_image').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	*/
	
	$('table.formulier tr:nth-child(odd)').addClass('oneven');
	$('table.formulier tr:nth-child(even)').addClass('even');

	$('input[name=geboortedatum]').datepicker({
			changeMonth: true,
			changeYear: true,
			dateFormat: 'dd-mm-yy',
			showOtherMonths: true,
			selectOtherMonths: true,
			showWeek: true,
			firstDay: 1,
			showAnim: 'slideDown',
			dayNames: ['Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag'],
			dayNamesMin: ['Zo','Ma','Di','Wo','Do','Vr','Za'],
			dayNamesShort: ['Zo','Ma','Di','Wo','Do','Vr','Za'],
			monthNames: ['Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December'],
			monthNamesShort: ['Jan','Feb','Maa','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec'],
			prevText: 'Vorige maand',
			nextText: 'Volgende maand',
			maxDate: new Date(),
			minDate: new Date(1930,0,1),
			yearRange: '1920:2050',
		});

});
