// 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    -->
		
		 

		 // Duomo
	var point = new GPoint(11.328728,43.317677);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/siena-cathedral-duomo-di-santa-maria.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/thumbnails50/duomo-sx-75.jpg'><b>Duomo di Siena</b></a><br><br>Siena\'s cathedral is considered one of the great examples of Italian Gothic architecture, with black-and-white stripes, beautifully decorated floors and many art masterpieces.</div>","Duomo (Cathedral)");
	
		 // San Domenico
	var point = new GPoint(11.326421,43.319839);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/siena-san-domenico.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/siena/thumbs/view-cc-stain.jpg'><b>San Domenico</b></a><br><br>This huge, austere Dominican church dates from the 12th century. Inside, it displays much beautiful art as well as the head and finger of St. Catherine of Siena.</div>","San Domenico");
	
		 // Santa Maria dei Servi
	var point = new GPoint(11.329898,43.32147);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/siena-santa-maria-del-servi.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/siena/thumbs/church-cc-haroldH.jpg'><b>Santa Maria dei Servi</b></a><br><br>Originally built in the 13th century, the Romanesque Santa Maria dei Servi has a fine campanile with four orders of windows. Inside are famous frescoes and other notable artworks.</div>","Santa Maria dei Servi");
	
		 // Shrine of St. Catherine
	var point = new GPoint(11.329168,43.319956);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/siena-st-catherine-shrine.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/siena/thumbs/arches-cc-rob-innes.jpg'><b>Shrine of St. Catherine</b></a><br><br>The Santuario de Santa Caterina consists of a series of chapels built on the site of St. Catherine of Siena's family home, where she was born and lived much of her life.</div>","Shrine of St. Catherine");
	
	
		 // Cathedral Museum
	//var point = new GPoint(11.32935,43.317138);
	//createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b></b></a><br><br></div>","");
	
	
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>