﻿// JScript File

//declare the Google map for use later
var map;

//set up the map when the page loads
function load(glat, glong, GoogleMapBubbleInfo) {



//if the Browser supports GoogleMaps create one in the map div and load in the RSS feed.
if (GBrowserIsCompatible()) {
        //create the map
        map = new GMap2(document.getElementById("map"));
        
        //create a point for the supplied coordinates
        var point = new GLatLng(glat, glong);
        map.setCenter(point, 15);

        //create and add a marker
        var marker = new GMarker(point);
        map.addOverlay(marker);
        
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(GoogleMapBubbleInfo);
        });
        
        //add some zoom controls etc.*/
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
      }
}

