// 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    -->
	
		 		 
		 // National Gallery
	var point = new GPoint(-0.128494, 51.508949);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sacred-sites/images/da-vinci-movie/virgin-of-rocks-natl-gallery-75.jpg'><b>National Gallery</b><br><br>Examine Leonardo da Vinci's Virgin of the Rocks for hidden clues at London's famed National Gallery. The gallery is well worth a visit in person, but you can examine the painting and its layers in even greater detail on the gallery's <a href='http://www.nationalgallery.org.uk/collection/news/newsitems/da_vinci_code.htm'>official website</a>.</div>","National Gallery");
	
	
	 // Temple Church
	var point = new GPoint(-0.110442, 51.513186);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-temple-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/temple-church-photos/WebPhotosProFiles/custom/eos-166.jpg'><b>Temple Church</b></a><br><br>This 12th-century Norman church, famed for its rare round shape and its recent mention in the Da Vinci Code, was built by the Knights Templar and contains several fascinating details.<br><br><a href='http://www.sacred-destinations.com/england/london-temple-church.htm'>Article</a> | <a href='http://www.sacred-destinations.com/england/temple-church-photos/index.html'>Photo Gallery</a></div>","Temple Church");
	
		  // King's College
	var point = new GPoint(-0.113715, 51.511747);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-kings-college.htm'><img style='border-color:#666666' border='0' hspace='0' align='left' src='http://www.sacred-destinations.com/sacred-sites/images/da-vinci-code-movie/kings-college-readingroom-75.jpg'><b>King's College Religion Department</b></a><br><br>At the Strand campus of King's College, Robert and Sophie use state-of-the-art digital religious archives to search for clues to one of the cryptex's riddles. Find out how well this scene reflects reality.</div>","King's College");
	
		 
		 // Opus Dei
	var point = new GPoint(-0.188828, 51.510666);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Opus Dei Centre</b><br><br>Headquarters of Opus Dei in London, visited by Silas in chapter 93.<br><br><a href='http://www.opusdei.org.uk/'>Official Website</a></div>","Opus Dei Centre");
	
			 
		 // Westminster Abbey
	var point = new GPoint(-0.127044, 51.498122);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-westminster-abbey.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/westminster-abbey-towers-hj.jpg'><b>Westminster Abbey</b></a><br><br>This former abbey church is the national church of Britain, used for coronations and filled with important tombs and monuments.</div>","Westminster Abbey");
	
	
		
		 
	
	
	
	// 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;
    }

	//]]>