var geodecoder = null;
var map = null;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
geocoder = new GClientGeocoder();
showAddress("Kozienicka 173, Radom, PL");
}
}
function showAddress(address) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " nie zostal odnaleziony");
} else {
map.setCenter(point, 11);
var marker = new GMarker(point);
var text = "<b>Nes-Drut</b><br />ul. Kozienicka 173<br />26-613 Radom";
GEvent.addListener(marker, "click", function()
{marker.openInfoWindowHtml(text);});
map.addOverlay(marker);
marker.openInfoWindowHtml(text);

map.addControl(new GSmallMapControl());
}
}
);
}
