function initialize(hotel) {
	
	var map;
	if (GBrowserIsCompatible()) {
		var mapOptions = {
			googleBarOptions : {
				style : "new"
			}
		}
		

		// Configuration map
		map = new GMap2(document.getElementById("map"), mapOptions);
		var point = new GLatLng(45.744741,4.8258); 
		map.setCenter(point, 13);	
		map.setUIToDefault();
		map.enableGoogleBar();
		
				
		
		//  ======== 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";
		      }
		
		var tolink = "<a target=\"blank\" href=\"http://www.google.com/maps?source=uds&daddr=varzi+%40" + point.lat() + "%2C" + point.lng() + "&iwstate1=dir%3Ato&hl=it\">a qui</a>"
		var fromlink = "<a target=\"blank\" href=\"http://www.google.com/maps?source=uds&daddr=varzi+%40" + point.lat() + "%2C" + point.lng() + "&iwstate1=dir%3Afrom&hl=it\">da qui</a>"
		
		

		
		/* Creates a marker at the given point with the given number label
		********************************
		SETTAGGI MAPPA CON PIU' HOTELS 
		******************************** */
		function createMarker(point, number) {  
		var marker = new GMarker(point);  GEvent.addListener(marker, "click", 
			function() {
				if (number==2) {
				marker.openInfoWindowHtml("<b>Hôtel du Pré</b><br>10, rue Pierre Sémard 75009 PARIS<br>Tél : +33(0)1 42 81 37 11<br>Fax : +33(0)1 40 23 98 28");
				}
				if (number==3) {
				marker.openInfoWindowHtml("<b>Relais du Pré</b><br>16, rue Pierre Sémard 75009 Paris<br>Tél. : +33 (0)1 42 85 19 59<br>Fax : +33 (0)1 42 85 70 59");
				}
				if (number==4) {
				marker.openInfoWindowHtml("<b>Résidence du Pré</b><br>15, rue Pierre Sémard 75009 Paris<br>Tél. : +33 (0)1 48 78 26 72<br>Fax : +33 (0)1 42 80 64 83");
				}
				if (number==5) {
				marker.openInfoWindowHtml("<b>Maison du Pré</b><br>88, rue de Maubeuge 75010 Paris<br>Tél. : +33 (0)1 48 78 36 22<br>Fax : +33 (0)1 48 78 25 14");
				}
			});  
		return marker;
		}
		
		if (hotel==2) {
			var point = new GLatLng(48.877961,2.346386);  
			map.addOverlay(createMarker(point, 2));
		} else if (hotel==3)  {	
			var point = new GLatLng(48.878038,2.347577);  
			map.addOverlay(createMarker(point, 3));
		} else if (hotel==4) {
			var point = new GLatLng(48.87873,2.348628);  
			map.addOverlay(createMarker(point, 4));
		} else {
			var point = new GLatLng(48.879111,2.350216);
			map.addOverlay(createMarker(point, 5));
			// ALL HOTELS
			/*var point = new GLatLng(45.74598,4.823716);  
			map.addOverlay(createMarker(point, 1));
			
			var point = new GLatLng(45.766209,4.831806);  
			map.addOverlay(createMarker(point, 2));
			
			var point = new GLatLng(45.744741,4.8258);  
			map.addOverlay(createMarker(point, 3));*/
		}
	}
}



$(function() {
	
});

$(window).unload( function () { 
	GUnload();
} );

