// 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    -->


	 // Clifford's Tower
	var point = new GPoint(-1.080598, 53.956016);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/england/images/york/cliffords-tower-75.jpg'><b>Clifford's Tower</b></a><br><br>A 13th-century tower built by Henry III, Clifford's Tower was the site of a tragic end to Jewish riots in 1190.</div>","Clifford's Tower");
		 
		 // Margaret Clitherow Shrine
	var point = new GPoint(-1.080093, 53.959254);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/york-margaret-clitherow-shrine.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/england/york-clitherow-shrine-pictures/thumbs/eos_c_027.jpg'><b>Margaret Clitherow Shrine</b></a><br><br>A tiny medieval house on the Shambles, the Shrine of Margaret Clitherow is dedicated to a Catholic housewife who died as a martyr in York in 1586.</div>","Margaret Clitherow Shrine");
	
		 			 
		 // St. Mary's Abbey
	var point = new GPoint(-1.080598, 53.962455);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/york-st-marys-abbey.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/england/images/york/st-marys-abbey-75.jpg'><b>St. Mary's Abbey</b></a><br><br>St Mary's was once the largest and richest Benedictine establishment in the north of England and the abbots were amongst some of the wealthiest landowners. It now lies in ruins that date mostly from the 13th century.</div>","St. Mary's Abbey");
		 
		 // St. Olave's Church
	var point = new GPoint(-1.090264, 53.961476);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/england/images/york/st-olaves-ext-75.jpg'><b>St. Olave's Church</b></a><br><br>An 11th-century church built in honor of St. Olaf, King of Norway.</div>","St. Olave's Church");
	
	
	// York Minster
	var point = new GPoint(-1.082368, 53.96231);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/york-minster.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/england/images/york/york-minster-75.jpg'><b>York Minster</b></a><br><br>The largest Gothic cathedral north of the Alps - and if that isn't enough, its  Great East Window is the largest area of medieval painted glass in the world (the size of a tennis court).<br><br><a href='http://www.sacred-destinations.com/england/york-minster.htm'>Article</a> | <a href='http://www.sacred-destinations.com/england/york-minster-pictures/index.htm'>Photos</a></div>","York Minster");
		 
	
	// 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;
    }

	//]]>