var geocoder;
var title = "Obec Hrádek";
var address = "Hrádek";
var map;
function initialize() {
  	if (GBrowserIsCompatible()) {
		var geocoder;
		var address = "Obec Slup u Znojma";
        map = new GMap2(document.getElementById("mapka_detail"));
        map.setMapType(G_PHYSICAL_MAP);
		geocoder = new GClientGeocoder();
		geocoder.getLocations(address, addToMap);
        map.setUIToDefault();
        map.disableScrollWheelZoom();  	
  	}
}
// This function adds the point to the map
function addToMap(response)
{
		// Retrieve the object
		place = response.Placemark[0];
		// Retrieve the latitude and longitude
		point = new GLatLng(place.Point.coordinates[1],
												place.Point.coordinates[0]);
		center = new GLatLng(place.Point.coordinates[1],
				place.Point.coordinates[0]);
		// Center the map on this point
		map.setCenter(center, 10);
		// Create a marker
		marker = new GMarker(point);
		// Add the marker to map
		map.addOverlay(marker);
		// Add address information to marker
		marker.openInfoWindowHtml('Vinařská obec Slup, okres Znojmo<br />441 obyvatel a 205 domů<br/><i>(k 26.3.2007)</i>');

}

