strList="
St Anne Church (0 miles)
Zoom on map | View full information
St Anne Church (0 miles)
Zoom on map | View full information
St Anne`s Primary School (0.3 miles)
Zoom on map | View full information
St Thomas More School (3 miles)
Zoom on map | View full information
St Mary`s Primary School (3 miles)
Zoom on map | View full information
St Mary Church (3.9 miles)
Zoom on map | View full information
St Winefride Church (8.4 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Anne Church (59665-32754)',53.063819,-2.519559,'ParishChurch'),new Array('St Anne Church (63305-32754)',53.063819,-2.519559,'ParishChurch'),new Array('St Anne`s Primary School (38153-36257)',53.059893,-2.519124,'School'),new Array('St Thomas More School (38234-36338)',53.08721,-2.457983,'School'),new Array('St Mary`s Primary School (38187-36291)',53.086882,-2.459234,'School'),new Array('St Mary Church (59736-32750)',53.098168,-2.446301,'ParishChurch'),new Array('St Winefride Church (59801-32752)',53.145113,-2.368791,'ParishChurch'),new Array('St Joseph Church (59720-32756)',53.189444,-2.541296,'ParishChurch'),new Array('St Thomas Becket Church (59782-32755)',53.15296,-2.666641,'ParishChurch'),new Array('St Joseph`s School (38176-36280)',53.189444,-2.541296,'School'),new Array('St Gabriel`s Primary School (38166-36270)',53.094036,-2.309577,'School'),new Array('St Mary`s Primary School (38189-36293)',53.188743,-2.448155,'School'),new Array('St George Church (59696-32802)',52.970925,-2.682955,'ParishChurch'),new Array('St Gabriel Church (59694-32797)',53.097695,-2.294908,'ParishChurch'),new Array('St Mary Church (59740-32751)',53.195602,-2.443137,'ParishChurch'),new Array('St Joseph Church (59723-32803)',53.024391,-2.770079,'ParishChurch'),new Array('St Joseph Church (63363-32803)',53.024391,-2.770079,'ParishChurch'),new Array('Sacred Heart Church (36122-34393)',53.015112,-2.264623,'ParishChurch'),new Array('St Plegmund`s Church (59774-64974)',53.125322,-2.766129,'Other'),new Array('Sacred Heart Church (36122-34472)',53.015112,-2.264623,'ParishChurch'),new Array('S t Plegmund`s Church (63414-66786)',53.125322,-2.766129,'Other'),new Array('SS Thomas and Stephen Church (63287-32813)',52.903833,-2.479849,'ParishChurch'),new Array('SS Thomas and Stephen Church (59647-32813)',52.903833,-2.479849,'ParishChurch'),new Array('St John the Evangelist Church (36269-34449)',53.036253,-2.248691,'Church'),new Array('St John the Evangelist Church (36269-34467)',53.036253,-2.248691,'Church'),new Array('Our Lady of Sorrows Church (36120-34392)',53.021626,-2.249397,'Church'),new Array('Our Lady of Sorrows Church (36120-34449)',53.021626,-2.249397,'Church'),new Array('Our Blessed Lady and St John the Baptist Church (36023-34343)',52.92494,-2.360594,'ParishChurch'),new Array('Our Blessed Lady and St John the Baptist Church (36023-34457)',52.92494,-2.360594,'ParishChurch'),new Array('St John the Evangelist School (36721-34820)',53.086159,-2.240394,'School'),new Array('S t Margaret`s Church (63370-66784)',53.202511,-2.35596,'Other'),new Array('St John Fisher School (36745-34844)',53.01487,-2.234259,'School'),new Array('St Mary`s School (36724-34823)',53.012336,-2.233589,'School'),new Array('St John the Evangelist Church (36041-34352)',53.0744523,-2.218104,'ParishChurch'),new Array('St Joseph Church (36378-34521)',53.074445,-2.218089,'ParishChurch'),new Array('St Joseph`s School (36747-34846)',53.075927,-2.213574,'School'),new Array('St Wilfrid`s School (38211-36315)',53.247653,-2.527899,'School'),new Array('St Nicholas School (38232-36336)',53.247653,-2.527899,'School'),new Array('St Wulstan`s School (36725-34824)',53.028518,-2.213786,'School'),new Array('Holy Trinity Church (36279-34472)',53.008822,-2.223913,'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 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 and St Werburgh Church (36249-34457)',52.990225,-2.227779,'ParishChurch'),new Array('St Joseph Church (36124-34394)',53.045294,-2.20231,'ParishChurch'),new Array('St Margaret Ward School (36758-34857)',53.06595,-2.197228,'School'),new Array('St Patrick Church (36073-34368)',53.088108,-2.197763,'ParishChurch'),new Array('St Bede`s School (38157-36261)',53.257352,-2.56323,'School'),new Array('St Patrick, Packmoor Parish Church (5439-34350)',53.088108,-2.197763,'Church'));
// 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';
}
//