var PlanAcces = {
	id : null,
	latitude : null,
	longitude : null,
	adresse : null,
	init : function(_id,_latitude,_longitude){
		this.id = _id;
		this.latitude = _latitude;
		this.longitude = _longitude;
		var div = document.getElementById(this.id);
		var adresse = div.innerHTML;
		// Créé la carte
		var point = new GLatLng(this.latitude, this.longitude);
		var map = new GMap2(div);
		map.addControl(new GSmallMapControl());
		map.setCenter(point, 8);
		// Crée le marker
	  var marker = new GMarker(point);
	  GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(adresse);
	  });
		// Insère le marker sur la carte
	  map.addOverlay(marker);
		//map.openInfoWindow(point,adresse);
		window.onunload = GUnload;
	}
}
window.onload = function(){
	PlanAcces.init('carte',45.44351240743724, 0.78277587890625);
}
