function initNav() {
	if (typeof document.body.style.maxHeight == 'undefined') {
		var nav = document.getElementById("main-nav");
		var lis = nav.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
if (document.all && !window.opera)
	attachEvent("onload", initNav);
	
	

/* Document Ready */

$(document).ready(function() {



//$('#wrapper').fadeTo("fast", 0.33);



	/* BTN-Bild - Slideup & Down funktion */
	
	function ausblenden() {
			
		$('.ausblenden-down').hide( "slide", {direction: "down"}, 250 );
		$('.ausblenden-up').hide( "slide", {direction: "up"}, 250 );
		
		$('.w1').addClass('nolighter');
		$('.bildbeschrieb').show();
		
		
		
	};
	
	function einblenden() {
	
		$('.bildbeschrieb').hide();
		
		$('.ausblenden-down').show( "slide", {direction: "down"}, 250 );
		$('.ausblenden-up').show( "slide", {direction: "up"}, 250 );
		
		$('.w1').removeClass('nolighter');
		
		
	};


	/* BTN-Bild Hover intent konfigurieren */
	
	var config = {    
   	  over: ausblenden,
   	  out: einblenden
	};

	$(".btn-bild").hoverIntent( config );
	
	

    // Starte Tooltip auf Mitarbeiter Seite
    $(".ma-row").tooltip({ position: "bottom center", effect: 'slide', delay:'350'});
    
    // Starte colorbox
    $('a.colorbox').colorbox();
    
    
    
    // Karte vergrssern auf Kontaktseiten
	function karteslidedown() {
	   
	   $(this).animate({height: '+=100'}, 200, function() {  });
		};
	
	function karteslideup() {
		$(this).animate({height: '-=100'}, 200, function() {  });
	   };
	
	var configkarten = { over: karteslidedown, out: karteslideup };

	$("#map").hoverIntent( configkarten );
	
	
	// Label innherhalb der input boxen anzeigen
	$("label.inl-label").inFieldLabels();


        });


