// 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    -->
	
	 
	
			 // Antwerp
	var point = new GPoint(4.446716,51.224948);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/antwerp.htm'><b>Antwerp</b></a><br><br></div>","Antwerp"); 
	
		 // Brussels
	var point = new GPoint(4.364662,50.844105);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/brussels.htm'><b>Brussels</b></a><br><br></div>","Brussels"); 
	
		 // Banneux
	var point = new GPoint(5.739541,50.541254);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/banneaux-marian-shrine.htm'><b>Banneux</b></a><br><br></div>","Banneux Shrine");
	 
		 // Ghent
	var point = new GPoint(3.727,51.0530);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/ghent-cathedral-st-bavo.htm'><b>Ghent Cathedral</b></a><br><br></div>","Ghent Cathedral");
	
	// Tournai Cathedral
	var point = new GPoint(3.388617,50.606652);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/tournai-cathedral-notre-dame.htm'><b>Tournai Cathedral</b></a><br><br></div>","Tournai Cathedral");
	 
	
	// 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;
    }

	//]]>