// 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    -->
	
		
		 // Bonner M&uuml;nster
	var point = new GPoint(7.099721,50.733495);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/bonn-muenster.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/bonn/munster/resized/IMG_6982-75.jpg'><b>Bonner M&uuml;nster</b></a><br><br>A towering Romanesque basilica of harmonious proportions, which stands over an ancient shrine to the martyrs Cassius and Florentius.</div>","Bonner M&uuml;nster");
	
		 // Rheinisches Landesmuseum
	var point = new GPoint(7.092705,50.732067);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/bonn-rheinisches-landesmuseum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/bonn-rheinisches-museum-photos/thumbs/1159c.jpg'><b>Rheinisches Landesmuseum</b></a><br><br>Reopened in 2003, this museum's collection includes a wondrous variety of religious treasures  from the local Rhineland region, including Germanic, Roman, Christian (from Late Antiquity to the Renaissance) and Jewish art.</div>","Rheinisches Landesmuseum");
	
		 // Doppelkirche Schwarzrheindorf
	var point = new GPoint(7.11498,50.7507);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/bonn-schwarzrheindorf-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/bonn/munster/resized/IMG_6365-75.jpg'><b>Doppelkirche Schwarzrheindorf</b></a><br><br>This Romanesque double church in Schwarzrheindorf, an eastern suburb of Bonn, was completed in 1151. Its exterior is colorfully painted and its interior vault is covered in medieval murals.</div>","Schwarzrheindorf Church");
	
	
	// 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;
    }

	//]]>