function initialize() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("googleMap"));
		
		datas = dataJSON;
		
		/*
		On choisit de centrer la carte sur le lieu de la fiche
		*/
		map.setCenter(new GLatLng(datas[0].latitude, datas[0].longitude), 10);
		
		// On ajoute le contrôle de la carte
		map.addControl(new GLargeMapControl());
		
		/*
		 * Ajout du 06 avril 2009 par Laurent BENE <lbene@digitas.fr>
		 * 
		 * Jusqu'à présent, seule la vue par défaut était disponible.
		 * A présent, l'internaute peut choisir d'afficher la vue plan ou satellite
		 * 
		 */
		var mapControl = new GMapTypeControl;
		map.addControl(mapControl);

		
		rectangle = new GLatLngBounds();
		
		var firstIcon = new GIcon(G_DEFAULT_ICON);
		firstIcon.iconSize = new GSize(30, 67);
		firstIcon.iconAnchor = new GPoint(0, 67);
		firstIcon.image = '/FRONT/CRT_PIDF/images/common/gmap/markerBig.png';
		
		function createMarker(point, obj, index) {
			var genericIcon = new GIcon(G_DEFAULT_ICON);
			genericIcon.iconSize = new GSize(24, 49);
			genericIcon.iconAnchor = new GPoint(0, 49);
			genericIcon.image = '/FRONT/CRT_PIDF/images/common/gmap/marker' + index + '.png';
			
			if (index == 0) {
				markerOptions = { icon: firstIcon };
			}
			else {
				markerOptions = { icon: genericIcon };
			}
			
			marker = new GMarker(point, markerOptions);

			
			
			GEvent.addListener(marker, "mouseover", function() {
				text = '';
				
				/* Modifié par Pierre-Louis LAUNAY, <pllaunay@digitas.com> le 08/01/2009 : Ajout du libellé de la 
			        rubrique auquelle appartient la fiche et le style qui va avec.*/
			    text += '<p class="nom">' + obj.rubrique + '</p>';
				
			    text += '<p class="lieu">';
			    text += '<a href="/index.php?coe_i_id=' + obj.coe_i_id + '"><strong>';
			    text += obj.libelle;
			    text += '</strong></a>';
			    if (obj.numero == "") {
					text += obj.rue + "<br />" + obj.cp + " " + obj.ville;
				}
				else {
					text += obj.numero + " " + obj.rue + "<br />" + obj.cp + " " + obj.ville;
				}
				text += '</p>';
			    
				this.openExtInfoWindow(map, "crt_window", text);
			});
			
			GEvent.addListener(marker, "click", function() {
				window.location.replace('/index.php?coe_i_id=' + obj.coe_i_id);
			});

			map.addOverlay(marker);
		}
		
		/* Modifié par Pierre-Louis LAUNAY le 09/01/2009, Centre la carte sur la moyenne des latitudes et longitudes 
		    des 13 points marqués sur la carte. */
		latitude = 0;
		longitude = 0;
		for (var i = 0; i < datas.length; i++) {
		    
		    latitude = latitude + Number(datas[i].latitude);
		    longitude = longitude + Number(datas[i].longitude);
		    
			var latlng = new GLatLng(datas[i].latitude, datas[i].longitude);
			new createMarker(latlng, datas[i], i);
			rectangle.extend(latlng);
		}
		
        // map.setCenter(new GLatLng((latitude / i), (longitude / i)), map.getBoundsZoomLevel(rectangle));
        map.setCenter(new GLatLng(datas[0].latitude, datas[0].longitude), map.getBoundsZoomLevel(rectangle) - 1);
	}
}

