function createMarker(point,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
      marker.openInfoWindowHtml(html);
    });
    return marker;
  }





function parkingMap() {
 if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map_canvas"));
	  
	var customUI = map.getDefaultUI(); // start Custom UI object
	customUI.controls.scalecontrol = false;
	customUI.maptypes.satellite = false;
	customUI.maptypes.hybrid  = false;
	customUI.maptypes.physical = false;
	customDirections = new GDirections
	
	map.setUI(customUI);
	
	map.setCenter(new GLatLng(42.274724,-83.734307), 16); // coords for SUAA
 
	//var point1 = new GLatLng(42.274724,-83.734307); // Coords for Parking Structure
	var point2 = new GLatLng( 42.274,-83.733095);
	 
	//point1html = "<span class='gmapmarker'><strong>South University Area Association</strong><br />Office Location. </span>"
	point2html ="<span class='gmapmarker'><strong>Forest Parking Deck, 650 S. Forest</strong><br />900 spaces<br /><a href='http://www.a2dda.org/parking__transportation/available_parking_spots/' rel='external'> Parking Spots available</a></span>"
	
	//map.addOverlay(createMarker(point1, point1html));    
	map.addOverlay(createMarker(point2, point2html));
	
	}
}

	









