// 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_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);

	

      // 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    -->
	
	 	 	 
		 // Ark of the Covenant
	var point = new GPoint(38.719543,14.129704);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/axum-ark-of-covenant.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/thumbs/treasury-of-ark-c-sacredsites.jpg'><b>Ark of the Covenant</b></a><br><br>The biblical Ark of the Covenant mysteriously disappeared from Jerusalem sometime before Christ. But Ethiopians and some western theorists know exactly where it is: enshrined in this chapel in Axum.</div>","Ark of the Covenant");
	
		 // Palace of the Queen of Sheba
	var point = new GPoint(38.706508,14.126817);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/thumbs/ruins-cc-nyuatauc.jpg'><b>Palace of the Queen of Sheba</b><br><br>These 3,000-year old ruins are believed to have been the palace of the Queen of Sheba, whom Ethiopians say bore a son with King Solomon.</div>","Palace of Queen of Sheba");	
		
		 // Stelae Field
	var point = new GPoint(38.719259,14.131967);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/axum-stelae.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/thumbs/stele-cc-stefan-gara.jpg'><b>Axum Stelae Field</b></a><br><br>Dating from around 300-500 AD, the famous Axum stelae probably predate the arrival of Christianity. Their purpose is almost certainly religious, but the details are not known for certain. There are over 100 of these stelae in Axum.</div>","Stelae Field");
	
		 // St. Mary of Zion Church (New)
	var point = new GPoint(38.719683,14.130307);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/axum-church-of-mary-of-zion.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/thumbs/church-cc-lvovsky.jpg'><b>St. Mary of Zion Church (New)</b></a><br><br>Emperor Haile Selassie founded this new Church of St. Mary of Zion next to the old one. It was completed in 1964. Unlike the original, the new St. Mary of Zion allows entrance to women.</div>","St. Mary of Zion (New)");
	
		 // St. Mary of Zion Church (Old)
	var point = new GPoint(38.719355,14.129454);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/axum-church-of-mary-of-zion.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/thumbs/st-mary-zion-church-and-treasury-c-sacredsites.jpg'><b>St. Mary of Zion Church (Old)</b></a><br><br>This church is the holiest shrine in Ethiopian Christianity. It was first built in the 300s AD, shortly after Christianity arrived in Ethiopia. The present building dates from a rebuild in 1635 after it was destroyed by Muslim armies. Neither visitors nor women are allowed in this church, but both are admitted to the new church next door.</div>","St. Mary of Zion (Old)");
	
		 
		 
	 // put the assembled sidebar_html contents into the sidebar div
    document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>