strList="

St Robert`s Parish Church (0 miles)
Zoom on map | View full information

St Robert Of Newminster Church (0.1 miles)
Zoom on map | View full information

St Robert Of Newminster Church (0.1 miles)
Zoom on map | View full information

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

Archbishop McGrath Catholic High School (2.8 miles)
Zoom on map | View full information

(i) (?) St Mary Church (1858) (3 miles)
Zoom on map | View full information

St Mary`s Parish Church (3 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('St Robert`s Parish Church (30617-31523)',51.541583,-3.59591,'ParishChurch'),new Array('St Robert Of Newminster Church (41073-38437)',51.541124,-3.597927,'ParishChurch'),new Array('St Robert Of Newminster Church (41073-38486)',51.541124,-3.597927,'ParishChurch'),new Array('St Mary`s School (36832-34931)',51.509052,-3.586371,'School'),new Array('Archbishop McGrath Catholic High School (36872-34971)',51.5075592,-3.559589200000005,'School'),new Array('(i) (?) St Mary Church (1858) (41082-38442)',51.500617,-3.575734,'ParishChurch'),new Array('St Mary`s Parish Church (30615-31522)',51.500617,-3.575734,'ParishChurch'),new Array('(iii) St Joseph Of Arimathea Church (1929) (41192-38442)',51.529941,-3.688174,'ParishChurch'),new Array('Catholic Church, Kenfig Hill Parish Church (30619-31524)',51.529941,-3.688174,'ParishChurch'),new Array('(iii) St Joseph Of Arimathea Church (1929) (41192-38510)',51.529941,-3.688174,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36854-34953)',51.60599,-3.654589,'School'),new Array('Our Lady And St Patrick Church (41159-38486)',51.60599,-3.654589,'ParishChurch'),new Array('Catholic Church, PORTHCAWL Parish Church (30623-31526)',51.482789,-3.692236,'ParishChurch'),new Array('(ii)  (?) Our Lady Star Of The Sea Church (41191-38442)',51.482789,-3.692236,'ParishChurch'),new Array('(ii)  (?) Our Lady Star Of The Sea Church (41191-38509)',51.482789,-3.692236,'ParishChurch'),new Array('Our Lady Of Margam Church (45868-53278)',51.580813,-3.76439,'ParishChurch'),new Array('Tonyrefail Church (41199-38516)',51.582986,-3.428199,'ParishChurch'),new Array('St Joseph Church (65924-70908)',51.652947,-3.64949,'Church'),new Array('Catholic Church, TONYPANDY Parish Church (30629-31529)',51.619506,-3.454235,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36869-34968)',51.619243,-3.452984,'School'),new Array('Ss Gabriel And Raphael Church (41198-38515)',51.61879,-3.45255,'ParishChurch'),new Array('St Clare Church (41108-38456)',51.461209,-3.450664,'ParishChurch'),new Array('St Cadoc Church (41131-38485)',51.461209,-3.450664,'ParishChurch'),new Array('St Philip Evans Church (45870-53294)',51.620063,-3.752435,'ParishChurch'),new Array('St Joseph Church (45869-53286)',51.59508,-3.78839,'ParishChurch'),new Array('St Joseph`s School (37756-35860)',51.59508,-3.78839,'School'),new Array('St Joseph`s Catholic Infant School (38904-37010)',51.594829,-3.789507,'School'),new Array('The Immaculate Conception Church (41204-38520)',51.661947,-3.504984,'ParishChurch'),new Array('St Joseph`s RC Comprehensive School School (37755-35859)',51.599896,-3.794514,'School'),new Array('St Mary Magdalene Parish Church (30476-31439)',51.61984,-3.413669,'ParishChurch'),new Array('St Joseph`s School (37757-35861)',51.599126,-3.796087,'School'),new Array('St Mary Magdalene Church (41189-38508)',51.621815,-3.412416,'ParishChurch'),new Array('All Hallows Parish Church (30667-31548)',51.521232,-3.371364,'ParishChurch'),new Array('All Hallows Church (41184-38505)',51.521232,-3.371364,'ParishChurch'),new Array('All Hallows Church (41157-38484)',51.521232,-3.371364,'ParishChurch'),new Array('St Therese`s School (37758-35862)',51.599261,-3.815946,'School'),new Array('St Therese Of Lisieux Church (45872-53296)',51.599261,-3.815946,'ParishChurch'),new Array('Our Lady And St Illtyd Church (41158-38485)',51.404999,-3.477265,'ParishChurch'),new Array('Our Lady Of The Assumption Church (45816-53072)',51.63091,-3.819059,'ParishChurch'),new Array('St Joseph`s Church (65927-70910)',51.654338,-3.800192,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38903-37009)',51.65392,-3.798715,'School'),new Array('St Joseph`s Presbytery (65928-70910)',51.654338,-3.800192,'ParishChurch'),new Array('University Chaplaincy Parish Church (30474-31438)',51.586628,-3.324645,'ParishChurch'),new Array('St Dyfrig Church (41187-38507)',51.594657,-3.324763,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36867-34966)',51.589883,-3.323874,'School'),new Array('St Dyfig`s Parish Church (30625-38484)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfig`s Parish Church (30625-31527)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfrig Church (41201-38484)',51.594657,-3.324763,'ParishChurch'),new Array('St Joseph`s School (37759-35863)',51.657279,-3.810082,'School'),new Array('Cardinal Newman Catholic Comprehensive School (36880-34979)',51.583119,-3.301536,'School')); // 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'; } //