// 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    -->
	
	
		
		 
		
	
		 
		 // Christian Quarter
	var point = new GPoint(37.155413, 36.206607);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/aleppo-churches-pictures/index.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/aleppo-churches-pictures/thumbs/maronite-cathedral-c-syrialooks.jpg'><b>Christian Quarter</b></a><br><br>Aleppo has a large Christian community, or rather communities: its many churches represent nearly a dozen different denominations, from Armenian to Greek Orthodox to Syrian Catholic. </div>","Christian Quarter");
	
		 
		 // Citadel
	var point = new GPoint(37.162628, 36.199265);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/images/thumbs/aleppo-citadel-cc-charles-fred.jpg'><b>Citadel</b><br><br>Aleppo's Citadel is an enormous fortress, considered the oldest and best in Syria. The current structure dates from around the 13th century, when it was used by Saladin's son, and it contains two mosques.</div>","Citadel");
	
		
	
	 // Umayyad Mosque
	var point = new GPoint(37.156792, 36.199265);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/aleppo-umayyad-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/aleppo-umayyad-mosque-pictures/thumbs/courtyard-c-hov.jpg'><b>Great Mosque</b></a><br><br>This mosque was founded just 10 years after the more famous mosque in Damascus. Recently restored to gleaming beauty, it is notable for its geometric courtyard paving and shrine of Zechariah.</div>","Great 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;
    }

	//]]>