strList="
St Anne Church (0 miles)
Zoom on map | View full information
St Thomas More Catholic Secondary School (0.3 miles)
Zoom on map | View full information
St Anne`s Catholic Primary School (0.4 miles)
Zoom on map | View full information
St John Fisher and St Thomas More Church (4.4 miles)
Zoom on map | View full information
Immaculate Heart of Mary Church (5.9 miles)
Zoom on map | View full information
Sacred Heart Church (5.9 miles)
Zoom on map | View full information
Immaculate Heart of Mary Church (5.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Anne Church (55962-62127)',53.257385,-1.91248,'ParishChurch'),new Array('St Thomas More Catholic Secondary School (37827-35931)',53.261943,-1.91355,'School'),new Array('St Anne`s Catholic Primary School (37816-35920)',53.263208,-1.910565,'School'),new Array('St John Fisher and St Thomas More Church (55966-62132)',53.321209,-1.919526,'ParishChurch'),new Array('Immaculate Heart of Mary Church (56076-62132)',53.276439,-1.77425,'Church'),new Array('Sacred Heart Church (59633-32783)',53.32991,-1.988069,'ParishChurch'),new Array('Immaculate Heart of Mary Church (56076-62299)',53.276439,-1.77425,'Church'),new Array('St Gregory Church (59698-32773)',53.297667,-2.104612,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37824-35928)',53.366252,-2.003132,'School'),new Array('Annunciation Church (56052-62262)',53.366036,-2.004229,'ParishChurch'),new Array('St Gregory`s Primary School (38167-36271)',53.294836,-2.113696,'School'),new Array('St Edward the Confessor Church (59688-32774)',53.247024,-2.12337,'ParishChurch'),new Array('St Edward`s Primary School (38164-36268)',53.247504,-2.128827,'School'),new Array('St Alban Church (59654-32775)',53.259992,-2.13489,'ParishChurch'),new Array('All Hallows School (38215-36319)',53.255364,-2.141486,'School'),new Array('St Alban`s Primary School (38149-36253)',53.266235,-2.159453,'School'),new Array('English Martyrs Church (55949-62110)',53.215164,-1.677175,'ParishChurch'),new Array('All Saints Church (56003-62183)',53.247732,-1.664716,'ParishChurch'),new Array('St Paul`s Primary School (38196-36300)',53.343225,-2.120359,'School'),new Array('St Paul Church (59760-32776)',53.347803,-2.117548,'ParishChurch'),new Array('Our Lady of Sorrows (65184-70873)',53.3505769,-1.6900329,'Other'),new Array('St Mary`s Church (65852-70905)',53.400434,-2.050164,'ParishChurch'),new Array('Holy Spirit Church (59596-32788)',53.39379,-2.069209,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37893-35997)',53.402923,-2.0514,'School'),new Array('St Mary Church (36364-34514)',53.10329,-2.025291,'ParishChurch'),new Array('St Mary`s School (36722-34821)',53.103514,-2.03131,'School'),new Array('Saint Michael The Archangel Church (44702-48384)',53.3309542,-1.6538226,'ParishChurch'),new Array('St Peter`s Primary School (38198-36302)',53.374112,-2.127195,'School'),new Array('St Simon`s Primary School (38204-36308)',53.382709,-2.114172,'School'),new Array('St Vincent de Paul Church (59786-32789)',53.357275,-2.158186,'ParishChurch'),new Array('St Peter Church (59765-32790)',53.381822,-2.128286,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37819-35923)',53.440108,-1.948055,'School'),new Array('St Philip`s School (38201-36305)',53.394372,-2.117932,'School'),new Array('St Philip Church (59771-32782)',53.394372,-2.117932,'ParishChurch'),new Array('St Philip Howard Catholic Secondary School (37828-35932)',53.441919,-1.957176,'School'),new Array('St Mary Crowned Church (55995-62173)',53.44146,-1.955355,'ParishChurch'),new Array('St Margaret`s Catholic Primary School (38911-37017)',53.443912,-1.986818,'School'),new Array('Our Lady and St Christopher Church (59604-32787)',53.413407,-2.101917,'ParishChurch'),new Array('All Saints Catholic Primary School (37818-35922)',53.450165,-1.944008,'School'),new Array('Harrytown School (38223-36327)',53.41336,-2.104475,'School'),new Array('All Saints Church (55994-62171)',53.450165,-1.944008,'ParishChurch'),new Array('St Ann Church (63301-32793)',53.365831,-2.183915,'ParishChurch'),new Array('St Christopher`s Primary School (38161-36265)',53.415186,-2.10311,'School'),new Array('St Benedict`s Primary School (38158-36262)',53.346494,-2.207144,'School'),new Array('St Benedict Church (59673-32795)',53.34587759999999,-2.210175400000026,'ParishChurch'),new Array('Aquinas College School (38217-36321)',53.396208,-2.14821,'School'),new Array('St Pius X Church (59773-32796)',53.30319979999999,-2.233989699999938,'ParishChurch'),new Array('St James School (38229-36333)',53.359857,-2.198269,'School'),new Array('Alderley Edge School for Girls (38214-36318)',53.305097,-2.238247,'School'),new Array('Sacred Heart and St Teresa Church (59637-32794)',53.32637,-2.230844,'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';
}
//