var map;
var gdir;
var geocoder = null;
var addressMarker;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("mappa"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(43.082555,10.540253), 15, G_HYBRID_MAP);
var marker = new GMarker(new GLatLng(43.082555,10.540253))
map.addOverlay(marker);
marker.openInfoWindowHtml("Il Cardellino
Via del Cardellino, 55 - 57027 San Vincenzo (LI)");
gdir = new GDirections(map, document.getElementById("directions"));
}
}
function setDirections(fromAddress) {
locale="it";
gdir.load("from: " + fromAddress + " to: 43.082555,10.540253");
}