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

		
		 // Aegidienkirche
	var point = new GPoint(11.031593, 50.978689);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/kramerbrucke-from-aegidienkirche-tower-wc-gfdl.jpg'><b>Aegidienkirche</b><br><br>Built in the early 14th century, this church on the east end of the Kramerbrucke claims to be the oldest Methodist church in the world. You can climb the church's tower for an aerial view of the city and especially the Kramerbrucke.</div>","Aegidienkirche");
		
		 
		 // Augustinerkloster
	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>Augustinerkloster</b></a><br><br>The main stop on the Luther Trail in Erfurt is this Augustinian monastery where Luther lived as a monk during his turbulent, formative years in 1505-11. </div>","Augustinerkloster");
	
		
	
	
	 // Barfüsserkirche (Blackfriars' Church)
	var point = new GPoint(11.030231, 50.975548);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/barfuesserkirche2-nc-martin-adler.jpg'><b>Barfüsserkirche (Blackfriars)</b><br><br>This large Franciscan church was almost completely destroyed by WWII bombs. The nave remains in ruins but the restored choir has its 13th-century stained glass windows of St. Francis and medieval artifacts.</div>","Barfüsserkirche");
		 
		 // Dom (St. Mary's Cathedral)
	var point = new GPoint(11.023664, 50.975866);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/erfurt-dom-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/dom-east-cc-greenery.jpg'><b>Dom (St. Mary's Cathedral)</b></a><br><br>This Gothic cathedral (with Romanesque parts) is an impressive cathedral that uses its unique sloping site to full advantage. Inside are many important art masterpieces.</div>","Dom St Marien");
		 
	 // Kleine Synagoge
	var point = new GPoint(11.030445, 50.978034);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/kleine-synagogue-nc.jpeg'><b>Kleine Synagoge</b><br><br>This small building of 1840 is the oldest undamaged synagogue left in Germany. It now houses an exhibition on Erfurt's Jews.</div>","Kleine Synagoge"); 
	
	 // Lutherdenkmal (Luther Monument) 
	var point = new GPoint(11.035498, 50.977065);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/lutherdenkmal-cc-hadar.jpg'><b>Luther Monument</b><br><br>As in every German town that can boast a connection with Martin Luther, Erfurt has a nice Luther Monument, standing outside the Kaufmannskirche near Anger Square.</div>","Luther Monument");
	
	// Michaelskirche (St. Michael's Church)
	var point = new GPoint(11.028171, 50.979318);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/michaeliskirche-nc.JPG'><b>Michaelskirche</b><br><br>This early Gothic church was the main church of the University of Erfurt, and Luther preached here several times. Today it is known for its impressive organ.</div>","Michaelskirche");
	
		  // Predigerkirche
	var point = new GPoint(11.028847, 50.976487);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/erfurt-predigerkirche-dominican.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/predigerkirche-cc-oliworx.jpg'><b>Predigerkirche</b></a><br><br>This was once a Dominican priory, but since the Reformation has been Erfurt's main Protestant church. Meister Eckhart was a friar here.</div>","Predigerkirche");
	
		 // Severikirche (St. Severus Church)
	var point = new GPoint(11.022516, 50.976062);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/erfurt-severikirche-st-severus.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-pictures/thumbs/severikirche-sarc-wc-gfdl.jpg'><b>Severikirche</b></a><br><br>Located next door to the Dom, this smaller church has a distinctive triple-towered east end and a celebrated monumental tomb by the Master of St. Severus.</div>","Severikirche");
	
	 
	
	
	
	 // Krämerbrucke
	var point = new GPoint(11.030853, 50.978683);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/erfurt-city-pictures/thumbs/kramerbrucke-january2-c-debra.jpg'><b>Krämerbrucke</b><br><br>The Krämerbrucke (Merchants' Bridge) is a colorful shop-lined bridge over the small River Gera that evokes the Ponte Vecchio in Florence. It is thought to be the oldest inhabited bridge in Europe.</div>","Krämerbrucke");
	
	
	// 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;
    }

	//]]>