﻿function initialize() {
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.2100, -1.4700), 13);                

        // Create our "finkley logo" marker icon
        var cafeIcon = new GIcon();
        cafeIcon.image = "img/logo_small.png";
        cafeIcon.iconSize = new GSize(60);
        cafeIcon.iconAnchor = new GPoint(28, 60);
        cafeIcon.infoWindowAnchor = new GPoint(5, 1);
        // Set up our GMarkerOptions object literal
        markerOptions = { icon: cafeIcon };
        var point = new GLatLng(51.2218, -1.4536);
        map.addOverlay(new GMarker(point, markerOptions));
     
    }
    
}
