// JavaScript Document

$(document).ready(function($){
						   
	$('#menu').load('navigatie.html');
	$('#contact_side').load('contact_side.html');

		
	$.supersized({
		slides  :  	[ {image : 'tulp_large.jpg', title : 'Image Credit: Maria Kazvan'} ]
	});
	
	$('#rozevlak').height($(document).height());
	
	
	$('.logoContainer').css({
	    position:'absolute',
		left: ($(window).width() - $('.logoContainer').outerWidth()),
	    top: ($(window).height() - $('.logoContainer').outerHeight())/2
	});
	
	$('#inschrijf_balk').css({
	    position:'absolute',
		right: ($(window).width() - $('#inschrijf_balk').outerWidth()),
	    top: ($(window).height() - $('#inschrijf_balk').outerHeight())/2
	 });
	
	$('#inschrijf_formulier').css({
	       position:'absolute',
			right: ($(window).width() - $('#inschrijf_formulier').outerWidth()),
	       	top: ($(window).height())/2
	 });
	
	$(window).resize(function(){
	    $('.logoContainer').css({
	       	position:'absolute',
			left: ($(window).width() - $('.logoContainer').outerWidth()),
	       	top: ($(window).height() - $('.logoContainer').outerHeight())/2
	    });
		$('#inschrijf_balk').css({
	       	position:'absolute',
			right: ($(window).width() - $('#inschrijf_balk').outerWidth()),
	       	top: ($(window).height() - $('#inschrijf_balk').outerHeight())/2
	    });
		$('#inschrijf_formulier').css({
	       	position:'absolute',
			right: ($(window).width() - $('#inschrijf_formulier').outerWidth()),
	       	top: ($(window).height())/2
	    });
	});
	

	$('#inschrijf_balk').hover(function(){
		$('#inschrijf_formulier').show();
		$('#inschrijf_balk').hide();

	});

	$('.taal').hover(function(){
		$('#inschrijf_formulier').show();
		$('#inschrijf_balk').hide()
	});



    $(".commentForm").validate();
	
	$("#rozevlak").dropShadow();
	

	
	$('.footer').load('footer_text.html');

									
});



			




