strList="
St Francis (0 miles)
Zoom on map | View full information
Assumption Of Our Lady Church (0.6 miles)
Zoom on map | View full information
Holy Family (4.4 miles)
Zoom on map | View full information
The Holy Family And All Saints Church (4.8 miles)
Zoom on map | View full information
St Joseph`s (6.5 miles)
Zoom on map | View full information
English Martyrs Church (6.5 miles)
Zoom on map | View full information
Holy Trinity Church (6.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Francis (36512-34611)',51.732865,0.672337,'School'),new Array('Assumption Of Our Lady Church (39372-37435)',51.730671,0.684967,'ParishChurch'),new Array('Holy Family (36489-34588)',51.79128,0.629948,'School'),new Array('The Holy Family And All Saints Church (39446-37487)',51.799533,0.638899,'ParishChurch'),new Array('St Joseph`s (36511-34610)',51.645028,0.619189,'School'),new Array('English Martyrs Church (39284-37378)',51.645162,0.616031,'ParishChurch'),new Array('Holy Trinity Church (39404-37378)',51.645162,0.616031,'ParishChurch'),new Array('St Mary Immaculate And The Holy Archangels Church (39358-37427)',51.833759,0.69567,'ParishChurch'),new Array('St John Houghton (39425-37427)',51.833759,0.69567,'Church'),new Array('New Hall School (36515-78138)',51.76421,0.51073,'School'),new Array('New Hall School (36515-34614)',51.76421,0.51073,'School'),new Array('New Hall Preparatory School (36508-34607)',51.76421,0.51073,'School'),new Array('The Bishops` (36513-34612)',51.751605,0.499628,'School'),new Array('St Augustine Of Canterbury Church (39406-37347)',51.751146,0.497545,'ParishChurch'),new Array('St Mary Church (39398-37487)',51.849575,0.629077,'ParishChurch'),new Array('The Holy Name Church (39254-37347)',51.716185,0.476507,'ParishChurch'),new Array('Our Lady Immaculate (36509-34608)',51.729465,0.468109,'School'),new Array('Our Lady Immaculate Church (39248-37347)',51.726565,0.462752,'ParishChurch'),new Array('St Philip`s Priory (38830-36936)',51.726565,0.462752,'School'),new Array('Saint John Payne Rc School (38827-36933)',51.751847,0.463041,'School'),new Array('St Pius X (36510-34609)',51.74972,0.460708,'School'),new Array('St John Payne Comprehensive School (36516-34615)',51.75248,0.460757,'School'),new Array('St Pius X Church (39338-37445)',51.600275,0.656484,'ParishChurch'),new Array('HMP and YOI Bullwood Hall Chapel (39468-37500)',51.59903,0.631934,'Other'),new Array('St Bernard Church (39264-37427)',51.871914,0.685617,'ParishChurch'),new Array('The Blessed Sacrament Church (39250-37349)',51.748332,0.444493,'ParishChurch'),new Array('St Teresa`s (36525-34624)',51.588515,0.699284,'School'),new Array('St Teresa Of The Child Jesus Church (39388-37445)',51.588515,0.699284,'ParishChurch'),new Array('Our Lady of Ransom (36524-34623)',51.594736,0.584772,'School'),new Array('Our Lady Of Ransom Church (39386-37444)',51.589496,0.606579,'ParishChurch'),new Array('Our Lady Of Good Counsel Church (39444-37486)',51.611339,0.518114,'ParishChurch'),new Array('St Cedd And St Gregory Church (39270-37368)',51.778177,0.913951,'ParishChurch'),new Array('Our Lady And St Joseph Church (39416-37460)',51.660894,0.437513,'ParishChurch'),new Array('Our Lady Queen Of Peace Church (39232-37334)',51.879219,0.555524,'ParishChurch'),new Array('St Francis Catholic Primary School (38826-36932)',51.883154,0.546592,'School'),new Array('St Peter Church (39294-37385)',51.561737,0.661264,'ParishChurch'),new Array('St Thomas More High School for Boys (36531-34630)',51.554521,0.670523,'School'),new Array('St John Fisher Church (39382-37442)',51.5562257,0.7034889,'ParishChurch'),new Array('Our Lady of Lourdes (36526-34625)',51.550116,0.669241,'School'),new Array('Holy Family (36522-34621)',51.562822,0.561216,'School'),new Array('St Thomas More Church (39314-37332)',51.553073,0.611016,'ParishChurch'),new Array('Holy Family Church (39228-37332)',51.566354,0.550188,'ParishChurch'),new Array('St Peter`s Catholic Primary School (36520-34619)',51.61285,0.443243,'School'),new Array('St Teresa Of Lisieux Church (39364-37430)',51.886236,0.845301,'ParishChurch'),new Array('St John The Baptist Church (39366-37430)',51.871785,0.871824,'ParishChurch'),new Array('St Teresa`s Catholic Primary School (38822-36928)',51.884071,0.852203,'School'),new Array('Our Lady Of Lourdes And St Joseph Church (39362-37429)',51.545163,0.663989,'ParishChurch'),new Array('St Helen`s (36529-34628)',51.543294,0.702058,'School'),new Array('St Helen`s RC Primary School (38823-36929)',51.541958,0.703061,'School'),new Array('The Most Holy Redeemer Church (39230-37333)',51.620919,0.416646,'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';
}
//