strList="
Our Lady and St Werburgh Church (0 miles)
Zoom on map | View full information
Our Lady and St Werburgh`s School (0 miles)
Zoom on map | View full information
St Peter Church (0.2 miles)
Zoom on map | View full information
St Teresa`s School (1.2 miles)
Zoom on map | View full information
St Teresa of the Child Jesus Church (1.2 miles)
Zoom on map | View full information
St Joseph`s College School (1.2 miles)
Zoom on map | View full information
St Joseph`s Preparatory School (1.2 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady and St Werburgh Church (36249-34457)',52.990225,-2.227779,'ParishChurch'),new Array('Our Lady and St Werburgh`s School (36732-34831)',52.990225,-2.227779,'School'),new Array('St Peter Church (36047-34355)',52.9927,-2.226198,'ParishChurch'),new Array('St Teresa`s School (36753-34852)',52.982983,-2.200916,'School'),new Array('St Teresa of the Child Jesus Church (36176-34420)',52.982983,-2.200916,'ParishChurch'),new Array('St Joseph`s College School (36761-34860)',52.987868,-2.198749,'School'),new Array('St Joseph`s Preparatory School (39100-37206)',52.987868,-2.198749,'School'),new Array('Holy Trinity Church (36279-34472)',53.008822,-2.223913,'ParishChurch'),new Array('St Mary`s School (36724-34823)',53.012336,-2.233589,'School'),new Array('St John Fisher School (36745-34844)',53.01487,-2.234259,'School'),new Array('St Thomas Aquinas School (36752-34851)',53.010646,-2.193786,'School'),new Array('Our Lady of the Angels and St Peter in Chains Church (36408-34536)',53.00769649999999,-2.18891450000001,'ParishChurch'),new Array('Sacred Heart Church (36122-34472)',53.015112,-2.264623,'ParishChurch'),new Array('Sacred Heart Church (36122-34393)',53.015112,-2.264623,'ParishChurch'),new Array('Our Lady of Sorrows Church (36120-34449)',53.021626,-2.249397,'Church'),new Array('Our Lady of Sorrows Church (36120-34392)',53.021626,-2.249397,'Church'),new Array('Our Lady of Perpetual Succour Church (36281-34473)',52.99794,-2.167088,'ParishChurch'),new Array('Our Lady`s School (36754-34853)',52.998839,-2.166779,'School'),new Array('St Wulstan`s School (36725-34824)',53.028518,-2.213786,'School'),new Array('Sacred Heart Church (36454-34559)',53.020978,-2.174095,'ParishChurch'),new Array('St John the Evangelist Church (36269-34467)',53.036253,-2.248691,'Church'),new Array('St John the Evangelist Church (36269-34449)',53.036253,-2.248691,'Church'),new Array('St Thomas More School (36759-34858)',52.987871,-2.147208,'School'),new Array('St Peter`s School (36748-34847)',53.037297,-2.189462,'School'),new Array('St Gregory Church (36273-34469)',52.988008,-2.138211,'ParishChurch'),new Array('St Gregory`s School (36757-34856)',52.983685,-2.137855,'School'),new Array('SS George and Martin Church (36362-34513)',53.032764,-2.166836,'ParishChurch'),new Array('St George and St Martin`s School (36751-34850)',53.033089,-2.165674,'School'),new Array('St Joseph Church (36124-34394)',53.045294,-2.20231,'ParishChurch'),new Array('St Maria Goretti School (36826-34925)',53.019051,-2.135538,'School'),new Array('St Maria Goretti Catholic Primary School (38809-36915)',53.019051,-2.135538,'School'),new Array('St Maria Goretti Church (36446-34555)',53.016495,-2.130268,'ParishChurch'),new Array('Our Lady and St Benedict`s School (36750-34849)',53.03042,-2.144952,'School'),new Array('Our Lady and St Benedict Church (36154-34409)',53.03042,-2.144952,'ParishChurch'),new Array('English Martyrs Church (36037-34350)',53.05801049999999,-2.1912914,'ParishChurch'),new Array('St Wilfrid`s School (36756-34855)',53.058839,-2.203015,'School'),new Array('Sacred Heart Church (36247-34456)',53.058839,-2.203015,'ParishChurch'),new Array('Our Lady of the Assumption Church (36132-34398)',52.916782,-2.223779,'ParishChurch'),new Array('Our Lady of the Assumption Church (30548-31483)',52.916782,-2.223779,'ParishChurch'),new Array('Our Lady`s RC Primary School (38811-36917)',52.915986,-2.22608,'School'),new Array('St Augustine`s RC Primary School (38808-36914)',52.972848,-2.10713,'School'),new Array('St Augustine of Canterbury Church (36386-34525)',52.972848,-2.10713,'ParishChurch'),new Array('St Mary`s School (36749-34848)',53.059596,-2.167596,'School'),new Array('St Mary Church (36426-34545)',53.058188,-2.164666,'ParishChurch'),new Array('St Margaret Ward School (36758-34857)',53.06595,-2.197228,'School'),new Array('St John the Evangelist Church (36041-34352)',53.0744523,-2.218104,'ParishChurch'),new Array('St Bernard Church (36092-34378)',53.05302,-2.13651,'ParishChurch'),new Array('St Joseph Church (36378-34521)',53.074445,-2.218089,'ParishChurch'),new Array('St Bernadette Church (36126-34395)',53.073028,-2.189783,'ParishChurch'),new Array('St Bernadette, Fegg Hayes Parish Church (5253-34456)',53.073028,-2.189783,'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';
}
//