// 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 of St Martin
	var point = new GPoint(0.683051,47.392953);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/tours-basilica-st-martin.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/tours/thumbs/ext-cc-tomoyoshi.jpg'><b>Basilica of St Martin</b></a><br><br>This neo-Byzantine basilica stands on the site of previous churches built over the tomb of St. Martin of Tours. Next to it are two Romanesque towers and a Renaissance cloister surviving from the earlier basilica.</div>","Basilica of St Martin");
	
		 // Cath&eacute;drale St-Gatien 
	var point = new GPoint(0.694424,47.395698);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/tours-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/tours/thumbs/cathedral-facade2-cc-julien-h.jpg'><b>Cath&eacute;drale St-Gatien</b></a><br><br>Dedicated to the first bishop of Tours, this mostly-Gothic cathedral was built at a leisurely pace from 1170 to 1547. It features elaborately decorated west towers and 13th-century stained glass.</div>","Cathedrale St-Gatien");
	
		 // St-Julien
	var point = new GPoint(0.687343,47.395938);
	createMarker(point,"<div id=bubble><b>St-Julien</b><br><br>A Benedictine church, whose monastic buildings are home to two museums: one to wine and one to artisans.</div>","St-Julien");
	
	
	// 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;
    }

	//]]>