// 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    -->
		
	
		 // Baptistery
	var point = new GPoint(10.3938,43.7233);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/pisa-baptistery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/pisa/thumbs/baptistery-cc-ern.jpg'><b>Baptistery</b></a><br><br>Begun in 1153 in a Romanesque style and completed in the 1300s in the Gothic style, the Battistero di San Giovanni is the largest in Italy. Among its notable furnishings are a large central font and a Pisano pulpit.</div>","Baptistery");
	
		 // Camposanto
	var point = new GPoint(10.3947,43.724);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/pisa-camposanto.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/pisa/thumbs/inside-cc-loungerie.jpg'><b>Camposanto</b></a><br><br>The Monumental Cemetery, as it is also known, was constructed in 1278 to house the mounds of sacred dirt brought back from Golgotha during the Crusades. It then became the burial place of the Pisan upper class.</div>","Camposanto");
	
		 // Cathedral
	var point = new GPoint(10.3956,43.7233);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/pisa-cathedral-duomo.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/pisa/thumbs/cathedral-cc-ern.jpg'><b>Cathedral</b></a><br><br>Begun in 1093, Pisa Cathedral is a masterpiece of Romanesque architecture. Its marble exterior is covered in rhythmic arcades and the interior boasts important works of art by Pisano and others.</div>","Cathedral");
	
		 // Leaning Tower
	var point = new GPoint(10.3964,43.723);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/pisa-leaning-tower.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/pisa/thumbs/tower-cc-patrick-mayon.jpg'><b>Leaning Tower</b></a><br><br>One of Europe's great icons, the Leaning Tower of Pisa is the campanile (bell tower) of the cathedral. In addition to its astonishing lean, the tower is notable for its magnificent Romanesque arcading.</div>","Leaning Tower");
	
	// Museo dell'Opera del Duomo
	var point = new GPoint(10.397047,43.722622);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/pisa-museo-opera-duomo.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/pisa/thumbs/il-tribolo-cc-spiros.jpg'><b>Museo dell'Opera del Duomo</b></a><br><br>Housed in an old convent near the Leaning Tower, the Cathedral Museum displays a variety of important religious art from Pisa and elsewhere.</div>","Museo del Duomo");
	
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>