strList="

St John`s Catholic Primary School (0 miles)
Zoom on map | View full information

St John the Baptist Church (0 miles)
Zoom on map | View full information

Church of the Assumption (3 miles)
Zoom on map | View full information

St. Joseph the Worker Church (5.5 miles)
Zoom on map | View full information

St. Mary`s Church (7.5 miles)
Zoom on map | View full information

Sacred Heart and St Ia Church (8.2 miles)
Zoom on map | View full information

Our Lady Star of the Sea Church (8.3 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('St John`s Catholic Primary School (37916-36020)',50.20991,-5.295272,'School'),new Array('St John the Baptist Church (56707-62968)',50.2099899,-5.29528879999998,'ParishChurch'),new Array('Church of the Assumption (56723-62968)',50.2321992,-5.236120199999959,'Church'),new Array('St. Joseph the Worker Church (56710-62971)',50.1905109,-5.416812899999968,'ParishChurch'),new Array('St. Mary`s Church (56711-62972)',50.1036285,-5.265967899999964,'ParishChurch'),new Array('Sacred Heart and St Ia Church (56727-62988)',50.2110025,-5.480489600000055,'ParishChurch'),new Array('Our Lady Star of the Sea Church (56725-62986)',50.31474679999999,-5.203486399999974,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37921-36025)',50.150046,-5.091826,'School'),new Array('St. Mary Immaculate Church (56709-62970)',50.1531439,-5.074843999999985,'ParishChurch'),new Array('St. Edward the Confessor Church (56718-62979)',50.110757,-5.09903,'ParishChurch'),new Array('Christ the King Church (56722-62983)',50.3455363,-5.150988699999971,'ParishChurch'),new Array('Cranberries Bookshop (66049-70949)',50.263766,-5.04982,'Other'),new Array('Our Lady of the Portal and St Piran Church (56733-62995)',50.2637978,-5.0473347,'ParishChurch'),new Array('St Mary`s Catholic School (37925-36029)',50.125289,-5.536974,'School'),new Array('Immaculate Conception of Our Lady Church (56721-62982)',50.12172899999999,-5.537495300000046,'ParishChurch'),new Array('Our Lady of the Sea and St Anthony Church (56728-62989)',50.1592575,-5.015721699999972,'ParishChurch'),new Array('Most Holy Trinity Church (56719-62980)',50.4164728,-5.090486899999974,'ParishChurch'),new Array('Franciscan Monastery of St. Joseph and St. Anne Church (56729-62990)',50.454813,-5.000102,'Other'),new Array('St.Augustine of Hippo Church (56726-62987)',50.3364206,-4.77585380000005,'ParishChurch'),new Array('St Michael Church (56734-62996)',50.504294,-4.889476,'ParishChurch'),new Array('St Petroc`s Shared Church (71017-62965)',50.54170389999999,-4.942151500000023,'Church')); // var IMAGES = [ "parishChurchMarker", "ChurchMarker", "PresbyteryMarker", "OtherPresbyteryMarker", "SchoolMarker", "HallMarker" ]; // var ICONS = []; var markers = []; // declared EXTERNALLY // var map = null; // var mgr = null; // var mgr2 = null; // var mgr3 = null; function initialize() { var map = new google.maps.Map( document.getElementById('map_canvas'), { center: new google.maps.LatLng(records[0][1],records[0][2]), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP }); var markerName; for (var rows=0; rows < 8; rows++) { markerName=records[rows][3]; if(markerName=="ParishChurch") markerName="Parish-Church" var marker = new google.maps.Marker({ animation: google.maps.Animation.DROP, position: new google.maps.LatLng(records[rows][1],records[rows][2]), map: map, icon: "https://www.catholicdirectory.org/Pictures/map/" + markerName + "-Marker.png", title: records[rows][0] }); var infowindow = new google.maps.InfoWindow(); google.maps.event.addListener(marker, 'click', function() { load_content(map, this, infowindow); }); markers.push(marker); } } function load_content(map,marker,infowindow){ $.ajax({ url: 'mapinfowindow.asp?var1='+marker.title, success: function(data){ infowindow.setContent("
"+data+"
"); infowindow.open(map, marker); } }); } function launchInfoWindow(x) { // window.scroll(0, 0); // markers[x].setMap(map); google.maps.event.trigger(markers[x], "click"); } google.maps.event.addDomListener(window, 'load', initialize); function loadPage(a) { if(document.getElementById("frame_"+a).style.display=="none") { document.getElementById("tab_"+a).className="tab_selected"; document.getElementById("frame_"+a).style.display="block"; for (var i=0;i<3;i++) { if(i!=a) { document.getElementById("tab_"+i).className="tab" document.getElementById("frame_"+i).style.display="none"; } } } } function sendEmail(a,b) { document.getElementById("CCToEmailID").value=a; document.getElementById("CCEmailName").innerText=b; document.getElementById('CCEmailWindow').style.display='block'; } //