// 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    -->
		
		 
		 // Biblioteca Ambrosiana
	var point = new GPoint(9.185225,45.463171);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-biblioteca-ambrosiana.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-biblioteca-homily-commentary-john-chrystostom-end10thc-Greek-officsite.jpg'><b>Biblioteca Ambrosiana</b></a><br><br>Cardinal Borromeo\'s collection of over 30,000 manuscripts includes a 5th-century Iliad, early editions of Dante's <em>Divine Comedy</em>, and the Muratorian Canon (170 AD), the earliest authoritative list of biblical books.</div>","Biblioteca Ambrosiana");
	
			 
		 // Duomo
	var point = new GPoint(9.191608, 45.464172);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-duomo.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-duomo-top-cc-anthony-j-hicks.jpg'><b>Duomo (Cathedral)</b></a><br><br>Milan's Duomo is a particularly large and elaborate Gothic cathedral on the main square in the city center. It is the second largest Catholic cathedral in the world.</div>","Duomo");
		 
		 // Early Christian Baptistery
	var point = new GPoint(9.192445,45.463908);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-battistero-paleocristiano.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-baptistery-c-pro-cras.jpg'><b>Early Christian Baptistery</b></a><br><br>Beneath Milan's famous Duomo lies the Battistero Paleocristiano, ruins of a Christian baptistery dating from the 4th century. Although opinion remains divided, it is widely believed to be where St. Ambrose, Milan's first bishop and patron saint, baptized St. Augustine.</div>","Early Christian Baptistery");
		 
		 // Sant'Ambrogio
	var point = new GPoint(9.175837,45.462456);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-basilica-sant-ambrogio.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-sant-ambrogio2-cc-mauroppp-400.jpg'><b>Sant Ambrogio</b></a><br><br>Noted for its architecture, this basilica was consecrated by St. Ambrose in 387 AD. It became the model for all Lombard Romanesque churches.</div>","S Ambrogio");
	
		 // San Lorenzo Maggiore
	var point = new GPoint(9.181877,45.458178);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-san-lorenzo-maggiore.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-san-lorenzo-cc-ciccio-pizzettaro.jpg'><b>San Lorenzo Maggiore</b></a><br><br>Dating from the 4th century AD, the Chiesa di San Lorenzo Maggiore is the oldest church in Milan. It recalls the days when the city was the capital of the Western Roman Empire. Sixteen ancient Roman columns line the front of the church and the foundations are made of enormous blocks taken from other Roman sites. </div>","S Lorenzo Maggiore");
	
		 
		 // Santa Maria delle Grazie: The Last Supper
	var point = new GPoint(9.171052,45.46597);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-santa-maria-delle-grazie-last-supper.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-last-supper3-wc-pd.jpg'><b>Santa Maria delle Grazie: The Last Supper</b></a><br><br>The former Dominican monastery church of Santa Maria delle Grazie in Milan is home to  Leonardo da Vinci's Last Supper, one of the most famous paintings in the world.</div>","S Maria della Grazie");
	
		 // San Satiro
	var point = new GPoint(9.187778,45.462753);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/milan-san-satiro.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/milan-san-satiro-wc-gfdl.jpg'><b>San Satiro</b></a><br><br>First built in 876, the church was dedicated to St. Satyrus, brother of St. Ambrose, and stands on the reputed site of his house. Later dedicated also to Mary, its full name became St. Mary Staying with St. Satyrus.</div>","S Satiro");
	
	
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>