// 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    -->
	
			 
		 // Ivolginksy Datsan
	var point = new GPoint(107.294884, 51.75424);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/ivolginsky-datsan-buddhist-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/thumbnails/ivolginsky-main-temple3-c-yellowbluebus.jpg'><b>Ivolginksy Datsan</b></a><br><br>The small town of Ivolginsk in East Siberia is home to Russia's most important Buddhist monastery and a miracle — the body of the last Khambo Lama, who died in 1927, remains upright and undecayed today.</div>","Ivolginksy Datsan");
	
		 
		 // Moscow
	var point = new GPoint(37.620063, 55.754108);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/moscow.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/thumbnails/st-basil-cathedral-cc-jhayman-75.jpg'><b>Moscow</b></a><br><br>Russia's capital and largest city has been the center of Russian Orthodox Christianity for over 1,000 years. It is filled with awe-inspiring churches and monasteries.</div>","Moscow");
		 
		 // Sergiyev Posad
	var point = new GPoint(38.131194, 56.310361);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/sergiev-posad-holy-trinity-lavra.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/thumbnails/sergiyev-blue-and-gold2-cc-alexis-mp-400.jpg'><b>Sergiyev Posad</b></a><br><br>One of the most popular day trips from Moscow, Sergiyev Posad is named for St. Sergius, whose great monastery was founded here in the 14th century and still stands today.</div>","Sergiyev Posad");
		 
		 // Solovetsky Islands
	var point = new GPoint(35.716553, 65.021581);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/solovki-solovetsky-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/thumbnails/solovki-monastery-from-white-sea-wp-gfdl.jpg'><b>Solovetsky Islands</b></a><br><br>Located on the frontiers of northern Russia, Solovki is home to a 15th-century walled monastery, a 20th-century Soviet prison camp, and mysterious ancient labyrinths.</div>","Solovetsky Islands");
	
		 // St. Petersburg
	var point = new GPoint(30.316665, 59.950315);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/russia/st-petersburg.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/russia/images/thumbnails/savior-on-blood-top-cc-bigappleofmyeye.jpg'><b>St. Petersburg</b></a><br><br>Created out of nothing in 1703 by Tsar Peter the Great, this graceful imperial capital is a unique combination of European and Russian elements.</div>","St. Petersburg");
		 

	
	
	// 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;
    }

	//]]>