$(document).ready(function() {
		$(".content_image").fancybox({'titlePosition' : 'over'});
		$(".gallery a").fancybox({'titlePosition' : 'over'});
		
		$("a.start-brochure-blank").fancybox({
			'hideOnContentClick': false,
			frameHeight: 680,
			frameWidth: 960
		});
		$('#brochure-blank-flash').flash({  
			swf: '/swf/Brochure_blank/pageflip_smolenaars_blank.swf',
			height: 680,
			width: 960 
		});
		
		$("a.start-brochure-deurenvof").fancybox({
			'hideOnContentClick': false,
			frameHeight: 680,
			frameWidth: 960
		});
		$('#brochure-deurenvof-flash').flash({  
			swf: '/swf/Brochure_deuren_vof/pageflip_smolenaars_deuren_vof.swf',
			height: 680,
			width: 960 
		});
		
		$("a.start-brochure-mdf").fancybox({
			'hideOnContentClick': false,
			frameHeight: 680,
			frameWidth: 960
		});
		$('#brochure-mdf-flash').flash({  
			swf: '/swf/Brochure_mdf/pageflip_smolenaars_mdf.swf',
			height: 680,
			width: 960 
		});
		
		$('ul#headnav').superfish();
		
		$('#header_slider').cycle({
		    	fx: 'fade',
		        speed:  1500,
		        timeout: 5000,
		        random: true
		});
		$('#header_slider_content').cycle({
		    	fx: 'fade',
		        speed:  1500,
		        timeout: 5000,
		        random: true
		});
		
		function mycarousel_initCallback(carousel) {
			carousel.clip.hover(function() {
					carousel.stopAuto();
				}, function() {
					carousel.startAuto();
				});
		};
		$('#door_slider').jcarousel({
			auto: 4,
			scroll: 10,
			wrap: 'last',
			initCallback: mycarousel_initCallback
		});
		
		
		$("#content_columns .content_block").equalHeights();
		$("#content_home .content_block").equalHeights();
		$(".product_block").equalHeights();
		
		
        if($('p.downloadrow').length == 0){
            $('h3.download').hide();
        };

        $('a.taxfancy').fancybox({
        	'frameWidth': 800,
        	'frameHeight': 500
        });
        
});
