// 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    -->

		 // Luther Geburtshaus
	var point = new GPoint(11.549935, 51.526895);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-luthers-geburtshaus-birth-house.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>Luther's Birth House</b></a><br><br>Martin Luther was born in this half-timbered house in 1483. First opened to the public in 1693, it was the first memorial museum in Germany.</div>","Luther's Birth House");
		 
		 // Luther Monument
	var point = new GPoint(11.546304, 51.5283);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-luther-monument.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/luther-monument-c-photomaven.jpg'><b>Luther Monument</b></a><br><br>A large, Romantic-era statue of Martin Luther in the middle of Eisleben's main square. The four sides of the base are adorned with bas-relief scenes of his life.</div>","Luther Monument");	 
		 
		 // Luthers Sterbehaus
	var point = new GPoint(11.543519, 51.528093);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-luthers-sterbehaus-death-house.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/sterbehause-bedroom-cc-skomp.jpg'><b>Luther's Death House</b></a><br><br>Here Martin Luther spent the last weeks of his life after falling ill during a brief trip to his hometown. Luther's death mask and the gilded Communion cup he used as pastor are among the displays.</div>","Luther's Death House");
	
	 // Andreaskirche
	var point = new GPoint(11.545011, 51.52848);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-andreaskirche-andreas-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/st-peter-and-paul-c-photomaven.jpg'><b>Andreaskirche</b></a><br><br>Martin Luther preached his last sermons in this Gothic hall church on the main square. The pulpit is preserved in its original place, the altarpiece is a fine example of late Gothic art.</div>","St. Andreas Church");
		
		// St. Anne's Church
	var point = new GPoint(11.53697, 51.529105);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-st-annen-anne-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/st-anne-nc-offic.jpg'><b>St. Anne's Church</b></a><br><br>In 1523, this became the first church in the county to officially embrace Protestantism. It is dedicated to Anne, the patron saint of miners (Luther's father's profession).</div>","St. Anne's Church");
	
		 	 
		 // St Peter and Paul
	var point = new GPoint(11.548862, 51.526375);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/eisleben-peter-and-paul-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/eisleben-pictures/thumbs/church3-cc-skomp.jpg'><b>St Peter and Paul</b></a><br><br>Here Martin Luther was baptized on 11 November 1483. It contains two fine Gothic altarpieces. </div>","St Peter and Paul");
		 
		
	
	
	// 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;
    }

	//]]>
