// 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    -->
	 
		 	 
		 // Cathedral
	var point = new GPoint(4.401484,51.220392);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/antwerp-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/antwerp/thumbs/view-groenplaats-cc-mel-kots.jpg'><b>Antwerp Cathedral</b></a><br><br>Built from 1352 to 1520, Antwerp's magnificent Gothic cathedral is the pride of the city. It is the largest church in the Low Countries and houses four original Rubens masterpieces.</div>","Cathedral of Our Lady");
		 	 
	// Hollandse Synagogue
	var point = new GPoint(4.396988,51.207838);
	createMarker(point,"<div id=bubble><b>Hollandse Synagogue</b><br><br></div>","Hollandse Synagogue");
	
		 // St. Carolus Borromeus
	var point = new GPoint(4.404729,51.221044);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/antwerp-st-carolus-borromeus-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/antwerp/thumbs/jesuit-church-cc-benidormone.jpg'><b>St. Carolus Borromeus Church</b></a><br><br>Built 1615-21 by the Jesuits, this very Baroque church was partially designed by Peter Paul Rubens. Its splendid facade and opulent interior have earned it the nickname &quot;Marble Temple.&quot;</div>","St. Carolus Borromeus");
	
		 // St. Jacobskerk
	var point = new GPoint(4.410743,51.220184);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/belgium/antwerp-st-james-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/belgium/images/antwerp/thumbs/st-jacobs-sat-img-779ft.jpg'><b>St. Jacobskerk</b></a><br><br>Originally an inn for pilgrims on the road to Santiago, this parish church was greatly enlarged by wealthy merchants in 1491. It is best known for sheltering the tomb of the artist Peter Paul Rubens.</div>","St. Jacobskerk");
		 
		 // Sint Pauluskerk
	var point = new GPoint(4.401387,51.22397);
	createMarker(point,"<div id=bubble><b>Sint Pauluskerk</b><br><br></div>","Sint Pauluskerk");
	
	// 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;
    }

	//]]>