$(document).ready(function(){
setTimeout(function(){

	//alert(window.location.hash);
	if (window.location.search == ''){
		window.location.search = '?L=0';
	} 
	if (window.location.hash == '#company'){
		$('li.company a').addClass('active');
		$('li.profile a').addClass('active');
	} 
	if (window.location.hash == '#home' || window.location.hash == ''){
		$('li.home a').addClass('active');
	}
	if (window.location.hash == '#services'){
		$('li.services a').addClass('active');
		$('li.portfolio a').addClass('active');
	}
	if (window.location.hash == '#references'){
		$('li.references a').addClass('active');
	}
	if (window.location.hash == '#contact'){
		$('li.contact a').addClass('active');
	}

	if (window.location.hash == '#team'){
		$('li.company a').addClass('active');
		$('li.team a').addClass('active');
		$('#team').addClass('zeigma');
		$('#team').removeClass('zeigmanicht');
		$('#profile').addClass('zeigmanicht');
		$('#profile').removeClass('zeigma');
		$('#location').addClass('zeigmanicht');
		$('#location').removeClass('zeigma');
		window.location.hash = '#team';
	}
	if (window.location.hash == '#location'){
		$('li.company a').addClass('active');
		$('li.location a').addClass('active');
		$('#location').addClass('zeigma');
		$('#location').removeClass('zeigmanicht');
		$('#profile').addClass('zeigmanicht');
		$('#profile').removeClass('zeigma');
		$('#team').addClass('zeigmanicht');
		$('#team').removeClass('zeigma');
		window.location.hash = '#location';
	}
	if (window.location.hash == '#translation'){
		$('li.services a').addClass('active');
		$('li.translation a').addClass('active');
		$('#translation').addClass('zeigma-translation');
		$('#translation').removeClass('zeigmanicht-translation');
		$('#audio').addClass('zeigmanicht-audio');
		$('#audio').removeClass('zeigma-audio');
		$('#testing').addClass('zeigmanicht');
		$('#testing').removeClass('zeigma');
		$('#services-start').addClass('zeigmanicht');
		$('#services-start').removeClass('zeigma');
		window.location.hash = '#translation';
	}
	if (window.location.hash == '#audio'){
		$('li.services a').addClass('active');
		$('li.audio a').addClass('active');
		$('#translation').addClass('zeigmanicht-translation');
		$('#translation').removeClass('zeigma-translation');
		$('#audio').addClass('zeigma-audio');
		$('#audio').removeClass('zeigmanicht-audio');
		$('#testing').addClass('zeigmanicht');
		$('#testing').removeClass('zeigma');
		$('#services-start').addClass('zeigmanicht');
		$('#services-start').removeClass('zeigma');
		window.location.hash = '#audio';
	}
	if (window.location.hash == '#testing'){
		$('li.services a').addClass('active');
		$('li.testing a').addClass('active');
		$('#translation').addClass('zeigmanicht-translation');
		$('#translation').removeClass('zeigma-translation');
		$('#audio').addClass('zeigmanicht-audio');
		$('#audio').removeClass('zeigma-audio');
		$('#testing').addClass('zeigma');
		$('#testing').removeClass('zeigmanicht');
		$('#services-start').addClass('zeigmanicht');
		$('#services-start').removeClass('zeigma');
		window.location.hash = '#testing';
	}
}, 500);
});
