//<![CDATA[

var map = null;
var geocoder = null;
var icon = null;

function load_map()
{
	if (GBrowserIsCompatible())
	{
		map = new GMap2(document.getElementById("map"));
   		
   		point = new GLatLng(40.88276075997924, 14.116830825805664);
   		
   		map.setCenter(point, 13);
   		map.addControl(new GLargeMapControl());
   		//map.addControl(new GMapTypeControl());
   		map.enableContinuousZoom();

		marker = new GMarker(point);
		infoTabs = [ new GInfoWindowTab("Info", "<div style=\"width:180px; height:auto; text-align: center\">Via Masullo n.76 80010 Quarto (NA)<br /><br />Ottieni indicazioni da:<br /><form action=\"http://maps.google.it/maps\" target=\"vp\"><input type=\"text\" name=\"saddr\" /><input type=\"submit\" value=\"vai\" /><input name=\"daddr\" value=\"Via Masullo, 80010 Quarto (NA), Italy (Consorzio Operatori Centro Commerciale Quarto Nuovo)\" type=\"hidden\" /></form></div>")];
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});

		map.addOverlay(marker);
		marker.openInfoWindowTabsHtml(infoTabs);
		
		//GEvent.addDomListener(document.getElementById("map"), "DOMMouseScroll", wheelZoom); // Firefox
		//GEvent.addDomListener(document.getElementById("map"), "mousewheel",     wheelZoom); // IE
	}
}


function wheelZoom(a)
{
  if (a.detail) // Firefox
  {
    if (a.detail < 0)
    { map.zoomIn(); }
    else if (a.detail > 0)
    { map.zoomOut(); }
  }
  else if (a.wheelDelta) // IE
  {
    if (a.wheelDelta > 0)
    { map.zoomIn(); }
    else if (a.wheelDelta < 0)
    { map.zoomOut(); }
  }
}
    //]]>



