// 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    -->
	
	
		 
		 // Al Azhar Mosque
	var point = new GPoint(31.26253, 30.045842);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-al-azhar-university.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/al-azhar-courtyard-down-cc-Aaron-Wenner.jpg'><b>Al Azhar Mosque</b></a><br><br>Founded in 988 AD, Al-Azhar University is one of the oldest operating universities in the world and a center of Islamic learning. It is connected to the beautiful and historic Al-Azhar Mosque.</div>","Al Azhar Mosque");
		 	 
			 
		 // Ben Ezra Synagogue
	var point = new GPoint(31.229861, 30.005318);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-ben-ezra-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/ben-ezra-cc-templar1307-450.jpg'><b>Ben Ezra Synagogue</b></a><br><br>Originally a church, this synagogue in Coptic Cairo was sold to the Jews of Cairo in 882 AD. It was frequented by Maimonides and became a place of pilgrimage.</div>","Ben Ezra Synagogue");
	
		 // Citadel
	var point = new GPoint(31.25944, 30.02995);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-citadel.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>Citadel</b></a><br><br>The Citadel was built in the 12th century by Saladin and his successors, using the most advanced construction techniques of the age. For the next 700 years, Egypt was ruled from this hill, which includes two lovely mosques. </div>","Citadel");
		 	
			// Coptic Museum
	var point = new GPoint(31.230623, 30.00589);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-coptic-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/coptic-museum-scroll.jpg'><b>Coptic Museum</b></a><br><br>This museum houses the world's largest collection of Coptic Christian artwork. Some of the Nag Hammadi manuscripts are here, as well as interesting art that combines pagan and Christian.</div>","Coptic Museum");
	 
		 // Egyptian Museum
	var point = new GPoint(31.233594, 30.047829);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-egyptian-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/egyptian-museum-cc-azlan-nache.jpg'><b>Egyptian Museum</b></a><br><br>This huge neoclassical building houses the largest collection of ancient Egyptian artifacts in the world, including artifacts from the tomb of King Tut.</div>","Egyptian Museum");
		 
		 // Hanging Church
	var point = new GPoint(31.230081, 30.005388);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-hanging-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/hanging-church-cc-azlan-nache.jpg'><b>Hanging Church</b></a><br><br>The most well-known Coptic church in Cairo is this church dedicated to the Virgin Mary and named for its elevated location. It dates mainly from the 10th century.</div>","Hanging Church");
	
		 // Ibn Tulun Mosque
	var point = new GPoint(31.249559, 30.029123);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-ibn-tulun-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/ibn-tulun-cc-ashraf.jpg'><b>Ibn Tulun Mosque</b></a><br><br>Built by Ahmad Ibn Tulun in 879, this is the oldest mosque in Egypt and the third largest in the world. It is also famed for its lovely architecture and unique minaret.</div>","Ibn Tulun Mosque");
		  
		  // Islamic Museum
	var point = new GPoint(31.252434, 30.044365);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-museum-of-islamic-arts.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/islamic-museum-koran-c.jpg'><b>Islamic Art Museum</b></a><br><br>One of the finest museums in Cairo is this collection of over 10,000 pieces of Islamic art. The exhibits illustrate every era of development, from Ummayad to Abbasid, Fatimid, Ayyubid, and Mamluk works.</div>","Islamic Art Museum");
	
		 // Muhammad Ali Mosque
	var point = new GPoint(31.259837, 30.028733);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-muhammad-ali-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/cairo-muh-cc-grumpywolf.jpg'><b>Muhammad Ali Mosque</b></a><br><br>The Muhammad 'Ali Mosque or Alabaster Mosque is the most noticeable in all of Cairo; for more than 150 years it has dominated the skyline. The outside features alabaster facing and the interior reflects a somewhat gaudy attempt to weld Middle Eastern and French rococo and is finished with ornate lines of red, green, and gold.</div>","Muhammad Ali Mosque");
		 
		 // Nile Hilton Hotel
	var point = new GPoint(31.232607, 30.046009);
	createMarker(point,"<div id=bubble><b>Nile Hilton Hotel</b><br><br>Check in here if you can afford it - the location next to the Egyptian Museum can't be beat!</div>","Nile Hilton Hotel");
	
		 // Oswald Chambers Grave
	var point = new GPoint(31.231341, 30.013889);
	createMarker(point,"<div id=bubble><b>Oswald Chambers Grave</b><br><br>Final resting place of the beloved author of <em>My Utmost for His Highest</em>.</div>","Oswald Chambers Grave");
	
	// St. George's Church
	var point = new GPoint(31.229952, 30.006387);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-st-george-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/cairo-george-cc-azlan-nache.jpg'><b>St. George\'s Church</b></a><br><br>The Church of St. George (Mari Girgis) in Coptic Cairo is the principal Greek Orthodox church of Egypt. Originally built in the 10th century, it stands atop an old Roman tower and adjoins the Monastery of St. George.</div>","St. George\'s Church");
	
		 // Sultan Hassan Mosque
	var point = new GPoint(31.256382, 30.032133);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/egypt/cairo-sultan-hassan-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/egypt/images/thumnails50/sultan-hassan-cc-romsrini.jpg'><b>Sultan Hassan Mosque</b></a><br><br>Built between 1356 and 1363 by the Mamluk ruler Sultan Hassan, this is among the largest and most impressive Islamic buildings in the world. It may incorporate stone from the Pyramids of Giza.</div>","Sultan Hassan Mosque");
	
	
	// 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);


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

	//]]>