// 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    -->
	
	
	
	 
		 // Dahshur - Bent Pyramid
	var point = new GPoint(31.209131, 29.790100);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/dahshur-bent-pyramid.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 - Bent Pyramid</b></a><br><br>Built by Pharaoh Sneferu, the Bent Pyramid was the first pyramid to have been planned as a true pyramid, as opposed to a step pyramid. Its unusual bent angle probably results from a necessary last-minute adjustment to the angle.</div>","Dahshur - Bent Pyramid");
		 
		 // Dahshur - North Pyramid
	var point = new GPoint(31.205978, 29.808625);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/dahshur-north-pyramid.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/dahshur/red-pyramid-wp-gfdl-75.jpg'><b>Dahshur - North Pyramid</b></a><br><br>The North Pyramid in Dahshur is the third largest pyramid in Egypt. It belonged to the Fourth Dynasty Pharaoh Sneferu, father of Khufu, who built the Great Pyramid of Giza.</div>","Dahshur - North Pyramid");
		 
		 // Saqqara - Step Pyramid of Djoser
	var point = new GPoint(31.216294, 29.871267);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/saqqara-step-pyramid-of-djoser.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 - Step Pyramid of Djoser</b></a><br><br>The Step Pyramid at Djoser was the first of the Egyptian pyramids to be built. Its architect, Imhotep, was later deified and identified with the Greek god of healing, Asclepius.</div>","Saqqara - Step Pyramid of Djoser");
		 
		 // Saqqara - Mastaba of Mereruka
	var point = new GPoint(31.221014, 29.875969);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/saqqara-mereruka-mastaba.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/saqqara/step-pyramid-djoser-snakes-cc-phool-4-XC-75.jpg'><b>Saqqara - Mastaba of Mereruka</b></a><br><br>Built for a pharaoh's vizier c.2200 BC, the Mastaba (flat-topped tomb) of Mereruka has 32 rooms and featured detailed decoration inside.</div>","Saqqara - Mastaba of Mereruka");
	
	


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

	//]]>