// 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    -->
	
	
		 
		 // Abbaye Saint-Martin-d'Ainay
	var point = new GPoint(4.827198, 45.753616);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-abbey-st-martin-d-ainay.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/abbey-st-martin-c-lyon-france.jpg'><b>Abbaye Saint-Martin-d'Ainay</b></a><br><br>This Romanesque Benedictine monastery is home to Lyon's oldest church, dating from 1107.</div>","Abbaye St-Martin-d'Ainay");
		 
		 // Amphithéâtre des Trois Gaules
	var point = new GPoint(4.830487, 45.770674);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-amphitheater-three-gauls.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-amphitheater-trois-gaules-c-lyonfr.jpg'><b>Amphithéâtre des Trois Gaules</b></a><br><br>Constructed around 20 BC, this amphitheater was the site of martyrdom of St. Blandine and other early Christians.</div>","Amphithéâtre des Trois Gaules");
		 
		 // Basilique Notre-Dame-de-Fourviere
	var point = new GPoint(4.822419, 45.762149);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-basilique-notre-dame-de-fourviere.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-basilica-back2-cc-koguro.jpg'><b>Basilique Notre-Dame-de-Fourviere</b></a><br><br>Built in the 1870s as an expression of the Church's power and wealth, this Baroque-style basilica shares much in common, both historically and architecturally, with the Basilique Sacre-Coeur in Paris.</div>","Basilique Notre-Dame-de-Fourviere");
		 
		 // Cathédrale Saint-Jean
	var point = new GPoint(4.827332, 45.760727);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-cathedrale-st-jean.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-facade-cc-blueinkal.jpg'><b>Cathédrale Saint-Jean</b></a><br><br>This church with a stout facade is the seat of the highest-ranking archbishop in France. Built from 1180 to 1480, it combines both Romanesque and Gothic styles.</div>","Cathédrale Saint-Jean");
		 
		 // Église Saint Bruno des Chartreux
	var point = new GPoint(4.822333, 45.770868);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-eglise-st-bruno.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-eglise-st-bruno-c-objectiflyon.jpg'><b>Église Saint Bruno des Chartreux</b></a><br><br>St. Bruno is a Carthusian monastery church, built in 1584 to accommodate monks travelling to the Grand Chartreuse near Grenoble, France.</div>","Église Saint Bruno des Chartreux");
		 	 
		 // Église Saint Irénée
	var point = new GPoint(4.813417, 45.755139);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-eglise-st-irenee.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-eglise-st-irenee-hj.jpg'><b>Église Saint Irénée</b></a><br><br>This modest church marks the burial place of the early Christian leader St. Irenaeus (125-202), Bishop of Lyon. His tomb was destroyed in the Reformation, but the crypt can still be seen.</div>","Église Saint Irénée");
		 
		 // Église Saint Nizier
	var point = new GPoint(4.833663, 45.764694);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-eglise-st-nizier.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-eglise-st-nizier-c-objectiflyon.jpg'><b>Église Saint Nizier</b></a><br><br>This Flamboyant Gothic church was built during the 14th and 15th centuries to commemorate the martyrs of Lyon. Further additions were made to the grand church over the centuries.</div>","Église Saint Nizier");
		 
		 // Église Saint Polycarpe
	var point = new GPoint(4.833673, 45.770097);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-eglise-st-polycarp.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-eglise-st-polycarp-objectiflyon.jpg'><b>Église Saint Polycarpe</b></a><br><br>The Church of St. Polycarp was built as an abbey church for Oratorian monks in 1670. It was dedicated to Polycarp, an early Christian martyr who knew the Apostle John and taught St. Ireneaus of Lyon.</div>","Église Saint Polycarpe");
		 
		 // Grande Synagogue
	var point = new GPoint(4.82781, 45.75704);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-grande-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-synagogue-front-cc-maria-noland.jpg'><b>Grande Synagogue</b></a><br><br>Lyon's synagogue was built in 1864 on the site of a former salt storehouse.</div>","Grande Synagogue");
		 
		 // Mosquée de Lyon (Grand Mosque)
	var point = new GPoint(4.890375, 45.736897);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-mosque-nc.jpg'><b>Mosquée de Lyon (Grand Mosque)</b></a><br><br>Lyon's mosque was built in the 1990s in a modern style by Lyon architects and funded in large part by the king of Saudi Arabia. Regular guided tours are available.</div>","Mosquée de Lyon");
	
		 // Théâtres Romains de Fourvière
	var point = new GPoint(4.819522, 45.759619);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/lyon-roman-theaters.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/lyon-theater-cc-thefunkyman.jpg'><b>Théâtres Romains de Fourvière</b></a><br><br>Ruins of an ancient Roman complex including a theater (the oldest in France), an odeum, and a temple dedicated to Cybele.</div>","Théâtres Romains de Fourvière");
	
	
	// 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;
    }

	//]]>