// 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    -->
	
		 	 
		 
		 // Christ Church Cathedral
	var point = new GPoint(-6.27138, 53.343423);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-christ-church-cathedral.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>Christ Church Cathedral</b></a><br><br>Founded in 1038 by a Dane and rebuilt in 1171 by a Norman, Christ Church Cathedral was rebuilt in the Victorian style in the 1870s. It is the main Protestant cathedral of Dublin.</div>","Christ Church Cathedral");
		 
		 // St. Audoen's Church
	var point = new GPoint(-6.27432,53.34373);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-st-audoen-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/dublin/thumbs/IMG_8456.jpg'><b>St. Audoen's Church</b></a><br><br>Dating from around 1200, St. Audoen's has the distinction of being the only medieval parish church still in use within the city of Dublin. It offers some excavated ruins, a visitor's centre and a section used as an active parish church.</div>","St. Audoen's Church");
	
		 // St. Mary's Pro-Cathedral
	var point = new GPoint(-6.273059, 53.344576);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-st-mary-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/dublin-st-marys-cathedral-front-wp-gfdl.jpg'><b>St. Mary's Pro-Cathedral</b></a><br><br>St. Mary's is the unofficial Catholic cathedral of Dublin, hence the name. Built in 1825, its Neo-Classical style stands out from the Neo-Gothic architecture of the Protestant cathedrals.</div>","St. Mary's Pro-Cathedral");
		 	 
		 // St. Michan's Church
	var point = new GPoint(-6.275575, 53.347471);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-st-michan-church.htm'><b>St. Michan's Church</b></a><br><br>Originally founded by the Danes in 1075, this 17th-century parish church has some fine woodwork and a unique burial vault that has preserved its bodies without decomposition.</div>","St. Michan's Church");
	
		 // St. Patrick's Cathedral
	var point = new GPoint(-6.27167, 53.339522);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-st-patrick-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/dublin-patrick-cc-macalfie.jpg'><b>St. Patrick's Cathedral</b></a><br><br>St. Patrick's is the Protestant co-cathedral with Christ Church. Also rebuilt in the 1870s, it is held to stand on the site where Patrick baptized his first Irish converts in the 5th century.</div>","St. Patrick's Cathedral");
	
	 
		 // Trinity College
	var point = new GPoint(-6.255341, 53.343788);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/ireland/dublin-trinity-college.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/ireland/images/thumbs/kells-folio-292r-incipit-john.jpg'><b>Trinity College &amp; Book of Kells</b></a><br><br>Founded after the Reformation to &quot;civilize Dublin,&quot; this historic college is especially famed for its library full of treasures, including the splendid 9th-century Book of Kells.</div>","Trinity College &amp; Book of Kells");
		
	
	// 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;
    }

	//]]>