// 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 San Francesco
	var point = new GPoint(12.605363, 43.074742);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-basilica-di-san-francesco.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/assisi-pictures/thumbs/basilica-lightmatter.jpg'><b>Basilica San Francesco</b></a><br><br>Filled with spectacular frescoes by Giotto, this is Assisi's crowning glory and a place of pilgrimage for Catholics and art lovers alike.</div>","Basilica San Francesco");
		 
		 // Basilica Santa Chiara
	var point = new GPoint(12.616875, 43.068856);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-basilica-santa-chiara.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/assisi-santa-chiara-pictures/thumbs/s-chiara-cc-pedro-prats.jpg'><b>Basilica Santa Chiara</b></a><br><br>The final resting place of St. Clare, beloved friend of St. Francis and founder-abbess of the Order of the Poor Clares.</div>","Basilica Santa Chiara");
	
		
		 // Duomo San Rufino
	var point = new GPoint(12.617803, 43.070208);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-duomo-di-san-rufino.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/assisi/thumbs/duomo-rose-cc-pizzodisevo.jpg'><b>Duomo San Rufino</b></a><br><br>The Duomo is Assisi's cathedral and was once the city's main church. It is dedicated to the bishop who first brought Christianity to Assisi, and both Francis and Clare were baptized here.</div>","Duomo San Rufino");
	
		 
		 // Eremo
	var point = new GPoint(12.65146, 43.063597);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-eremo-della-carceri.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/assisi/thumbs/eremo-delle-carceri3-cc-pizzodisevo.jpg'><b>Eremo delle Carceri</b></a><br><br>A peacefully isolated church and monastery in the wooded slopes just outside Assisi's walls, this was the first monastic home of St. Francis' and his followers.</div>","Eremo delle Carceri");
	
		 // Rocca Maggiore
	var point = new GPoint(12.615083, 43.07303);
	createMarker(point,"<div id=bubble><b>Rocca Maggiore</b><br><br>Castle ruins on a hill near Basilica San Francesco, constructed by a Cardinal.</div>","Rocca Maggiore");
	
		 // San Damiano
	var point = new GPoint(12.618012, 43.061704);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-san-damiano.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/assisi/thumbs/jesus-face2-cc-padesig.jpg'><b>San Damiano</b></a><br><br>This church and monastery outside the city walls is where the crucifix spoke to St. Francis, prompting him to repair it and begin his ministry. Later, St. Clare died here.</div>","San Damiano");
	
		 // Santa Maria Sopra Minerva
	var point = new GPoint(12.614644, 43.071278);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-temple-minerva.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/assisi-pictures/thumbs/tempio-di-minerva-c-paradox.jpg'><b>S. Maria Sopra Minerva</b></a><br><br>A baroque church dedicated to Mary that stands behind a classical facade and incorporates the remains of the Temple of Minerva dating from around the time of Christ.</div>","S. Maria Sopra Minerva");
		 
		 // Maria degli Angeli
	var point = new GPoint(12.579582, 43.057914);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/assisi-santa-maria-degli-angeli.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/assisi-santa-maria-degli-angeli-pictures/thumbs/s-maria-degli-angeli-wp-gfdl.JPG'><b>S. Maria degli Angeli</b></a><br><br>(approx. location)<br><br>This grand baroque basilica houses the small Porziuncola, a chapel restored by St. Francis and the place where St. Clare took her vows, as well as the humble cell in which St. Francis died.</div>","S. Maria degli Angeli"); 	 
	
	
		 
	
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>