// 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    -->
		
		 
		 // Jewish Ghetto
	var point = new GPoint(12.326553, 45.445372);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/venice-ghetto.htm'><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/jewish-ghetto.jpg'><b>Jewish Ghetto</b></a><br><br> This is the area of Venice in which all Jews were forced to live from the 16th to the 18th century, made famous  by Shakespeare's play <em>The Merchant of Venice</em>. Today it is a pleasant neighborhood with a Jewish museum.</div>","Jewish Ghetto");
	
		 
		 // San Giorgio Maggiore
	var point = new GPoint(12.342904, 45.429284);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/san-giorgio-maggiore-frm-campanile-cc-romain-vignes.jpg'><b>San Giorgio Maggiore</b><br><br>Occupying an island aross the water from San Marco, this 16th-century church was inspired by Greek temple design. Inside are paintings by Tintoretto, and there are Gregorians chants every Sunday.</div>","San Giorgio Maggiore");
	 
		 // San Marco
	var point = new GPoint(12.33957, 45.434464);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/venice-st-marks-basilica.htm'><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/venice-san-marco-pictures/thumbs/facade-pd-arglist.jpg'><b>Basilica San Marco</b></a><br><br>A Byzantine wonder more like Istanbul than Italy, the 11th-century Basilica di San Marco is covered in golden mosaics and filled with treasure. </div>","San Marco");
		 
		 
		 // Santa Maria dei Miracoli
	var point = new GPoint(12.338945, 45.439425);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/venice-santa-maria-dei-miracoli.htm'><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/santa-maria-dei-miracoli-side-c-paradox.jpg'><b>Santa Maria dei Miracoli</b></a><br><br>This barrel shaped church covered in marble slabs is a favorite among Venetians for weddings. Inside, the ceiling glistens with golden miniatures of holy figures.</div>","Santa Maria dei Miracoli");
	
	 
			 
		 // Santa Maria della Salute
	var point = new GPoint(12.334396, 45.430564);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/venice-santa-maria-della-salute.htm'><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/salute-cc-feuillu-75.jpg'><b>Santa Maria della Salute</b></a><br><br>One of the most well known churches in Venice, this Baroque church at the entrance to the Grand Canal houses a precious Byzantine icon and works by Titian and Tintoretto.</div>","Santa Maria della Salute");
	
		 
		 // Santa Maria Gloriosa dei Frari
	var point = new GPoint(12.325888, 45.436662);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/venice-santa-maria-gloriosa-dei-frari.htm'><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/venice-i-frari-pictures/thumbs/west-front-wp-gfdl.jpg'><b>Santa Maria Gloriosa dei Frari</b></a><br><br>A Franciscan church built in 1330, I Frari is best known for its masterpieces by Titian and other artists.</div>","Santa Maria dei Frari");
		
	
		
		 // Santi Maria e Donato
	var point = new GPoint(12.356894, 45.457406);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/santi-maria-e-donato-gfdl-andreastille.jpg'><b>Santi Maria e Donato</b><br><br>With its lovely colonnaded apse, this 12th-century basilica is the architectural highlight of the island of Murano.</div>","Santi Maria e Donato");
		 
		 // Santa Maria dell'Assunta 
	var point = new GPoint(12.417641, 45.495278);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='8' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/torcello-assunta.jpg'><b>Santa Maria dell Assunta</b><br>   Founded in 639, this is the oldest church in the Venetian lagoon and the highlight of a visit to Torcello. Inside is a major collection of Byzantine mosaics.</div>","Santa Maria dell Assunta");
	
		 
		 // Santa Maria dell'Orto
	var point = new GPoint(12.328811, 45.44728);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/dell-orto-campo-cc-fotomoe.jpg'><b>Santa Maria dell'Orto</b><br><br>Huge paintings by devout parishioner Tintoretto grace this graceful Gothic church set on a quiet back canal, including the gruesome <em>Last Judgment</em>.</div>","Santa Maria dell Orto");
	
		 
		 // San Sebastiano
	var point = new GPoint(12.31981, 45.431911);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/san-sebastian-cc-r-lizzimore.jpg'><b>San Sebastiano</b><br><br>Paolo Veronese spent a large part of his life decorating this unassuming 16th-century church, and was buried among his masterpieces.</div>","San Sebastiano");
	
		 
		 // San Zaccaria
	var point = new GPoint(12.343225, 45.434667);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/venice/thumbs/san-zaccaria-facade-c-paradox.jpg'><b>San Zaccaria</b><br><br>This 9th-century church, one of the oldest in Venice, features a 15th-century facade by Coducci and a <em>Madonna and Saints</em> by Bellini.</div>","San Zaccaria");
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>