function showMap(id,adresse,text) {
$(".map").hide();
	if (GBrowserIsCompatible()) {
			$("#map"+id).show();
		div=document.getElementById("map"+id);
		div.innerHTML='<div id="div'+id+'" style="width: 730px; height: 300px;"></div>';
		//alert(div.innerHTML);
		div2=document.getElementById("div"+id);
	//////////////////////////////////////////////////////////////////////////////////////////////////////
	map(id,adresse,div2,text);
	}
}
function map(id,adresse,div2,text) {
		geocoder = new GClientGeocoder();
		var map = new GMap2(div2);
		map.addControl(new GScaleControl());
		map.enableScrollWheelZoom();
		var zoom=14;
		geocoder.getLatLng(adresse, function(point){	
			map.setCenter(point,zoom);
			var marker = new GMarker(point);
			//openInfoWindowHtml(text);	
			//marker click function//////////////////////////////////////////////////////////
			GEvent.addListener(marker, 'click', function() {
			marker.openInfoWindowHtml(text);
			});
			//map overlay////////////////////////////////////////////////////////////////////////
			map.addOverlay(marker);
				marker.openInfoWindowHtml(text);
			//zoom control///////////////////////////////////////////////////////////////////////
			map.addControl(new GLargeMapControl());
		}
		);
}
