window.addEvent("domready", function() {

  //check google maps container exists
  if ( $('googleMaps') ) {

    var googleMapsElement = $('googleMaps');
    var RhenoyAddress = 'Rhenoy, Nederland';

    if ( GBrowserIsCompatible() ) {
      var map = new GMap2( googleMapsElement );
      var geocoder = new GClientGeocoder();

      //add map controlers
      map.setUIToDefault();
      
      geocoder.getLatLng(
        RhenoyAddress,
        function ( foundcoords ) {
          if ( foundcoords ) {

            map.setCenter( foundcoords, 15 );
            map.setMapType( G_HYBRID_MAP );

            //add pointer
            var marker = new GMarker( foundcoords );
            //GEvent.addListener( marker, 'click', function() { marker.openInfoWindowHtml( RhenoyAddress ); } );
            map.addOverlay( marker );

          }
        }
      );
    }
  }

});
