// 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    -->
	
	
	
	 	 
		 // Great Pyramid of Khufu
	var point = new GPoint(31.134095, 29.979082);
	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=''><b>Great Pyramid of Khufu</b></a><br><br>The Great Pyramid of Khufu at Giza is the largest single building ever constructed. Originally 479 ft (146 m) in height, it still stands at an awe-inspiring 449 ft (137 m).</div>","Great Pyramid of Khufu");	
	
	
		 // Great Sphinx
	var point = new GPoint(31.13749, 29.975281);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/giza-sphinx.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/giza/giza-sphinx-closeup-wc-gfdl-75.jpg'><b>The Great Sphinx</b></a><br><br>Shrouded in mystery and with alleged connections to Atlantis, this great sculpture continues to fascinate visitors. Believed to be a portrait of the pharaoh Khafre, occupants of one of the pyramids, the Great Sphinx is probably an ancient guardian of his tomb.</div>","The Great Sphinx");
	
	// Mortuary Temple
	var point = new GPoint(31.132915, 29.975959);
	createMarker(point,"<div id=bubble><b>Mortuary Temple</b><br><br></div>","Mortuary Temple");
	
	// Muslim Cemetery
	var point = new GPoint(31.13814, 29.972418);
	createMarker(point,"<div id=bubble><b>Muslim Cemetery</b><br><br></div>","Muslim Cemetery");
	
		 // Pyramid of Khafre
	var point = new GPoint(31.130984, 29.976015);
	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/images/thumnails50/pyramid-khafre-cc-JochenB.jpg'><b>Pyramid of Khafre</b></a><br><br>The second-largest pyramid of Giza was built for Khufu's son Khafre (Chephren), who became the fourth king of the Fourth Dynasty after the death of his short-lived elder brother and died c.2532 BC. Although many of his relatives were hastily buried in cheap tombs, the Pyramid of Khafre is almost as vast as the Great Pyramid of his father.</div>","Pyramid of Khafre");
		 
		 // Pyramid of Menkaure
	var point = new GPoint(31.128334, 29.972511);
	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=''><b>Pyramid of Menkaure</b></a><br><br>The southernmost and last of the pyramids to be built was the Pyramid of Menkaure (Mycerinus), son of Khafre and the fifth king of the Fourth Dynasty. Each side measures 356 ft (109 m), and the structure's completed height was 218 ft (66 m).</div>","Pyramid of Menkaure");
	
		  // Queen's Pyramids - Menkaure
	var point = new GPoint(31.127803, 29.97161);
	createMarker(point,"<div id=bubble><b>Queen's Pyramids</b><br><br></div>","Queen's Pyramids");
	
	// Queen's Pyramids - Khufu
	var point = new GPoint(31.13622, 29.977929);
	createMarker(point,"<div id=bubble><b>Queen's Pyramids - Khufu</b><br><br></div>","Queen's Pyramids - Khufu");
	
	// Queen's Pyramid - Khafre
	var point = new GPoint(31.130812, 29.974472);
	createMarker(point,"<div id=bubble><b>Queen's Pyramid - Khafre</b><br><br></div>","Queen's Pyramid - Khafre");
	
	// Solar Boat
	var point = new GPoint(31.134503, 29.978004);
	createMarker(point,"<div id=bubble><b>Solar Boat</b><br><br></div>","Solar Boat");
	
	

	// Valley Temple
	var point = new GPoint(31.13829, 29.974723);
	createMarker(point,"<div id=bubble><b>Valley Temple</b><br><br></div>","Valley Temple");
	

		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>