// 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    -->
	
	
				 
		
		 
		 // Aleppo
	var point = new GPoint(37.162628, 36.199265);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/aleppo.htm'><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>Aleppo</b></a><br><br>This second-largest city in Syria has an Umayyad Mosque with a beautifully paved courtyard, a huge 13th-century citadel, and churches of various Eastern traditions in the Christian quarter.<br><br> 	<a href='http://www.sacred-destinations.com/syria/aleppo.htm'>Aleppo Main Page</a> | <a href='http://www.sacred-destinations.com/syria/aleppo-satellite-map.htm'>Aleppo Satellite Map</a></div>","Aleppo");
		 
	 // Apamea
	var point = new GPoint(36.400002, 35.416668);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/apamea.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/apamea-pictures/thumbs/cardo4-cc-mdziedzic.jpg'><b>Apamea</b></a><br><br>This archaeological site features an exceptionally long Roman street, with many columns still standing, as well as other ruins dating mainly from the Roman period. It was the home of Evagrius the church historian and Theodoret the bishop.</div>","Apamea");
		 
		 // Bosra
	var point = new GPoint(36.480278, 32.517778);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/bosra.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/bosra-pictures/thumbs/theater-c-phool.jpg'><b>Bosra</b></a><br><br>This southern city's most impressive feature is its incredibly well preserved Roman theater complete with tall stage buildings. There are also early Christian ruins and several old mosques to be found within its great walls.</div>","Bosra");
		 
		
		
	 // Damascus
	var point = new GPoint(36.31299, 33.509304);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/damascus.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/damascus-umayyad-mosque-pictures/thumbs/facade-wp-gfdl.jpg'><b>Damascus</b></a><br><br>Damascus is the largest city in Syria and may be the oldest continously inhabited city in the world. Its main attraction is the great Ummayad Mosque, which still retains much of its original mosaics. There is also an important Shia shrine and sites associated with St. Paul on the Street Called Straight.<br><br>	<a href='http://www.sacred-destinations.com/syria/damascus.htm'>Damascus Main Page</a> | <a href='http://www.sacred-destinations.com/syria/damascus-satellite-map.htm'>Damascus Satellite Map</a></div>","Damascus"); 
	
	// Dura Europos
	var point = new GPoint(40.724998, 34.75);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/dura-europos.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/dura-europos-pictures/thumbs/river-cc-peuplier.jpg'><b>Dura Europos</b></a><br><br>This important archaeological site has been called the Pompeii of the Syrian Desert. It was abandoned in the 3rd century and is home to the oldest surviving house-church and synagogue ever found, both complete with frescoes.</div>","Dura Europos");	
	
		 // Krak des Chevaliers
	var point = new GPoint(36.418377152, 34.8178905);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/krak-des-chevaliers.htm'><b>Krak des Chevaliers</b></a><br><br>This remarkably well-preserved Crusader castle looks almost exactly as it would have 800 years ago. It guards the only major pass between Antakya in Turkey and Beirut in Lebanon; it was built and expanded between 1150 and 1250 and eventually housed a garrison of 2000. The castle held out against several attacks, but was lost to the Mamluk Sultan Beybar in 1271.</div>","Krak des Chevaliers");
	
	 // Palmyra
	var point = new GPoint(38.283056, 34.552500);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/palmyra.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/syria/palmyra-pictures/thumbs/temple-of-bel-wp-gfdl.JPG'><b>Palmyra</b></a><br><br>Palmyra was once a great and powerful Roman city as its impressive ruins attest. It is most associated with Queen Zenobia, an ambitious woman who took on the Roman emperor. Substantial ruins of the pagan temples of Bel and Baal can be seen here.</div>","Palmyra");
	
	// Seidnaya
	var point = new GPoint(36.452636719, 33.8704155509);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/syria/seidnaya.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/syria/seidnaya-pictures/thumbs/icon-c-mansour.jpg'><b>Seidnaya </b></a><br><br>This hillside town 20 miles north of Damascus is crowned by a 6th-century monastery dedicated to the Nativity of the Virgin Mary. It contains a miraculous icon said to have been painted by St. Luke, and attracts Christian and Muslim pilgrims seeking healing. </div>","Seidnaya ");
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }
	// 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);

	 
			 
		
	
		 
		
	//
//		 // Maalula
//	var point = new GPoint(long, lat);
//	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Maalula</b></a><br><br>Summary</div>","Maalula");
//	
//		 
//		
//		 
//		 // Qa'la Sim'an
//	var point = new GPoint(long, lat);
//	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Qa'la Sim'an</b></a><br><br>Summary</div>","Qa'la Sim'an");
//	
//		 
//		 // Rasafa
//	var point = new GPoint(long, lat);
//	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Title</b></a><br><br>Summary</div>","");
		 
		
		 
		
	
		
	
	

	//]]>
