// 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    -->
	
	
		 
			 
		 // Cathédrale Notre Dame-des-Doms
	var point = new GPoint(4.807827,43.951451);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/avignon-cathedral-notre-dame-des-doms.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/avignon-cathedral-notre-dame-des-doms-provencetaxi.jpg'><b>Cath&eacute;drale Notre Dame-des-Doms</b></a><br><br>This 12th-century Romanesque cathedral is dwarfed by the grand Palais des Papes that was built next door. Inside are the tombs of several Avignon popes.</div>","Cath&eacute;drale Notre Dame-des-Doms");
		 
		 // Musee du Petit Palais
	var point = new GPoint(4.806433,43.952602);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/avignon-musee-du-petit-palais.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/avignon-musee-petit-palais-carpaccio-holy-conversation.jpg'><b>Musee du Petit Palais</b></a><br><br>Housed in the bishop's palace that was home to the first two Avignon popes, this small palace now houses an outstanding collection of 13th to 16th century Italian religious paintings.</div>","Musee du Petit Palais");
	
		 // Palais des Papes
	var point = new GPoint(4.807066,43.950501);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/avignon-palais-des-papes.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/avignon-palais-des-papes-facade-wc-cc.jpg'><b>Palais des Papes</b></a><br><br>This grand, cream-colored castle was the home of the papacy between 1309 and 1377. It is one of the largest and most important medieval Gothic buildings in Europe.</div>","Palais des Papes");
	
		 // Pont St-Benezet
	var point = new GPoint(4.804652,43.95407);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/avignon-pont-st-benezet.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/avignon-pont-from-Ile-Barthelasse-wc-cc.jpg'><b>Pont St-Benezet</b></a><br><br>This bridge of childrens' song fame was built in the 12th century after a shepherd boy, Benezet, was commanded to do so by angels. It includes a chapel in which the saint was interred.</div>","Pont St-Benezet");
	
		 // Synagogue
	var point = new GPoint(4.809072,43.948362);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/avignon-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/thumbs/avignon-synagogue-ext2-cc-rutemple.jpg'><b>Synagogue</b></a><br><br>Originally founded in 1221, Avignon's synagogue still has its 13th-century oven but most of the round, neoclassical structure dates from 1846.</div>","Synagogue");
	
	
	
	// 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;
    }

	//]]>
