$(document).ready(function() {
						   


	$('#navigation li a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #content';
		
		$('#content').hide('fast');
		
		$('#load').remove();
		$('#navigationbar').append('<span id="load">lade ...</span>');
		$('#load').fadeIn('normal');
		
		loadContent();
		
		
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length);
				
		function loadContent() {
			//alert (toLoad);
			$('#content').load(toLoad,'',showNewContent());
			//alert ('hallo3');
			
		}
		
		function showNewContent() {
			sleep(5);
			$('#content').show('normal',hideLoader());
		}
				
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		
		return false;
		
	});

});