var map = null;
var geocoder = null;;

function initialize() {
  if (GBrowserIsCompatible()) {
  	map=new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(52.000000,19.000000), 6);
    map.setUIToDefault();
  }
}

function showAddress(address,info) {
  geocoder = new GClientGeocoder();
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        //alert(address + " not found");
      } else {
        var marker = new GMarker(point);
        map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(info);
		});
      }
    }
  );
}
