// CUFON REPLACE

		Cufon.replace('h1');
		Cufon.replace('h2'
					<!--   ,{ textShadow: '0px 0px black'} -->
					  );
		Cufon.replace('h3');
		Cufon.replace('h4');

		Cufon.replace('.caption h3');

		Cufon.replace('#topmenu li a', {
		hover: { color: '#45C0BE' },
		color:  '#666666',
		
		});
		
		Cufon.replace('#submenu li a', {
		hover: { color: '#ffffff' },
		});
	
		
		Cufon.replace('#breadcrump a', {
		hover: { color: '#45C0BE' },
		color:  '#666666',
		});
		
		Cufon.replace('#bottomright');
			
		Cufon.replace('label');
		
		

	
		
		
	


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

// hoofdmenu
		
		$(function() {
			 $("#3").lavaLamp({
			 fx: "easeOutBack",
			 speed: 600 });
		});

// submenu
		
		 var name = "#submenu";  
		 var menuYloc = null;  
		   
		 $(document).ready(function(){  
		 $(window).scroll(function () {  
		 var offset = menuYloc+$(document).scrollTop()+18;  
		 $(name).animate({top:offset},{duration:500,queue:false});  
		  });  
		 });  

// hover switch img

		$(document).ready(function(){
		 
		$("img.a").hover(
		function() {
		$(this).animate({"opacity": "0"}, "slow");
		},
		function() {
		$(this).animate({"opacity": "1"}, "slow");
		});
		 
		});

// popup fancybox
		$(document).ready(function() {
		
		

			$("a[rel=popupfoto]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-float-wrap">Afbeelding ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});


			$("#popup").fancybox({
				'width'				: 770,
				'height'			: 665,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
			$("#popup2").fancybox({
				'width'				: 770,
				'height'			: 665,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
						
						
			$("#popup3").fancybox({
				'width'				: 770,
				'height'			: 665,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
									
									
			$("#popup4").fancybox({
				'width'				: 770,
				'height'			: 665,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
												
			$("#popup5").fancybox({
				'width'				: 770,
				'height'			: 665,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
			$("#360pakketa").fancybox({
				'width'				: 950,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
			$("#360pakketb").fancybox({
				'width'				: 950,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});

		
		});
