// 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    -->
	 
		 
	
		 	 	 
		 // 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='http://www.sacred-destinations.com/switzerland/lausanne-cathedral-pictures/thumbs/eos_a_022.jpg'><b>Lausanne Cathedral</b></a><br><br>This unique Gothic cathedral is one of the most beautiful in Switzerland, with mismatched towers and carved portals on the outside and soaring heights inside. Once the home of a revered golden statue of the Virgin Mary, the cathedral became Protestant in 1536.</div>","");
	
			 	 
		 // Église St-Francois
	var point = new GPoint(6.633435,46.519658);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/lausanne-st-francois-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/switzerland/images/thumbs/lausanne-st-francois.jpg'><b>Église St-Francois</b></a><br><br>Dating from 1272, the church was once the center of a Franciscan monastery set against the southern city walls. It is now a Protestant parish church.</div>","");
	
		 // Historical Museum
	var point = new GPoint(6.634873,46.522242);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/switzerland/lausanne-history-museum.htm'><b>Historical Museum</b></a><br><br>Just behind Lausanne Cathedral is the former bishop's palace, which has been converted into the interesting Historical Museum of Lausanne.</div>","Historical Museum");
	
	
	
	// 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;
    }

	//]]>