var geodecoder = null;
var map = null;

function load()
{
  if (GBrowserIsCompatible())
  {
    map = new GMap2(document.getElementById("map"));
    geocoder = new GClientGeocoder();
    showAddress ("Metalowa 11A, Kutno, PL"); 
  }
}

function showAddress(address)
{
  geocoder.getLatLng(address, function(point)
  {
    if (!point)
      {
      alert(address + " not found");
    }
    else
    {
      map.setCenter(point, 12);
      var marker = new GMarker(point);
      map.addOverlay(marker);
      map.addControl(new GSmallZoomControl());
      
      
      //map.addOverlay(new GMarker(point, {icon:muwoIcon}));
    }
  }
  );
}
