$(document).ready(function(){
	$("#interactief").hover(function() {
		$(this).addClass("sfhover");	
	}, function() {
		$(this).removeClass("sfhover");
	});
		$("a.link_fly").hover(function(){
		$(this).parent().children(".legend").addClass("legend_hover");
		}, function() {$(this).parent().children(".legend").removeClass("legend_hover");}
		);


});

// Print
function printPage(){
	window.print();
}

// kalender
$(document).ready(function(){
	$("table.kalender td a").hover(function() {
		$(this).children("div.onday").animate({opacity: "show", left: "-210"}, "slow");
	}, function() {
		$(this).children("div.onday").animate({opacity: "hide", left: "-230"}, "fast");
	});
});

function showEvent(dit){
	// $("#"+dit).animate({opacity: "show", left: "-210"}, "slow");
	$("#"+dit).animate({opacity: "show"}, "slow");
}

function hideEvent(dit){
	// $("#"+dit).animate({opacity: "hide", left: "-230"}, "fast");
	$("#"+dit).animate({opacity: "hide"}, "fast");
}

// slidebox
$(document).ready(function(){
	goSetHeight('#content ul.legende li');
						   
	// content box
	$(".sliderbox .cont").hide();
	$(".sliderbox h3").addClass("close");
	
	$(".sliderbox h3").toggle(function(){
		$(this).removeClass("close");
		$(this).parent().children(".cont").slideDown();
		
	},function(){
		$(this).addClass("close");
		$(this).parent().children(".cont").slideUp();
	});
	
	// adress box
	$(".details .cont").hide();
	$(".details h3").addClass("close");
	
	$(".details h3").toggle(function(){
		$(this).removeClass("close");
		$(this).parent().children(".cont").slideDown();
		
	},function(){
		$(this).addClass("close");
		$(this).parent().children(".cont").slideUp();
	});
});

/* goSetHeight */
function goSetHeight(dit){	

	var maximaHeight = 0;
	
	$(dit).each(function(){
							   
		nuHeight = $(this).height();
		if(nuHeight > maximaHeight){
			
			maximaHeight = $(this).height();
		}
		
	});

	$(dit).each(function(){
		$(this).height(maximaHeight);
	});
	
};
