// 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    -->
		 // Seattle Asian Art Museum
	var point = new GPoint(-122.314302, 47.630208);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-asian-art-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-asian-art-cc-mgjefferies.jpg'><b>Seattle Asian Art Museum</b></a><br><br>With a vast collection of art from Japan, China, Korea, India and the Himalayas, this museum is a great way to see beautiful religious artifacts without making a trip to Asia.</div>","Asian Art Museum");
	
		 
		 // Seattle Betsuin Buddhist Temple
	var point = new GPoint(-122.313138, 47.599739);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-betsuin-buddhist-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-betsuin-buddhist-temple-amida.jpg'><b>Seattle Betsuin Buddhist Temple</b></a><br><br>This Japanese Buddhist temple is associated with the Jodo Shinshu school, which emphasizes devotion to Amida Buddha.</div>","Betsuin Buddhist Temple");
		
	// Chapel of St. Ignatius
	var point = new GPoint(-122.317926, 47.611385);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-chapel-of-st-ignatius.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-chapel-ext-stevenhollarchitects.jpg'><b>Chapel of St. Ignatius</b></a><br><br>Designed by Steven Holl, this magnificent Catholic chapel on the campus of Seattle University has won awards for its modern architecture and masterful use of light.</div>","Chapel of St. Ignatius");
		 
		 
		 // Mount Zion Baptist Church
	var point = new GPoint(-122.307057, 47.616466);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-mount-zion-baptist-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-mt-zion-c.jpg'><b>Mount Zion Baptist Church</b></a><br><br>Home to Washington's largest and oldest African-American congregation, Mount Zion is the place for powerful sermons and rousing gospel music.</div>","Mount Zion Baptist Church");
	
		 
		 // Sakya Tibetan Monastery
	var point = new GPoint(-122.358293, 47.689332);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-sakya-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-sakya-monastery-c.jpg'><b>Sakya Tibetan Monastery</b></a><br><br>Founded in 1975 in a former Presbyterian church, this is the only Tibetan Buddhist monastery in the United States. It hosts regular classes and ritual services.</div>","Sakya Tibetan Monastery");
			 
	 
		 // St. James Cathedral
	var point = new GPoint(-122.325988, 47.607599);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-st-james-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-st-james-c.jpg'><b>St. James Cathedral</b></a><br><br>Completed in 1907, this is Seattle's Roman Catholic cathedral. Built on a grand scale, it features beautiful architecture and is home to the relics of Mother Cabrini, the first American saint.</div>","St. James Cathedral");
		 	 
		 // St. Mark's Cathedral
	var point = new GPoint(-122.321177, 47.631917);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-st-marks-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-st-marks-cathedral-uquebec.jpg'><b>St. Mark's Cathedral</b></a><br><br>This Episcopalian cathedral had a rocky history - it was once used by the Army Artillary - but is now a happily established church. Its fortress-like dominates a hilltop with beautiful lake views.</div>","St. Mark's Cathedral");
	
		 // St. Spiridon Cathedral
	var point = new GPoint(-122.330162, 47.622158);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-st-spiridon-orthodox-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-spiridon-w-needle-cc-dean-forbes.jpg'><b>St. Spiridon Cathedral</b></a><br><br>A Russian Orthodox cathedral, complete with onion domes, in downtown Seattle. The congregation was founded in 1895; the church dates from 1941.</div>","St. Spiridon Cathedral");
		 
		 // Temple De Hirsch Sinai
	var point = new GPoint(-122.31195, 47.613819);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle-temple-de-hirsch-sinai.htm'><b>Temple De Hirsch Sinai</b></a><br><br>A synagogue for Seattle's Reform Jewish community in a space-age-style 1960s building. Anyone is welcome to come and study at its extensive Jewish library.</div>","Temple De Hirsch Sinai");
	
	
	// 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;
    }

	//]]>