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);


gtext [0]='<p><img src="http://www.gruppogiannone.it/immagini/loghi/gruppogiannone.jpg" title="Sede di Modica" alt="Sede di Modica" width="149" height="84" 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, "marker1.png");
        icons["topix"].IconSize = new GSize(19, 32);
        }
        else
		{
		icons["topix"] = new GIcon(G_DEFAULT_ICON, "marker2.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;
        }
 
  }
