// variable globales
var map = '';


function initialize() {
	if (GBrowserIsCompatible()) {
		geocoder = new GClientGeocoder(); // on declare le client coder
		map = new GMap2(document.getElementById("map_canvas")); // on instancie la carte
		//on ajoute des controle a la carte
		map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());

		// on centre la carte
		map.setCenter(new GLatLng(45.4384988,4.3848075), 14); 
		// action si on sort de la carte
		GEvent.addListener(map, "mouseout", function() {
		map.closeInfoWindow();//on ferme toute les fenetres des marker
		});
	} else { alert("navigateur incompatible");}
}
    

