// 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    -->
	
		 // Coburg
	var point = new GPoint(10.966667, 50.266667);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='5' align='left' src=''><b>Coburg Fortress</b><br><br>This well-preserved medieval fortress is where Martin Luther hid while his delegate Melancthon drew up the Augsburg Confession. It is also the birthplace of Albert, husband of Queen Victoria.</div>","Coburg");	
	
	// Eisenach
	var point = new GPoint(10.31992, 50.973998);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisenach.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/eisenach-lutherhaus2-cc-ludens.jpg'><b>Eisenach</b></a><br><br>Luther lived in the <a href='http://www.sacred-destinations.com/germany/eisenach-lutherhaus.htm'>Lutherhaus</a> as a schoolboy with the Cotta family from 1498 to 1501; he sang in the choir at <a href='http://www.sacred-destinations.com/germany/eisenach-georgenkirche.htm'>Georgenkirche</a>. <br><br>Later in life, Luther hid out in <a href='http://www.sacred-destinations.com/germany/eisenach-wartburg-castle.htm'>Wartburg Castle</a> disguised as Knight George while translating the Bible into German.<br><br> <a href='http://www.sacred-destinations.com/germany/eisenach.htm'>Eisenach Main Page</a> | <a href='http://www.sacred-destinations.com/germany/eisenach-map.htm'>Eisenach Map</a></div>","Eisenach");	 
	
		 
	 // Eisleben
	var point = new GPoint(11.549935, 51.526895);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/geburtshaus-cc-skomp.jpg'><b>Eisleben</b></a><br><br>Martin Luther was born in a half-timbered house in Eisleben in 1483 and by chance he also died here. <br><br>You can visit Luther's <a href='http://www.sacred-destinations.com/germany/eisleben-luthers-geburtshaus-birth-house.htm'>birth house</a>, his <a href='http://www.sacred-destinations.com/germany/eisleben-luthers-sterbehaus-death-house.htm'>death house</a> (where his plaster death mask is on display), the church in which he was <a href='http://www.sacred-destinations.com/germany/eisleben-peter-and-paul-church.htm'>baptized</a> and the church where he preached his <a href='http://www.sacred-destinations.com/germany/eisleben-andreaskirche-andreas-church.htm'>last sermon</a>.<br><br> <a href='http://www.sacred-destinations.com/germany/eisleben.htm'>Eisleben Main Page | <a href='http://www.sacred-destinations.com/germany/eisleben-map.htm'>Eisleben Map</a> | <a href='http://www.sacred-destinations.com/germany/eisleben-pictures/index.htm'>Eisleben Photo Gallery</a></div>","Eisleben");
	
	  // Erfurt
	var point = new GPoint(11.03008, 50.981445);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/erfurt-augustinerkloster.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/augustinerkloster-church-c-ethan-judi-stock.jpg'><b>Erfurt</b></a><br><br>This charming medieval town is where Luther went to university and lived as a monk. You can visit Luther's monastic cell in the Augustinerkloster, where he nearly killed himself with austeries trying to earn God's forgiveness.</div>","Erfurt");
	
		 // Leipzig
	var point = new GPoint(12.371979, 51.341765);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/leipzig.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Leipzig</b></a><br><br>Here on June 27 and July 16, 1519, Martin Luther debated with John Eck. This led to the Papal ban of June 15, 1520.</div>","Leipzig");
	
	
	
	 // Wittenberg
	var point = new GPoint(12.652522, 51.863914);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/wittenberg.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/wittenberg-pictures/thumbs/lutherhaus-lutherstube-cc-skomp.jpg'><b>Wittenberg</b></a><br><br>Wittenberg is where Luther lived most of his life. The main attraction here is the Castle Church, where Luther sparked the Reformation by posting his famous 95 Theses. The house where Luther and his family lived is well-preserved and full of Reformation relics, including Luther's desk, his pulpit, and first editions of his books. A few doors down is Melanchthon's house, and just out of town is the Luther Oak, where Luther cowered during a thunderstorm and vowed to become a monk if he survived.</div>","Wittenberg");
	
	
		 
		 // Worms
	var point = new GPoint(8.356819, 49.632507);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-dom-cc-sexy-josy.jpg'><b>Worms</b></a><br><br>Here the Imperial Council passed judgment on Luther in 1521. In 1521, Luther appeared before the Holy Roman Emperor at the Imperial Diet of Worms and refused to recant his beliefs. Though the building where this occurred no longer stands, a plaque marks the spot and there is a grand Reformation memorial nearby.</div>","Worms");
	
		 
		
		 
		
	
	
		 	
		 	 
	
	
	// 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;
    }

	//]]>