/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function load() {
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.384765,-2.349883), 15);
        // Our info window content
        var infoTabs = [
        new GInfoWindowTab("We are here!", "The Orangery,<br />93a Sydney Place,<br />Bath, Somerset,<br />BA2 6NE, UK.<br /><br /><i>Click on 'Photo' tab above<br />to see a picture of the entrance</i>"),
        new GInfoWindowTab("Photo", "<img src='ourfrontdoor.jpg' border='0' height='130' width='200'>")
        ];

        // Place a marker in the center of the map and open the info window
        // automatically
        var marker = new GMarker(map.getCenter());
        GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowTabsHtml(infoTabs);
        });
        map.addOverlay(marker);
        marker.openInfoWindowTabsHtml(infoTabs);
    }
}
