strList="
Our Lady Of Consolation & St. Stephen Church (0 miles)
Zoom on map | View full information
St Thomas Of Canterbury Church (4.9 miles)
Zoom on map | View full information
The Immaculate Conception & St Margaret Church (6.6 miles)
Zoom on map | View full information
Immaculate Conception & St Margaret Church (6.6 miles)
Zoom on map | View full information
Wayland Attleborough (7 miles)
Zoom on map | View full information
Watton Methodist Church Church (7.2 miles)
Zoom on map | View full information
St. Mary Church (7.6 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady Of Consolation and St. Stephen Church (42693-45189)',52.514472,0.680823,'ParishChurch'),new Array('St Thomas Of Canterbury Church (42725-45210)',52.455206,0.618076,'ParishChurch'),new Array('The Immaculate Conception and St Margaret Church (42697-45192)',52.583258,0.572056,'ParishChurch'),new Array('Immaculate Conception and St Margaret Church (43756-45197)',52.5805318,0.569228,'Church'),new Array('Wayland Attleborough (36979-35079)',52.567054,0.82411,'School'),new Array('Watton Methodist Church Church (43763-45197)',52.5712711,0.8251027,'Other'),new Array('St. Mary Church (42707-45199)',52.411127,0.743223,'ParishChurch'),new Array('Daughters of Divine Charity (36933-35033)',52.649647,0.690655,'Other'),new Array('Sacred Heart School (38848-36954)',52.649647,0.690655,'School'),new Array('Our Lady Of Pity Church (42705-45197)',52.651281,0.688375,'ParishChurch'),new Array('RAF Lakenheath Chapel (42813-45260)',52.395036,0.551127,'ParishChurch'),new Array('Holy Apostles Church (43730-45160)',52.613969,0.886402,'Church'),new Array('St George Church (42695-45191)',52.656987,0.546972,'ParishChurch'),new Array('Gatehouse (36995-35095)',52.351341,0.519313,'School'),new Array('Our Lady Of Walsingham USAF Chapel (42771-45237)',52.370336,0.476218,'ParishChurch'),new Array('Attleborough Methodist Church Church (42655-45169)',52.506867,0.995807,'ParishChurch'),new Array('Our Lady Of Mount Carmel Church (42701-45195)',52.448794,0.983193,'ParishChurch'),new Array('St. Dominic Church (42675-45179)',52.601521,0.379852,'ParishChurch'),new Array('Sacred Heart and St Margaret Mary Church (42669-45176)',52.677848,0.942118,'ParishChurch'),new Array('Sisters of the Assumption (36922-35022)',52.284938,0.672409,'School'),new Array('St Benedict`s Catholic Upper School (36885-34985)',52.264181,0.706028,'School'),new Array('Sisters of Our Lady of Grace and Compassion (36920-35020)',52.267749,0.771957,'Other'),new Array('Sisters of Our Lady of Grace and Compassion (36920-45213)',52.267749,0.771957,'Other'),new Array('West Suffolk (36943-35043)',52.249242,0.700211,'School'),new Array('Sisters of St Louis (36915-35015)',52.247949,0.715003,'School'),new Array('Moreton Hall Preparatory School (2-13) (36886-34986)',52.246379,0.737792,'School'),new Array('Our Lady and St Thomas Of Canterbury Church (42717-45206)',52.570973,1.116147,'ParishChurch'),new Array('St Louis Catholic Middle School (9-13) (36884-34984)',52.243285,0.710953,'School'),new Array('Nuffield Hospital (36998-35098)',52.240171,0.71926,'Other'),new Array('St Edmund`s Catholic First School (5-9) (36883-34983)',52.24106,0.713865,'School'),new Array('St Edmund King and Martyr Church (42731-45213)',52.24106,0.713865,'ParishChurch'),new Array('St Etheldreda Church (42602-45137)',52.401678,0.261571,'ParishChurch'),new Array('Queen Elizabeth Hospital (36958-35058)',52.756781,0.446999,'Other'),new Array('Queen Elizabeth Hospital Chapel (65966-45186)',52.757809,0.447739,'Other'),new Array('West Suffolk Hospital (36996-35096)',52.231662,0.709176,'Other'),new Array('St. Nicholas` Hospice (36997-35097)',52.228218,0.708395,'School'),new Array('Our Lady Of The Annunciation Church (42687-45186)',52.747277,0.402162,'ParishChurch'),new Array('St Martha`s Catholic Primary School (36899-34999)',52.760941,0.429209,'School'),new Array('Holy Family Church (42689-45187)',52.760941,0.429209,'ParishChurch'),new Array('The Catholic Church of Sir Henry Morse (42673-45178)',52.3826476,1.10604920000003,'ParishChurch'),new Array('Newmarket Hospital (36962-35062)',52.250892,0.399979,'Other'),new Array('St Louis Catholic Primary School (5-9) (36902-35002)',52.249444,0.40749,'School'),new Array('Our Lady Immaculate and St Etheldreda Church (42775-45239)',52.2439905,0.4107082,'ParishChurch'),new Array('St Mary`s C of E Church (43799-45241)',52.224769,0.888656,'Other'),new Array('St. Mary C of E Church (42783-45244)',52.224769,0.888656,'Other'),new Array('St Anthony Of Padua Church (42677-45180)',52.833174,0.845732,'ParishChurch'),new Array('Norfolk and Norwich University Hospital (36939-35039)',52.618086,1.221067,'Other'),new Array('Our Lady Immaculate and St. Joseph Church (42735-45216)',52.168992,0.713819,'ParishChurch'),new Array('Our Lady Immaculate and St. Joseph Church (43775-45213)',52.168992,0.713819,'ParishChurch'),new Array('St Cecilia Church (42671-45177)',52.845214,0.497058,'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';
}
//