			$(document).ready(function(){
				$("#menu li a").hover(function(){
				  $(this).not(".aktiv").children(".bg").fadeOut("fast");
				},function(){
				  $(this).not(".aktiv").children(".bg").fadeIn("fast");
				});
				$(".home").click(function(){
					$("#menu li a").removeClass("aktiv");
					$(".home a").addClass("aktiv");
					$(".home a .bg").show();
					$(".linie2").css("z-index","10").fadeOut("slow");
					$(".linie3").css("z-index","10").fadeOut("slow");
					
					$("#content").animate({
						top:600			
					},500,'jswing',
						function(){
							$("#himmel img").animate({
								left: 0
							}, 1500, 'easeOutCubic');
							$("#hintergrund_focus img").animate({
								left: 0
							}, 1500, 'easeOutCubic');
							$("#vordergrund img").animate({
								left: 0
							}, 1500, 'easeOutCubic',
								function(){
									$("#content").load('index2.htm', function(){
										$("#content").animate({
										top:30
										},500,'jswing');
									})
								}
							);
						}
					);
				})
				$(".referenzen").click(function(){
					$("#menu li a").removeClass("aktiv");
					$(".referenzen a").addClass("aktiv");
					$(".referenzen a .bg").show();
					$(".linie2").css("z-index","1000").fadeIn("slow");
					$(".linie3").css("z-index","10").hide();
					$("#content").animate({
						top:600			
					},500,'jswing',
						function(){
							$("#himmel img").animate({
								left: -280
							}, 1500, 'easeOutCubic');
							$("#hintergrund_focus img").animate({
								left: -560
							}, 1500, 'easeOutCubic');
							$("#vordergrund img").animate({
								left: -1000
							}, 1500, 'easeOutCubic',
								function(){
									$("#content").load('partner.htm', function(){
										$("#content").animate({
										top:30
										},500,'jswing');
									})
								}
							);
						}
					);
				})
				$(".kontakt").click(function(){
					$("#menu li a").removeClass("aktiv");
					$(".kontakt a").addClass("aktiv");
					$(".kontakt a .bg").show();
					$(".linie3").css("z-index","1000").fadeIn("slow");
					$(".linie2").css("z-index","10").hide();
					$("#content").animate({
						top:600			
					},500,'jswing',
						function(){
							$("#himmel img").animate({
								left: -400
							}, 1500, 'easeOutCubic');
							$("#hintergrund img").animate({
								left: -790
							}, 1500, 'easeOutCubic');
							$("#hintergrund_focus img").animate({
								left: -790
							}, 1500, 'easeOutCubic');
							$("#vordergrund img").animate({
								left: -1550
							}, 1500, 'easeOutCubic',
								function(){
									$("#content").load('kontakt.htm', function(){
										$("#content").animate({
										top:30
										},500,'jswing');
									})
								}
							);
						}
					);
				})
				$("#licht").fadeIn("slow",function(){
					$("#farbe2").animate({
						top: 460
					}, 1500, 'easeOutCubic');	
				});
				$(".wp-caption a").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 150});
				
			});