// 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    -->
	
	 
	// Hatay Archaeological Museum
	var point = new GPoint(36.16004,36.20201);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/antakya-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/antioch-artifacts-photos/thumbs/museum-objects-under-review-c-andrys.jpg'><b>Hatay Archaeological Museum</b></a><br><br>The Hatay Archaeological Museum is an excellent museum of ancient art. Its collections include most of the famous mosaics from ancient Antioch that were discovered in 1932-39, and is thus sometimes known as the Mosaic Museum.</div>","Hatay Archaeological Museum");
	
	// Cave Church of St. Peter
	var point = new GPoint(36.181753,36.208944);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/antioch-cave-church-of-peter.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/antioch-cave-church-photos/WebPhotosProFiles/custom/outside-c-osseman.jpg'><b>Cave Church of St. Peter</b></a><br><br>This cave is widely believed to have been dug by the Apostle Peter himself as a place for the early Christian community of Antioch to meet, and thus to be the very first Christian church. Whether or not this is so, St. Peter (and St. Paul) did preach in Antioch around 50 AD and a church had been established in Antioch by as early as 40 AD.</div>","Cave Church of St. Peter");
	
	// Charonion
	var point = new GPoint(36.185680,36.207709);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/antioch-charonion.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/images/thumbnails50/antioch-charonion-nc-kristensen-stoa-org.jpg'><b>Charonion</b></a><br><br>This carved stone bust in the mountainside above Antioch dates from the 3rd century BC and was probably created in the hopes of averting a plague. Placemark is approximate.</div>","Charonion");
	
	// Seleucia Pieria Church
	var point = new GPoint(35.92761,36.117424);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/antioch-seleucia-pieria-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/images/thumbnails50/seleucia-church-model.jpg'><b>Seleucia Pieria Church</b></a><br><br>Now completely destroyed, this church was built in the late 400s in Antioch's port city of Seleucia Pieria. Many interesting examples of early Christian mosaic and relief art were discovered here. Placemark is approximate.</div>","Seleucia Pieria Church");
	
	
	// 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;
    }

	//]]>
