// formulier foutmeldingen

$().ready(function() {
	
	var container = $('div.container');
	// validate the form when it is submitted
	var validator = $("#formulier").validate({
		errorContainer: container,
		meta: "validate"
	});

});


// Cufon

		Cufon.replace('h1', { color: '#ffffff'});
		Cufon.replace('h2', { color: '#ffffff'});
		Cufon.replace('h3', { color: '#366A8F'});
		Cufon.replace('h4', { color: '#366A8F'});
		Cufon.replace('h5', { color: '#366A8F'});
		Cufon.replace('h6', { color: '#366A8F'});
		Cufon.replace('#rechts > h2', { color: '#ffffff'});
		Cufon.replace('#rechts #submenu a', { color: '#366A8F'});


		
		
		Cufon.replace('#nav li a', {
		color: '#ffffff'
		});

Cufon.replace('#sitemap li a', {
		color: '#366A8F'
		});
		
		
			Cufon.replace('#taal', {
		color: '#366A8E'
		});


		Cufon.replace('#slider', {
		color: '#fff'
		});

		Cufon.replace('.slider', {
		color: '#fff'
		});
		
		Cufon.replace('.mainmap');	
		Cufon.replace('label');
		Cufon.replace('#bottom', {
		color: '#366A8E'
		});

		
	
// textslider

$(document).ready(function() { 
	$('#textrotate').innerfade({ 
		speed: 1000, 
		timeout: 8500, 
		type: 'sequence' 
	});
});


// menu

$(document).ready(function () {	
	
	$('#nav li').hover(
		function () {
			//show its submenu
			$('ul', this).slideDown(200);

		}, 
		function () {
			//hide its submenu
			$('ul', this).slideUp(200);			
		}
	);
	
});

// pop-up

	$(document).ready(function() {
		
	
			$("#gallery1").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
			
					$("#gallery2").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
			
					$("#gallery3").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
			
					$("#gallery4").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
					$("#gallery5").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
					$("#gallery6").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
					$("#gallery7").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});
					$("#gallery8").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});		$("#gallery9").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});		$("#gallery10").fancybox({
				'padding'			: 10,
					'width'			: 770,
				'height'			: 530,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
			
				'type'				: 'iframe'
			
			});


 $("#autostart").fancybox({
  'width': 744,  //or whatever
  'height': 510,
  'type': 'iframe' // see this?
 });





		
		});
