﻿// JScript File
function loadGoogleMap()
{
    // make sure the browser is compatible with Google maps
    if (GBrowserIsCompatible())
    {
        // get a handle to our map div
        var map = new GMap2(document.getElementById("map"));
        // see Google Maps API for info on these calls
        map.addControl(new GLargeMapControl ());
        map.addControl(new GScaleControl ());
        map.addControl(new GOverviewMapControl ());
        map.addControl(new GMapTypeControl());
        // center the map on Madrid
        //map.setCenter(new GLatLng(45.49245366296978,12.247300297021865), 19);
        map.setCenter(new GLatLng(45.492417,12.247206), 19);
        map.setMapType(G_HYBRID_MAP);
        // add an info window to tell the user what's there!
        map.openInfoWindowHtml(map.getCenter(), "<b>Nautimare</b><br /><br />Via Zanotto, 5<br />30173, Mestre(VE)");
        map.addOverlay(new GMarker(map.getCenter()));        
        
    }
}

function loadGoogleMapMagazzino()
{
    // make sure the browser is compatible with Google maps
    if (GBrowserIsCompatible())
    {
        // get a handle to our map div
        var map = new GMap2(document.getElementById("map"));
        // see Google Maps API for info on these calls
        map.addControl(new GLargeMapControl ());
        map.addControl(new GScaleControl ());
        map.addControl(new GOverviewMapControl ());
        map.addControl(new GMapTypeControl());
        // center the map on Madrid
        //map.setCenter(new GLatLng(45.49245366296978,12.247300297021865), 19);
        map.setCenter(new GLatLng(45.415744,12.153937), 17);
        map.setMapType(G_HYBRID_MAP);
        // add an info window to tell the user what's there!
        map.openInfoWindowHtml(map.getCenter(), "<b>Magazzino Nautimare</b><br /><br />Via Molino Giare 13/H<br />30034, Mira(VE)");
        map.addOverlay(new GMarker(map.getCenter()));
    }
}


