// Create the marker and corresponding information window

function createInfoMarker(point, address) {

   var marker = new GMarker(point);

   GEvent.addListener(marker, "click",

      function() {

         marker.openInfoWindowHtml(address);

      }

   );

  return marker;

}


function load_gmap(map_id) {
  if (GBrowserIsCompatible()) {
	  
    var map = new GMap2(document.getElementById(map_id));
    map.setCenter(new GLatLng(43.455162, 5.365362), 13);
    
    map.addControl(new GLargeMapControl());
    
    map.addControl(new GMapTypeControl());
    
    // Test

	/*var point = new GLatLng(43.455162, 5.365362);
	
	address = "Test<br />Place des marroniers";
	
	var marker = createInfoMarker(point, address);
	
	map.addOverlay(marker);*/

  }
}
