// 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    -->
	
		 // Cologne Cathedral
	var point = new GPoint(6.958466,50.941488);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/cologne-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/cologne-cathedral-photos/thumbs/ext-west-cc-conspirito.jpg'><b>Cologne Cathedral</b></a><br><br></div>","Cologne Cathedral");
	
		 // St. Aposteln Church
	var point = new GPoint(6.94495,50.9365);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Aposteln Church</b></a><br><br>This large church towers over the busy Neumarkt area. The lofty Romanesque interior is decorated with abstract modern murals.</div>","St. Aposteln Church");
	
	// St. Cecilia Church
	var point = new GPoint(6.95175,50.9346);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/cologne-st-cecilia-schnutgen-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/cologne-st-cecilia-photos/thumbs/IMG_7384.JPG'><b>St. Cecilia Church and Museum</b></a><br><br>Built in 1130-60 as a house for noble canonesses, it later became an Augustinian convent. Today the church shelters the Schnütgen Museum, an excellent collection of medieval religious art.</div>","St. Cecilia Church");
	
		 // St. Gereon
	var point = new GPoint(6.945891,50.943266);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/cologne-st-gereon.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/cologne-st-gereon/thumbs/177.jpg'><b>St. Gereon Church</b></a><br><br>Built in the 11th and 13th centuries, St. Gereon has an unusual decagonal-shaped nave topped with a great dome. It houses numerous medieval murals, rare Romanesque mosaics, and the tomb of St. Gereon.</div>","St. Gereon Church");
		 
		 // St Kunibert Church
	var point = new GPoint(6.962585,50.946788);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St Kunibert Church</b></a><br><br>A landmark along the Rhine, St. Kunibert dates from the 13th century.</div>","St Kunibert Church");
		 
		 // St. Maria im Kapitol
	var point = new GPoint(6.95838,50.9346);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/cologne-st-maria-im-kapitol.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/cologne-st-maria-kapitol-photos/thumbs/IMG_0509.JPG'><b>St. Maria im Kapitol</b></a><br><br>Built over the site of a Roman temple, the plan of the 11th-century church echoes that of the Church of the Nativity in Bethlehem.</div>","St. Maria im Kapitol");
	
		 // St. Pantaleon Church
	var point = new GPoint(6.94808,50.9285);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/cologne-st-pantaleon.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/cologne-st-pantaleon-photos/thumbs/IMG_0756.JPG'><b>St. Pantaleon Church</b></a><br><br>Dedicated to a Greek martyr and built over the ruins of a Roman villa, the present building dates from the 10th century.</div>","St. Pantaleon Church");
	
		 // St. Ursula Church
	var point = new GPoint(6.954442,50.945788);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Ursula Church</b></a><br><br>The church of St. Ursula (1135) stands on the site of a Roman graveyard. Legend has it that St. Ursula, patron saint of Cologne, was martyred here with her 11,000 virgin companions in about 451.</div>","St. Ursula 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;
    }

	//]]>