// 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    -->
	 
			 
			 	 
		 // Auditoire de Calvin
	var point = new GPoint(6.148417,46.200816);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-auditoire-calvin.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/images/thumbs/geneva-auditore-door.jpg'><b>Auditoire de Calvin</b></a><br><br>In this Protestant lecture hall, John Knox preached from 1556 to 1559 and John Calvin founded a Christian academy in 1559.</div>","");
	
		 // Basilique Notre-Dame
	var point = new GPoint(6.142023,46.20875);
	createMarker(point,"<div id=bubble><b>Basilique Notre-Dame</b><br><br>A devoutly Catholic basilica next to the train station.</div>","");
	
		 	 	 
		 // Cathedrale St-Pierre
	var point = new GPoint(6.148353,46.201176);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/images/thumbs/geneva-cathedral-cc-declan-mcaleese.jpg'><b>Cathedrale St-Pierre</b></a><br><br>In this cathedral you can see the pulpit from which John Calvin preached the Reformation, examine interesting carved capitals, and climb the tower for spectacular views.</div>","");
	
		 // Grande Synagogue
	var point = new GPoint(6.140853,46.202795);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-grande-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/images/thumbs/geneva-synagogue.jpg'><b>Grande Synagogue</b></a><br><br>Home to Geneva's Ashkenazi Jewish community, this Moorish-style synagogue was built in 1859.</div>","");
		 
	// Holy Trinity Church
	var point = new GPoint(6.146462,46.208102);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-holy-trinity-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Holy Trinity Church</b></a><br><br>A 19th-century Anglican church with an English-language community.</div>","Holy Trinity Church");
	
	// Islamic Center
	var point = new GPoint(6.161056,46.205717);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-centre-islamique.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Islamic Center (Little Mosque)</b></a><br><br>Founded in 1965, this shuttered house by the lake has been converted into a mosque, classroom and conference room.</div>","Islamic Center (Little Mosque)");
	
		 // Reformation Wall
	var point = new GPoint(6.145885,46.200244);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-reformation-monument.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/geneva-reformation-wall-pictures/thumbs/eos_b_139.jpg'><b>Reformation Wall</b></a><br><br>This huge monument was constructed in 1917 to commemorate Geneva's significant role in the Reformation. It features an array of stone statues, bas-reliefs and inscriptions.</div>","");
	
	// Reform Synagogue
	var point = new GPoint(6.136299,46.205726);
	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>","");
	// Russian Church
	var point = new GPoint(6.153781,46.198896);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/geneva-eglise-russe.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Russian Church</b></a><br><br>Built in 1866 for the Russian Orthodox community of Geneva.</div>","Russian Church");
		 // Temple St. Gervais
	var point = new GPoint(6.140875,46.206519);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Temple St. Gervais</b><br><br></div>","");
	
	
	// 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);


	// Title
	var point = new GPoint(6.142666,46.210153);
	createMarker(point,"<div id=bubble><b>Train Station</b><br><br></div>","");
	
		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>