		
$(document).ready(function(){
		
		$("li.web a").click(function(){
			$("li.web a").addClass("active");
			$("li.print a").removeClass("active");
			$("a.print-p").addClass("opacity-p");
			$("a.web-p").removeClass("opacity-p");
			
		});
		
		$("li.print a").click(function(){
			$("li.print a").addClass("active");
			$("li.web a").removeClass("active");
			$("a.web-p").addClass("opacity-p");
			$("a.print-p").removeClass("opacity-p");
			
		});
		
		$("li.alle a").click(function(){
			$("div.arrowLeft").removeClass("display");
			$("li.web a,li.print a").removeClass("active");
			$("a.web-p, a.print-p").removeClass("opacity-p");
		
		}); 
		
		$("a.closeLayer").click(function(){
			$("div.boxKontaktForm").fadeOut("slow");
			});
		
		$("a.closeLayer").click(function(){
			if ($("div.boxKontaktForm, div.boxAdress").is(":visible")) {
				$("div.boxKontaktForm, div.boxAdress").fadeOut("slow");
				$(this).addClass("closeLayerOpen");
			}
		
			else if ($("div.boxKontaktForm, div.boxAdress").is(":hidden")) {
				$("div.boxKontaktForm, div.boxAdress").fadeIn("slow");
				$(this).removeClass("closeLayerOpen");
}

});

	// IE bug Fixes - Rainer
		   		
    	if($.browser.msie){
  
    		//Remove outline from links
    		$("a").click(function(){$(this).blur();});
    		
    		try { document.execCommand("BackgroundImageCache", false, true); 
				} catch(err) {}
	 	}
		
	
}); 




