// JavaScript Document

	function setupMap(mapCenterLocation, markerLocation, markerTitle, markerInfoContentsURL,zoomLevel){
		
				// Setup the map								
				var myOptions = {
					zoom: zoomLevel,
					center: mapCenterLocation,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				
				// Render map
				var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
				
				// Baloon Window				
				var infowindow = new google.maps.InfoWindow(
				{ content: '<iframe src ="' +  markerInfoContentsURL + '" width="220" height="130" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto"></iframe>',
					size: new google.maps.Size(220,120),
					pixelOffset: new google.maps.Size(0,12)
				});

				
				// Custom Marker Stuff
				var markerImage = new google.maps.MarkerImage('../../images/green/map-marker.png',
					// This marker is 113 pixels wide by 66 pixels tall.
					new google.maps.Size(113, 66),
					// The origin for this image is 0,0.
					new google.maps.Point(0,0),
					// The anchor for this image is the base of the graphic at 65,65.
					new google.maps.Point(56, 65)
				);
					
				var shadow = new google.maps.MarkerImage('../../images/green/map-marker-shadow.png',
					// The shadow image is larger in the horizontal dimension
					// while the position and offset are the same as for the main image.
					new google.maps.Size(147, 66),
					new google.maps.Point(0,0),
					new google.maps.Point(57, 65)
				);
				
				// Shapes define the clickable region of the icon.
				// The type defines an HTML <area> element 'poly' which
				// traces out a polygon as a series of X,Y points. The final
				// coordinate closes the poly by connecting to the first
				// coordinate.
				var shape = {
					coord: [111,36,62,48,56,65,50,48,2,38,2,18,38,9,81,9,112,20],
					type: 'poly'
				};
	
				var marker = new google.maps.Marker({
					position: markerLocation,
					map: map,
					shadow: shadow,
					icon: markerImage,
					shape: shape,
					title: markerTitle
				});

				google.maps.event.addListener(marker, 'click', function() {
					infowindow.open(map,marker);
				});
				
				infowindow.open(map,marker);
	}