function load_map(str_license)
{
	if(GBrowserIsCompatible()) 
	{
    document.getElementById('google_map').style.height = '700px';
    document.getElementById('str_boattype').innerHTML = str_license;

		document.map = new GMap2(document.getElementById('google_map'), {draggableCursor: 'crosshair', draggingCursor: 'pointer'});
    
    //add map controls
    document.map.setCenter(new GLatLng(52.18066872927715, 5.460205078125), 6);
    document.map.enableScrollWheelZoom();
    document.map.setMapType(G_NORMAL_MAP);
//    document.map.removeMapType(G_SATELLITE_MAP);
//    document.map.addControl(new GMapTypeControl());
    document.map.addControl(new GScaleControl());
    document.map.addControl(new GOverviewMapControl());
    document.map.addControl(new GLargeMapControl());

    GEvent.addListener(document.map, 'moveend', function(point)
                                     {
                                       //document.map.openInfoWindowHtml(point, '<h1>European Yachting Network</h1>Er is geen EYN makelaar in het door u gekozen gebied, neem alstublieft direct contact op met EYN.');
                                       //alert('moveend');
                                       document.map.setCenter(point);
                                     });

    if(document.map.isLoaded())
    {
      add_regions();
//      document.map.setCenter(new GLatLng(52.18066872927715, 5.460205078125), 7);
    }
	}
}

