// 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    -->
		 
		 // Anne Frank House
	var point = new GPoint(4.884209, 52.375268);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-anne-frank-house.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-anne-frank-house-pictures/thumbs/eos24_094.jpg'><b>Anne Frank House</b></a><br><br>During WW II, eight people from three families lived together in this house in near total silence for more than two years. Visiting the rooms where Anne Frank hid is a moving experience that brings her familiar words to life.</div>","Anne Frank House");
	
		 // Begijnhof
	var point = new GPoint(4.890118, 52.369449);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-begijnhof-beguine-court.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-begijnhof-pictures/thumbs/houses2-cc-nicholas-thompson.jpg'><b>Begijnhof</b></a><br><br>Dating from the early 14th century, this picturesque enclosed courtyard contains a Reformed Church and hidden Catholic chapel and provides an serene oasis in the center of the city. </div>","Begijnhof");
		 	 
		 // Bible Museum
	var point = new GPoint(4.886338, 52.368479);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-bible-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/images/thumbs/amsterdam-bible-temple-mount2-cc-skippy13.jpg'><b>Bible Museum</b></a><br><br>In Amsterdam\'s Bible Museum, visitors can explore biblical history and geography in a variety of objects, images, and installations. It also provides a rare opportunity to tour a 17th-century canal house.</div>","Bible Museum");
	
		 // Chinese Temple
	var point = new GPoint(4.900074, 52.37375);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-chinese-buddhist-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-chinese-temple-pictures/thumbs/eos24_189.jpg'><b>Chinese Temple</b></a><br><br>Amsterdam\'s China Town is home to a Chinese Buddhist temple that was built in 2000 in the traditional Chinese style and dedicated in person by Queen Beatrix of the Netherlands.</div>","Chinese Temple");
	
		 // Jewish Museum
	var point = new GPoint(4.903936,52.367198);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-jewish-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-jewish-museum-pictures/thumbs/eos24_249.jpg'><b>Jewish Museum</b></a><br><br>Housed in the 17th-century Great Synagogue of Amsterdam, the Jewish Historical Museum displays Jewish religious objects, Jewish art, historical artifacts, and multimedia presentations.</div>","Jewish Museum");
		 	 
		 // Nieuwe Kerk
	var point = new GPoint(4.891748, 52.373916);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-nieuwekerk.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/images/thumbs/amsterdam-niuwekerk.jpg'><b>Nieuwe Kerk</b></a><br><br>The New Church is a 14th century Late Gothic church located next to the royal palace. It functions as the national church of the Netherlands, hosting inaugurations and special exhibitions.</div>","Nieuwe Kerk");
	
		 // Oude Kerk
	var point = new GPoint(4.898239, 52.374374);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-oudekerk.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-oudekerk-pictures/thumbs/ext-cc-claudecf.jpg'><b>Oude Kerk</b></a><br><br>Located alongside a canal in the Red Light District, the Oude Kerk is the oldest monument in Amsterdam, dating from 1250. Inside it features painted wooden ceilings, box pews and choir stalls with misericords. </div>","Oude Kerk");
		 
		 // Our Lord in the Attic
	var point = new GPoint(4.899363, 52.375083);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-museum-amstelkring-hidden-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/amsterdam-amstelkring-museum-pictures/thumbs/eos_am_2_208.jpg'><b>Our Lord in the Attic</b></a><br><br>This Catholic church inside a canal house in the Red Light District is the only surviving schuilkerken (clandestine church) that dates from the Reformation, when open Catholic worship was outlawed.</div>","Our Lord in the Attic");
		 	 
		 // Portuguese Synagogue
	var point = new GPoint(4.905353,52.367496);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-portuguese-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/images/thumbs/amsterdam-portuguese-synagogue.jpg'><b>Portuguese Synagogue</b></a><br><br>This grand Ionic-style synagogue was built in 1665 by Sephardic Jews who had fled Spain and Portugal for tolerant Amsterdam. Still in active use, it is lit by large, low-hanging brass chandeliers with 1,000 candles. </div>","");
	
		 // St. Nicolaaskerk
	var point = new GPoint(4.901222, 52.376444);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Nicolaaskerk</b></a><br><br></div>","St. Nicolaaskerk");
		 
		 // Westerkerk
	var point = new GPoint(4.884013, 52.374538);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-westerkerk.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/images/thumbs/amsterdam-westerkerk.jpg'><b>Westerkerk</b></a><br><br>The Renaissance-style Westerkerk (West Church) in Amsterdam shelters the remains of Rembrandt and his son, Titus, and is where in 1966 Princess (now Queen) Beatrix and Prince Claus said their marriage vows.</div>","Westerkerk");
	
		 
		 // Zuiderkerk
	var point = new GPoint(4.899758,52.370297);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/netherlands/amsterdam-zuiderkerk.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/netherlands/images/thumbs/amsterdam-zuidekerk.jpg'><b>Zuiderkerk</b></a><br><br>Gorgeous enough to have inspired both Sir Christopher Wren and Monet, the 17th-century Zuiderkerk (South Church) was Amsterdam's first Protestant church.</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);


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

	//]]>