function addGMapOverlays(map) {
 var punti = new Array(); 
 var gtext = new Array();

map.setCenter( new GLatLng(36.837196702497614, 14.759429097175598), 16);

map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

 punti [0]= new GLatLng (36.837196702497614, 14.759429097175598);
 punti [1]= new GLatLng (36.7227530207635, 14.828399419784546);


gtext [0]='<p><img src="http://www.gruppogiannone.it/immagini/modica.jpg" title="Sede di Modica" alt="Sede di Modica" width="295" height="180" border="0" /></p>';
gtext [1]='<p><img src="http://www.gruppogiannone.it/immagini/pozzallo.jpg" title="Sede di Pozzallo" alt="Sede di Pozzallo" width="295" height="180" border="0" /></p>';
	// Generate Overlays
       for (i=0; i<punti.length; i++){
            var marker = createMarker(punti[i],gtext[i]);
            map.addOverlay (marker);
            // Add Routes
       }

       function createMarker(point, html) {
        //var marker = new GMarker(point);
		// definisco un array chiamato icons.
        var icons = [];
        // assegna alla variabile icons["topix"] tramite
        // la funzione GIcon l'immagine "miaicona.png"
        //(che è presente nella stessa directory del sorgente).
        if (point==punti[1] || point==punti[41])
        {
        icons["topix"] = new GIcon(G_DEFAULT_ICON, "new_marker2.png");
        icons["topix"].IconSize = new GSize(19, 32);
        }
        else
		{
		icons["topix"] = new GIcon(G_DEFAULT_ICON, "new_marker.png");
        icons["topix"].IconSize = new GSize(19, 32);	
		} 
        // invio alla funzione che crea il Marker come secondo
        // valore la variabile dell'icona
		
        var marker = new GMarker(point,icons["topix"]);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
      
        return marker;
        }
 
  }