	/* Sitemap */
	$(function() {
		$('ul#menu-footer li#menu-item-788').toggle(function(){
			if ($('#sitemap-wrap').hasClass("sitemap_show")) {
				$('#sitemap-wrap').stop().fadeOut(400).removeClass('sitemap_show'); 
			}
			else {
				$('#sitemap-wrap').stop().fadeIn(400).addClass('sitemap_show');
			}
		}, function(){
			if ($('#sitemap-wrap').hasClass("sitemap_show")) {
				$('#sitemap-wrap').stop().fadeOut(400).removeClass('sitemap_show'); 
			}
			else {
				$('#sitemap-wrap').stop().fadeIn(400).addClass('sitemap_show');
			}
		});
		
		$(document).click(function(e){			
			if ($('#sitemap-wrap').is(":visible")) {
				if($(e.target).is('#sitemap-wrap, #sitemap-wrap *'))return;
				$('#sitemap-wrap').stop().fadeOut(300).removeClass('sitemap_show');
				//console.log('outside');
			}

		});		
	});	
	
	$(function() {
		$('li#fullscreen').toggle(function(){
			$('#menue').hide();		
			$('#footer').hide();	
			$('#lautschrift').hide();	
			$('#kontakt-bar').hide();	
		}, function(){
			$('#menue').show();	
			$('#footer').show();
			$('#lautschrift').show();
			$('#kontakt-bar').show();				
		});
	});		
	
	 function initMenu() {
		$('#menu ul').hide();
		$('#menu ul:first').show();		
		$('#menu li a').click(function() {
			var checkElement = $(this).next()
			if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
			return false;
		}
		if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
			$('#menu ul:visible').slideUp('normal');
			checkElement.slideDown('normal');
			return false;
    	}}
    	);
    }
	
	 function initJobs() {
		$('#jobs-acc ul').hide();
		//$('#jobs-acc ul:first').show();		
		$('#jobs-acc li a').click(function() {
			var checkElement = $(this).next()
			if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
				checkElement.slideUp('normal');
				return false;
		}
		if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
			$('#jobs-acc ul:visible').slideUp('normal');
			checkElement.slideDown('normal');
			return false;
    	}}
    	);
    }

	$(function() {
		$('a#tools-twitter').hover(function(){
			$('div#socialmediahover').html('<span id="twitter">Donner & Doria bei <strong> Twitter</strong></span>');				
		}, function(){		
			$('div#socialmediahover').html('');
		});
	});
	
	$(function() {
		$('a#tools-facebook').hover(function(){
			$('div#socialmediahover').html('<span id="facebook">Donner & Doria bei <strong> Facebook</strong></span>');				
		}, function(){		
			$('div#socialmediahover').html('');
		});
	});
	
	$(function() {
		$('a#tools-foursquare').hover(function(){
			$('div#socialmediahover').html('<span id="foursquare">Donner & Doria bei <strong> Foursquare</strong></span>');				
		}, function(){	
			$('div#socialmediahover').html('');
		});
	});
	
	$(function() {
		$('a#tools-youtube').hover(function(){
			$('div#socialmediahover').html('<span id="youtube">Donner & Doria bei <strong> YouTube</strong></span>');				
		}, function(){	
			$('div#socialmediahover').html('');
		});
	});
	
	$(function() {
		$('a#tools-xing').hover(function(){
			$('div#socialmediahover').html('<span id="xing">Donner & Doria bei <strong> Xing</strong></span>');				
		}, function(){	
			$('div#socialmediahover').html('');
		});
	});	
	
	$(function() {
		$('a#tools-google').hover(function(){
			$('div#socialmediahover').html('<span id="google">Donner & Doria bei <strong> Google+</strong></span>');				
		}, function(){	
			$('div#socialmediahover').html('');
		});
	});		
