	$(function() {
		$('.turmMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
		
		$('.zweiMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
		
		$('.erstMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
		
		$('.erdMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
		
		$('.rekMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
		
		$('.kelMap').maphilight({
			fillColor: '000000',
			strokeColor: 'ffffff',
			fillOpacity: 0.6
		});
	});
	

$(document).ready(function(){
   $("#inner").css("display", "none");
   $("#inner").fadeIn(1000);
   $("#inner-sponsoren").css("display", "none");
   $("#inner-sponsoren").fadeIn(1000);
   
  	 $("#menu a").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("#inner").fadeOut(1000, redirectPage);
        $("#inner-sponsoren").fadeOut(1000, redirectPage);
    });
    
    $(".namensbox a").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("#inner").fadeOut(1000, redirectPage);
        $("#inner-sponsoren").fadeOut(1000, redirectPage);
    });
    
    $("a.transition").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("#inner").fadeOut(1000, redirectPage);
        $("#inner-sponsoren").fadeOut(1000, redirectPage);
    });

    function redirectPage() {
        window.location = linkLocation;
    }
    
    $('#slideshow').cycle({ 
	    fx:     'fade', 
	    speed:  'fast', 
	    timeout: 0, 
	    next:   '#slide-next', 
	    prev:   '#slide-prev' 
	});

		/* Mapping AJAX */
	
	$('#erstMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#erstMapshow').load(url).fadeIn('slow');
		$('#zweiMapshow').fadeOut('slow');
		$('#erdMapshow').fadeOut('slow');
		$('#kelMapshow').fadeOut('slow');
		$('#turmMapshow').fadeOut('slow');
		$('#rekMapshow').fadeOut('slow');
		
		// To prevent default action 
	  return false; 
	});

	$('#zweiMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#zweiMapshow').load(url).fadeIn('slow');
		$('#erstMapshow').fadeOut('slow');
		$('#erdMapshow').fadeOut('slow');
		$('#kelMapshow').fadeOut('slow');
		$('#turmMapshow').fadeOut('slow');
		$('#rekMapshow').fadeOut('slow');
		
		// To prevent default action 
	  return false; 
	});
	
	$('#turmMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#turmMapshow').load(url).fadeIn('slow');
		$('#erstMapshow').fadeOut('slow');
		$('#erdMapshow').fadeOut('slow');
		$('#kelMapshow').fadeOut('slow');
		$('#zweiMapshow').fadeOut('slow');
		$('#rekMapshow').fadeOut('slow');
		
		// To prevent default action 
	  return false; 
	});
	
	$('#erdMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#erdMapshow').load(url).fadeIn('slow');
		$('#erstMapshow').fadeOut('slow');
		$('#zweiMapshow').fadeOut('slow');
		$('#kelMapshow').fadeOut('slow');
		$('#turmMapshow').fadeOut('slow');
		$('#rekMapshow').fadeOut('slow');
		// To prevent default action 
	  return false; 
	});
	
	$('#kelMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#kelMapshow').load(url).fadeIn('slow');
		$('#erstMapshow').fadeOut('slow');
		$('#erdMapshow').fadeOut('slow');
		$('#zweiMapshow').fadeOut('slow');
		$('#turmMapshow').fadeOut('slow');
		$('#rekMapshow').fadeOut('slow');
		
		// To prevent default action 
	  return false; 
	});
	
	$('#rekMap area').click(function() { 
		var url = $(this).attr('href'); 
		$('#rekMapshow').load(url).fadeIn('slow');
		$('#erstMapshow').fadeOut('slow');
		$('#erdMapshow').fadeOut('slow');
		$('#kelMapshow').fadeOut('slow');
		$('#turmMapshow').fadeOut('slow');
		$('#zweiMapshow').fadeOut('slow');
		// To prevent default action 
	  return false; 
	});
	

	$('a.absolventGallery').lightBox({
			containerResizeSpeed: 100,
			overlayOpacity: 0.9
		}); 

		

	



}); 
	

