strList="
Holy Cross Priory (0 miles)
Zoom on map | View full information
Holy Cross Chapel (0 miles)
Zoom on map | View full information
Holy Cross Priory (0 miles)
Zoom on map | View full information
Monastery of the Visitation (2.2 miles)
Zoom on map | View full information
St Catherine (2.5 miles)
Zoom on map | View full information
St Thomas of Canterbury (4.2 miles)
Zoom on map | View full information
St Leonard`s Mayfield School (4.4 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Holy Cross Priory (71062-75420)',50.9697876,0.2010215,'Other'),new Array('Holy Cross Chapel (71050-33693)',50.9697876,0.2010215,'Other'),new Array('Holy Cross Priory (71062-75015)',50.9697876,0.2010215,'Other'),new Array('Monastery of the Visitation (71069-75031)',50.93786040000001,0.2058415,'Other'),new Array('St Catherine (34839-33721)',50.973651,0.258723,'ParishChurch'),new Array('St Thomas of Canterbury (34869-33736)',51.020022,0.254573,'ParishChurch'),new Array('St Leonard`s Mayfield School (38747-36853)',51.021602,0.260782,'School'),new Array('Convent of the Holy Child (71089-75076)',51.02067419999999,0.2612821,'Other'),new Array('Our Lady Immaculate and St Philip Neri (34943-33773)',50.964455,0.096487,'ParishChurch'),new Array('St Philip`s Catholic Primary School (38759-36865)',50.964455,0.096487,'School'),new Array('St Peter, Prince of Apostles (34909-33756)',51.042877,0.21782,'ParishChurch'),new Array('St John the Evangelist (34841-33722)',51.0240047,0.1168439,'ParishChurch'),new Array('St John the Evangelist (34841-33773)',51.0240047,0.1168439,'ParishChurch'),new Array('St Mary, Mother of Christ (65947-70922)',51.054814,0.166891,'Church'),new Array('St. Mary`s Catholic Primary School (38758-36864)',51.054814,0.166891,'School'),new Array('St Wilfrid (34827-33715)',50.859999,0.254433,'ParishChurch'),new Array('Christ the King (34783-33693)',50.997336,0.381631,'ParishChurch'),new Array('The Sacred Heart (34945-33774)',51.065008,0.324356,'ParishChurch'),new Array('Sacred Heart School (38735-36842)',51.065008,0.324356,'School'),new Array('St George (34897-33750)',50.818014,0.243764,'ParishChurch'),new Array('St George (65957-33715)',50.818014,0.243764,'Church'),new Array('Our Lady of the Forest (34815-33709)',51.095085,0.045206,'ParishChurch'),new Array('St Pancras (34861-33732)',50.872771,0.002411,'ParishChurch'),new Array('St. Pancras School (33300-33036)',50.873321,-0.001304,'School'),new Array('St Augustine Church (61078-65616)',51.131713,0.265298,'ParishChurch'),new Array('St Joachim (65977-33700)',50.8012634,0.276495599999976,'Church'),new Array('Beechwood Sacred Heart Rc School (39070-37176)',51.135934,0.286862,'School'),new Array('St Gregory (34799-33701)',50.7959123,0.2723103,'ParishChurch'),new Array('St Gregory`s Catholic Comprehensive School (38633-36737)',51.148684,0.255534,'School'),new Array('Holy Rood (34895-33749)',50.81235,0.348315,'ParishChurch'),new Array('St Augustine`s Catholic Primary School (38621-36725)',51.148865,0.264766,'School'),new Array('The Priory of Our Lady of Good Counsel Community House (71067-75032)',50.860586,-0.0336726,'Other'),new Array('Our Lady Immaculate and St Michael (34759-33681)',50.917869,0.484624,'ParishChurch'),new Array('St George`s Convent Chapel (71049-75422)',50.9555845,-0.0999929,'Church'),new Array('St Gregory (33659-33698)',50.783083,0.253966,'ParishChurch'),new Array('St George`s Convent Chapel (71049-33692)',50.9555845,-0.0999929,'Church'),new Array('St Agnes (34795-33699)',50.7830782,0.2539796,'ParishChurch'),new Array('Christ the King (34797-33700)',50.7914215,0.314141899999981,'ParishChurch'),new Array('St Paul (34835-33719)',50.99773,-0.100086,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38787-36893)',50.99773,-0.100086,'School'),new Array('St Dunstan (34953-33778)',51.077927,-0.055015,'ParishChurch'),new Array('St Dunstan Church (61080-65617)',51.160904,0.256559,'ParishChurch'),new Array('St Dunstan`s (66497-33782)',51.0778715,-0.0566917,'Other'),new Array('St. Thomas a Becket Infants School (33292-33028)',50.779203,0.278689,'School'),new Array('St Martha (34865-33682)',50.835554,0.427838,'ParishChurch'),new Array('St Martha (34865-33764)',50.835554,0.427838,'ParishChurch'),new Array('St Martha (34865-33734)',50.835554,0.427838,'ParishChurch'),new Array('Our Lady of the Rosary (34925-33764)',50.858456,0.461598,'ParishChurch'),new Array('St Agnes (33655-33698)',50.777633,0.295905,'ParishChurch'),new Array('St Thomas More (34921-33747)',50.774424,0.10768,'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';
}
//