// 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    -->
	
	 	 	 
		 // Addis Ababa
	var point = new GPoint(38.74, 9.03);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/addis-ababa.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/addis-ababa-photos/WebPhotosProFiles/custom/lion-of-judah-sculpture-c-gabagoo.jpg'><b>Addis Ababa</b></a><br><br>The capital of Ethiopia, Addis Ababa is home to several Ethiopian Orthodox cathedrals and &quot;Lucy,&quot; the oldest hominid ever discovered.<br><br><a href='http://www.sacred-destinations.com/ethiopia/addis-ababa.htm'>Articles</a> | <a href='http://www.sacred-destinations.com/ethiopia/addis-ababa-photos/'>Photo Gallery</a></div>","Addis Ababa");
	
				 // Axum
	var point = new GPoint(38.732471, 14.121843);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/axum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/axum-photos/WebPhotosProFiles/custom/treasury-keeper2-c-galen.jpg'><b>Axum (Aksum)</b></a>&nbsp;&nbsp;<img border='0' src='http://www.sacred-destinations.com/images/logos/unesco-14.gif'><br><br>The ancient capital of Ethiopia's  Axumite Empire, Axum is home to magnificent <a href='http://www.sacred-destinations.com/ethiopia/axum-stelae.htm'>granite obelisks</a> and the reputed <a href='http://www.sacred-destinations.com/ethiopia/axum-ark-of-covenant.htm'>Ark of the Covenant</a>. Thanks to the latter, Axum is the holiest site in Ethiopia.<br><br><a href='http://www.sacred-destinations.com/ethiopia/axum.htm'>Articles</a> | <a href='http://www.sacred-destinations.com/ethiopia/axum-photos/'>Photo Gallery</a></div>","Axum");
		 	 
		 // Bahar Dar
	var point = new GPoint(37.336349,11.698803);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/bahar-dar.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/bahar-dar-photos/WebPhotosProFiles/custom/azua-miriam-c-gabagoo.jpg'><b>Bahar Dar</b></a><br><br>Site of several lakeside, straw-hut Ethiopian Orthodox monasteries decorated with colorful Christian art and topped with ostrich eggs.<br><br><a href='http://www.sacred-destinations.com/ethiopia/bahar-dar.htm'>Article</a> | <a href='http://www.sacred-destinations.com/ethiopia/bahar-dar-photos/'>Photo Gallery</a></div>","Bahar Dar");
	
			 
		 // Gondar
	var point = new GPoint(37.4803,12.6124);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/gondar-debre-birhan-selassie-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/images/gondar/debre-birhan-selassie-ceiling-ap-75.jpg'><b>Gondar</b></a><br><br>The historical city of Gondar is home of the <a href='http://www.sacred-destinations.com/ethiopia/gondar-debre-birhan-selassie-church.htm'>Debre Birhan Selassie Church</a>, famed for its art.</div>","Gondar");
	
	
		 // Lalibela
	var point = new GPoint(39.042769, 12.032143);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ethiopia/lalibela.htm'><img border='0' hspace='5' align='left' src='http://www.sacred-destinations.com/ethiopia/lalibela-photos/WebPhotosProFiles/custom/st-george-top-cc-CharlesFred.jpg'><b>Lalibela</b></a>&nbsp;&nbsp;<img border='0' src='http://www.sacred-destinations.com/images/logos/unesco-14.gif'><br><br>Lalibela is a sacred city for Ethiopian Orthodox Christians, and is home to 11 remarkable rock-carved churches dating from the 12th century.<br><br><a href='http://www.sacred-destinations.com/ethiopia/lalibela.htm'>Article</a> | <a href='http://www.sacred-destinations.com/ethiopia/lalibela-photos/'>Photo Gallery</a></div>","Lalibela");
		 
		 
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>