strHTML=""; strHTML+="
"; strHTML+="
"; strHTML+=" "; strHTML+="
Filters: "; strHTML+="
"; strHTML+="
"; strHTML+="
Results
<
"; strHTML+="
Deaneries
Parishes
"; strHTML+="
"; strHTML+="
" strHTML+="
" strHTML+="
"; function CD_showParishList() { catholicInformation=document.getElementById("CD-catholic-information"); catholicTab=document.getElementById("CD-catholic-parishes-tab"); if(catholicInformation.style.left!="calc(100% - 250px)") { catholicInformation.style.left="calc(100% - 250px)"; catholicTab.style.left="calc(100% - 273px)"; document.getElementById("CD-results-arrow").style.transform="rotate(270deg)"; } else { catholicInformation.style.left="100%"; catholicTab.style.left="calc(100% - 23px)"; document.getElementById("CD-results-arrow").style.transform="rotate(90deg)"; } } function CD_showAll() { document.getElementById("CD-Catholic-Clergy").options[0].selected=true; document.getElementById("CD-Catholic-County").options[0].selected=true; document.getElementById("CD-Catholic-Town").options[0].selected=true; document.getElementById("CD-Liturgy").options[0].selected=true; CD_getInfo(); } function CD_clear_catholic_search() { document.getElementById("CD-find-a-church-near-me").value=""; document.getElementById("CD-Catholic-Mass-Times").style.marginTop="initial";//"6px"; document.getElementById("CD-Mass-Times-Button").style.filter="grayscale(100%)"; document.getElementById("CD-catholic-search-button").style.filter="grayscale(100%)"; CD_getInfo(); } function CD_set_catholic_search() { if(document.getElementById("CD-find-a-church-near-me").value=="") document.getElementById("CD-catholic-search-button").style.filter="grayscale(100%)"; else document.getElementById("CD-catholic-search-button").style.filter="grayscale(0%)"; CD_getInfo(); } function CD_detectMob() { return ( ( window.innerWidth <= 600 ) && ( window.innerHeight <= 700 ) ); } function CD_show_find_a_Mass_Time() { if(document.getElementById("CD-Catholic-Mass-Times").classList.contains("CD_showMassTimes")) { document.getElementById("CD-Catholic-Mass-Times").classList.remove("CD_showMassTimes"); document.getElementById("CD-Mass-Times-Button").style.filter="grayscale(100%)"; } else { document.getElementById("CD-Catholic-Mass-Times").classList.add("CD_showMassTimes"); document.getElementById("CD-Mass-Times-Button").style.filter="grayscale(0%)"; } CD_getInfo() } function CD_Catholic_Options(strObj,strType) { strTypeText=strType; if(strType=="Others") strTypeText="Other Buildings" if(strType=="/Church") strTypeText="Chapels" if(strType=="Parish") strTypeText="Parish Churches" if(strType=="Parish") strTypeText="Parish Churches" if(strType=="catholic-chaplaincy") strTypeText="Chaplaincies" if(strType=="religious-house") strTypeText="Religious Houses" if(strObj.className.indexOf("-hidden")>-1) { strObj.className=strObj.className.replace("-hidden",""); strObj.title=strTypeText+" are included." for(i=0; i-1) { markers[i].setVisible(true); if(document.getElementById("CD-catholic-information").innerHTML!="") document.getElementById("CD-catholic-church-"+markers[i].id).style.display="block"; } } } else { strObj.className=strObj.className+"-hidden"; strObj.title=strTypeText+" are not included." for(i=0; i-1) { markers[i].setVisible(false); if(document.getElementById("CD-catholic-information").innerHTML!="") document.getElementById("CD-catholic-church-"+markers[i].id).style.display="none"; } } } CD_setNoOfRecords(); } let map; function CD_initMap() { map = new google.maps.Map(document.getElementById("CD-map-of-churches"), { mapTypeControl: false, center: { lat: 53.5053, lng: -2.25128}, zoom: 11 }); } var records=""; var strList=""; var xhttp = new XMLHttpRequest(); function CD_getInfo(strObj,strValue) { document.getElementById("CD-overlaymessage").style.display="block"; document.getElementById("CD-overlaymessage").style.visibility="visible"; document.getElementById("CD-catholic-institutions").innerHTML="Loading..."; xhttp.abort(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // alert(this.responseText); if(this.responseText=="")//if no results are returned { document.getElementById("CD-catholic-institutions").innerHTML="0 results found."; document.getElementById("CD-catholic-information").innerHTML="

No Results Found!

"; document.getElementById("CD-catholic-institutions").innerHTML="No results found"; for(i=0; i"); var records2=sections[0].split("CCRecordCC"); records = new Array(); for (var i = 0; i < records2.length-1; i++) { records[i] = records2[i].split(","); } CD_initialize(strObj); // if(!CD_detectMob()) CD_loadList(strObj); CD_setNoOfRecords(); }//no results } }; var str_Mass_Times_Params=""; if(document.getElementById("CD-Catholic-Mass-Times").classList.contains("CD_showMassTimes")) { str_Mass_Times_Params="&Liturgy="+escape(document.getElementById("CD-Liturgy").options[document.getElementById("CD-Liturgy").selectedIndex].value); str_Mass_Times_Params+="&Time="+escape(document.getElementById("CD-Time").options[document.getElementById("CD-Time").selectedIndex].value); str_Mass_Times_Params+="&Day="+escape(document.getElementById("CD-Day").options[document.getElementById("CD-Day").selectedIndex].value); str_Mass_Times_Params+="&PlusMinus="+escape(document.getElementById("CD-PlusMinus").options[document.getElementById("CD-PlusMinus").selectedIndex].value); str_Mass_Times_Params+="&Language="+escape(document.getElementById("CD-Language").options[document.getElementById("CD-Language").selectedIndex].value); } //alert(str_Mass_Times_Params); if(document.getElementById("CD-find-a-church-near-me").value!="") str_Mass_Times_Params+="&find-a-church-near-me="+document.getElementById("CD-find-a-church-near-me").value.replace(/ /g,"_"); if(strObj!=null) { str_Mass_Times_Params+="&strVal="+strValue; if(strObj=="DeaneryParishes") url="https://www.CatholicDirectory.org/js/Catholic-Diocese.asp" else url="https://www.CatholicDirectory.org/js/Catholic-level.asp" } else url="https://www.CatholicDirectory.org/js/Catholic-Diocese.asp" str_Mass_Times_Params+="&Diocese=883&Catholic-Category="+escape(document.getElementById("CD-Catholic-Category").options[document.getElementById("CD-Catholic-Category").selectedIndex].value)+"&Catholic-Town="+escape(document.getElementById("CD-Catholic-Town").options[document.getElementById("CD-Catholic-Town").selectedIndex].value)+"&Catholic-County="+escape(document.getElementById("CD-Catholic-County").options[document.getElementById("CD-Catholic-County").selectedIndex].value)+"&Catholic-Clergy="+escape(document.getElementById("CD-Catholic-Clergy").options[document.getElementById("CD-Catholic-Clergy").selectedIndex].value)+"&strType="+strObj; // alert(str_Mass_Times_Params) xhttp.open("GET", url+"?Ajax=1"+str_Mass_Times_Params, true); //+"?Ajax=1"+str_Mass_Times_Params did have this on the end after url xhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); xhttp.send("Diocese=883&Catholic-Category="+escape(document.getElementById("CD-Catholic-Category").options[document.getElementById("CD-Catholic-Category").selectedIndex].value)+"&Catholic-Town="+escape(document.getElementById("CD-Catholic-Town").options[document.getElementById("CD-Catholic-Town").selectedIndex].value)+"&Catholic-County="+escape(document.getElementById("CD-Catholic-County").options[document.getElementById("CD-Catholic-County").selectedIndex].value)+"&Catholic-Clergy="+escape(document.getElementById("CD-Catholic-Clergy").options[document.getElementById("CD-Catholic-Clergy").selectedIndex].value)+"&strType="+strObj); } function CD_setNoOfRecords() { noOfMarkers=0; for(i=0;i-1) strType="School"; if(thisIcon.indexOf("Church")>-1) strType="Church"; if(thisIcon.indexOf("Parish")>-1) strType="Parish"; if(thisIcon.indexOf("Other")>-1) strType="Other"; if(thisIcon.indexOf("religious")>-1) strType="religious-house"; if(thisIcon.indexOf("chaplaincy")>-1) strType="catholic-chaplaincy"; if(thisIcon.indexOf("Cathedral")>-1) strType="Cathedral"; if(thisIcon.indexOf("catholic-deanery")>-1) strType="Deanery"; phone=""; thisRecord=records[i]; if(thisRecord[5]!="") phone="t: "+thisRecord[5]+"
"; website=""; if(thisRecord[6]!="") website=""+thisRecord[6]+"
"; id=thisRecord[4].split("!!")[1]; if(thisRecord[8]!="") areaserved=thisRecord[8]+"
"; if(thisIcon.indexOf("catholic-deanery")>-1) strHTML+="
"+thisMarker.title+"
»
Deaneries
"; else strHTML+="
"+thisMarker.title+"
»
"+areaserved+phone+website+"
"; if(1==2) { document.getElementById("CD-catholic-information-text").innerHTML+="

"+thisMarker.title+"

"+phone+website+"

" cells=document.getElementsByClassName("CD-catholic-information_text-inner"); for(i=0;i"+data+""); if(thisLevel=="catholic-deanery") x=1;//no reason for this - just to if doesnt error - old: map.panBy(0, -315) else { var latLng = marker.getPosition(); // returns LatLng object //map.panBy(0, -315)//map.setCenter(latLng); // } infowindow.open(map, marker); // map.setZoom(12); } }); //alert(marker.id) catholic_records=document.getElementsByClassName("CD-Catholic-Record"); for(i=0;i700) { document.getElementById("CD-catholic-church-"+marker.id).style.backgroundColor='#DDEEFF'; document.getElementById("CD-catholic-church-"+marker.id).scrollIntoView({behavior: "smooth", block: "nearest", inline: 'start' }); } } function CD_launchInfoWindow(x) { // window.scroll(0, 0); // markers[x].setMap(map); google.maps.event.trigger(markers[x], "click"); } function CD_load_Church_Image(img) { document.getElementById("CD-overlaymessage").style.display="block"; document.getElementById("CD-overlaymessage").style.visibility="visible"; document.getElementById("CD-overlaymessage").innerHTML="
x
"; } function CD_closePictureWindow() { document.getElementById("CD-overlaymessage").style.display="none"; document.getElementById("CD-overlaymessage").style.visibility="hidden"; document.getElementById("CD-overlaymessage").innerHTML=""; } function CC_show_Catholic_Map_Info(ID,strType) { //alert(ID) ID=ID.toString(); if(strType=="1")//Person { strURL="https://CatholicDirectory.org/snippets/Directory/SectionsForWeb/4.asp"; strPersonGroupID="PersonID"; strPersonGroupNoID="GroupID"; PublicationsSectionID="5" } else { strURL="https://CatholicDirectory.org/snippets/Directory/SectionsForWeb/1.asp"; strPersonGroupID="GroupID"; strPersonGroupNoID="PersonID"; PublicationsSectionID="3"; } var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { //alert(this.responseText) section=this.responseText.split("!CC!") document.getElementById("CD-overlaymessage").style.display="block"; document.getElementById("CD-overlaymessage").style.visibility="visible"; document.getElementById("CD-overlaymessage").style.zIndex="10"; //document.getElementById("CD-overlaymessage").style.bored="solid 21px #FF0000"; document.getElementById("CD-overlaymessage").innerHTML="
x
"+section[1]+"
"; const url = new URL(window.location); url.searchParams.set(strPersonGroupID, ID); url.searchParams.set(strPersonGroupNoID, ""); window.history.pushState({'Parish' : ID}, 'Parish '+ID, url); } }; xhttp.open("POST", strURL, true); xhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); xhttp.send("Diocese=883&Layout=&"+strPersonGroupID+"="+ID+"&Type=&PublicationsSectionID="+PublicationsSectionID+"&PageAction=GetContent&Preview=preview&PublicationID=19&InMap=1"); } //google.maps.event.addDomListener(window, 'load', getInfo); function CD_showInfoWindow() { document.getElementById("CD-DemoInfoWindow").style.display='block'; } //function CC_showParishInfo(ID,PersonGroup) //{ // CC_show_Catholic_Map_Info(ID,PersonGroup) //} function CD_loadPage(a) { if(document.getElementById("CD-frame-"+a).style.display=="none") { document.getElementById("CD-tab-"+a).className="CD-tab-selected"; document.getElementById("CD-frame-"+a).className="CD-infoWindow"; document.getElementById("CD-frame-"+a).style.display="block"; for (var i=0;i<3;i++) { if(i!=a) { document.getElementById("CD-tab-"+i).className="CD-tab" document.getElementById("CD-frame-"+i).style.display="none"; } } } } function CD_sendEmail(a,b) { document.getElementById("CD-CCToEmailID").value=a; document.getElementById("CD-CCEmailName").innerText=b; document.getElementById('CD-CCEmailWindow').style.display='block'; document.getElementById("CD-personName").innerHTML=b; } function CD_cancelEmail() { document.getElementById('CD-CCEmailWindow').style.display='none'; } function CD_catholic_cluster(strType) { deanery=[]; for(i=0; i document.getElementById("CD-Catholic-Map").innerHTML=strHTML; //document.getElementById("CD-Catholic-Mass-Times").style.marginTop=strHiddenPX;