strList="
Sacred Heart Church (0 miles)
Zoom on map | View full information
Bishop Parker Primary and Nursery (5.5 miles)
Zoom on map | View full information
St Thomas Aquinas Church (5.8 miles)
Zoom on map | View full information
Our Lady of Czestochowa (Polish) Church (6 miles)
Zoom on map | View full information
Our Lady of Czestochowa (Polish) Church (6 miles)
Zoom on map | View full information
St Mary Church (6 miles)
Zoom on map | View full information
St Vincent`s RC Primary School School (6.2 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Sacred Heart Church (49567-56030)',51.9192584,-0.65681040000004,'ParishChurch'),new Array('Bishop Parker Primary and Nursery (37769-35873)',51.986138,-0.728264,'School'),new Array('St Thomas Aquinas Church (49611-56057)',51.994498,-0.718152,'ParishChurch'),new Array('Our Lady of Czestochowa (Polish) Church (49519-75838)',51.886757,-0.526351,'ParishChurch'),new Array('Our Lady of Czestochowa (Polish) Church (49519-56004)',51.886757,-0.526351,'ParishChurch'),new Array('St Mary Church (49521-56005)',51.8854,-0.526366,'ParishChurch'),new Array('St Vincent`s RC Primary School School (37789-35893)',51.909142,-0.512447,'School'),new Array('St Mary Church (49673-56097)',52.010831,-0.642356,'ParishChurch'),new Array('St Thomas Aquinas Primary School (37773-35877)',51.989941,-0.757735,'School'),new Array('All Saints Church (49595-56057)',51.996471,-0.754568,'ParishChurch'),new Array('St Martin De Porres Primary School (37795-35899)',51.899957,-0.48528,'School'),new Array('St Martin de Porres Catholic Church (49589-56044)',51.896617,-0.485639,'ParishChurch'),new Array('St Marys Lower School School (37788-35892)',51.874002,-0.496742,'School'),new Array('St Barnabas Office (49599-56049)',52.027414,-0.693467,'ParishChurch'),new Array('St John the Apostle Church (49583-56035)',51.918384,-0.470889,'ParishChurch'),new Array('St Bernadettes Primary School (37770-35874)',52.033264,-0.710367,'School'),new Array('St Paul`s School (49601-56051)',52.026313,-0.745228,'ParishChurch'),new Array('St Pauls Catholic School School (37772-35876)',52.025987,-0.753472,'School'),new Array('Sacred Heart Church (49531-56010)',51.99747,-0.497213,'ParishChurch'),new Array('Corpus Christi Church (40820-38200)',51.792475,-0.665191,'ParishChurch'),new Array(' (71373-75185)',51.89846730000001,-0.4542065,'Other'),new Array('St Louis Primary School (37763-35867)',51.825103,-0.799276,'School'),new Array('The Holy Family Church (49575-56035)',51.914342,-0.445829,'ParishChurch'),new Array('St Clare`s Church (49459-55957)',51.828381,-0.811349,'ParishChurch'),new Array('St Joseph Church (49585-56042)',51.900877,-0.446178,'ParishChurch'),new Array('St Joseph`s Infants School School (37792-35896)',51.900877,-0.446178,'School'),new Array('St Edward the Confessor Church (49605-56054)',52.02452,-0.788682,'ParishChurch'),new Array('St Edwards Junior School (37761-35865)',51.811383,-0.790661,'School'),new Array('St Josephs Infants School School (37762-35866)',51.811383,-0.790661,'School'),new Array('Ecumenical Church of Christ the Cornerstone Church (49597-56051)',52.041113,-0.761464,'Church'),new Array('St Joseph Church (49461-55957)',51.816681,-0.80935,'ParishChurch'),new Array('St Laurence Anglican Church (49671-56096)',51.94117,-0.87836,'ParishChurch'),new Array('Our Lady of Lourdes Church (49463-55961)',51.805316,-0.785616,'ParishChurch'),new Array('The Holy Ghost Church (49577-56037)',51.887706,-0.433438,'ParishChurch'),new Array('Cardinal Newman Catholic School School (37790-35894)',51.921685,-0.423923,'School'),new Array('St Margaret Of Scotland Primary School (37794-35898)',51.871604,-0.43898,'School'),new Array('Luton DHS (71371-75181)',51.8893093,-0.4293145,'Other'),new Array('St Margaret of Scotland Church (49587-56043)',51.876217,-0.43497,'ParishChurch'),new Array('HM Young Offenders Institution (65226-75459)',51.801983,-0.806589,'Other'),new Array('St Augustine Church (49603-56053)',52.053525,-0.771272,'ParishChurch'),new Array('St Thomas Church (49591-56043)',51.880694,-0.419443,'ParishChurch'),new Array('St Monicas Primary School (37771-35875)',52.060505,-0.75187,'School'),new Array('Our Lady Help of Christians Church (49579-56039)',51.875427,-0.41556,'ParishChurch'),new Array('Cranfield University Chaplaincy (49507-55997)',52.073918,-0.628755,'Other'),new Array('University of Bedfordshire (71001-74296)',51.8778618,-0.411407100000019,'Other'),new Array(' (71380-75193)',52.0630684,-0.7705103,'Other'),new Array('Sacred Heart Primary School (37791-35895)',51.895909,-0.397545,'School'),new Array('Sacred Heart of Jesus Church (49581-56040)',51.896953,-0.393642,'ParishChurch'),new Array('Sacred Heart of Jesus Church (49581-75834)',51.896953,-0.393642,'ParishChurch'),new Array('St Anne`s Church (49667-56094)',51.764579,-0.743976,'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';
}
//