// JavaScript Document
$(document).ready(function(){

// Validate forms
		$("#form_contact").validate();
		
		// Effects
		//$(".fadein").fadeIn("slow");
		//$(".slidedown").slideDown("slow");
		
		$('ul.sf-menu').superfish({
			delay:       500,                            // one second delay on mouseout 
			animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
			speed:       'fast',                          // faster animation speed 
			autoArrows:  false,                           // disable generation of arrow mark-up 
			dropShadows: true                            // disable drop shadows 
			});
		
		$("#header_image").innerfade({
			animationtype: 'fade',
			speed: 1200,
			timeout: 4500,
			type: 'random',
			containerheight: '248px'
		});		

	$('#menutop ul > li:first-child').attr('style','background:none;'); //menu divider uitschakelen voor het eerste item

	$("a[rel='popup']").colorbox({
			close:'',
			next:'',
			previous:'',
			photo:true,
			slideshow:true,
			slideshowAuto:false,
			slideshowStart: "Start slideshow",
			slideshowStop: "Stop slideshow"
			});

//hover image
$(".hovering").hover(function(){
			$(this).fadeTo("fast", 0.4); // This sets the opacity to 100% on hover
		},function(){
			$(this).fadeTo("fast", 1.0); // This sets the opacity back to 60% on mouseout
		});


//center menu
$(function() {
	var menu_width = $('#mainmenu').css('float', 'left').width();
	$('#mainmenu').css({float : 'none', width : menu_width, margin : '0 auto'});
	});
	
		
});

function setEqualHeight(columns)  
{  
	var tallestcolumn = 0;  
	columns.each(  
		function() {  
			currentHeight = $(this).outerHeight();  
			if(currentHeight > tallestcolumn) {  
				tallestcolumn  = currentHeight;  
			}  
		}  
	);  
columns.height(tallestcolumn);  
}  


 
				
        
       
