$(document).ready(function(){
	/* kaartje */
	$('#card area').mouseover(function(){
		switch($(this).attr('id')){
			case 'wvl': $('#maps').css('background-position', '0 0'); break;
			case 'ovl': $('#maps').css('background-position', '0 -210px'); break;
			case 'bra': $('#maps').css('background-position', '0 -420px'); break;
			case 'ant': $('#maps').css('background-position', '0 -630px'); break;
			case 'lim': $('#maps').css('background-position', '0 -840px'); break;
			case 'hen': $('#maps').css('background-position', '0 -1050px'); break;
			case 'lux': $('#maps').css('background-position', '0 -1260px'); break;
			case 'lui': $('#maps').css('background-position', '0 -1470px'); break;
			case 'nam': $('#maps').css('background-position', '0 -1680px'); break;
		}
	});

	/* menu */
	$("#menu ul ul").each(function(i){ $(this).hide(); }).css('top', '18px'); 
	$("#menu ul li").hover(function(){ $('ul', this).show(); },	function(){	$('ul', this).hide(); });

	/* temp */
	$('h1 a').click(function(e){
		if($(this).attr('href') == '#'){
			e.preventDefault();
			$(this).parent().next().toggle();
		}
	});
	
	/* curriculum table */
	$('.currtable .c a').click(function(e){
		e.preventDefault();
		el = $(this).parent().parent().next('.currtable tr');
		if(el.hasClass('s')){
			el.hide();
			el.removeClass('s');
		}
		else{
			el.show();
			el.addClass('s');
		}
	});

});