function newMap(map_id, address, title){
	geocoder = new google.maps.Geocoder();

	var point = new google.maps.LatLng(49.11152333333461, 6.168909072875977);

  var myOptions = {
    zoom: 17,
    center: point,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  map = new google.maps.Map(document.getElementById(map_id), myOptions);	
	
  function showAddress(address, title) {
    if (geocoder) {
      geocoder.geocode( { 'address': address}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
          map.setCenter(results[0].geometry.location);
		  
          var marker = new google.maps.Marker({
              map: map, 
              position: results[0].geometry.location
          });

  var zoomLevel;
  var infowindow = new google.maps.InfoWindow(
    { content: title,
      position: results[0].geometry.location
    });
  infowindow.open(map);	
		  
        } else {
          alert("Geocode was not successful for the following reason: " + status);
        }
      });
    }
  }
	
	showAddress(address, title);
}
function allMaps(){

	if(document.getElementById("map_stade_1")){
		newMap(
			"map_stade_1",
			"rue du chateau 57420 Verny",
			"<h2>FC Verny-Louvigny</h2>Stade Municpal<br/>rue du ch&acirc;teau<br/>57420 Verny<br/>T&eacute;l : 03 87 69 73 59"
		);
	}
	
		
}

allMaps();
