strList="
St Patrick`s School (0 miles)
Zoom on map | View full information
St Anne Church (0.4 miles)
Zoom on map | View full information
St Anne Church (0.7 miles)
Zoom on map | View full information
St Anne`s School (0.8 miles)
Zoom on map | View full information
Archbishop Grimshaw School (1.1 miles)
Zoom on map | View full information
Our Lady`s School (1.5 miles)
Zoom on map | View full information
St Anthony Church (1.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Patrick`s School (36685-34784)',52.471163,-1.735268,'School'),new Array('St Anne Church (36245-34455)',52.470683,-1.726116,'ParishChurch'),new Array('St Anne Church (76303-34307)',52.4795781,-1.7456217,'ParishChurch'),new Array('St Anne`s School (36684-34783)',52.480449,-1.747509,'School'),new Array('Archbishop Grimshaw School (36688-34787)',52.483477,-1.75132,'School'),new Array('Our Lady`s School (36610-34709)',52.480976,-1.768061,'School'),new Array('St Anthony Church (35976-34319)',52.490786,-1.751338,'ParishChurch'),new Array('Our Lady Help of Christians Church (35982-34322)',52.480976,-1.768061,'ParishChurch'),new Array('St Anthony`s School (36683-34782)',52.490164,-1.750296,'School'),new Array('St Edward`s School (36798-34897)',52.486881,-1.703086,'School'),new Array('St Edward`s Catholic Primary School (38815-36921)',52.488151,-1.704094,'School'),new Array('Sacred Heart and St Teresa Church (35930-34296)',52.490912,-1.704311,'ParishChurch'),new Array('St John the Baptist School (36686-34785)',52.500252,-1.742711,'School'),new Array('St John the Baptist Church (65112-34319)',52.500252,-1.742711,'Church'),new Array('Mother of God and Guardian Angels Church (36203-34434)',52.496447,-1.763266,'ParishChurch'),new Array('Guardian Angels School (36584-34683)',52.497636,-1.764365,'School'),new Array('St Thomas More Church (36000-34331)',52.455564,-1.783499,'ParishChurch'),new Array('St Thomas More School (36605-34704)',52.455564,-1.783499,'School'),new Array('St Andrew`s School (36679-34778)',52.443239,-1.788797,'School'),new Array('Corpus Christi Church (36006-34334)',52.4807287,-1.8132167,'ParishChurch'),new Array('Corpus Christi School (36588-34687)',52.480641,-1.812545,'School'),new Array('Holy Ghost and Mary Immaculate Church (36416-34540)',52.423506,-1.713474,'ParishChurch'),new Array('St Wilfrid`s School (36822-34921)',52.504112,-1.800542,'School'),new Array('St Wilfrid Church (35962-34312)',52.50478,-1.802159,'ParishChurch'),new Array('St Cuthbert`s School (36629-34728)',52.487006,-1.818011,'School'),new Array('St Bernadette`s School (36619-34718)',52.469434,-1.826356,'School'),new Array('Sacred Heart and Holy Souls Church (36432-34548)',52.445733,-1.818549,'ParishChurch'),new Array('Holy Souls School (36593-34692)',52.447588,-1.819924,'School'),new Array('Archbishop Ilsley School (36640-34739)',52.444866,-1.821833,'School'),new Array('St Gerard Church (35964-34313)',52.523363,-1.786689,'ParishChurch'),new Array('St Gerard`s School (36618-34717)',52.522473,-1.787017,'School'),new Array('Our Lady of Compassion School (36682-34781)',52.431142,-1.81224,'School'),new Array('Olton Friary (71360-34540)',52.4262418,-1.8095291,'Other'),new Array('St Augustine Church (36420-34542)',52.41379569999999,-1.7802562,'ParishChurch'),new Array('Holy Family School (36585-34684)',52.465676,-1.845815,'School'),new Array('Holy Family Church (36002-34332)',52.465676,-1.845815,'ParishChurch'),new Array('SS Peter and Paul Church (36277-34471)',52.517643,-1.823588,'ParishChurch'),new Array('St Mary and St John Church (35968-34315)',52.51768449999999,-1.8236986,'ParishChurch'),new Array('Our Lady of the Rosary and St Therese of Lisieux Church (35996-34329)',52.484604,-1.849386,'ParishChurch'),new Array('St Ambrose Barlow Church (35972-34317)',52.430692,-1.830171,'ParishChurch'),new Array('St Peter and St Paul School (36614-34713)',52.517643,-1.823588,'School'),new Array('Rosary School (36592-34691)',52.484155,-1.849182,'School'),new Array('St Peter`s School (36687-34786)',52.405436,-1.78886,'School'),new Array('St Augustine`s School (36680-34779)',52.405436,-1.78886,'School'),new Array('Holy Cross and St Francis Church (36150-34407)',52.54560129999999,-1.7525421,'ParishChurch'),new Array('St Ambrose Barlow School (36624-34723)',52.424049,-1.836475,'School'),new Array('Holy Trinity School (36639-34738)',52.467299,-1.864533,'School'),new Array('English Martyrs Church (36004-34333)',52.451491,-1.861418,'ParishChurch'),new Array('English Martyrs School (36589-34688)',52.451017,-1.863671,'School'),new Array('Oznam House (65113-34315)',52.516042,-1.848778,'Other'));
// 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';
}
//