$(document).ready(function() {
	
	$('#menu .active').parents('li').addClass('active');
	
	if($('.FotoBox > img').length>1){
		$('.FotoBox').cycle({ fx:'fade', timeout: 40, speed: 3000,  pause:  1, next:  '.FotoBox > img'  });
	}else{
		$('.FotoBox > img').fadeIn(1000);
	}
	
	var a= $('.Left').outerHeight();
	var b= $('.Content').outerHeight();
	//alert(a+' - '+b);
	var maxHeight=Math.max(a,b);
	
	if(maxHeight>571){
		$('.Left').css({height:maxHeight});
		$('.Content').css({height:maxHeight});
	} else{
		$('.Left').css({height:'571'});
		$('.Content').css({height:'571'});
	}
	
	$('.Close').click(function(){
		//$('.UitgelichtContainer').fadeOut(600);
		 // $(".UitgelichtContainer").animate({ opacity: 0.0,   marginTop: "5.6in" }, 1000 );
		  $('.UitgelichtContainer').fadeOut(400);
	});
	
	$(".UitgelichtContainer").pngfix();
	
	$("#FadeBar").pngfix();
	
	$('.SearchLink').click(function () { 
		//$('#searchFrom').submit();
		$("form:#searchFrom").submit();

		//alert('bla');
	});	
		
	
});







