// frontpage functions file
$(document).ready(function() {
	
	$('.textWaarom .more').click(function() {

		if($(this).parent().parent().children('.hidden').css('display') == 'none'){
			$(this).parent().parent().children('.hidden').fadeIn('fast');
		} else {
			$(this).parent().parent().children('.hidden').fadeOut('fast');
		}
	
	});
	
	$('.box.left-top').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.left-top').click(
		function() {
			url = $('.box.left-top a').attr('href');
			document.location.href = url;
		}
	);
    $('.box.left-bottom').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.left-bottom').click(
		function() {
			url = $('.box.left-bottom a').attr('href');
			document.location.href = url;
		}
	);
    $('.box.center-top').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.center-top').click(
		function() {
			url = $('.box.center-top a').attr('href');
			document.location.href = url;
		}
	);
    $('.box.center-bottom').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.center-bottom').click(
		function() {
			url = $('.box.center-bottom a').attr('href');
			document.location.href = url;
		}
	);
    $('.box.right-top').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.right-top').click(
		function() {
			url = $('.box.right-top a').attr('href');
			document.location.href = url;
		}
	);
	$('.box.center').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.center').click(
		function() {
			url = $('.box.center a').attr('href');
			document.location.href = url;
		}
	);
	$('.box.right').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.box.right').click(
		function() {
			url = $('.box.right a').attr('href');
			document.location.href = url;
		}
	);
    $('.col2').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.col2').click(
		function() {
			url = $('.col2 a').attr('href');
			document.location.href = url;
		}
	);
	$('.col3').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
	$('.col3').click(
		function() {
			url = $('.col3 a').attr('href');
			document.location.href = url;
		}
	);
});
