function initialize() {
			if (GBrowserIsCompatible()) {        
				trip = document.getElementById("trip");
				map = new GMap2(document.getElementById("map_canvas"));
				map.enableScrollWheelZoom();
				map.enableDoubleClickZoom(); 
				map.setMapType(G_SATELLITE_MAP); 
				
				direction = new GDirections(map);
				
				//Baia
				markers[0] = new GMarker(new GLatLng(44.08627109343041, 9.887325167655945));
				//Lerici
				markers[1] = new GMarker(new GLatLng(44.07599365217522, 9.911727905273437));
				//Santerenzo
				markers[2] = new GMarker(new GLatLng(44.08362386926242, 9.89769458770752));
				//Tellaro
				markers[3] = new GMarker(new GLatLng(44.05820911594999, 9.930503368377686));
				//Portovenere
				markers[4] = new GMarker(new GLatLng(44.053544319820425, 9.834823608398438));
				//Cinqueterre
				markers[5] = new GMarker(new GLatLng(44.09966723628639, 9.739551544189453));
				//Genova
				markers[6] = new GMarker(new GLatLng(44.41024041296011, 8.933944702148438));
				//Parma
				markers[7] = new GMarker(new GLatLng(44.81350585216505, 10.3326416015625));
				//Pisa
				markers[8] = new GMarker(new GLatLng(43.72397112179614, 10.397872924804688));
				//Lucca
				markers[9] = new GMarker(new GLatLng(43.84888895466102, 10.509109497070312));
				//Firenze
				markers[10] = new GMarker(new GLatLng(43.77431664623901, 11.2554931640625));
				//Sarzana
				markers[11] = new GMarker(new GLatLng(44.11273296805247, 9.959793090820312));
				
				//Load testi
				//Baia
				descriptions[0] = "Il nostro Residence.";
				
				//Lerici
				descriptions[1] = "<img src=\"img/1.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Lerici</strong><br><strong>Distanza</strong>: 3.2 Km. Circa<br><strong>Raggiungibile in</strong>: a piedi 45 min, con servizio navetta residence 15 min, in autobus 18 min, in auto con  apposito pass ZTL 15 min.<br>"+
								  "<strong>Da non perdere</strong>: il borgo, la passeggiata sul mare.";
				
				//Santerenzo
				descriptions[2] = "<img src=\"img/2.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Santerenzo</strong><br><strong>Distanza</strong>: 0.8 Km. Circa <br><strong>Raggiungibile in</strong>: a piedi 15 min, con servizio navetta residence 5 min, in autobus 5 min, in auto con  apposito pass ZTL 5 min.<br>"+
								  "<strong>Da non perdere</strong>: il borgo, la passeggiata \"da castello a castello\".";
				
				//Tellaro
				descriptions[3] = "<img src=\"img/3.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Tellaro</strong><br><strong>Distanza</strong>: 7.4 Km. Circa<br><strong>Raggiungibile in</strong>: servizio navetta residence 25 min, in autobus 35 min, in auto parcheggio a pagamento 20 min.<br>"+
								  "<strong>Da visitare in</strong>: 2 ore<br>"+
								  "<strong>Da non perdere</strong>: il borgo sul mare.";
				
				//Portovenere
				descriptions[4] = "<img src=\"img/4.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Portovenere</strong><br><strong>Distanza</strong>: 21.5 Km. Circa<br><strong>Raggiungibile in</strong>: autobus 1 ora, in auto parcheggio a pagamento 40 min, in battello da Lerici 30 min.<br>"+
								  "<strong>Da visitare in</strong>: mezza giornata<br>"+
								  "<strong>Da non perdere</strong>: La Chiesa di S.Pietro, il borgo marinaro.";
				
				//Cinqueterre
				descriptions[5] = "<img src=\"img/cinque-terre.jpg\" alt=\"Cinque Terre: Riomaggiore, Manarola, Corniglia, Vernazza e Monterosso\"><br>"+
								  "<a href='img/mappa-5-terre.jpg' rel='lightbox'><img src='img/mappa-5-terre.jpg' width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;\"></a><strong>Distanza</strong>: 22.5 Km. Circa<br>Soggiornando a Baia Blu RTA avrete la possibilita di comodi collegamenti per gite giornaliere alle 5 terre. Il pulmino del residence effettua tre corse settimanali verso l'imbarcazione ai <a href=\"http://www.navigazionegolfodeipoeti.it\" target=\"_blank\" class=\"testolink\">battelli</a>  che da Lerici vi porteranno ai caratteristici paesini arroccati sul mare. Oppure potrete scegliere il collegamento via <a href=\"http://orario.trenitalia.com/b2c/TimeTable?stazin=la+spezia&stazout=riomaggiore&datag=03&datam=12&dataa=2008&timsh=11&timsm=55&lang=it&nreq=5&channel=tcom&x=32&y=13\" target=\"_blank\" class=\"testolink\">treno</a> che in soli 15 minuti dalla stazione di La Spezia vi porterà alla prima delle 5 terre, Riomaggiore."+
								  " In entrambi i casi un unico biglietto famiglia vi permetterà di salire e scendere dai mezzi per visitare tutti 5 i paesi."+
								  " Il pulmino verrà a riprendervi alla stazione o al porticciolo al rientro della vostra gita.";
				
				//Genova
				descriptions[6] = "<img src=\"img/6.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Genova</strong><br><strong>Distanza</strong>: 107.7 Km. Circa<br><strong>Raggiungibile in</strong>: Treno (Genova Principe) 1h 15 min Auto 1h 20 min<br>"+
								  "<strong>Da visitare in</strong>: una giornata<br>"+
								  "<strong>Da non perdere</strong>: Porto Antico, Centro storico, La Lanterna, Casa di C.Colombo, Parco Villa Serra, Cattedrale di S.Lorenzo, Palazzo Ducale.";
				
				//Parma
				descriptions[7] = "<img src=\"img/7.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Parma</strong><br><strong>Distanza</strong>: 123.6 Km. Circa<br><strong>Raggiungibile in</strong>: Treno (Parma) 2h 15 min Auto 1h 25 min<br>"+
								  "<strong>Da visitare in</strong>: una giornata<br>"+ 
								  "<strong>Da non perdere</strong>: La Cattedrale, Il Battistero, Il Parco Ducale, Il Teatro Regio, gustate la gastronomia locale!";
				
				//Pisa
				descriptions[8] = "<img src=\"img/8.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Pisa</strong><br><strong>Distanza</strong>: 67.2 Km. Circa<br><strong>Raggiungibile in</strong>: Treno 1h Auto 50 min<br>"+
								  "<strong>Da visitare in</strong>: una giornata<br>"+ 
								  "<strong>Da non perdere</strong>: P.zza Dei Miracoli: Il Duomo, Il Battistero, La Torre di Pisa, Il Camposanto, Piazza dei Cavalieri, il Palazzo dei Cavalieri e la Chiesa di Santo Stefano dei Cavalieri, il Palazzo dell’Orologio.";
				
				//Lucca
				descriptions[9] = "<img src=\"img/9.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Lucca</strong><br><strong>Distanza</strong>: 68.8 Km. Circa<br><strong>Raggiungibile in</strong>: Treno 1h 20 min Auto 50 min<br>"+
								  "<strong>Da visitare in</strong>: una giornata<br>"+ 
								  "<strong>Da non perdere</strong>: Le Mura, Piazza San Michele, Duomo di San Martino, Chiesa di San Frediano, Torre Guinigi, Piazza Anfiteatro, Museo Nazionale di Villa Guinigi.";
				
				//Firenze
				descriptions[10] = "<img src=\"img/10.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Firenze</strong><br><strong>Distanza</strong>: 138 Km. Circa<br><strong>Raggiungibile in</strong>: Treno (Firenze Santa Maria Novella) 2h 15 min Auto 1h 40 min<br>"+
								   "<strong>Da visitare in</strong>: una giornata<br>"+ 
								   "<strong>Da non perdere</strong>: Il Palazzo della Signoria, Palazzo Vecchio, Ponte Vecchio, Palazzo Pitti, La Galleria degli Uffizi, Duomo di santa Maria del Fiore, Il Battistero di san Giovanni.";
				
				//Sarzana
				descriptions[11] = "<img src=\"img/11.jpg\" width=\"120\" height=\"90\" border=\"0\" align=\"left\" style=\"margin-right:4px;margin-bottom:50px;\"><strong>Sarzana</strong><br><strong>Distanza</strong>: Distanza: 8,1 km. Circa <br><strong>Raggiungibile in</strong>: servizio navetta residence 30 min, in autobus 30 min, in auto 20 min.<br>"+
								   "<strong>Da visitare in</strong>: mezza giornata<br>"+
								   "<strong>Da non perdere</strong>: Fortezza di Sarzanello, Fortezza Firmafede o \"Cittadella\", I Torrioni, Cattedrale S. Maria, Chiesa di S. Andrea.";
				
				map.addControl(new GSmallMapControl);
				map.addControl(new GHierarchicalMapTypeControl);
				//map.addControl(new GOverviewMapControl);
				map.setCenter(new GLatLng(44.081296371988685, 9.901599884033203), 14);
				
				map.addOverlay(markers[0]);
				
				GEvent.addListener(markers[0], "click", function() {
  					var myHtml = "baia";
					map.openInfoWindowHtml(markers[0].getLatLng(), myHtml);
				});
				
			}    
		}
		
		function LoadTrip(num)
		{
			direction.load("from: "+markers[0].getLatLng().lat()+","+markers[0].getLatLng().lng()+" to: "+markers[num].getLatLng().lat()+","+markers[num].getLatLng().lng());
		
			/*GEvent.addListener(direction, "addoverlay", function() {
  					document.getElementById("meters").innerHTML = "<strong>Distanza</strong>: " + direction.getDistance()['meters']/1000 + " Km. Circa";
				});*/
		}
				
		function UnloadTrip()
		{
			if(!loaded)
			{
				direction.clear();
				map.setCenter(markers[0].getLatLng(), 14);
			}
		}
		
		function LoadLocalita(num)
		{
			document.getElementById("name").innerHTML = descriptions[num];
			initLightbox();
		}