/* Fadeout/in kompletter Content */

// Document.ready auch wenn über bfcache (zurück) in Opera
history.navigationMode = 'compatible';

// jQuery available - add CSS class
$("html").addClass('jqa');

// When ready, fade in content
$(document).ready(function() {
	
	//$("section, #headline, footer").css("display", "none");

    $("section, #headline, footer").fadeIn(2000);
    
	$("nav a").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
		$("section, #headline, footer").fadeOut(1000, redirectPage);		
	});
		
	function redirectPage() {
		window.location = linkLocation;
	}
	
});
/* Start page - fading Images on Start */
$(document).ready(function() {
	$('body.home #images img').delay(2000).each(function(i) {
			$(this).delay(i*1000).fadeTo('slow', 1);
		});
});


