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>Distance</strong>: 3.2 Km. <br><strong>Reachable</strong>: on foot in about 45 minutes, by Baia Blu shuttle bus 15 minutes, by public transport 18 mins, by car with a special ZTL pass  in 15 mins.<br>"+
								  "<strong>To see</strong>: The old town, the walk along the sea front.";
				
				//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>Distance</strong>: 0.8 Km.  <br><strong>Reachable</strong>: on foot in 15 min, by Baia Blu shuttle bus 5 min, by public transport 5 min, by car with a special ZTL pass  in 5 min.<br>"+
								  "<strong>To see</strong>: The old town. The walk from “Castle to Castle” .";
				
				//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>Distance</strong>: 7.4 Km. <br><strong>Reachable</strong>: by Baia Blu shuttle bus 25 min, by public transport  35 min, by car ( paying car parks) 20 min.<br>"+
								  "<strong>Time needed</strong>:2 hours<br>"+
								  "<strong>To see</strong>: The part of the  village on the sea.";
				
				//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>Distance</strong>: 21.5 Km. <br><strong>Reachable</strong>: By  public transport 1 hour, by car (paying car parks)  40 min, by boat from Lerici 30 min.<br>"+
								  "<strong>Time needed</strong>: half a day<br>"+
								  "<strong>To see</strong>: The Church of St.Peter, the village on the sea.";
				
				//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>Distance</strong>: 22.5 Km. <br>While staying at the Baia Blu you can easily take part in day trips to the Cinque Terre. The residence bus makes three weekly trips to the <a href=\"http://www.navigazionegolfodeipoeti.it\" target=\"_blank\" class=\"testolink\">boats</a>  which run from Lerici, and take you via sea to the characteristic cliff villages or you can choose to go by <a href=\"http://orario.trenitalia.com/b2c/TimeTable?stazin=la+spezia&stazout=riomaggiore&datag=09&datam=01&dataa=2009&timsh=22&timsm=32&x=20&y=13&lang=en&nreq=5&channel=tcom\" target=\"_blank\" class=\"testolink\">train</a> , which in just 15 minutes from La Spezia station will take you to the first of the five villages, Riomaggiore. In both cases a single family ticket will allow you to get on and off each means of transport to "+
								  "visit all of the 5 villages. Our bus will pick you up on your return either from the train station or from the little harbour.";
				
				//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>Distance</strong>: 107.7 Km. <br><strong>Reachable</strong>: Train (Genoa Principe) 1h 15 min, Car 1h 20 min<br>"+
								  "<strong>Time needed</strong>: a day<br>"+
								  "<strong>To see</strong>: Old Port, Historical centre, La Lanterna, C.Colombo’s House, Villa Serra Park, St.Lorenzo Cathedral, 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>Distance</strong>: 123.6 Km. <br><strong>Reachable</strong>: Train 2h 15 min, by car 1h 25 min<br>"+
								  "<strong>Time needed</strong>: A day<br>"+ 
								  "<strong>To see</strong>: The Cathedral, The Baptistery, The Ducale Park, The Regio Theatre, try the local food!";
				
				//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>Distance</strong>: 67.2 Km. <br><strong>Reachable</strong>: Train 1hour, Car 50 min<br>"+
								  "<strong>Time needed</strong>: A day<br>"+ 
								  "<strong>To see</strong>: P.zza Dei Miracoli: The Duomo, The Baptistery, The Leaning Tower of Pisa, The Camposanto, Piazza of  Cavalieri, The Cavalieri  Palace and the Church of Santo Stefano dei Cavalieri, The Palace 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>Distance</strong>: 68.8 Km. <br><strong>Reachable</strong>: Train 1h 20 min, Car 50 min<br>"+
								  "<strong>Time needed</strong>: A day<br>"+ 
								  "<strong>To see</strong>: The Walls, Piazza San Michele, Duomo di San Martino, San Frediano Church, Guinigi Tower, Piazza Anfiteatro, National Museum 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>Distance</strong>: 138 Km. <br><strong>Reachable</strong>: Train (Florence Santa Maria Novella) 2h 15 min. Car 1h 40 min<br>"+
								   "<strong>Time needed</strong>: A day<br>"+ 
								   "<strong>To see</strong>: Il Palazzo della Signoria, Palazzo Vecchio, Ponte Vecchio, Palazzo Pitti, The Uffizi Art Gallery , Duomo di Santa Maria del Fiore, San Giovanni Baptistery.";
				
				//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>Distance</strong>: 8,1 km.  <br><strong>Reachable</strong>: by Baia Blu shuttle bus 30 min, by public transport 30 min, by car 20 min.<br>"+
								   "<strong>Time needed</strong>: half a day<br>"+
								   "<strong>To see</strong>: The Fortress at Sarzanello, Fortress Firmafede or \"Citadel\", I Torrioni, St. Maria Cathedral, The church of  St. 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>Distance</strong>: " + direction.getDistance()['meters']/1000 + " Km. ";
				});*/
		}
				
		function UnloadTrip()
		{
			if(!loaded)
			{
				direction.clear();
				map.setCenter(markers[0].getLatLng(), 14);
			}
		}
		
		function LoadLocalita(num)
		{
			document.getElementById("name").innerHTML = descriptions[num];
			initLightbox();
		}