// 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    -->
	
		 
		 // Cerne Abbas Giant
	var point = new GPoint(-2.475529, 50.813609);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cerne-abbas-giant.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cerne-abas-giant-c-sacredsites.jpg'><b>Cerne Abbas Giant</b></a><br><br>This intriguing chalk figure of a club-wielding naked man may be a drawing of a fertility god, Hercules... or Oliver Cromwell. No one knows when or why it was made.</div>","Cerne Abbas Giant");
		 
		 // Cerne Abbey
	var point = new GPoint(-2.475271, 50.810897);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cerne-abbas-abbey.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cerne-abbey.jpg'><b>Cerne Abbey</b></a><br><br>The village of Cerne Abbas owes its existence to this Benedictine abbey founded in 987 AD. Interesting parts like the Abbot's Hall and guest house still stand.</div>","Cerne Abbey");
		
		 		 // St. Augustine's Well
	var point = new GPoint(-2.473801, 50.810897);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cerne-abbas-augustines-well.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cerne-abbas-well.jpg'><b>St. Augustine's Well</b></a><br><br>A sacred well said to have been blessed by St. Augustine himself, and to have healing and fertility properties.</div>","St. Augustine's Well");
	
	 
		 // St. Mary's Church
	var point = new GPoint(-2.475464, 50.809426);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/cerne-abbas-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/cerne-abbas-church.jpg'><b>St. Mary's Church</b></a><br><br>This lovely parish church was founded around 1300 by the abbey, to provide the growing village of Cerne Abbas with a place of worship.</div>","St. Mary's 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;
    }

	//]]>