// 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    -->
		 
		 
		 // Cathedral
	var point = new GPoint(-96.725231,17.061534);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/oaxaca-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/oaxaca-cathedral-cc-stevecadman.jpg'><b>Oaxaca Cathedral</b></a><br><br>Oaxaca's cathedral is an imposing, strong-walled structure with an attractive Baroque facade. Founded in 1553 but extensively rebuilt after a fire in 1730, it features a bronze altar and a much-revered crucifix that was the sole survivor of the lightning-caused blaze.</div>","Oaxaca Cathedral");
		 
		 // Santo Domingo
	var point = new GPoint(-96.723086,17.065677);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/oaxaca-santo-domingo-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/oaxaca-santo-domingo-cc-stevecadman.jpg'><b></b></a><br><br>Of the 27 churches in Oaxaca, none can equal the splendor of the Iglesia de Santo Domingo's interior. Over 12 million pesos were spent on the church; its simple facade hides an interior sparkling with gilded walls and ornate statues. When the sun shines through the yellow stained-glass window, it casts a golden glow over the whole interior and looks like a Baroque vision of heaven.</div>","Santo Domingo");
		 
			 
		 //  	Basilica de la Soledad
	var point = new GPoint(-96.730253,17.063482);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/oaxaca-basilica-de-la-soledad.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/oaxaca-basilica-de-la-soledad-wc-gfdl.jpg'><b>Basilica de la Soledad</b></a><br><br>The Basilica de la Soledad in Oaxaca is the most important religious site in the entire state of Oaxaca. The basilica was built between 1682 and 1690 to house the holy image of the Virgin of Solitude (Soledad), Oaxaca's patron saint. The statue stands inside the church, decorated with 600 diamonds and topped with a 4-lb gold crown. Her vestments are encrusted with pearls. The church itself is elaborate as well, with a 79-foot-high Baroque facade and a heavily gilded interior. </div>","Basilica de la Soledad");
		 
		 // Monte Alban
	var point = new GPoint(-96.768415,17.044004);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/oaxaca-monte-alban.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/monte-alban-ball-court-cc-jubilo.jpg'><b>Monte Alban</b></a><br><br>Situated on a mountain 1,315 ft above the Oaxaca Valley, this was once the holy city of more than 30,000 Zapotecs. It flourished from 300 BC to 800 AD and was later adopted by the Mixtecs.</div>","Monte Alban");
	
		
		
	
	
	
	// 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);

	 // Palacio Nacional -99.131248, 19.432499

	
		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>