$(document).ready(function()
{
	$('a.button').hide();
	$('#logo').hide();
	$('h1').hide();
	$('h2').hide();
	$('p').hide();
	$('.content').hide();
	$('#slider').hide();
	$('.tweekolom').hide();
	$('#words').hide();
	
	$('#logo').fadeIn(1000, function() 
	{
		$('h1, h2, .content').fadeIn(625, function() 
		{
		
			$('p, #slider, #words').fadeIn(625, function() 
			{
			
				$('.content, .tweekolom, #slider').fadeIn(625, function() 
				{				
					$('a.button').fadeIn(625);
				});
			
			});
			
       	});	
       	    	
    });
    
    $("a.button, #logo a").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("a.button, #logo, h1, h2, p, .content, #slider").fadeOut(800, redirectPage);
    });
 
    function redirectPage() {
        window.location = linkLocation;
    }
    
    $('#logo').hover( function() {
    	$('#logo a.hover').fadeIn(100);
    });
    
    $('#logo').mouseleave( function() {
    	$('#logo a.hover').fadeOut(100);    		
    });
    
    $('#logo a.hover').click( function() {
    	$('#logo a.hover').delay(2000);    		
    });
    
});	
