
$(document).ready(function(){					
	
	var height = $(window).height();
	if (($('.inhoud').height() + 96) >= height)
	{ 
		var height = $('.inhoud').height();
	}
	
	var height = height;
	$('.content').css('min-height', height);
	
	$('#multi-ddm').dropDownMenu({timer: 1000, parentMO: 'parent-hover', childMO: 'child-hover1'});

	$(document).bgStretcher({
		images: ['../images/background/background.jpg'],
		imageWidth:                 1680,
        imageHeight:                1050,
        resizeProportionally: false,
		slideShow: false
	});
	

	
	$("#contact").validate({
	
		submitHandler: function() 
		{ 
			$.post("forms/contact", $('form').serialize(),
					function(data){
						$('.contact_form').html(data);
			   });
			return false;
		}

	});
	
	$("#aanmelden").validate({


		submitHandler: function() 
		{ 
			$.post("http://www.pullpower.nl/forms/aanmelden", $('form').serialize(),
					function(data){
						$('.aanmeld_form').html(data);
			   });
			return false;
		}

	});
});
