
//<![CDATA[
    /* Variable qui va correspondre à l'affichage de la carte dans la "div" */

var marker= new Array();    
// Creates a marker at the given point with the given number label
function createMarker(point, number) {
  var sop = new GMarker(point);
  GEvent.addListener(sop, "click", function() {
    sop.openInfoWindowHtml("Marker #<b>" + number + "</b>");
  });
  return marker;
}




function showAddress(address,i,message) {
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
       // alert(address + " not found");
      } else {
        map.setCenter(point, 8);

		

		marker[i] = new GMarker(point);
		GEvent.addListener(marker[i], "click", function() {
		marker[i].openInfoWindowHtml("<b>"+address+"</b><br>"+message);
  		});

        map.addOverlay(marker[i]);
      }
    }
  );
}


