// 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    -->
	
		 	
		 // Clonmacnoise
	var point = new GPoint(-7.991111,53.323889);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/clonmacnoise.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Clonmacnoise</b></a><br><br>The extensive ruins include a cathedral, castle, round tower, numerous churches, two important high crosses, and a large collection of early Christian grave slabs (the last two on display in the excellent site museum).</div>","Clonmacnoise");
	 
		 // Dowth
	var point = new GPoint(-6.450369,53.703731);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dowth.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Dowth</b></a><br><br>Unlike its neighbors Newgrange and Knowth, the Dowth passage tomb has not yet been thoroughly excavated, and it is not currently accessible to visitors. However, fine examples of megalithic art have already been discovered inside.</div>","Dowth");
	
		 // Dublin
	var point = new GPoint(-6.266584, 53.342558);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/dublin-christchurch-cc-erins-wanderings.jpg'><b>Dublin</b></a><br><br>This chic capital city is home to three cathedrals, the famed Book of Kells and several interesting churches.</div>","Dublin");
		 
		 // Gallarus Oratory - approx
	var point = new GPoint(-10.351868,52.175669);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/gallarus-oratory.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/350d_200.jpg'><b>Gallarus Oratory</b></a><br><br>This beautifully simple stone church was built and used by local farmers of the area at an early date, estimates of which generally range from the 6th century to the 9th century.</div>","Gallarus Oratory");
	
		 // Glendalough
	var point = new GPoint(-6.327406,53.010707);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/glendalough.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Glendalough</b></a><br><br>Glendalough (<em>Gleann D&aacute; Loch</em>, &quot;Valley of the Two Lakes&quot;) is a fascinating monastic settlement in a spectacular natural setting founded by St. Kevin, a hermit monk who died about 618 AD. The extensive ruins include several early churches, a graceful round tower, and various sites associated with the life of St. Kevin.</div>","Glendalough");
	
		 // Knowth
	var point = new GPoint(-6.491225,53.701127);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/knowth.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Knowth</b></a><br><br>Dating from about 3000 BC, Knowth consists of a large central mound surrounded by several smaller ones. It is especially important for its rich collection of megalithic art, which includes over 300 decorated stones.</div>","Knowth");
	
		 // Hill of Tara
	var point = new GPoint(-6.609000, 53.581222);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/hill-of-tara-c-moya-t.jpg'><b>Hill of Tara</b><br><br>Ancient burial mounds and a standing stone with a beautiful view.</div>","Hill of Tara");
	
		 // Mellifont Abbey
	var point = new GPoint(-6.466388,53.742233);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Mellifont Abbey</b></a><br><br></div>","Mellifont Abbey");
	
		 // Monasterboice - exact, unlike all other Earth placemarks!
	var point = new GPoint(-6.41759,53.7776);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/monasterboice.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Monasterboice</b></a><br><br>The impressive ruins  of this monastic site include a large cemetery, two churches, one of the tallest round towers in Ireland and two of the tallest and best high crosses.</div>","Monasterboice");
	
		 // Mt. Croagh Patrick
	var point = new GPoint(-9.654922, 53.760484);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/mt-croagh-patrick.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/croagh-climb-cc-electrostatico.jpg'><b>Mt. Croagh Patrick</b></a><br><br>Each year, a million pilgrims and visitors make the trek to the top of this holy mountain to pray, do penance, or just enjoy the view.</div>","Mt. Croagh Patrick");
	
		 
		 // Newgrange
	var point = new GPoint(-6.475067, 53.694674);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/newgrange.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/newgrange-tomb2-pdphoto.jpg'><b>Newgrange</b></a><br><br>This fascinating burial mound is 5,000 years old and creates a stunning effect on the winter solstice.</div>","Newgrange");
		 
		 // Riasc Monastic Settlement 
	var point = new GPoint(-10.387831,52.167447);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Riasc Monastic Settlement</b></a><br><br></div>","Riasc Monastic Settlement");
	
		 // Rock of Cashel 
	var point = new GPoint(-7.884413896, 52.521220179);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/rock-of-cashel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/cashel-cc-irish-typepad.jpg'><b>Rock of Cashel</b></a><br><br>Striking hilltop ruins of a 12th-century royal chapel, cathedral and round tower, with fine high crosses in the churchyard.</div>","Rock of Cashel");
		 
		 // Shrine of Our Lady of Knock
	var point = new GPoint(-8.917122,53.792096);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/knock-shrine.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/knock-cc-onemoreordinaryday.jpg'><b>Shrine of Our Lady of Knock</b></a><br><br>In 1879, the Virgin Mary, St. Joseph and St. John appeared at the parish church in Knock. Today, 1.5 million pilgrims visit the shrine each year.</div>","Shrine of Our Lady of Knock");
		 
		 // Skellig Michael
	var point = new GPoint(-10.489883,51.819015);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/skellig-michael.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/skellig-michael-island2-c-sacredsites.jpg'><b>Skellig Michael</b></a><br><br>From 588 to 1100 AD, this dramatic rocky island hosted the tiny beehive huts of hermit monks.</div>","Skellig Michael");
	
	
	// 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;
    }

	//]]>