strList="
Mater Amabilis Church (0 miles)
Zoom on map | View full information
Our Lady of the Wayside Church (3.4 miles)
Zoom on map | View full information
St. Cuthberts Catholic Primary , Windermere School (4.5 miles)
Zoom on map | View full information
Our Lady of Windermere and St Herbert Church (4.5 miles)
Zoom on map | View full information
Sacred Heart Church (6.6 miles)
Zoom on map | View full information
Holy Trinity and St George Church (11.2 miles)
Zoom on map | View full information
Dean Gibson Catholic Primary , Kendal School (11.6 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Mater Amabilis Church (62005-66103)',54.42818,-2.963667,'ParishChurch'),new Array('Our Lady of the Wayside Church (62075-66138)',54.465308,-3.017212,'ParishChurch'),new Array('St. Cuthberts Catholic Primary , Windermere School (37169-35270)',54.37182,-2.907946,'School'),new Array('Our Lady of Windermere and St Herbert Church (62201-66201)',54.37182,-2.910363,'ParishChurch'),new Array('Sacred Heart Church (62059-66130)',54.3612735,-3.079798699999969,'ParishChurch'),new Array('Holy Trinity and St George Church (62087-66144)',54.32777,-2.744197,'ParishChurch'),new Array('Dean Gibson Catholic Primary , Kendal School (37199-35300)',54.316888,-2.748351,'School'),new Array('Our Lady of the Lakes and St Charles Church (62089-66145)',54.60551,-3.145906,'ParishChurch'),new Array('Milnthorpe and Arnside Church (62105-66153)',54.227687,-2.771141,'ParishChurch'),new Array('St Charles Church (62073-66137)',54.19145,-2.912432,'ParishChurch'),new Array('St Mary of Furness Church (62167-66184)',54.193406,-3.094132,'ParishChurch'),new Array('St Mary of Furness Church (62167-66200)',54.193406,-3.094132,'ParishChurch'),new Array('Boarbank Hall (65015-70827)',54.180472,-2.95353,'Other'),new Array('St. Marys Catholic Primary , Ulverston School (37168-35269)',54.189875,-3.095985,'School'),new Array('St. Catherines Catholic Primary , Penrith School (37185-35286)',54.6681,-2.756533,'School'),new Array('St Catherine Virgin and Martyr Church (62115-66158)',54.6681,-2.756533,'ParishChurch'),new Array('St Anthony (served from Dalton) Church (62211-66206)',54.189203,-3.206649,'ParishChurch'),new Array('Our Lady and St James Church (62189-66195)',54.2111378,-3.263257899999985,'ParishChurch'),new Array('St. James Catholic Primary , Millom School (37167-35268)',54.211138,-3.263258,'School'),new Array('St Mary Church (62111-66156)',54.160794,-2.762423,'ParishChurch'),new Array('Our Lady of the Rosary, Dalton-in-Furness School (37166-35267)',54.160152,-3.170411,'School'),new Array('Our Lady of the Rosary and St Margaret of Scotland Church (62199-66200)',54.157791,-3.173882,'ParishChurch'),new Array('St Joseph Church (62221-66211)',54.39663359999999,-3.4811798,'ParishChurch'),new Array('St Joseph Church (62097-66149)',54.202242,-2.5956,'ParishChurch'),new Array('Our Lady of Appleby Church (62007-66104)',54.579338,-2.486881,'ParishChurch'),new Array('Our Lady of Lourdes Church (62051-66126)',54.125695,-2.762819,'ParishChurch'),new Array('Our Lady of Lourdes Catholic Primary , Carnforth School (37198-35299)',54.125218,-2.761494,'School'),new Array('St Joseph Church (62067-66134)',54.541938,-3.492422,'ParishChurch'),new Array('St. Josephs Catholic Primary , Frizington School (37232-35333)',54.541938,-3.492422,'School'),new Array('St. Josephs Catholic Primary , Cockermouth School (37238-35339)',54.659529,-3.369576,'School'),new Array('St. Bernards Catholic High School School (37160-35261)',54.129605,-3.200203,'School'),new Array('St. Patricks Catholic Primary , Cleator Moor School (37231-35332)',54.51674,-3.512359,'School'),new Array('St Mary Church (62185-66193)',54.512538,-3.514907,'ParishChurch'),new Array('St Joseph Church (62187-66194)',54.663528,-3.369649,'ParishChurch'),new Array('Holy Family Catholic Primary School (37163-35263)',54.12467,-3.20742,'School'),new Array('Holy Family Catholic Primary School (37163-35264)',54.12467,-3.20742,'School'),new Array('St. Pius X Catholic Primary School (37165-35266)',54.132342,-3.233539,'School'),new Array('Holy Family Church (62015-66108)',54.123717,-3.206566,'ParishChurch'),new Array('St Mary Church (62195-66198)',54.482585,-3.533064,'ParishChurch'),new Array('St. Bridgets Catholic Primary , Egremont School (37233-35334)',54.482585,-3.533064,'School'),new Array('St Pius X Church (62013-66107)',54.132342,-3.233539,'ParishChurch'),new Array('St Mary of the Angels Church (62053-66127)',54.103296,-2.790899,'ParishChurch'),new Array('Sacred Heart Church (62011-66106)',54.110392,-3.214256,'ParishChurch'),new Array('Sacred Heart Catholic Primary School School (37161-35262)',54.110392,-3.214256,'School'),new Array('St Mary of Furness Church (62017-66109)',54.114088,-3.23263,'ParishChurch'),new Array('St Mary Church (62107-66154)',54.0747674,-2.859161299999983,'Church'),new Array('St. Marys Catholic Primary , Morecambe School (37196-35297)',54.073452,-2.853235,'School'),new Array('St Columba Church (62169-66185)',54.106588,-3.250395,'ParishChurch'),new Array('St. Columbas Catholic Primary School (37164-35265)',54.105636,-3.249448,'School'),new Array('St. Benedicts Catholic High School (37228-35329)',54.543499,-3.560994,'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';
}
//