strList="
Saint Joseph Church (0 miles)
Zoom on map | View full information
Our Lady &st Joseph`s RC Primary School (0.4 miles)
Zoom on map | View full information
Pope Pius X Catholic High School (0.6 miles)
Zoom on map | View full information
English Martyrs Church (2 miles)
Zoom on map | View full information
Sacred Heart Church (2.7 miles)
Zoom on map | View full information
St Michael and All Angels (2.7 miles)
Zoom on map | View full information
St Joseph`s Catholic Primary School (2.8 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Saint Joseph Church (44741-48541)',53.50121,-1.336935,'ParishChurch'),new Array('Our Lady andst Joseph`s RC Primary School (37383-35487)',53.499913,-1.346256,'School'),new Array('Pope Pius X Catholic High School (37599-35703)',53.492261,-1.337632,'School'),new Array('English Martyrs Church (44729-48494)',53.498662,-1.287785,'ParishChurch'),new Array('Sacred Heart Church (44684-48317)',53.520582,-1.393147,'ParishChurch'),new Array('St Michael and All Angels (65159-48310)',53.520582,-1.393147,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37388-35492)',53.460135,-1.337514,'School'),new Array('St Michael and All Angels Catholic Primary School (37372-35476)',53.528082,-1.388529,'School'),new Array('St Joseph (44735-48513)',53.460135,-1.337514,'ParishChurch'),new Array('St Joseph`s Primary (65193-48513)',53.460135,-1.337514,'School'),new Array('Sacred Heart Catholic Primary School (37295-35399)',53.535722,-1.302991,'School'),new Array('St Gerard`s Catholic Primary School (37382-35486)',53.44915,-1.305673,'School'),new Array('St Alban`s Catholic Primary School (37375-35479)',53.489282,-1.24446,'School'),new Array('Saint Gerard Church (44739-48532)',53.448128,-1.306126,'ParishChurch'),new Array('St Alban`s Convent (65182-48487)',53.489282,-1.24446,'Other'),new Array('St Alban Church (44726-48487)',53.489282,-1.24446,'ParishChurch'),new Array('The Forty Martyrs Church (44738-48530)',53.4526848,-1.3961639,'ParishChurch'),new Array('St Helen`s Catholic Primary School (37371-35475)',53.500733,-1.444507,'School'),new Array('Blessed Trinity Church (44740-48536)',53.43487039999999,-1.3297053,'ParishChurch'),new Array('St Bede`s Primary (65196-48521)',53.438383,-1.396923,'School'),new Array('St Bede`s Catholic Primary School (37380-35484)',53.438383,-1.396923,'School'),new Array('St Bede Church (44737-48521)',53.430011,-1.36846,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37379-35483)',53.428406,-1.323243,'School'),new Array('St Bede Church (4902-74346)',53.430011,-1.36846,'ParishChurch'),new Array('St Mary`s Primary (65194-48516)',53.427127,-1.324377,'School'),new Array('The Immaculate Conception (st Mary`s) Church (44736-48516)',53.427127,-1.324377,'ParishChurch'),new Array('St Bernard`s Comprehensive (65195-48516)',53.423922,-1.32342,'School'),new Array('St Bernard`s Catholic High School (37600-35704)',53.423922,-1.32342,'School'),new Array('Our Lady and St James (65158-70857)',53.527666,-1.466903,'Other'),new Array('Our Lady`s Catholic Primary School (37373-35477)',53.533085,-1.46261,'School'),new Array('St Mary`s Catholic Primary School (37377-35481)',53.481936,-1.19313,'School'),new Array('Saint Mary Magdalene Church (44679-48285)',53.576567,-1.417522,'ParishChurch'),new Array('Saint Paul Church (44681-48290)',53.588205,-1.370637,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37662-35766)',53.474531,-1.484503,'School'),new Array('Saint Mary Church (44745-48555)',53.47273,-1.483772,'ParishChurch'),new Array('St Joseph`s Catholic Primary (moorthorpe) School (38876-36982)',53.5940487,-1.3015176,'School'),new Array('St Joseph (63137-66685)',53.594067,-1.301517,'Church'),new Array('St Edward the Confessor (65210-70893)',53.406202,-1.368888,'ParishChurch'),new Array('Holy Rood Rectory (65156-70854)',53.549889,-1.484147,'ParishChurch'),new Array('Holy Rood Primary School (65157-70854)',53.549589,-1.491697,'Other'),new Array('St Mary`s Primary (65192-48498)',53.416654,-1.233273,'School'),new Array('St Dominic`s Catholic Primary School (37370-35474)',53.577562,-1.457123,'School'),new Array('Holy trinity (37597-35701)',53.57860789999999,-1.457849900000042,'School'),new Array('St Patrick`s Catholic Primary School (37670-35774)',53.422674,-1.455561,'School'),new Array('St Patrick`s (65205-70889)',53.422674,-1.455561,'School'),new Array('Sacred Heart Church (44709-48398)',53.504549,-1.159003,'ParishChurch'),new Array('Blessed Sacrament Church (44674-48245)',53.575069,-1.464344,'ParishChurch'),new Array('St Patrick (65204-70889)',53.422674,-1.455561,'ParishChurch'),new Array('St Thomas More Presbyetry (65206-70890)',53.431758,-1.475087,'ParishChurch'),new Array('St Thomas More Catholic Primary School (37663-35767)',53.435383,-1.485925,'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';
}
//