var map = null;
var geocoder = null;

function GMinitialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("GMmap"));
    geocoder = new GClientGeocoder();
    geocoder.setBaseCountryCode("nl");
    
    map.setCenter(new GLatLng(52.05249,5.394287), 7);
    map.setUIToDefault();
  }
}

function GMshowAddress(address, html) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        if (!point) {
        } else {
          var marker = new GMarker(point);
          GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml('<div class="GMmarker">'+html+'</div>');} );
          map.addOverlay(marker);
        }
      }
    );
  }
}