// 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    -->
	
		 	 	 	 	 
		 // Andronikov Monastery
	var point = new GPoint(37.670563,55.74912);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-andronik-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/andronikov-sat-1023ft.jpg'><b>Andronikov Monastery</b></a><br><br>Andronikov monastyr was founded in 1360 by Metropolitan Alexei in fulfillment of a vow and named for its first abbot. The famous icon painter Andrei Rublev (d. 1430) was a resident here.</div>","Andronikov Monastery");
	
		 // Cathedral of the Annunciation
	var point = new GPoint(37.616919,55.750074);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-cathedral-of-annunciation.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/annunciation-wp.jpg'><b>Cathedral of the Annunciation</b></a><br><br>Blagoveschensky Sobor was built 1484-1489 by Russian architects and was the personal church of the royal family  until the 20th century.</div>","Cathedral of the Annunciation");
		 
		 // Cathedral of the Archangel
	var point = new GPoint(37.617885,55.750243);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-cathedral-of-archangel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/archangel-view-cc-dave-nicoll.jpg'><b>Cathedral of the Archangel</b></a><br><br>Arkhangelsky Sobor was built 1505-08 by an Italian architect. Inside are frescoes by Russian artists from the 16th and 17th centuries.</div>","Cathedral of the Archangel");
	
		 // Cathedral of the Assumption
	var point = new GPoint(37.617145,55.750992);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-cathedral-of-assumption.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/assumption-view2-cc-rob-lee.jpg'><b>Cathedral of the Assumption</b></a><br><br>Uspensky sobor in the Kremlin was built 1475-79 by an Italian architect. The relatively austere gray facade hides an interior covered in frescoes on every available space.</div>","Cathedral of the Assumption");
	
		 // Cathedral of Christ the Savior
	var point = new GPoint(37.605429,55.7447);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-cathedral-of-christ-the-savior.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/christ-cc-andifeelfine.jpg'><b>Cathedral of Christ the Savior</b></a><br><br>The khram Khrista Spasitela may well be the largest Orthodox church in the world. The building is magnificent, but not as old as it looks: it was rebuilt in 2000 after the original was demolished by Stalin.</div>","Cathedral of Christ the Savior");
		 	 
		 // Cathedral of the Twelve Apostles
	var point = new GPoint(37.617434,55.751378);
	createMarker(point,"<div id=bubble><b>Cathedral of the Twelve Apostles</b><br><br></div>","Cathedral of the 12 Apostles");
		 
		 // Choral Synagogue
	var point = new GPoint(37.635148,55.755424);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-choral-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/synagogue-cc-acordova.jpg'><b>Choral Synagogue</b></a><br><br>Built in 1886, this Orthodox synagogue represents the turbulent status of Moscow's Jewish community over the years. The interior is a fine example of Moorish synagogue architecture.</div>","Choral Synagogue");
	
		 // Church of the Deposition of the Robe
	var point = new GPoint(37.616587,55.750793);
	createMarker(point,"<div id=bubble><b>Church of the Deposition of the Robe</b><br><br></div>","Church of the Deposition of the Robe");
		 
	// Church of the Resurrection of Christ in Jerusalem
	var point = new GPoint(55.759481,37.607371);
	createMarker(point,"<div id=bubble><b>Church of the Resurrection of Christ in Jerusalem</b><br><br></div>","Church of the Resurrection of Christ in Jerusalem");
		 
		 // Church of St. Barbara
	var point = new GPoint(37.625878,55.752351);
	createMarker(point,"<div id=bubble><b>Church of St. Barbara</b><br><br></div>","Church of St. Barbara");
	
	// Church of St. Nicholas
	var point = new GPoint(37.610761,55.7438);
	createMarker(point,"<div id=bubble><b>Church of St. Nicholas</b><br><br></div>","Church of St. Nicholas");
		 	 
		 // Church of St. Nicholas in Kotelnitsa
	var point = new GPoint(37.644761,55.744467);
	createMarker(point,"<div id=bubble><b>Church of St. Nicholas in Kotelnitsa</b><br><br></div>","Church of St. Nicholas in Kotelnitsa");
	
		 // Church of St. Nikita Beyond the Yauza
	var point = new GPoint(37.644814,55.745802);
	createMarker(point,"<div id=bubble><b>Church of St. Nikita Beyond the Yauza</b><br><br></div>","Church of St. Nikita Beyond the Yauza");
	
	// Convent of the Nativity
	var point = new GPoint(37.624429,55.765891);
	createMarker(point,"<div id=bubble><b>Convent of the Nativity</b><br><br></div>","Convent of the Nativity");
	
		 // Kazan Cathedral
	var point = new GPoint(37.619129,55.755448);
	createMarker(point,"<div id=bubble><b>Kazan Cathedral</b><<br><br></div>","Kazan Cathedral");
		 
	// Lubavitch Synagogue
	var point = new GPoint(37.605257,55.791891);
	createMarker(point,"<div id=bubble><b>Lubavitch Synagogue</b><br><br></div>","Lubavitch Synagogue");
	
		 // Monastery of the Sign
	var point = new GPoint(37.628716,55.752432);
	createMarker(point,"<div id=bubble><b>Monastery of the Sign</b><br><br></div>","Monastery of the Sign");
		 
		 // Novodevichy Convent
	var point = new GPoint(37.555904,55.726192);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-novodevichy-convent.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/novodevichy-red-church-w-cross-cc-yeowatzup.jpg'><b>Novodevichy Convent</b></a><br><br>New Maiden\'s Convent was founded in 1524 by Tsar Vasily III to commemorate the capture of Smolensk from Lithuania. Thanks to its magnificent buildings and historic cemetery, it is a very popular tourist destination.</div>","Novodevichy Convent");
		 
		 // Novospassky Monastery
	var point = new GPoint(37.656476,55.731967);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-novospassky-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/novospossky-towers-cc-svonog.jpg'><b>Novospassky Monastery</b></a><br><br>The New Monastery of the Savior was founded in 1491 but entirely rebuilt by the Romanovs in the 1640s. Its cathedral contains frescoes by the best 17th-century painters.</div>","Novospassky Monastery");
	
		 // St. Basil's
	var point = new GPoint(37.623067, 55.75255);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow-st-basil-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/moscow/thumbs/st-basils-detail2-cc-yukon-white-light.jpg'><b>St. Basil\'s Cathedral</b></a><br><br>This famously colorful cathedral was built by Ivan the Terrible between 1534 and 1561 to commemorate a military victory. It consists of nine chapels built on a single foundation.</div>","St. Basil\'s Cathedral");
	
	// Upper Monastery of St. Peter
	var point = new GPoint(55.767472,37.615117);
	createMarker(point,"<div id=bubble><b>Upper Monastery of St. Peter</b><br><br></div>","Upper Monastery of St. Peter");
	
	
	
	// 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;
    }

	//]]>