strList="
The Holy Family And All Saints Church (0 miles)
Zoom on map | View full information
Holy Family (0.7 miles)
Zoom on map | View full information
St Mary Immaculate And The Holy Archangels Church (3.4 miles)
Zoom on map | View full information
St John Houghton (3.4 miles)
Zoom on map | View full information
St Mary Church (3.5 miles)
Zoom on map | View full information
St Francis (4.8 miles)
Zoom on map | View full information
Assumption Of Our Lady Church (5.2 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('The Holy Family And All Saints Church (39446-37487)',51.799533,0.638899,'ParishChurch'),new Array('Holy Family (36489-34588)',51.79128,0.629948,'School'),new Array('St Mary Immaculate And The Holy Archangels Church (39358-37427)',51.833759,0.69567,'ParishChurch'),new Array('St John Houghton (39425-37427)',51.833759,0.69567,'Church'),new Array('St Mary Church (39398-37487)',51.849575,0.629077,'ParishChurch'),new Array('St Francis (36512-34611)',51.732865,0.672337,'School'),new Array('Assumption Of Our Lady Church (39372-37435)',51.730671,0.684967,'ParishChurch'),new Array('St Bernard Church (39264-37427)',51.871914,0.685617,'ParishChurch'),new Array('New Hall Preparatory School (36508-34607)',51.76421,0.51073,'School'),new Array('New Hall School (36515-34614)',51.76421,0.51073,'School'),new Array('New Hall School (36515-78138)',51.76421,0.51073,'School'),new Array('Our Lady Queen Of Peace Church (39232-37334)',51.879219,0.555524,'ParishChurch'),new Array('The Bishops` (36513-34612)',51.751605,0.499628,'School'),new Array('St Augustine Of Canterbury Church (39406-37347)',51.751146,0.497545,'ParishChurch'),new Array('St Francis Catholic Primary School (38826-36932)',51.883154,0.546592,'School'),new Array('Saint John Payne Rc School (38827-36933)',51.751847,0.463041,'School'),new Array('St John Payne Comprehensive School (36516-34615)',51.75248,0.460757,'School'),new Array('St Pius X (36510-34609)',51.74972,0.460708,'School'),new Array('Our Lady Immaculate (36509-34608)',51.729465,0.468109,'School'),new Array('The Holy Name Church (39254-37347)',51.716185,0.476507,'ParishChurch'),new Array('The Blessed Sacrament Church (39250-37349)',51.748332,0.444493,'ParishChurch'),new Array('Our Lady Immaculate Church (39248-37347)',51.726565,0.462752,'ParishChurch'),new Array('St Philip`s Priory (38830-36936)',51.726565,0.462752,'School'),new Array('St Francis Of Assisi Church (39318-37404)',51.943963,0.644112,'ParishChurch'),new Array('St Joseph`s (36511-34610)',51.645028,0.619189,'School'),new Array('Holy Trinity Church (39404-37378)',51.645162,0.616031,'ParishChurch'),new Array('St Teresa Of Lisieux Church (39364-37430)',51.886236,0.845301,'ParishChurch'),new Array('English Martyrs Church (39284-37378)',51.645162,0.616031,'ParishChurch'),new Array('St Teresa`s Catholic Primary School (38822-36928)',51.884071,0.852203,'School'),new Array('St John The Baptist Church (39366-37430)',51.871785,0.871824,'ParishChurch'),new Array('St Benedict`s College (36496-34595)',51.885157,0.87522,'School'),new Array('St Cedd And St Gregory Church (39270-37368)',51.778177,0.913951,'ParishChurch'),new Array('St Theodore Of Canterbury Church (39272-37369)',51.864351,0.903904,'ParishChurch'),new Array('St Peter`s Church (39462-37404)',51.978543,0.584504,'ParishChurch'),new Array('Our Lady And St Anne Line Church (39290-37381)',51.872761,0.365144,'ParishChurch'),new Array('Our Lady And St Joseph Church (39416-37460)',51.660894,0.437513,'ParishChurch'),new Array('St James The Less And St Helen Church (39266-37364)',51.888624,0.908304,'ParishChurch'),new Array('St Thomas More`s (36492-34591)',51.888624,0.908304,'School'),new Array('The Holy Spirit Church (39310-37400)',51.946748,0.440689,'ParishChurch'),new Array('St Pius X Church (39338-37445)',51.600275,0.656484,'ParishChurch'),new Array('HMP and YOI Bullwood Hall Chapel (39468-37500)',51.59903,0.631934,'Other'),new Array('Our Lady Of Good Counsel Church (39444-37486)',51.611339,0.518114,'ParishChurch'),new Array('University Of Essex Chaplaincy (39470-37501)',51.876558,0.945028,'Other'),new Array('St John Payne Church (39312-37401)',51.889751,0.935324,'ParishChurch'),new Array('Our Lady of Ransom (36524-34623)',51.594736,0.584772,'School'),new Array('St Joseph Church (39268-37367)',51.921955,0.91664,'ParishChurch'),new Array('Our Lady Of Ransom Church (39386-37444)',51.589496,0.606579,'ParishChurch'),new Array('St Teresa`s (36525-34624)',51.588515,0.699284,'School'),new Array('St John The Evangelist And St Erconwald Church (39354-37425)',51.663098,0.371589,'ParishChurch'),new Array('St Teresa Of The Child Jesus Church (39388-37445)',51.588515,0.699284,'ParishChurch'));
// 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';
}
//