// 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    -->
	
	
	
		 // Baptistery of St. John
	var point = new GPoint(0.348617,46.579509);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-baptistere-st-jean.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/ext-c-jaufre-rudel.jpg'><b>Baptistery of St. John</b></a><br><br>This baptistery was built around 360 AD, making it the oldest church in France. It was expanded in the 6th century, decorated with frescoes in the 12th century, and is now a museum.</div>","Baptist&egrave;re St-Jean");
	
		 // Cathedrale St-Pierre
	var point = new GPoint(0.349454,46.580318);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/facade-cc-kentishman-c.jpg'><b>Poitiers Cathedral</b></a><br><br>The twin-towered Cathedrale St-Pierre was founded in 1162 and completed much later. It is not famed for its architecture, but it does have an attractive Gothic west front, long nave and some early stained glass.</div>","Cath&eacute;drale St-Pierre");
	
		 // Eglise Notre-Dame-la-Grande
	var point = new GPoint(0.343977,46.583266);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-notre-dame-la-grande.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/west-front-c-paradox.jpg'><b>Notre-Dame-la-Grande</b></a><br><br>This is a magnificent Romanesque-Byzantine church of the 11th and 12th centuries, with a facade covered in carvings of biblical scenes.</div>","Notre-Dame-la-Grande");
	
		 // Eglise St-Germain
	var point = new GPoint(0.343575,46.587041);
	createMarker(point,"<div id=bubble><b>Eglise St-Germain</b><br><br></div>","St-Germain");
	
		 // Eglise St-Hilaire-le-Grand
	var point = new GPoint(0.332626,46.577352);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-st-hilaire-le-grand-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/apse-c-jaufre-rudel.jpg'><b>Eglise St-Hilaire-le-Grand</b></a><br><br>Built in the 11th century, St-Hilaire has a fine apse surrounded by chapels, wall paintings in the choir, and several carved capitals. It is a World Heritage Site as part of the Routes to Santiago de Compostela in France.</div>","St-Hilaire-le-Grand");
	
		 // Eglise St-Jean-de-Montierneuf
	var point = new GPoint(0.345436,46.589276);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-st-jean-de-montierneuf-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/montierneuf-apse-c-jaufre-rudel.jpg'><b>St-Jean-de-Montierneuf</b></a><br><br>This 11th-century church on the north side of town originally belonged to a Benedictine monastery. The exterior features a Romanesque apse topped with a Gothic chancel and flying buttresses.</div>","St-Jean-de-Montierneuf");
	
		 // Eglise Ste-Radegonde
	var point = new GPoint(0.352002,46.579822);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/poitiers-ste-radegonde-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/poitiers/thumbs/capital2-c-jaufre-rudel.jpg'><b>Eglise Ste-Radegonde</b></a><br><br>This Romanesque and Gothic church dates mostly from the 11th century, but is built over a much earlier church. It contains the ancient tomb of the town's patroness, St. Radegunda, along with some fine painted capitals.</div>","Ste-Radegonde");
	
	
	
	// 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;
    }

	//]]>