// Creates a marker at the given point with the given number label
function createMarker(point) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {
	marker.openInfoWindowHtml("The Cyclepath North York<br/>5330 Yonge St, North York, Canada<br/>(416) 512-2538<br/><a href=\'http://maps.google.ca/maps?f=q&hl=en&q=5330+Yonge+Street,+North+York&ie=UTF8&z=15&om=1&iwloc=addr' target=\'_parent\'>Link to Google Maps for Directions</a>");});
	return marker;
}//createMarker

//load creates the map and sets the marker to the location
function load() {
	if (GBrowserIsCompatible()) {
		//Sets up map and adds controls to the map
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(43.773489, -79.414138), 15);
	
		//adds marker to map
		var point = new GLatLng(43.773489, -79.414138);
		map.addOverlay(createMarker(point));
	}//if
}//load