	<!--
	$(document).ready(function(){
		//pijl toevoegen aan menu item met sub
		$("div#main_menu li:has(a + ul)").addClass("sub");
		$("div#main_menu ul>li.sub>a").addClass("subLink");


		
		$("#tablesorter").tablesorter(); 		
		
		$("#ouderavondForm").validate();
		$("#klankbordgroepForm").validate();
		$("#contactForm").validate();		
		$("#passwordForm").validate();		
		$("#magicForm").validate();		
		$("#autoForm").validate();		
		
		$("a[rel='photo']").colorbox({maxWidth:'75%',maxHeight:'75%',loop:true,slideshow:true});
		
		$('.date_pop').DatePicker({
			format:'Y-m-d',
			date: $('.date_pop').val(),
			current: $('.date_pop').val(),
			starts: 1,
			position: 'bottom',
			onBeforeShow: function(){
				$('.date_pop').DatePickerSetDate($('.date_pop').val(), true);
			},
			onChange: function(formated, dates){
				$('.date_pop').val(formated);
				$('.date_pop').DatePickerHide();
				location.href='?dateselected=' + $('.date_pop').DatePickerGetDate(formated);
			} 
		});

		$('.date_flat').DatePicker({
			flat: true,
			format:'Y-m-d',
			date: '',
			current: '',
			calendars: 1,
			//starts: 1,
			//position: 'r',
			onBeforeShow: function(){
				$('.datum_flat').DatePickerSetDate($('.date_flat').val(), true);
			},
			onChange: function(formated, dates){
				$('.date_flat').val(formated);
				//$('.datum_flat').DatePickerHide();
				location.href='?dateselected=' + $('.date_flat').DatePickerGetDate(formated);
			}
		});
		
		//Werking menu van level 1 t/m level 4
		vertraging_menu = 5000; //vertraging menu
		//Ga je over een item in het 1ste niveau
		$("ul.jquerymenu_level1>li>a").mouseover(function(){
			//Alles inklappen
			$("ul.jquerymenu_level1>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});	
			$("ul.jquerymenu_level2>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			$("ul.jquerymenu_level3>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			//Huidige openen en voorkomen dat het niveau gaat sluiten na de vertraging
			$("body").stopTime("sluit_menu_level_1");
			$(this).parent().find('ul:first').css({'visibility' : 'visible'});
		}).mouseout(function(){	
			//als de muis eraf gaat dan gaat na de vertraging alles dicht wat onder het niveau openstaat
			$("body").oneTime(vertraging_menu, "sluit_menu_level_1", function(){
				$("ul.jquerymenu_level1>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);		
		});
		//Ga je over een item in het 2de niveau
		$("ul.jquerymenu_level2>li>a").mouseover(function(){
			$("ul.jquerymenu_level2>li>a").parent().find('ul').css({'visibility' : 'hidden'});	
			$("ul.jquerymenu_level3>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			$("body").stopTime("sluit_menu_level_1");
			$("body").stopTime("sluit_menu_level_2");
			$(this).parent().find('ul:first').css({'visibility' : 'visible'});
		}).mouseout(function(){	
			$("body").oneTime(vertraging_menu, "sluit_menu_level_1", function(){
				$("ul.jquerymenu_level1>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);	
			$("body").oneTime(vertraging_menu, "sluit_menu_level_2", function(){
				$("ul.jquerymenu_level2>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);		
		});
		//Ga je over een item in het 3de niveau
		$("ul.jquerymenu_level3>li>a").mouseover(function(){
			$("ul.jquerymenu_level3>li>a").parent().find('ul').css({'visibility' : 'hidden'});	
			$("body").stopTime("sluit_menu_level_1");
			$("body").stopTime("sluit_menu_level_2");
			$("body").stopTime("sluit_menu_level_3");
			$(this).parent().find('ul:first').css({'visibility' : 'visible'});
		}).mouseout(function(){	
			$("body").oneTime(vertraging_menu, "sluit_menu_level_1", function(){
				$("ul.jquerymenu_level1>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);
			$("body").oneTime(vertraging_menu, "sluit_menu_level_2", function(){
				$("ul.jquerymenu_level2>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);
			$("body").oneTime(vertraging_menu, "sluit_menu_level_3", function(){
				$("ul.jquerymenu_level3>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);		
		});
		//Ga je over een item in het 4de niveau
		$("ul.jquerymenu_level4>li>a").mouseover(function(){
			$("body").stopTime("sluit_menu_level_1");
			$("body").stopTime("sluit_menu_level_2");
			$("body").stopTime("sluit_menu_level_3");
			$("body").stopTime("sluit_menu_level_4");
		}).mouseout(function(){	
			$("body").oneTime(vertraging_menu, "sluit_menu_level_1", function(){
				$("ul.jquerymenu_level1>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);
			$("body").oneTime(vertraging_menu, "sluit_menu_level_2", function(){
				$("ul.jquerymenu_level2>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);
			$("body").oneTime(vertraging_menu, "sluit_menu_level_3", function(){
				$("ul.jquerymenu_level3>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);		
			$("body").oneTime(vertraging_menu, "sluit_menu_level_4", function(){
				$("ul.jquerymenu_level4>li>a").parent().find('ul:first').css({'visibility' : 'hidden'});
			}, 0);	
		});
		

		
		//Zorgen dat afbeeldingen correct worden gerenderd in IE6
		//$("#menubalk").supersleight();
		$("#hoofdvak_content_footer").supersleight();
		$("#left_banner").supersleight();
		$("#left_banner_overlay").supersleight();
		$("#left_banner_fotos").supersleight();
		
		//Fotobalk laten animeren
		$("#contentheader_image").innerfade({
			animationtype: 'fade',
			speed: 1200,
			timeout: 8000,
			type: 'random',
			containerheight: '145px'
		});
		
		//Zoekbox woord weghalen bij de eerste keer
		weggehaald_zoekwoord = 0;
		$("#header>form>input#zoekwoord").click(function(){
			if(weggehaald_zoekwoord == 0){
				$(this).val("");	
			}
			weggehaald_zoekwoord = 1;
		});
		
		$(".fadeInSlow").fadeIn('slow');
		$(".fadein").fadeIn('slow');

		$(".hovering").fadeTo("slow", 0.8);
		
		$(".hovering").hover(function(){
			$(this).fadeTo("fast", 1.0); // This sets the opacity to 100% on hover
		},function(){
			$(this).fadeTo("fast", 0.8); // This sets the opacity back to 60% on mouseout
		});
		
	$("ul.tabs").tabs("div.panes > div", {
		effect: 'fade'
	});		
		

	});
			
	function setEqualHeight(columns)  
		{  
		 	var tallestcolumn = 0;  
		 	columns.each(  
				function() {  
					currentHeight = $(this).outerHeight();  
					if(currentHeight > tallestcolumn) {  
						tallestcolumn  = currentHeight;  
					}  
				}  
			);  
		columns.height(tallestcolumn);  
		}  
	-->

