// 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    -->
	
		 
		 // Bath Abbey
	var point = new GPoint(-2.359003, 51.381518);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/bath-abbey.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/bath-abbey-75.jpg'><b>Bath Abbey</b></a><br><br>Once a cathedral, this spectacular cream-colored edifice now serves as the parish church of Bath. The interior features glorious fan vaulting.</div>","Bath Abbey");
	
		 
		 // Roman Baths
	var point = new GPoint(-2.359775, 51.380935);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/bath-roman-baths.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/bath-baths-75.jpg'><b>Roman Baths</b></a><br><br>Dedicated to the Celtic-Roman goddess Sulis Minerva, these ancient Roman baths are still fed by a sacred hot spring. There is also a fine museum of artifacts from the site.</div>","Roman Baths");
	
	
	// 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);

	 
		 // Pump Room
	var point = new GPoint(-2.359657,51.381444);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/bath-pump-room-pictures/index.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/bath-pump-room-pictures/thumbs/P1000592.JPG'><b>The Pump Room</b></a><br><br>A historic and elegant place to enjoy what is perhaps the best afternoon tea in Britain.</div>","");
	
		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>