			

   /*         function aff(){
                alert(liste_adr);
            }*/

			var map;
			var geocoder;
			
			var j = 1;

			function creerPoint(address, nom, id) {
				map = new GMap2(document.getElementById("carte_neuf"));
				
				map.addControl(new GLargeMapControl());
				map.addControl(new GMapTypeControl());
				
				geocoder.getLatLng(
				address,
					function(point) {
						if (!point) {
							map.setCenter(new GLatLng(45.3539, 5.4256), 14);
							var marker = new GMarker(point);
							map.addOverlay(marker);

							GEvent.addListener(marker, "click", function() {
							//	marker.openInfoWindowHtml("<p>"+nom+"</p><br /><br /><a href='annonce.php?id="+id+"' style='color:#285577; margin-left:40px;'>->Voir l'annonce</a>");
								j++;
							});
						} else {
                            map.setCenter(point, 15);
                            var marker = new GMarker(point);
                            map.addOverlay(marker);
                            marker.openInfoWindowHtml("<p style='padding-top:5px;'>"+address+"</p>");
                           }

					}
				);
			}

			function load() {
				/*if (GBrowserIsCompatible()) {*/
					map = new GMap2(document.getElementById("carte_neuf"));
					//Objet permettant de trouver un point ? partir d'une adresse
					geocoder = new GClientGeocoder();

					//ajout du petit menu de navigation ? gauche
					//map.addControl(new GLargeMapControl());
					
					map.setCenter(new GLatLng(45.3539, 5.4256), 14);


                    //Création de mini icones
                    var icon = new GIcon();
                    icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
                    icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
                    icon.iconSize = new GSize(12, 20);
                    icon.shadowSize = new GSize(22, 20);
                    icon.iconAnchor = new GPoint(6, 20);
                    icon.infoWindowAnchor = new GPoint(5, 1);
                    icon.infoShadowAnchor = new GPoint(18, 25);
                    
					//ajoute le menu permettant de mettre en mode carte/satellite ou mixte
				/*	map.addControl(new GMapTypeControl());
					map.setMapType(G_NORMAL_MAP); // Vue carte
					map.setMapType(G_SATELLITE_MAP); // Vue satelite
					map.setMapType(G_HYBRID_MAP); // Vue mixte*/
                    
					for (i=0;i<liste_adr.length;i++){
						creerPoint(liste_adr[i][0], liste_adr[i][0], liste_adr[i][2]);
					}
                    
					
				/*}*/
			}
			
/*			function chargement() {
				document.getElementById('chargement').style.display = "none";
			}*/
