// 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;
}



  

<!--    begin pulling data    -->
	
	
	
	
	// 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);

	 
		 // Bethlehem
	var point = new GPoint(35.2, 31.7);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/bethlehem.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/israel/bethlehem-church-of-nativity-pictures/thumbs/grotto-reflection-c-damon-lynch-pbase.jpg'><b>Bethlehem</b></a><br><br>As the site of Jesus' birth, this city in the West Bank is a major Christian pilgrimage destination. It is also home to an important Jewish shrine, the Tomb of Rachel.</div>","Bethlehem");
		
	
		 // Caesarea
	var point = new GPoint(34.8833, 32.4667);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/caesarea.htm'><img style='border-color:#666666' border='0' hspace='5' align='left' src=''><b>Caesarea</b></a><br><br>Ruins of a once-great Greco-Roman city that hosted King Herod, the church historian Eusebius and Crusaders.</div>","Caesarea");
		 	 	 
		 // Capernaum
	var point = new GPoint(35.57446, 32.881083);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/capernaum.htm'><img style='border-color:#666666' border='0' hspace='5' align='left' src='http://www.sacred-destinations.com/israel/capernaum-photos/thumbs/synagogue-to-north-c-hlp.jpg'><b>Capernaum</b></a><br><br>Jesus stayed in St. Peter's house in this fishing village and made it the main base of his Galilean ministry. Here he healed the paralytic, the centurion's son, and Peter's mother-in-law. Today, it is an archaeological site with a beautiful Byzantine-era synagogue and an ancient church built around the house of St. Peter.</div>","Capernaum"); 
		 // Emmaus
	var point = new GPoint(34.989438, 31.839367);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/emmaus.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Emmaus</b></a><br><br>Located about 30km west of Jerusalem, this is traditionally held to be the village where Jesus was not immediately recognized by two disciples after the Resurrection. (Lk 24:13-35)</div>","Emmaus");
	
		// Haifa
	var point = new GPoint(34.988365, 32.818874);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/haifa.htm'><img style='border-color:#666666' border='0' hspace='5' align='left' src=''><b>Haifa</b></a><br><br>Israel's third largest city is home to the headquarters of the Baha'i Faith, a shrine to Elijah, and several other religious sites.</div>","Haifa");
		 
		 // Hebron
	var point = new GPoint(35.110567,31.524703);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/hebron-tombs-of-the-patriarchs.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Tombs of the Patriarchs, Hebron</b></a><br><br>This is the second holiest site in Judaism after the Western Wall and very important in Islam and Christianity as well. Here a huge walled complex built by Herod the Great in the 1st century BC, the only such building to survive, shelters the cave tombs of Abraham, Isaac and Jacob and their wives.</div>","Hebron");
	
		 // Jerusalem
	var point = new GPoint(35.222576, 31.777203);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/jerusalem.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/israel/dome-of-the-rock-photo-tour/WebPhotosProFiles/custom/dome-of-the-rock-close-cc-waynemclean.jpg'><b>Jerusalem</b></a><br><br>The holiest city in the world for Jews and Christians and third holiest city for Muslims, Jerusalem is a city of unparalleled religious heritage and spirituality.</div>","Jerusalem");
	
	// Mount Precipice
	var point = new GPoint(35.298085, 32.681791);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/mount-precipice.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/israel/images/thumbnails50/mt-precipice-c-biblewalks.jpg'><b>Mount Precipice</b></a><br><br>Catholic tradition has it that this is the place from which the people of Nazareth attempted to throw Jesus over the cliff. &quot;All the people in the synagogue were furious when they heard this. They got up, drove him out of the town, and took him to the brow of the hill on which the town was bult, in order to throw him down the cliff.&quot; (Lk 4:28-29)</div>","Mount Precipice");
			  // Mount Tabor
	var point = new GPoint(35.39095, 32.6863784);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/mt-tabor.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Mount Tabor</b></a><br><br>This steep hill has played an important role as a fortress in biblical and Greco-Roman times and it is thought by some to be the site of the Transfiguration. &quot;Jesus took with him Peter, James and John the brother of James, and led them up a high mountain by themselves. There he was transfigured before them.&quot; (Mt 17:1-2)</div>","Mount Tabor");
	
		 // Nazareth
	var point = new GPoint(35.308857, 32.69501);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/nazareth.htm'><img style='border-color:#666666' border='0' hspace='5' align='left' src='http://www.sacred-destinations.com/israel/nazareth-basilica-of-annunciation-pictures/thumbs/cityscape-frm-hotel-cc-indiana-jsam.jpg'><b>Nazareth</b></a><br><br>The hometown of Jesus, Nazareth is revered by Christian pilgrims. Today it is a modern Arab city of about 60,000 people.</div>","Nazareth");
		  	 
		 // Sea of Galilee
	var point = new GPoint(35.59021, 32.806322);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/israel/galilee-jesus-boat.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='galilee-fishing-boat-cc-StormyDog.jpg'><b>Sea of Galilee</b></a><br><br>Jesus traveled frequently by boat on the Sea of Galilee during his ministry. He also performed some miracles here, including walking on water, calming the storm and making the miraculous catch of fish. &quot;Jesus crossed tot he far shore of the Sea of Galilee (that is, the Sea of Tiberias), and a great crowd of people followed him.&quot; (Jn 6:1-2) &quot;When they had rowed three or three and a half miles, they saw Jesus approaching the boat, walking on the water.&quot; (Jn 6:19)</div>","Sea of Galilee");

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

	//]]>
