var addressCity = "via trieste, villafranca di verona, italy";
var map = null;
var geocoder = null;
var htmlCode = null;

function loadMap() {
	if (GBrowserIsCompatible()) {

		var icon = new GIcon();
		icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(12, 20);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);

		map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());

		geocoder = new GClientGeocoder();

		geocoder.getLatLng(
			addressCity,
			function(point) {
				if (point) {
					map.setCenter(point, 4);
					var marker = new GMarker(point, icon);
					map.addOverlay(marker);
				}
			}
		);
	}
}
