// Java Document

 //<![CDATA[
 
 // Begin Javascript
var gmarkers = [];
var htmls = [];
function myclick(i) {
gmarkers[i].openInfoWindowHtml(htmls[i]);
}
    function onLoad() {
      // Map Overlays
      //
      
	  // This function picks up the click and opens the corresponding info window
// Creates one a small marker at the given point
function createMarker(point, attributeHTMLString, name) {
  var marker = new GMarker(point, icon);
  map.addOverlay(marker);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(attributeHTMLString);
  });
  // save the info we need to use later for the sidebar
  gmarkers[i] = marker;
  htmls[i] = attributeHTMLString;
  // add a line to the sidebar html
  sidebar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
        i++;
        return marker;
}



      // Create small marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

<!--    begin pulling data    -->
	
		 	 

	
		 // Basilica
	var point = new GPoint(3.748784,47.466455);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/vezelay.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/vezelay-facade-cc-nodomain-cc.jpg'><b>Basilique Ste-Madeleine</b></a><br><br>Vézelay is known primarily for the Basilica of St. Mary Magdalene, one of the largest and best-preserved Romanesque churches in Europe. It was a major medieval pilgrimage destination due to its claim to have the relics of St. Mary Magdalene, and was also the site at which St. Bernard of Clairvaux preached the Second Crusade. </div>","Basilique Ste-Madeleine");
	
	
		 // Theodore Beza's House
	var point = new GPoint(3.744167,47.464722);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/vezelay-beza-house.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/theodore-beza-house-c-a-travers.jpg'><b>Theodore Beza's House</b></a><br><br>A small plaque marks the house in Vézelay where John Calvin's right-hand man was born in 1519. </div>","Theodore Beza's House");
	
		
	
	// Create small marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_white.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);


		
	
	 // put the assembled sidebar_html contents into the sidebar div
    document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>