strList="
St. John Fisher Church (0 miles)
Zoom on map | View full information
St William`s RC Primary School School (3 miles)
Zoom on map | View full information
St. William Church (3.4 miles)
Zoom on map | View full information
The Sacred Heart Church (4 miles)
Zoom on map | View full information
All Saints Church (4.6 miles)
Zoom on map | View full information
St Joseph`s RC Primary School (4.7 miles)
Zoom on map | View full information
Ss. Joseph Church (4.8 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St. John Fisher Church (47198-54325)',54.653888,-1.452537,'ParishChurch'),new Array('St William`s RC Primary School School (37138-35239)',54.694824,-1.42558,'School'),new Array('St. William Church (47270-54363)',54.701714,-1.430836,'ParishChurch'),new Array('The Sacred Heart Church (47306-54381)',54.658597,-1.553324,'ParishChurch'),new Array('All Saints Church (47038-54239)',54.683838,-1.555218,'ParishChurch'),new Array('St Joseph`s RC Primary School (38861-36967)',54.715673,-1.503039,'School'),new Array('Ss. Joseph Church (46989-54214)',54.716737,-1.503834,'ParishChurch'),new Array('St. Mary`s Church (47166-54308)',54.623062,-1.56553,'ParishChurch'),new Array('St Mary`s RC Primary School School (37128-35229)',54.623062,-1.56553,'School'),new Array('St Joseph`s RC Primary School School (37121-35222)',54.621611,-1.587304,'School'),new Array('St. Joseph Church (47168-54309)',54.621611,-1.587304,'ParishChurch'),new Array('St Mary`s RC Primary School School (37130-35231)',54.727368,-1.378926,'School'),new Array('St Paul`s RC Primary School School (37096-35197)',54.617151,-1.313491,'School'),new Array('English Martyrs And Ss. Peter And Paul Church (47242-54349)',54.587513,-1.341193,'ParishChurch'),new Array('St Godric`s RC Primary School School (37115-35216)',54.74542,-1.41834,'School'),new Array('St Charles` RC Primary School School (37110-35211)',54.706531,-1.591239,'School'),new Array('The Sacred Heart And English Martyrs Church (47262-54359)',54.749004,-1.442773,'ParishChurch'),new Array('Ss. Peter And Paul Church (47096-54273)',54.721449,-1.333776,'ParishChurch'),new Array('Our Lady Of The Most Holy Rosary RC Primary School School (37087-35188)',54.612579,-1.29813,'School'),new Array('Our Lady Of The Most Holy Rosary Church (46949-54194)',54.611145,-1.29879,'ParishChurch'),new Array('St Gregory`s Catholic Primary School School (37090-35191)',54.582033,-1.33664,'School'),new Array('St. Charles Church (47272-54364)',54.710064,-1.591576,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37093-35194)',54.589703,-1.316351,'School'),new Array('St. Joseph Church (46985-54212)',54.6617759,-1.627187999999933,'ParishChurch'),new Array('St. Patrick Church (47244-54350)',54.567718,-1.358572,'ParishChurch'),new Array('St Patrick`s RC Primary School School (37095-35196)',54.567718,-1.358572,'School'),new Array('St. Joseph Church (47240-54348)',54.5908206,-1.3147679,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37118-35219)',54.662818,-1.627225,'School'),new Array('Our Lady And St Bede RC Comprehensive School School (37086-35187)',54.571086,-1.346268,'School'),new Array('St Bede`s Catholic Primary School School (37088-35189)',54.571918,-1.325883,'School'),new Array('St. Joseph`s Church (46951-54195)',54.6162704,-1.2744518,'ParishChurch'),new Array('St. Joseph`s Church (46951-54194)',54.6162704,-1.2744518,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37092-35193)',54.616259,-1.274437,'School'),new Array('St. Bede`s Church (47236-54346)',54.570643,-1.326214,'ParishChurch'),new Array('St John The Evangelist RC Primary School School (37091-35192)',54.599196,-1.284136,'School'),new Array('St. John The Evangelist Church (46947-54193)',54.598858,-1.284668,'ParishChurch'),new Array('St. John The Evangelist Church (46947-54194)',54.598858,-1.284668,'ParishChurch'),new Array('St Michael`s RC Comprehensive School School (37094-35195)',54.613637,-1.270411,'School'),new Array('Our Lady Of Lourdes Church (47204-54328)',54.76625,-1.401334,'ParishChurch'),new Array('Our Lady Of Lourdes RC Primary School School (37101-35202)',54.76625,-1.401334,'School'),new Array('St. Mary Church (47234-54345)',54.570686,-1.311472,'ParishChurch'),new Array('St Bede`s RC Primary School School (37142-35243)',54.546515,-1.537266,'School'),new Array('St. Thomas Apostle Church (47200-54326)',54.628175,-1.651488,'ParishChurch'),new Array('Our Lady Of The Rosary RC Primary School School (37102-35203)',54.756931,-1.344102,'School'),new Array('St. Cuthbert Church (47238-54347)',54.558549,-1.325037,'ParishChurch'),new Array('St Bede`s RC Comprehensive School School (37105-35206)',54.756931,-1.344102,'School'),new Array('St. Patrick Church (47074-54261)',54.657067,-1.244863,'ParishChurch'),new Array('St. Anne Church (47012-54226)',54.540583,-1.518507,'ParishChurch'),new Array('St Cuthbert`s RC Primary School School (37089-35190)',54.557709,-1.316298,'School'),new Array('English Martyrs` School And Sixth Form College School (37079-35180)',54.675537,-1.236457,'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';
}
//