// 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    -->
	
	 
		 
		 // Basilica of the Holy Blood
	var point = new GPoint(3.227212,51.208913);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/bruges-basilica-of-holy-blood.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/bruges/thumbs/bruges-holy-blood-c-brugge-be.jpg'><b>Basilica of the Holy Blood</b></a><br><br>This beautiful 12th-century basilica on Burg Square houses a very sacred relic - a vial said to contain the coagulated blood of Christ, collected at the crucifixion by Joseph of Arimathea.</div>","Basilica of the Holy Blood");
	
				 
		 // Cathedral
	var point = new GPoint(3.221548,51.205566);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/bruges-holy-savior-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/bruges/thumbs/from-belfry-cc-mark-bridge.jpg'><b>Cathedral of the Holy Savior</b></a><br><br>This fine 12th-century church only received its designation as a cathedral in 1834. The tower was accordingly raised, in a sensitive Romanesque style, to surpass the nearby Church of Our Lady.</div>","Cathedral");
		 
		 // Church of Our Lady
	var point = new GPoint(3.224659,51.204638);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/bruges-church-of-our-lady.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/bruges/thumbs/madonna-cc-jaystar68.jpg'><b>Church of Our Lady</b></a><br><br>Built from the 13th to 15th centuries, the Onze-Lieve-Vrouwekerk has a soaring spire that can be seen for miles around. And inside is a great treasure: the only sculpture by Michaelangelo outside Italy.</div>","Church of Our Lady");
	
	
	// 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;
    }

	//]]>