// 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    -->
	
	// Badlands
	var point = new GPoint(-101.938448,43.750761);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/badlands.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/badlands-rock-ccc-kevinzim.jpg'><b>Badlands</b></a><br><br></div>","Badlands");
	
	// Baltimore Basilica
	var point = new GPoint(-76.616163,39.294404);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/baltimore-basilica-of-assumption.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/maryland/baltimore/thumbs/basilica-wp-pd.jpg'><b>Baltimore Basilica</b></a><br><br>The Baltimore Basilica was the first great cathedral built in the United States after the adoption of the Constitution. It was built in a Neoclassical style in 1806-1821 and underwent major restoration work in 2004-2006.</div>","Baltimore Basilica");
		 		 
		 // Bighorn Medicine Wheel
	var point = new GPoint(-107.924847, 44.834992);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/bighorn-medicine-wheel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/bighorn-medicine-wheel6-c-keithwanders.jpg'><b>Bighorn Medicine Wheel</b></a><br><br>The Bighorn Medicine Wheel is the most important of several medicine wheels in the American West. Constructed around 700 years ago and aligned with the stars, it is an important sacred site for local Indians as well as New Age practitioners. </div>","Bighorn Medicine Wheel");
	 
		 // Cahokia Mounds
	var point = new GPoint(-90.059824, 38.656963);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/cahokia.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/cahokia-monks-mound-view-cc-ringey.jpg'><b>Cahokia Mounds</b></a><br><br>The center of Mississipian Indian culture from 900 to 1300 AD, Cahokia was the largest pre-Columbian community in North America. The Cahokians built several ritual earthwork mounds that can still be seen today.</div>","Cahokia Mounds");
	
		 // Colorado Springs Cadet Chapel
	var point = new GPoint(-104.890448,39.008419);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/colorado-cadet-chapel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/colorado/thumbs/exterior-cc-expat-nomad.jpg'><b>Colorado Springs Cadet Chapel</b></a><br><br>The striking appearance of the Air Force Academy Cadet Chapel in Colorado Springs, Colorado, attracted some controversy when it was first completed in 1963, but is now considered one of the most beautiful examples of modern American architecture.</div>","Colorado Springs Cadet Chapel");
	
		 // Crater Lake
	var point = new GPoint(-122.105484, 42.941093);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/crater-lake.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/crater-lake-pano-from-visitors-center-wp-gfdl.jpg'><b>Crater Lake</b></a><br><br>A spectacular mountain lake in the Cascade Mountains of Oregon. Widely renowned for its great depth and beauty, it is also a sacred lake much revered by the Klamath Indians.</div>","Crater Lake");
	
	// Los Angeles
	var point = new GPoint(-118.238983, 34.042703);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/los-angeles.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/los-angeles-downtown-wc-gfdl.jpg'><b>Los Angeles</b></a><br><br>The &quot;City of Angels&quot; is home to a wide array of religious sites, ranging from Episcopalian churches and Chinese temples to the Church of Scientology Celebrity Center.</div>","Los Angeles");
		 
	// Kaneana Cave
	var point = new GPoint(-158.227519,21.519657);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/hawaii-kaneana-cave.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Kaneana Cave</b></a><br><br>Former home of the man-eating Shark-man.</div>","Kaneana Cave");
	
		 // Mount Shasta
	var point = new GPoint(-122.200928, 41.418015);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/mt-shasta.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/mt-shasta-wc-75.jpg'><b>Mount Shasta</b></a><br><br>A beautiful mountain in northern California believed by Native Americans to be the center of creation. Today, it is considered a major center of cosmic power by New Age devotees.</div>","Mt. Shasta");
	
	
		// New Orleans
	var point = new GPoint(-90.070556, 29.964722);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/new-orleans.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/house-of-voodoo-75.jpg'><b>New Orleans</b></a><br><br>Home to Catholic cathedrals, historic convents, Mardi Gras, and Voodoo.</div>","New Orleans");
		 
		 // NYC
	var point = new GPoint(-73.966827, 40.780541);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/new-york-city.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/nyc-st-patricks-cathedral-5th-ave-facade-wp-gfdl-150h.jpg'><b>New York City</b></a><br><br>New York City is home to the largest synagogue in the world, towering cathedrals and other important sacred sites that serve its diverse population.</div>","New York City");
	
		 // Salt Lake Temple
	var point = new GPoint(-111.892008,40.770451);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/salt-lake-city-salt-lake-mormon-temple.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/salt-lake-temple-75.jpg'><b>Salt Lake Temple</b></a><br><br>Headquarters of the Church of Jesus Christ of Latter-Day Saints (Mormons) who also founded Salt Lake City itself.</div>","Salt Lake Temple");
	
		 // San Francisco
	var point = new GPoint(-122.4, 37.8);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/san-francisco.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/sf-alamo-square.jpg'><b>San Francisco</b></a><br><br>As historical Spanish mission and modern-day home to a large East Asian population, San Francisco is home to a variety of great religious places from cathedrals to Chinese temples. The cosmopolitan city also has fantastic museums that include religious art from all traditions.</div>","San Francisco");
		 
		 // Seattle
	var point = new GPoint(-122.330017, 47.603385);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/seattle.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/seattle-pd.jpg'><b>Seattle</b></a><br><br>This cosmopolitan city is home to many cultures and religions, and offers visitors interesting sacred sites ranging from synagogues to Orthodox churches to Tibetan Buddhist temples.</div>","Seattle");
	
		 // Sedona
	var point = new GPoint(-111.762371, 34.866356);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/sedona.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/sedona-mesa-pdphoto-75.jpg'><b>Sedona, Arizona</b></a><br><br>An important site for New Age devotees, Sedona is believed to have several &quot;power vortexes&quot; that are sources of energy. The area also has spectacular scenery and Native American ruins to explore.</div>","Sedona");
		 	 	 
		 // Serpent Mound
	var point = new GPoint(-83.429747, 39.021851);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/usa/serpent-mound.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/usa/images/thumbnails50/serpent-aerial.jpg'><b>Serpent Mound</b></a><br><br>Serpent Mound is a man-made earthwork in the shape of a long, uncoiling serpent nearly a quarter of a mile long. The head of the serpent is aligned to the summer solstice sunset and the coils also may point to the winter solstice sunrise and the equinox sunrise. Created between 1000 and 1500 AD for unknown purposes, the mound is now protected in a state park in Ohio.</div>","Serpent Mound");
	
	
	// 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;
    }

	//]]>