// 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    -->
	
		 	 	
		// Kaiserdom
	var point = new GPoint(8.360016,49.63013);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-cathedral-wp.jpg'><b>Worms Cathedral (Kaiserdom)</b></a><br><br>Built 1125-81, this towering cathedral is considered one of the finest examples of High Romanesque architecture in Germany. It also has splendid Romanesque and Gothic carvings, a gilded Baroque altar, and an eerie crypt.</div>","Cathedral (Kaiserdom)");
		
		 // Dreifaltigkietskirche
	var point = new GPoint(8.361894,49.630012);
	createMarker(point,"<div id=bubble><b>Dreifaltigkietskirche</b><br><br>The Trinity Church was built in the Baroque period and was modernized after being burnt out in WWII.</div>","Dreifaltigkietskirche");
	
		 // Heylshofgarten
	var point = new GPoint(8.359534,49.63104);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-heylshofgarten.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-luther-stood-here-plaque-mikereed.jpg'><b>Heylshofgarten</b></a><br><br>The Imperial Palace where Luther stood his ground and was declared an outlaw in 1521 was destroyed in 1689. The site is occupied by the Heylshofgarten, where a plaque commemorates the great Reformation event.</div>","Diet of Worms Site");

		
		 // Jewish Cemetery
	var point = new GPoint(8.3555,49.629658);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-jewish-cemetery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-cemetery-cc-micha-moongate.jpg'><b>Jewish Cemetery</b></a><br><br>In the southwest corner of the walled city of Worms is the Heiliger Sand, the oldest Jewish cemetery in Europe. The green, peaceful grounds are home to hundreds of twisted and sunken tombstones, some more than 900 years old.</div>","Jewish Cemetery");

	
		 // Luther Monument
	var point = new GPoint(8.360065,49.632323);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-luther-monument.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-luther-memorial-mikereed-350.jpg'><b>Luther Monument</b></a><br><br>Erected in 1868 and funded by Lutherans around the world, this is the largest Reformation monument ever built. Situated in a purpose-built park, it includes statues of Luther, his contemporaries and his forerunners.</div>","Luther Monument");
	
		 // Magnuskirche
	var point = new GPoint(8.358428,49.628803);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-magnuskirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/magnuskirche-cc-robert-scarth.jpg'><b>Magnuskirche</b></a><br><br>Originally a small Carolingian church built in the 8th and 9th centuries, the Church of St. Magnus has since been rebuilt and expanded. It was the first church in this region to convert to Protestantism.</div>","Magnuskirche");
	
		 // Martinskirche
	var point = new GPoint(8.363289,49.633243);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-martinskirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/martinskirche-cc-robert-scarth.jpg'><b>Martinskirche</b></a><br><br>Made of striking red sandstone, St. Martin\'s Church is a former collegiate church. It dates from the 12th century and is one of several fine Romanesque churches of Worms.</div>","Martinskirche");
	
		 // Pauluskirche
	var point = new GPoint(8.366057,49.630707);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-pauluskirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-pauluskirche-cc-robert-scarth.jpg'><b>Pauluskirche</b></a><br><br>This 11th-century Romanesque Dominican church of rough sandstone looks like a miniature of Worms Cathedral. The exotic dome appears was inspired by Crusaders\' descriptions of Middle Eastern architecture.</div>","Pauluskirche");
	
	 
		 // Synagogue
	var point = new GPoint(8.366309,49.633625);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/worms-jewish-quarter.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/worms-synagogue-c-planetware.jpg'><b>Synagogue</b></a><br><br>Before World War II, Worms had one of the oldest Jewish communities in Germany. Today it is home to a rebuilt Romanesque synagogue, an old mikveh, and a Jewish museum.</div>","Synagogue");
	
	// 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;
    }

	//]]>