// 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    -->
	
		 		 
		 // King's College Chapel
	var point = new GPoint(0.116408,52.204911);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cambridge-kings-college-chapel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cambridge-kings-chapel-cc-mags-d.jpg'><b>King\'s College Chapel</b></a><br><br>This Late Gothic chapel is famed for its fine architecture, its rare early 16th-century windows, exquisite fan vaulting, a Renaissance wooden screen, and Rubens altarpiece.</div>","King\'s College Chapel");
	
		 
		 // Round Church
	var point = new GPoint(0.118881,52.208382);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cambridge-round-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cambridge-round-church.jpg'><b>Round Church</b></a><br><br>The Round Church (officially the Church of the Holy Sepulchre) was built around 1130, making it one of the oldest buildings in Cambridge. It is one of only four medieval round churches in England. </div>","Round Church");
		 
		 // St. Mary's University Church
	var point = new GPoint(0.118302,52.205375);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cambridge-st-marys-university-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cambridge-st-mary-church.jpg'><b>St. Mary\'s University Church</b></a><br><br>Built 1478-1519, Great St. Mary\'s (as it is also called) is the principal parish church of the city of Cambridge as well as the university church. It played a significant role in the history of the English Reformation.</div>","St. Mary\'s University 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;
    }

	//]]>