// 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    -->
	 
		 
		 // Einsiedeln
	var point = new GPoint(8.75164, 47.126973);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/einsiedeln.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/einsiedeln-pictures/thumbs/eos_d2b_058.jpg'><b>Shrine of Our Lady of Einsiedeln</b></a><br><br>The important Catholic shrine of Our Lady of Einsiedeln includes the relics of a saint, a miraculous Black Madonna statue, and a Benedictine monastery. The village of Einsiedeln is also home to the world's largest nativity scene, the Diorama Bethlehem.</div>","Einsiedeln");
		 	 	 
		 // Lausanne Cathedral
	var point = new GPoint(6.635249,46.52256);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/lausanne.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Lausanne Cathedral</b></a><br><br></div>","");
	
	// Mustair Convent
	var point = new GPoint(10.44876,46.629827);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/mustair-convent-of-st-john.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Convent of St. John</b></a><br><br>This ancient monastery is a World Heritage Site because of its marvelous collection of ancient frescoes.</div>","M&uuml;stair: Convent of St John");
	
		 // Schlosskirche - Spiez
	var point = new GPoint(7.688563,46.689119);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/spiez-schlosskirche-castle-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/spiez-castle-church-pictures/thumbs/d80_c_021.jpg'><b>Schlosskirche, Spiez</b></a><br><br>The Schlosskirche or Castle Church of Spiez is an attractive Romanesque church picturesquely situated at the end of a rocky peninsula overlooking Lake Thun. Regularly used for weddings by locals, the Schlosskirche is well worth visiting for its faded frescoes in the apse and the crypt. </div>","");
	
	
	// St Gallen
	var point = new GPoint(9.376616,47.423166);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/st-gall-convent.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/images/thumbs/st-gall-cc-jochenb.jpg'><b>Convent of St. Gall</b></a><br><br></div>","St. Gall Convent");
	
		 // Zürich
	var point = new GPoint(8.53775, 47.371617);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/zurich.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/zurich-grossmunster-pictures/thumbs/d80_d2_102-crop.jpg'><b>Zurich</b></a><br><br>Zürich, Switzerland's largest city, is among the most beautiful in all of Europe. Zürich produces one-fifth of the nation's income, but it's far from being a dreary city of commerce. It was the center of the Swiss Reformation under Ulrich Zwingli in the 1500s and it's long been a great center of liberal thought, attracting such scholars as Lenin, Carl Jung, James Joyce, and Thomas Mann. </div>","Zürich");
	
	
	
	// 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;
    }

	//]]>