strList="

Our Lady Of Mount Carmel Church (0 miles)
Zoom on map | View full information

Holy Cross Church (11.7 miles)
Zoom on map | View full information

Our Lady Church (14.6 miles)
Zoom on map | View full information

St David Church (16.4 miles)
Zoom on map | View full information

Our Lady Queen Of Peace Church (17.1 miles)
Zoom on map | View full information

St Mary Church (20.5 miles)
Zoom on map | View full information

St Mary`s School (20.5 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('Our Lady Of Mount Carmel Church (45841-53175)',52.114033,-4.083393,'ParishChurch'),new Array('Holy Cross Church (45805-53029)',52.243433,-4.259445,'ParishChurch'),new Array('Our Lady Church (45845-53192)',51.994301,-3.801841,'ParishChurch'),new Array('St David Church (45843-53185)',51.883499,-3.996457,'ParishChurch'),new Array('Our Lady Queen Of Peace Church (45862-53259)',52.039346,-4.46604,'ParishChurch'),new Array('St Mary Church (45823-53106)',51.856419,-4.31913,'ParishChurch'),new Array('St Mary`s School (37741-35845)',51.856419,-4.31913,'School'),new Array('St Padarn`s School (37743-35847)',52.413143,-4.074808,'School'),new Array('Our Lady Of The Angels And St Winefride Church (45806-53030)',52.4189559,-4.083242599999949,'ParishChurch'),new Array('Our Lady Of The Rosary Church (45810-53051)',51.794504,-3.986852,'ParishChurch'),new Array('Eglwys Groes (holy Cross) Church (45867-53277)',51.784532,-4.166968,'ParishChurch'),new Array('Shrine of Our Lady Of The Taper (45821-53094)',52.08681,-4.654693,'ParishChurch'),new Array('Sacred Heart Catholic Church (45883-53328)',51.813231,-3.766230499999999,'ParishChurch'),new Array('St Francis Of Assisi Church (45878-53317)',52.302567,-3.51019,'ParishChurch'),new Array('Our Lady And St Cadoc Church (45818-53091)',51.737199,-4.302416,'ParishChurch'),new Array('St Bride Church (45865-53270)',51.713827,-4.034529,'ParishChurch'),new Array('Christ The King Church (45847-53213)',52.149282,-3.408093,'ParishChurch'),new Array('St John Lloyd School (37740-35844)',51.687778,-4.134694,'School'),new Array('St Mary`s School (37742-35846)',51.687778,-4.134694,'School'),new Array('Christ the King Church (60157-65133)',52.544369,-4.056024,'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'; } //