// 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    -->
		 
		
		  
		 // Chichen Itza
	var point = new GPoint(-88.569167, 20.682778);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/chichen-itza.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/chichen-itza-kukulcan-pyramid-wc-75.jpg'><b> Chichén Itzá</b></a><br><br>Chichén Itzá is the largest of the ancient Mayan ruins on the Yucatan Peninsula and one of Mexico's most visited tourist destinations. It was a center of pilgrimage for the Maya for over 1,000 years.</div>","Chichén Itzá");
			 	  
		 // Title
	var point = new GPoint(-98.302145,19.058305);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/cholula-great-pyramid.htm'><b>Great Pyramid of Cholula</b></a><br><br>The largest ancient structure in Mexico, now covered in grass and topped with a church.</div>","");
	
		 // Coba
	var point = new GPoint(-87.727210, 20.493342);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Coba</b></a><br><br></div>","Coba");
		 
		 // Ek Balam
	var point = new GPoint(-88.136330, 20.892086);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Ek Balam</b></a><br><br></div>","Ek Balam");
	
		 // Kabah
	var point = new GPoint(-89.647751,20.248589);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Kabah</b></a><br><br></div>","Kabah");
		 
		 // Labna
	var point = new GPoint(-89.578970, 20.171843);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Labna</b></a><br><br></div>","Labna");
	
		 // Mexico City
	var point = new GPoint(-99.133083, 19.434123);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/mexico-city.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/mexico-city-cathedral2-sx-250h.jpg'><b>Mexico City</b></a><br><br>The capital city of the Aztecs and of modern Mexico, Mexico City is full of religious sites. With Mexico City as a base, you can experience the most popular Catholic shrine in the world, marvel at several ancient pyramids and temples, and browse fascinating artifacts in the Anthropological Museum.<br><br><a href='http://www.sacred-destinations.com/mexico/mexico-city.htm'>Mexico City Main Page</a> | <a href='http://www.sacred-destinations.com/mexico/mexico-city-maps.htm'>Mexico City Satellite Map</a></div>","Mexico City");
		 
		 	 	 
		 // Palenque
	var point = new GPoint(-92.04689, 17.484291);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/palenque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Palenque</b></a><br><br>Palenque is a Mayan site in the state of Chiapas. Preferred by many visitors to the more famous sites, Palenque contains some of the finest examples of Mayan architecture in a dramatic natural setting. In 683 AD, King Pakal was entombed in his magnificent burial chamber here, which lay unspoiled until its discovery in 1952.</div>","Palenque");
		 
		 // Sayil
	var point = new GPoint(-89.652063, 20.177897);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Sayil</b></a><br><br></div>","Sayil");
	
		
		 // Teotihuacán
	var point = new GPoint(-98.846708, 19.690817);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/teotihuacan.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/teotih-pyramid-sun-cc-abourdeu.jpg'><b>Teotihuacán</b></a><br><br>Constructed around 300 AD, this astonishing collection of pyramids was believed to be where the gods created the world. The stone pyramids are built on a massive scale and laid out according to astronomical alignments. In the 14th century, it became a pilgrimage center for the Aztecs. </div>","Teotihuacán");
	
		 
		 // Tulum
	var point = new GPoint(-87.429521, 20.214945);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/tulum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/mexico/images/thumbnails50/tulum-ruins-beach-cc-kwalbolt.jpg'><b>Tulum</b></a><br><br>Spectacularly located on a cliff overlooking the turquoise Caribbean, Tulum is a late-Maya site that was active from around 1200 AD until the arrival of the Spanish. The Tulum ruins are the third most visited archaeological site in Mexico, after <a href='http://www.sacred-destinations.com/mexico/teotihuacan.htm'>Teotihuacan</a> and <a href='http://www.sacred-destinations.com/mexico/chichen-itza.htm'>Chichen Itza</a>. Located just 120 km south of the popular beach resort of Cancun, Tulum makes a popular day trip by bus.</div>","Tulum");
		 
		 // Uxmal
	var point = new GPoint(-89.771389, 20.359444);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/mexico/uxmal.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='uxmal-pyramid-cc-mexicanwave.jpg'><b>Uxmal</b></a><br><br>The late-Classic Maya site of Uxmal (&quot;oosh-mahl&quot; meaning &quot;thrice-built&quot;) was built before the 10th century AD and is one of the most complex and harmonious expressions of Puuc architecture. Puuc is the name given to the hills nearby and the predominant style of ancient architecture found here. Puuc decoration, which abounds at Uxmal, is characterized by elaborate stonework from door tops to the roofline.</div>","Uxmal");
	
		 
		 // Xlapak
	var point = new GPoint(-89.606325, 20.173976);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Xlapak</b></a><br><br></div>","Xlapak");
	
	// 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;
    }

	//]]>