  
function gmap_load()
{
	//addEvent($("body"), 'unload', GUnload, true);
	Event.observe('body','unload',GUnload);

  if (GBrowserIsCompatible()) {
	var divMap = $("googlemap");
	divMap.style.width = "450px";
	divMap.style.height = "300px";
	divMap.style.marginLeft = "0px";
	divMap.style.marginTop = "0px";
	divMap.style.marginBottom = "0px";

    var map = new GMap2(divMap);
    var pt = new GLatLng(46.218345, -70.780509);  // Latitude, longitude pour le marqueur
    
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(45.323713, -70.961304), 11);  // Centre initial de la carte
    
	var markerText = "<strong>Les Services 10-10 inc.</strong><br />497, 19e avenue<br/>Beauceville (Qu&eacute;bec)<br/>G5X 1E7<br/><br/>T&eacute;l.: (418) 774-2562";
    var marker = new GMarker(pt);
    map.addOverlay(marker);
	marker.openInfoWindowHtml(markerText); 
    
   
    GEvent.addListener(marker, "click", function() { gmap_click(map,pt,marker,markerText) } );
  }
}

function gmap_click(map, point,marker,markerText)
{
    map.closeInfoWindow();
    map.setCenter(point);

	marker.openInfoWindowHtml(markerText);

}
