/* Java-Script Dokument "Delta Bike Sports" */
	
	function diakonieprint(){
		window.open("drucken.php","","width=605px,height=500px,scrollbars=yes");		
	}
	
	function diakonieprint_2(){
		document.getElementById("div_content_print").innerHTML = window.opener.document.getElementById("div_content").innerHTML+'<br clear="all" />';
		document.getElementById("div_navipfad_print").innerHTML = window.opener.document.getElementById("div_navipfad").innerHTML;
		window.print();
	}
	
    function loadmap() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("googlemap"));
		map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(50.558624,8.494449), 14);
		var marker = new GMarker(new GLatLng(50.556250,8.497460));
		map.addOverlay(marker);
		var html="<img src=\"../images/sites/ueberuns/kontakt/gmaps.jpg\" style=\"float:right;margin-right:15px;\" valign=\"bottom\" /><strong>Diakonie Lahn Dill</strong><br />Langgasse 3<br />35578 Wetzlar";
		
		GEvent.addListener(marker,"click", function(){
			marker.openInfoWindowHtml(html);
		});
		
      }
    }

	function route_berechnen(){
		$von = document.getElementById('adresse_strasse').value+', '+document.getElementById('adresse_ort').value;
		$ziel = 'Langgasse 3, 35578 Wetzlar';
		$url = 'http://maps.google.de/maps?f=d&hl=de&geocode=&saddr='+$von+'&daddr='+$ziel;
		window.open($url, 'Route', 'width=960,height=700,scrollbars=yes');
	}
	
	function switch_visible($id){
		if(document.getElementById($id).style.display!="block"){
			switchoff();
			document.getElementById($id).style.display = "block";
		} else {
			switchoff();
		}
	}
	
	function switchoff(){
		$x = document.getElementsByTagName("div");
		$l = $x.length;
		for(var $i=0;$i<$l;$i++){
			$n = $x[$i].className;
			if($n=="div_invisible"){
				$x[$i].style.display = "none";
			}
		}
	}
	
	