// 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    -->
	
		 
		 // Exeter Cathedral
	var point = new GPoint(-3.529948,50.722506);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/exeter-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/exeter-cathedral-pictures/thumbs/d-1882.jpg'><b>Exeter Cathedral</b></a><br><br>The 13th-century Exeter Cathedral is a beautiful example of the Decorated Gothic style.</div>","Exeter Cathedral");
		 
		
		 // St Mary Arches
	var point = new GPoint(-3.533797,50.722318);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/exeter-st-mary-arches-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/exeter/thumbs/h-5768.jpg'><b>St. Mary Arches</b></a><br><br>This parish church in the city center is named for the fine Norman arches of its nave, which are rare survivals in Devon. It contains the monuments of many mayors of Exeter from the Middle Ages.</div>","St. Mary Arches");
	
		 // St Mary Steps
	var point = new GPoint(-3.53473,50.719896);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/exeter-st-mary-steps-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/exeter/thumbs/d-1927.jpg'><b>St. Mary Steps</b></a><br><br>St. Mary Steps is a Late Gothic parish church with some Norman remains. Located just inside the Roman city wall near the old west gate, it is best known for the interesting old clock on its tower.</div>","St. Mary Steps");
	
	
		 // St. Nicholas Priory
	var point = new GPoint(-3.534991,50.721818);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/exeter-st-nicholas-priory.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/exeter/thumbs/h-5755.jpg'><b>St. Nicholas Priory</b></a><br><br>St. Nicholas Priory in Exeter is an 11th-century Benedictine monastery used as a merchant's house after the Dissolution. Only the refectory and west range survive, which are currently being renovated for reopening as a Tudor museum.</div>","St. Nicholas Priory");
	
	
	// 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;
    }

	//]]>