// 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);
	 
		 // Abu Simbel
	var point = new GPoint(31.625903, 22.337123);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/abu-simbel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/abu-simbel-pictures/thumbs/nefertari-temple15-cc-rita-willaert.jpg'><b>Abu Simbel</b></a><br><br></div>","");
	
	 	 
		 // Alexandria
	var point = new GPoint(29.95285, 31.218674);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/alexandria.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/alex-library-water-c-torie.jpg'><b>Alexandria</b></a><br><br>Alexandria was once a major center of the Greek world and the Byzantine Empire. It was home to a famous library and academy as well as the Pharos lighthouse, one of the Seven Wonders of the Ancient World. Little of this ancient greatness remains, but modern Alexandria still has several sites of historical and religious significance.<br><br><a href='http://www.sacred-destinations.com/egypt/alexandria.htm'>Alexandria Main Page</a> | <a href='http://www.sacred-destinations.com/egypt/alexandria-map.htm'>Alexandria Satellite Map</a></div>","Alexandria");
	
		 // Cairo
	var point = new GPoint(31.2333, 30.05);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/citadel-cc-romsrini.jpg'><b>Cairo</b></a><br><br>Cairo is positively packed with sites of religious significance, from mosques and madrasas to Coptic churches and museums. And the Great Pyramids of Giza are conveniently located on the outskirts of the city.<br><br><a href='http://www.sacred-destinations.com/egypt/cairo.htm'>Cairo Main Page</a> | <a href='http://www.sacred-destinations.com/egypt/cairo-maps.htm'>Cairo Satellite Map</a></div>","Cairo");
	
    	 
		 // Dahshur
	var point = new GPoint(31.207178, 29.800617);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/giza-to-dahshur.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/dahshur/bent-pyramid-wp-75.jpg'><b>Dahshur</b></a><br><br>Dahshur is home to two pyramids of Sneferu: the <a href='http://www.sacred-destinations.com/egypt/dahshur-bent-pyramid.htm'>Bent Pyramid</a> and the <a href='http://www.sacred-destinations.com/egypt/dahshur-north-pyramid.htm'>Red or North Pyramid</a>, the latter of which is the third largest pyramid in Egypt.</div>","Dahshur");
	
	 	 
		 // Dendera
	var point = new GPoint(32.656458, 26.165713);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/dendera-temple-of-hathor.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Temple of Hathor, Dendera</b></a><br><br>Dendera was an ancient healing center, comparable to a Greek Asklepion or the Catholic Lourdes. Hathor, wife of Horus, was the goddess of the sky, fertility and healing, and the rituals performed by her priestesses included the use of a sistrum, or rattle. The relatively young temple (30 BC-14 AD) complex at Dendera is dedicated to Hathor.  Despite defacement of some figures by early Christians, many buildings and fascinating decorations remain.</div>","Dendera");
		 
		 // Edfu
	var point = new GPoint(32.873315,24.978108);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/edfu.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/edfu-pictures/thumbs/horus-cc-pnendick.jpg'><b></b></a><br><br>The Temple of Horus in Edfu is a Ptolemaic-era temple built under several successive rulers from 237 to 57 BC. Considered the best-preserved temple in Egypt, it is also the second largest.</div>","");
	
	  	 // Giza
	var point = new GPoint(31.131649, 29.977836);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/giza-pyramids.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/giza-pyramids-pictures/thumbs/pyramid-cc-romsrini.jpg'><b>Giza</b></a><br><br>Located just outside of Cairo, the Great Pyramids of Giza are the sole surviving Ancient Wonder of the World.<br><br><a href='http://www.sacred-destinations.com/egypt/giza-pyramids.htm'>Great Pyramids</a> | <a href='http://www.sacred-destinations.com/egypt/giza-sphinx.htm'>The Sphinx</a></div>","Giza");
		 	 	 
		 // Kalabsha
	var point = new GPoint(32.8675, 23.961106);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Kalabsha</b></a><br><br></div>","Kalabsha");
		 
		 // Kom Ombo
	var point = new GPoint(32.928252,24.452101);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Kom Ombo</b></a><br><br></div>","Kom Ombo");
	
		 // Luxor
	var point = new GPoint(32.638889, 25.699444);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/luxor-temple-night-cc-robertf.jpg'><b>Luxor</b></a><br><br><br><br><a href='http://www.sacred-destinations.com/egypt/luxor.htm'>Luxor Main Page</a> | <a href='http://www.sacred-destinations.com/egypt/luxor-maps.htm'>Luxor Satellite Map</a></div>","Luxor");
		 
		 // Philae
	var point = new GPoint(32.884250, 24.025256);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/philae.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Island of Philae</b></a><br><br>Home to the great Temple of Isis, a major place of pilgrimage in the ancient world and one of the last sanctuaries to be converted to Christianity.</div>","");
	
			 
		 // Saqqara
	var point = new GPoint(31.219644, 29.870275);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/giza-to-dahshur.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/saqqara/step-pyramid-djoser-cc-phool-4-XC-100.jpg'><b>Saqqara</b></a><br><br>Saqqara is home to several pyramids and tombs, including the <a href='http://www.sacred-destinations.com/egypt/saqqara-mereruka-mastaba.htm'>Mastaba of Mereuka</a> (a rectangular tomb) and the <a href='http://www.sacred-destinations.com/egypt/saqqara-step-pyramid-of-djoser.htm'>Step Pyramid of Djoser</a>, the first Egyptian pyramid.</div>","Saqqara");
	
	
		 // Sinai
	var point = new GPoint(33.975433,  28.556228);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/sinai-st-catherines-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Catherine's Monastery, Sinai</b></a><br><br>Located near where Moses received the Ten Commandments and traditionally enclosing the Burning Bush, St. Catherine's is the oldest Christian monastery still in use and has an extensive collection of ancient icons and manuscripts.</div>","St. Catherine's Monastery");
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>
