		$(function() {
			// code to execute when the DOM is ready
		
			// navi background fading
			$("#headnavi li a").hover(function() {
				$(this).next("div")
					.stop()
					.css( {"display": "none", "opacity": "0.5"})
					.fadeIn("fast");
			},function() {
				$(this).next("div")
					.stop()
					.fadeOut("slow");
			});

			// $(".sb_topic h1").click(function() {
			// 	$(".sb_topic div").slideUp("slow");
			// 	$(this).next("div").slideDown("slow");
			// });

			$(".sb_topic h1").click(function() {
				$(".sb_topic div").animate({
			       height:0
			    }, 400, "swing" );
				$(this).next("div").animate({
			       height:350
			    }, { "duration": 400, "easing": "swing", "queue": false } );
			});

			$(".anwalt img").click(function() {
				$temp = $(this).attr("src");
				$(this).attr("src",$(this).attr("name"));
				$(this).attr("name",$temp);
			});

			$("ul.rfacts li").css({"color":"#777"});
			$("ul.afacts li.anwalt").css({"color":"#777"});

			$("ul.afacts * a").hover(function() {
				var anwalt = $(this).parent("li").attr("class");
				$("ul.rfacts ."+anwalt+"").css({"color":"#000", "font-weight":"bold"});
			},function() {
				var anwalt = $(this).parent("li").attr("class");
				$("ul.rfacts ."+anwalt+"").css({"color":"#777", "font-weight":"normal"});
			});

			$("ul.rfacts .link").mouseenter(function() {
				var anwalt = $(this).parent("li").attr("class").split(" ").join(",li.anwalt.");
//				anwalt += "bernd";
				$(anwalt).css({"color":"#000", "font-weight":"bold"});
//				$(anwalt).addClass("highlight");
//				$(".highlight").animate({ color: '#fff' }, 400);
			}).mouseleave(function() {
				var anwalt = $(this).parent("li").attr("class").split(" ").join(",li.anwalt.");
//				anwalt += "bernd";
				$(anwalt).css({"color":"#777", "font-weight":"normal"});
//				$(anwalt).animate({color:'blue'}, 400);
			});

		});
		
	function buildLink() {
		$("#routelink").attr("href", $("#hiddenlink").attr("value")+$("#plz").attr("value") );
	}

