// 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    -->
	
		 	 // Cappella Palatina
	var point = new GPoint(13.3536, 38.1109);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-cappella-palatina.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/dome-c-paradox.jpg'><b>Cappella Palatina</b></a><br><br>Located within the Norman Palace, the Palatine Chapel is the finest example of Arab-Norman art in Palermo. Built by Roger II from 1130 to 1140, it is adorned with extraordinary Byzantine mosaics.</div>","Cappella Palatina");
	
		 // Capuchin Catacombs
	var point = new GPoint(13.339398, 38.111831);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-capuchin-catacombs.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/palermo-capuchin-catacombs7-c-paradox.jpg'><b>Capuchin Catacombs</b></a><br><br>In 1599, Capuchin monks discovered that their catacombs contained a mysterious preservative that helped mummify the dead. As a result, Sicilians from nobles to maids – more than 8,000 in all – demanded to be buried here. They are now all on display, many with clothes still intact.</div>","Capuchin Catacombs");
	
		 // Duomo
	var point = new GPoint(13.356156,38.114507);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/duomo-cc-timdan2.jpg'><b>Duomo</b></a><br><br>In 1184, Palermo's archbishop founded this cathedral on the site of a mosque, which had itself been built over an early Christian church. His aim was to surpass the glory of the magnificent cathedral of nearby Monreale.</div>","Duomo");
	
		 // Gesu
	var point = new GPoint(13.3617,38.1129);
	createMarker(point,"<div id=bubble><b>Il Gesu</b><br><br></div>","Gesu");
	
		 // Martorana
	var point = new GPoint(13.3628,38.1148);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-chiesa-della-martorana.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/martorana-nativity-cc-xerones.jpg'><b>La Martorana</b></a><br><br>Distinguished by an elegant Norman campanile, this church dates from 1143 and is famed for its spectacular mosaics. Its official name is Santa Maria dell'Ammiraglio (St. Mary of the Admiral).</div>","Martorana");
	
		 // Museo Archeologico Regionale
	var point = new GPoint(13.3607,38.121);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-museo-archaeologico-regionale.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/frieze-temple-at-selinus-cc-reziemba.jpg'><b>Museo Archeologico Regionale</b></a><br><br>Housed in a former monastery, Palermo's Regional Archaeological Museum is one of the grandest archaeological museums in Italy. it is stuffed with artifacts from prehistoric times to the Roman era</div>","Museo Archeologico Regionale");
	
		 // Oratorio di Santa Cita
	var point = new GPoint(13.3635,38.121);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-oratorio-del-rosario-di-santa-cita.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/oratorio-cita-stucco-cc-gabrilu.jpg'><b>Oratorio di Santa Cita</b></a><br><br>Built in the 16th century in gratitude for the Virgin Mary's miraculous intervention at the Battle of Lepanto (1571) against the Turks, this oratory features a magnificent stucco relief of the battle by Giacomo Serpotta. </div>","Oratorio di Santa Cita");
	
		 // Oratorio di San Lorenzo
	var point = new GPoint(13.3664,38.1168);
	createMarker(point,"<div id=bubble><b>Oratorio di San Lorenzo</b><br><br></div>","Oratorio di San Lorenzo");
	
	 // Sant'Agostino
	var point = new GPoint(13.3576,38.1181);
	createMarker(point,"<div id=bubble><b>Sant'Agostino</b><br><br></div>","Sant'Agostino");
	
		 // San Cataldo
	var point = new GPoint(13.3625,38.1148);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-la-cataldo.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/cotalda-int2-cc-erikogan.jpg'><b>San Cataldo</b></a><br><br>Characterized by its striking red domes, this little Norman church was founded by Maio of Bari, chancellor to William I, in 1154. The interior was never finished, and retains an austere medieval feel.</div>","San Cataldo");
	
		 // Santa Caterina
	var point = new GPoint(13.3626,38.1156);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-santa-caterina.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/catarina-cc-kittycate.jpg'><b>Santa Caterina</b></a><br><br>A powerful example of Sicilian Baroque, the 17th- and 18th-century interior of Santa Caterina overwhelms the senses with colors, textures, sculpture and marble inlay.</div>","Santa Caterina");
	
		 // San Domenico
	var point = new GPoint(13.3638,38.1193);
	createMarker(point,"<div id=bubble><b>San Domenico</b><br><br></div>","San Domenico");
	
		 // San Francesco d'Assisi
	var point = new GPoint(13.3666,38.1166);
	createMarker(point,"<div id=bubble><b>San Francesco d'Assisi</b><br><br></div>","San Francesco d'Assisi");
	
		 // San Giorgio
	var point = new GPoint(13.3645,38.1218);
	createMarker(point,"<div id=bubble><b>San Giorgio</b><br><br></div>","San Giorgio");
	
		 // San Giovanni degli Eremeti
	var point = new GPoint(13.3547,38.1093);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/italy/palermo-san-giovanni-degli-eremiti.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/italy/images/palermo/thumbs/san-giovanni-degli-eremeti-c-paradox.jpg'><b>San Giovanni degli Eremeti</b></a><br><br>With its Arab-inspired bulbous red domes, this church is the most romantic building remaining from the heyday of Norman Palermo. It was founded in 1132 in honor of St. John of the Hermits and built on the grounds of a mosque.</div>","San Giovanni degli Eremeti");
	
		 // San Giuseppe dei Teatini
	var point = new GPoint(13.3616,38.1152);
	createMarker(point,"<div id=bubble><b>San Giuseppe dei Teatini</b><br><br></div>","San Giuseppe dei Teatini");
	
		 // Santa Maria della Catena
	var point = new GPoint(13.3696,38.1193);
	createMarker(point,"<div id=bubble><b>Santa Maria della Catena</b><br><br>Named for the chain that streched across the harbor at night.</div>","Santa Maria della Catena");
	
	
	// Create small marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_white.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);


		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>