﻿//<![CDATA[
    function mapLoad() 
    {
        try
        {
            var theURL = document.URL
            if (theURL.indexOf("contactUs.html") > -1) //as long as page is contactUs
            {
                var WINDOW_HTML = '<div class="googleMapInfoBox"><span class="googleMapInfoBoxBold">Millers Catering Equipment</span></div>';   
                if (GBrowserIsCompatible()) 
                {
                    var map = new GMap2(document.getElementById("map"));
                    map.addControl(new GLargeMapControl());
                    map.addControl(new GMapTypeControl());
                    map.setCenter(new GLatLng(51.41505339509653, -0.1755237579345703),15);
                    map.setMapType(G_HYBRID_MAP);
                    var marker = new GMarker(new GLatLng(51.41373569970998, -0.1735569387292862));
                    map.addOverlay(marker);
                    GEvent.addListener(marker, "click", function() {
                    marker.openInfoWindowHtml(WINDOW_HTML);
                    });
                    marker.openInfoWindowHtml(WINDOW_HTML);
                }
            }
        }
        catch(e)
        {
            
        }
    }

    
    function mapUnload()
    {
        try
        {
            var theURL = document.URL
            if (theURL.indexOf("contactUs.html") > -1) //as long as page is contactUs
            {
                if (typeof(GUnload) == "function")
                {
                    GUnload();
                }
            }
        }
        catch(e)
        {
        
        }
    }

//]]>