// 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    -->
	
	
		 // Ancient Akrotiri
	var point = new GPoint(25.400219,36.351218);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/santorini-akrotiri.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/santorini/thumbs/site-cc-auws.jpg'><b>Ancient Akrotiri</b></a><br><br>Known as the &quot;Minoan Pompeii,&quot; this is one of the most important archaeological sites in the region. Still undergoing major excavations sheltered beneath a large shed, the site is not always open to visitors.</div>","Ancient Akrotiri");
	
		 // Ancient Thira
	var point = new GPoint(25.47987,36.362969);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/greece/santorini-ancient-thira.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/greece/images/santorini/thumbs/ruins-nd-cc-danoots.jpg'><b>Ancient Thira</b></a><br><br>Ancient Thira consists of ruins dating from the Hellenistic, Roman and Byzantine eras (including numerous Greek temples and a church) in a dramatic hilltop location.</div>","Ancient Thira");
	
	
	 // put the assembled sidebar_html contents into the sidebar div
    document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>