﻿//<![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">Row &amp; Sons Ltd</span></div>';   
                if (GBrowserIsCompatible()) 
                {
                    var map = new GMap2(document.getElementById("map"));
                    map.addControl(new GLargeMapControl());
                    map.addControl(new GMapTypeControl());
                    map.setCenter(new GLatLng(51.949231, 1.056611),15);
                    map.setMapType(G_HYBRID_MAP);
                    var marker = new GMarker(new GLatLng(51.949213, 1.056613));
                    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)
        {
        
        }
    }

//]]>
