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

	 	  // Colossi of Memnon
	var point = new GPoint(32.610261, 25.720514);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-colossi-of-memnon.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/colossi-of-memnon-wc-cc-Blueshade2-200h.jpg'><b>Colossi of Memnon</b></a><br><br>The first main sight across the Nile from Luxor are hese two massive stone statues of Pharaoh Amenhotep III. For 3,400 years, they have guarded his mortuary temple here.</div>","Colossi of Memnon");
	
		  // Karnak Temple
	var point = new GPoint(32.657778, 25.718333);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-karnak-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/karnak-temple-cryosphinx-wc-gfdl.jpg'><b>Karnak Temple</b></a><br><br>This vast temple complex in Luxor is dedicated primarily to Amun and dates from as early as 2000 BC. It is an impressive sight, and second only to the Great Pyramids in popularity.</div>","Karnak Temple");
		
		 // Luxor Temple
	var point = new GPoint(32.638889, 25.699444);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-luxor-temple.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 Temple</b></a><br><br>Near Karnak and also dedicated to Amun is the huge Luxor Temple, dating from the 1300s BC. It is full of monumental statues, tall walls and ancient carvings, and is beautifully lit at night.</div>","Luxor Temple");
		 	 
		 // Ramesseum
	var point = new GPoint(32.610014, 25.727900);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-ramesseum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/ramesseum-hieroglyphs-cc-Aaron-Wenner.jpg'><b>Ramesseum</b></a><br><br>The great mortuary temple of Ramses II, a 19th dynasty pharaoh of Egypt. He ruled for 67 years during the 13th century BC, the apogee of Ancient Egypt's power and glory.</div>","Ramesseum");
		 
		 // Temple of Hatshepsut
	var point = new GPoint(32.607440, 25.737970);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-tomb-of-hatshepsut.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/hatshepsut-cc-ting0308.jpg'><b>Temple of Hatshepsut</b></a><br><br>This three-tiered mortuary temple is dedicated to Hatshepsut, a female pharaoh who reigned 1503-1482 BC. Built against a cliff face, the great complex has ancient statues and carvings.</div>","Temple of Hatshepsut");
	
		 
		 // Valley of the Kings
	var point = new GPoint(32.601667, 25.740833);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/luxor-valley-of-the-kings.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/valley-of-the-kings-ramses-tomb-c-Axel.jpg'><b>Valley of the Kings</b></a><br><br>This famed valley on the West Bank of the Nile was the burial place for pharaohs and nobles from 1539 BC to 1075 BC. It contains some 60 tombs, including that of King Tut.</div>","Valley of the Kings");
		 
		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>