// 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_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);

<!--    begin pulling data    -->
	
	 // Athens
	var point = new GPoint(23.733611, 37.974444);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/athens.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/acropolis-wp-gfdl-75.jpg'><b>Athens</b></a><br><br>Named for its patron goddess, Athena, Athens is home to some of the most important ancient sacred sites in the world, as well as several newer religious sites of importance.<br><br><a href='http://www.sacred-destinations.com/greece/athens.htm'>Athens Main Page</a> | <a href='http://www.sacred-destinations.com/greece/athens-satellite-map.htm'>Athens Satellite Map</a> </div>","Athens");
	
		 
		 // Bassae
	var point = new GPoint(21.900419,37.429666);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/bassae-temple-of-apollo-epicurius.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/bassae-old-photo.jpg'><b>Temple of Apollo, Bassae</b></a><br><br>This large and well-preserved temple was built in the Arcadian mountains in the 5th century BC by the same architect who designed the Parthenon. It had the oldest Corinthian capital ever found and remains notable for its unusual combination of the Corinthian, Ionic and Doric styles.</div>","Bassae");
	

	
	// Berea
	var point = new GPoint(22.316389, 40.487222);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Berea (Veria)</b><br><br>The city St. Paul praised for examining the Scriptures to verify his teaching. Sights include several churches with ancient frescoes.</div>","Berea");
		 	 
		 // Corinth
	var point = new GPoint(22.933611, 37.932778);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/corinth.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/corinth-apollo-hlp-75.jpg'><b>Ancient Corinth</b></a><br><br>A major city in ancient Greece, Corinth played a significant role in the missionary work of the Apostle Paul.</div>","Corinth");
	
		 // Crete
	var point = new GPoint(24.957222, 35.155556);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/crete.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/knossos-columns-cc-skruk.jpg'><b>Crete</b></a><br><br>Crete has seen 4,000 years of continuous inhabitation, including the Minoan civilization, centuries of Orthodox Christianity and the distinctive imprint left by almost 700 years of Venetian and Turkish rule.<br><br><a href='http://www.sacred-destinations.com/greece/crete.htm'>Crete Main Page</a> | <a href='http://www.sacred-destinations.com/greece/crete-satellite-map.htm'>Crete Satellite Map</a></div>","Crete");	
	
	// Daphni
	var point = new GPoint(23.633333, 38.016111);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Daphni Monastery</b><br><br>A Byzantine monastery and World Heritage Site famed for its mosaics.</div>","Daphni Monastery");
	
	 // Delphi
	var point = new GPoint(22.496667, 38.481111);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/delphi.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/delphi-tholos-wc-75.jpg'><b>Ancient Delphi</b></a><br><br>An archaeological site containing the ruins of the Sanctuary of Apollo, the most sacred site in ancient Greek religion and home of the famous Oracle of Delphi.</div>","Delphi");
			 
		 // Delos
	var point = new GPoint(25.267053, 37.399687);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/delos.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/delos-mosaic-floor-c-Ignazio-75.jpg'><b>Delos</b></a><br><br>In ancient times, Delos was a major sacred site, second only to Delphi. A short boat ride from the island of Mykonos, Delos island has ruins of ancient temples and shrines dedicated to various gods.</div>","Delos");
	 
			
	 // Mt. Athos
	var point = new GPoint(24.216389, 40.263056);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/mt-athos.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/athos-75.jpg'><b>Mt. Athos</b></a><br><br>The &quot;Holy Mountain&quot; is a hilly peninsula containing 20 Greek Orthodox monasteries. They are open only to male visitors with special prior permission, but cruises around the island are open to all.</div>","Mt. Athos");
		 
		 // Meteora
	var point = new GPoint(21.466389, 39.716389);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/meteora-monasteries.htm'><img style='border-color:#666666' border='0' hspace='7' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/meteora-varlaam-c-sacredsites.jpg'><b>Meteora Monasteries</b></a><br><br>Six Greek Orthodox monasteries perched dramatically atop natural rock pillars.</div>","Meteora");	

			 
		 // Naxos
	var point = new GPoint(24.010378, 37.373833);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/naxos.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/naxos-church2-ca-300.jpg'><b>Naxos</b></a><br><br>The largest island in the Cyclades, with a remarkable abundance of small Byzantine chapels. Many of them contain exceptional frescoes from the 9th to the 13th centuries.</div>","Naxos");
	
	 // Patmos
	var point = new GPoint(26.548889, 37.301944);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/patmos-monastery-of-st-john.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/patmos-church-sx.jpg'><b>Patmos</b></a><br><br>The site of St. John's visions that were recorded in the Book of Revelation is now home to the Greek Orthodox Monastery of St. John.</div>","Patmos");
		 
		 // Santorini
	var point = new GPoint( 25.398056, 36.402222);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/santorini.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/santorini-chapel-oia-ap.jpg'><b>Santorini</b></a><br><br>Justly famous for its picture-perfect landscape of gleaming white churches and sparkling blue seas, Santorini is also home to the &quot;Minoan Pompeii&quot; archaeological site, other ancient ruins and quality museums.</div>","Santorini");
		 
		 // Sounio
	var point = new GPoint(24.024818, 37.649932);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/athens-temple-of-poseidon.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/athens-temple-of-poseidon-pictures/thumbs/temple-cc-asmythie.jpg'><b>Temple of Poseidon, Sounio</b></a><br><br>A Doric temple to the god of the sea constructed in 444 BC.</div>","Sounio");
	
	 // Thessaloniki
	var point = new GPoint(22.941389, 40.474722);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/thessaloniki.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/thumbs/thessaloniki-agia-sophia-cc-rufusblog.jpg'><b>Thessaloniki (Salonika)</b></a><br><br>Ancient Byzantine churches, biblical history, beautiful sea views, tree-lined streets, museums, Turkish-influenced food and a thriving culture.</div>","Thessaloniki");
	
	 // put the assembled sidebar_html contents into the sidebar div
   document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>