	// A function to create the marker and set up the event window
	function createMarker(pointcoord,html,image) {
	html = "<div class=\"window\">" + html + "<\/div>";
		var marker = new GMarker(pointcoord,image);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html,{ maxWidth : '140', maxHeight: '120', autoScroll: 'true' } );
		});
		//GInfoWindowOptions.maxWidth
		return marker;
	}

	// This function picks up the click and opens the corresponding info window
	function myclick(i) {
		gmarkers[i].openInfoWindowHtml(htmls[i]);
	}
