// 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    -->
	
	
	// Citadel
	var point = new GPoint(36.302412, 33.511629);
	createMarker(point,"<div id=bubble><b>Citadel</b><br><br>The citadel of Damascus, which is smaller than the one in Aleppo, dates mainly from the Ayyubid and Mameluke periods, when Sultan al Adil used it to defend Damascus against the Crusaders and Mongols in the 13th century.</div>","The Citadel"); 
	
	// Holy Cross Church (Orthodox)
	var point = new GPoint(36.31826, 33.51714);
	createMarker(point,"<div id=bubble><b>Holy Cross Orthodox Church</b></div>","Holy Cross Church");
	
	 // National Museum
	var point = new GPoint(36.289837, 33.512667);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/damascus-national-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/images/thumbs/national-museum-entrance-cc-upyernoz.jpg'><b>National Museum</b></a><br><br>This world-class museum displays the most important finds from excavations throughout Syria, most notably the world's first alphabet (from Ugarit) and the 2nd-century synagogue of Dura Europos.</div>","National Museum");
	
		 		 
		 // Straight Street
	var point = new GPoint(36.31299, 33.509304);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/damascus-straight-street-via-recta.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/syria/images/thumbs/straight-st-arch-minaret1-c-vinayak.jpg'><b>Straight Street</b></a><br><br>This historic street is as straight today as when it was walked by St. Paul. Today it contains many markets, the House of Ananias, several Roman arches and mosques.</div>","Straight Street");
		 
		
		 
		 // Tekkiye Mosque
	var point = new GPoint(36.291211, 33.512667);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/damascus-tekkiye-mosque.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/syria/images/thumbs/tekkiya-as-suleimaniyya-cc-upyernoz.jpg'><b>Tekkiye (Sulieman) Mosque</b></a><br><br>This Turkish-style mosque complex was designed by Sinan at the order of Sulieman the Magnificent, and therefore looks much like a mosque you would see in Istanbul.</div>","Tekkiye Mosque");
	
		 
		
	 
		 // Umayyad Mosque
	var point = new GPoint(36.306322, 33.511585);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/damascus-umayyad-mosque.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/syria/damascus-umayyad-mosque-pictures/thumbs/facade-cc-justhugo.jpg'><b>Umayyad Mosque</b></a><br><br>This 7th-century historic mosque stands on a site that has been sacred since 1000 BC, and has earned the designation of World Heritage Site. Its facade is covered in splendid mosaics and inside is a shrine to St. John the Baptist.</div>","Umayyad 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);

	 
		 // Four Seasons Hotel
	var point = new GPoint(36.291039, 33.513973);
	createMarker(point,"<div id=bubble><a href='http://www.tripadvisor.com/Hotel_Review-g294011-d582310-Reviews-m10556-a_aid.CD275-r78268-Four_Seasons_Hotel_Damascus-Damascus.html'><b>Four Seasons Hotel</b></a><br><br>The number-one rated place to stay in Damascus - click link to read reviews and check availability.</div>","Four Seasons Hotel");
	
		
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>