strList="
St. Thomas Of Canterbury Church (0 miles)
Zoom on map | View full information
St. Josephs Church (3.1 miles)
Zoom on map | View full information
Blessed John Duckett RC Primary School School (3.1 miles)
Zoom on map | View full information
Our Lady Immaculate And St. Cuthbert Church (5.8 miles)
Zoom on map | View full information
St Cuthbert`s RC Primary School School (5.8 miles)
Zoom on map | View full information
St. Pius X Church (7.4 miles)
Zoom on map | View full information
Our Lady And St. Thomas Church (7.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St. Thomas Of Canterbury Church (47310-54384)',54.730457,-1.884127,'ParishChurch'),new Array('St. Josephs Church (47268-54362)',54.7492148,-1.814101700000038,'ParishChurch'),new Array('Blessed John Duckett RC Primary School School (37098-35199)',54.749215,-1.814102,'School'),new Array('Our Lady Immaculate And St. Cuthbert Church (46995-54217)',54.716812,-1.741803,'ParishChurch'),new Array('St Cuthbert`s RC Primary School School (37112-35213)',54.716812,-1.741803,'School'),new Array('St. Pius X Church (46981-54210)',54.837603,-1.866866,'ParishChurch'),new Array('Our Lady And St. Thomas Church (47304-54380)',54.714034,-1.698406,'ParishChurch'),new Array('Our Lady And St Thomas RC Primary School School (37100-35201)',54.714034,-1.698406,'School'),new Array('St Chad`s RC Primary School School (37109-35210)',54.661256,-1.737567,'School'),new Array('Our Lady Queen Of Martyrs Church (47162-54306)',54.77374,-1.705377,'ParishChurch'),new Array('Our Lady Queen Of Martyrs` RC Primary School School (37103-35204)',54.771867,-1.700448,'School'),new Array('St Pius Xth RC Primary School School (37135-35236)',54.845384,-1.85812,'School'),new Array('St. Michael Church (47030-54235)',54.788049,-1.706393,'ParishChurch'),new Array('All Saints Church (47106-54278)',54.82524,-1.748755,'ParishChurch'),new Array('All Saints` RC Primary School School (37097-35198)',54.824302,-1.747438,'School'),new Array('St Michael`s RC Primary School School (37131-35232)',54.79036,-1.696019,'School'),new Array('St Bede`s RC School And Sixth Form College School (37107-35208)',54.828435,-1.746961,'School'),new Array('St. Patrick Church (46979-54209)',54.853711,-1.833855,'ParishChurch'),new Array('St Mary`s RC Primary School School (37127-35228)',54.857578,-1.857703,'School'),new Array('St Patrick`s RC Primary School School (37132-35233)',54.855262,-1.831325,'School'),new Array('Our Blessed Lady Immaculate Church (46963-54201)',54.860424,-1.848066,'ParishChurch'),new Array('St John`s RC Comprehensive School School (37116-35217)',54.651853,-1.693999,'School'),new Array('St. Wilfrid Church (46955-54197)',54.663602,-1.681571,'ParishChurch'),new Array('Our Lady And St Joseph`s RC Primary School School (37099-35200)',54.860756,-1.797949,'School'),new Array('St Wilfrid`s RC Primary School School (37137-35238)',54.649258,-1.68765,'School'),new Array('St. Joseph Church (47032-54236)',54.7994643,-1.6691612,'ParishChurch'),new Array('St. Mary Church (46957-54198)',54.648625,-1.682804,'ParishChurch'),new Array('Our Lady Of The Rosary Church (47202-54327)',54.870662,-1.857424,'ParishChurch'),new Array('Our Blessed Lady And St. Joseph Church (46969-54204)',54.863622,-1.78731,'ParishChurch'),new Array('St. Joseph Church (47276-54366)',54.777528,-1.643693,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37123-35224)',54.777528,-1.643693,'School'),new Array('St. Teresa Church (46927-54183)',54.858348,-1.733081,'ParishChurch'),new Array('St. Aidan`s Chapel Church (47116-54283)',54.622566,-2.078658,'ParishChurch'),new Array('St Patrick`s RC Primary School School (37134-35235)',54.755492,-1.613773,'School'),new Array('St. Patrick Church (47108-54279)',54.755492,-1.613773,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37118-35219)',54.662818,-1.627225,'School'),new Array('St. Joseph Church (46985-54212)',54.6617759,-1.627187999999933,'ParishChurch'),new Array('St. Patrick Church (47014-54227)',54.877598,-1.750175,'ParishChurch'),new Array('St Patrick`s RC Primary School School (37133-35234)',54.877598,-1.750175,'School'),new Array('St Mary`s RC Primary School School (37129-35230)',54.859823,-1.695357,'School'),new Array('St. Mary Church (47208-54330)',54.859738,-1.693504,'ParishChurch'),new Array('St. Thomas Apostle Church (47200-54326)',54.628175,-1.651488,'ParishChurch'),new Array('St. Charles Church (47272-54364)',54.710064,-1.591576,'ParishChurch'),new Array('St Charles` RC Primary School School (37110-35211)',54.706531,-1.591239,'School'),new Array('St Bede`s RC Primary School School (37106-35207)',54.821853,-1.629622,'School'),new Array('St. Bede Church (47192-54322)',54.821853,-1.629622,'ParishChurch'),new Array('St. Elizabeth Church (47118-54284)',54.897968,-1.961502,'ParishChurch'),new Array('St. Joseph Church (47230-54343)',54.870527,-1.695931,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37122-35223)',54.871689,-1.696654,'School'),new Array('St Leonard`s RC Comprehensive School School (37124-35225)',54.784141,-1.586632,'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';
}
//