// 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    -->
		 
		 // Copacabana
	var point = new GPoint(-69.085615, -16.166125);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/copacabana.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/copa-harbor-cc-where-is-my-taco.jpg'><b>Copacabana</b></a><br><br>This holy city on the shores of Lake Titicaca in northwestern Bolivia was once sacred to the Incas and is now famed as the home of the miraculous statue of La Virgen de la Candelaria, the patron saint of Bolivia.<br><br><a href='http://www.sacred-destinations.com/bolivia/copacabana.htm'>Copacabana Main Page</a> | <a href='http://www.sacred-destinations.com/bolivia/copacabana-map.htm'>Copacabana Satellite Map</a></div>","Copacabana");
		 
			 
		 // Cochabamba
	var point = new GPoint(-66.175461, -17.371364);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/cochabamba.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/cocha-weeping-christ-statue-nc-visionsofjc.jpg'><b>Cochabamba</b></a><br><br>The religious sights of this large and lively city include a statue of Christ whose weeping defies explanation, and the largest statue of Christ in the world.<br><br><a href='http://www.sacred-destinations.com/bolivia/cochabamba.htm'>Cochabamba Main Page</a> | <a href='http://www.sacred-destinations.com/bolivia/cochabamba-map.htm'>Cochabamba Satellite Map</a></div>","");
	
		 
		 // Isla del Sol
	var point = new GPoint(-69.175501, -16.018343);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/lake-titicaca.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/isla-del-sol-terraces-cc-welsh-boy.jpg'><b>Isla del Sol</b></a><br><br>The largest of the 41 islands in Lake Titicaca (but still only 5.5 by 3.75 miles in size), Isla del Sol was believed to be the home of the supreme Inca god Inti. There are many interesting sights here, including a sacred stone, a labyrinth, Incan terraces, and a reputed fountain of youth. </div>","Isla del Sol");
		 
		 // La Paz
	var point = new GPoint(-68.1374, -16.496511);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/la-paz.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/la-paz-woman-cc-the-mediamentor.jpg'><b>La Paz</b></a><br><br>This fascinating city keeps its native traditions alive, including the practice of witchcraft and a colorful style of traditional dress, complete with bowler hats on the women. Its churches exemplify the fusion of native and Catholic art.<br><br><a href='http://www.sacred-destinations.com/bolivia/la-paz.htm'>La Paz Main Page</a> | <a href='http://www.sacred-destinations.com/bolivia/la-paz-map.htm'>La Paz Satellite Map</a></div>","La Paz");
	
		 	 	 
		 // Lake Titicaca
	var point = new GPoint(-69.384155,-15.821324);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/lake-titicaca.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/titicaca-from-isla-del-sol-cc-jungle-boy.jpg'><b>Lake Titicaca</b></a><br><br>This sacred lake, which is among the highest and deepest lakes in the world, lies on the border between Peru and Bolivia. The Incas believed it was from here that Viracocha rose up to create the world.</div>","Lake Titicaca");
	
		 // Samaipata - El Fuerte
	var point = new GPoint(-63.819753, -18.178369);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/samaipata.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/samaipata-hill-c.jpg'><b>El Fuerte, Samaipata</b></a><br><br>This intriguing ancient site, dubbed &quot;The Fort&quot; by the Spanish, includes a large stone hill covered in mysterious carvings. It has been designated a World Heritage Site.</div>","Samaipata");
		 
		 // Tiwanaku
	var point = new GPoint(-68.673306, -16.555592);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/bolivia/tiwanaku.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/bolivia/images/thumbs/tiwanaku-faces3-cc-marcalandavis.jpg'><b>Tiwanaku</b></a><br><br>Another of Bolivia's World Heritage Sites, the temples, megaliths, and intriguing sculptures of Tiwanaku were created by pre-Incan people. The city was later holy to the Incas, who believed it to be the site of creation.</div>","Tiwanaku");
	

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

	//]]>
