var locations;

		function showLocation(location)
		{
			address = location.street + ", " + location.zipcode + ", " + location.city + ", Germany";
			map.addControl(new google.maps.SmallMapControl());

			if (!google.maps.BrowserIsCompatible()) return;


			if (location.latitude && location.longitude)
			{
				var locationLatLong = new google.maps.LatLng(location.latitude,location.longitude);
				map.setCenter(locationLatLong, 15);
				markLocation(locationLatLong, location);
			}
			else
			{
				geocoder.getLatLng(
				address,
				function(point)
				{
					if (!point) {
						document.getElementById('noStadtplanEntryFound').innerHTML = "<div>Für diese Location ist kein Stadtplaneintrag vorhanden oder die Adresse konnte nicht zugeordnet werden.</div>";
						document.getElementById('stadtplan').style.display = "none";
					}
					else
					{
						markLocation(point, location);
					}
				}
				)
			}



		}

		function markLocation(point, location)
		{
//			locations[linkname] = location;
			map.setCenter(new google.maps.LatLng(point.lat(), point.lng()), 15);
			var marker = new google.maps.Marker(new google.maps.LatLng(point.lat(), point.lng()));
			marker.text = "<b>"+location.name+"</b><br />"+location.street+"<br />"+location.zipcode + " " +location.city;
			map.addOverlay(marker);
			GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(this.text);}
			);
		}
