function initialize() {
	var map;
	if (GBrowserIsCompatible()) {
		var mapOptions = {
			googleBarOptions : {
				style : "new"
			}
		}
		map = new GMap2(document.getElementById("map"), mapOptions);
		var point = new GLatLng(41.867643341764655, 12.492012977600098); 
		map.setCenter(point, 16);	
		map.setUIToDefault();
		map.enableGoogleBar();
		map.setMapType(G_SATELLITE_MAP);
		
		//  ======== Add a map overview ==========
		      map.addControl(new GOverviewMapControl(new GSize(200,200)));

		      //  ======== A function to adjust the positioning of the overview ========
		      function positionOverview(x,y) {
		        var omap=document.getElementById("map_overview");
		        omap.style.left = x+"px";
		        omap.style.top = y+"px";

		        // == restyling ==
		        omap.firstChild.style.border = "1px solid gray";
		        omap.firstChild.firstChild.style.left="4px";
		        omap.firstChild.firstChild.style.top="4px";
		        omap.firstChild.firstChild.style.width="190px";
		        omap.firstChild.firstChild.style.height="190px";
		      }


			//01
			var point01 = new GLatLng(41.86858611252329, 12.491004467010498);		
			var marker01 = new GMarker(point01);
			var html01 = '<h4 class="sml">01. Ostiense</h4><p class="sml">Via Capitan Bavastro, 62 scala B - 4° piano - int.11 - 00154 - Roma</p>';
			map.addOverlay(marker01);
			GEvent.addListener(marker01, "click", function() {
			 marker01.openInfoWindowHtml(html01);
			});

			//02
			var point02 = new GLatLng(41.86685, 12.488708);		
			var marker02 = new GMarker(point02);
			var html02 = '<h4 class="sml">03. Ostiense</h4><p class="sml">Circonvallazionene Ostiense, 212 scala B - pianoterra - int. 1 - 00154 - Roma</p>';
			map.addOverlay(marker02);
			GEvent.addListener(marker02, "click", function() {
			 marker02.openInfoWindowHtml(html02);
			});
		
			// 03,04,05
			var point03 = new GLatLng(41.868661, 12.491671);		
			var marker03 = new GMarker(point03);

			var tabs_array = [ 
				new GInfoWindowTab("03. Ostiense", '<h4 class="sml">03. Ostiense</h4><p class="sml">Via Capitan Bavastro n. 80 scala b int. 15 - 5° piano - 00154 - Roma</p>' ),
				new GInfoWindowTab("04. Ostiense", '<h4 class="sml">04. Ostiense</h4><p class="sml">Via Capitan Bavastro n. 80 scala b int. 15 - 5° piano - 00154 - Roma</p>' ),
				new GInfoWindowTab("05. Ostiense", '<h4 class="sml">05. Ostiense</h4><p class="sml">Via Capitan Bavastro n. 80 scala b int. 15 - 5° piano - 00154 - Roma</p>' )			
			];
			//markerYellow.openInfoWindowTabsHtml(tabs_array);		
			map.addOverlay(marker03);

			GEvent.addListener(marker03, "click", function() {
				marker03.openInfoWindowTabsHtml(tabs_array);		
			});	

		
				
				
	}
}


$(function() {
	initialize();
});

$(window).unload( function () { 
	GUnload();
} );
