$(document).ready(function(){
	
	windowHeight = $(window).height() ;
	if (windowHeight  < 625 ) {
		if (windowHeight < 523){
			$("#mainmenu").attr("id","mainmenusmall");
			$(".containstatic").css("top","6px");
		} else {
			resthoogte = windowHeight - 523
			$(".containstatic").css("top",resthoogte+"px");
		}
	}
	
	$("#navigation li").click(function(){
		gotoURL = $(this).find("a").attr("href");
		
		window.location.href = gotoURL;
	});
	$("#navigation li div").click(function(){
		alert("x");
		gotoURL = $(this).find("a").attr("href");
		
		window.location.href = gotoURL;
	});
	$("#foto").mouseover(function(){ 
		$("#foto").stop();
		$("#foto").animate({ 
			left: "40px"  
			}, 1200  //,
		//function(){
		//	$("#foto blockquote").fadeIn("slow");
		);        
	}).mouseout(function(){
			$("#foto").stop();
			//$("#foto blockquote").fadeOut("slow");
			$(".content").fadeIn("slow");
			$("#foto").animate({ 
				left: "-614px"  
			 }, 1200  );          
	});

}); // end document ready