strList="
Christ the King Church (0 miles)
Zoom on map | View full information
Christ The King School (0.1 miles)
Zoom on map | View full information
St Luke the Physician Church (1.9 miles)
Zoom on map | View full information
St Mary of the Angels Church (2.1 miles)
Zoom on map | View full information
St John the Evangelist Church (2.6 miles)
Zoom on map | View full information
St John Plessington School (2.7 miles)
Zoom on map | View full information
St John`s Infant School (2.8 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Christ the King Church (63219-32743)',53.325562,-2.972057,'ParishChurch'),new Array('Christ The King School (38126-36230)',53.324813,-2.974697,'School'),new Array('St Luke the Physician Church (59727-32744)',53.346233,-3.004072,'ParishChurch'),new Array('St Mary of the Angels Church (63384-32748)',53.297017,-2.957065,'ParishChurch'),new Array('St John the Evangelist Church (59710-32742)',53.35852,-3.00092,'ParishChurch'),new Array('St John Plessington School (38230-36334)',53.35926,-3.007053,'School'),new Array('St John`s Infant School (38171-36275)',53.360611,-3.007731,'School'),new Array('St Mary Of The Angels School (38184-36288)',53.285649,-2.936305,'School'),new Array('St Anne`s Primary School (38152-36256)',53.366857,-3.008961,'School'),new Array('St Anne Church (63303-32724)',53.370866,-3.011085,'ParishChurch'),new Array('St Austin`s Catholic Primary School (37437-35541)',53.362632,-2.91177,'School'),new Array('St Charles` Catholic Primary School (37439-35543)',53.375822,-2.947166,'School'),new Array('Holy Trinity Catholic Primary School (37426-35530)',53.349698,-2.891409,'School'),new Array('St Charles` Parish Office (72504-57639)',53.3769036,-2.9455213,'Other'),new Array('St Charles (52701-57639)',53.376833,-2.945535,'ParishChurch'),new Array('St Saviour Church (63418-32749)',53.276605,-2.924995,'ParishChurch'),new Array('St Saviour Church (59778-32749)',53.276605,-2.924995,'ParishChurch'),new Array('The Academy of St Nicholas (72582-77221)',53.3554432,-2.8922495,'Other'),new Array('St Finbar`s Catholic Primary School (37434-35538)',53.38133,-2.960909,'School'),new Array('St Bernard Church (59677-32746)',53.285311,-2.898599,'ParishChurch'),new Array('St Bernard Church (63317-32746)',53.285311,-2.898599,'ParishChurch'),new Array('St Saviour`s Catholic Infant School (39055-37161)',53.272991,-2.926116,'School'),new Array('Archdiocese of Liverpool (4797-877)',53.37900560000001,-2.9273479,'Other'),new Array('St Saviour`s Primary School (38203-36307)',53.270603,-2.92692,'School'),new Array('Parish Office (52706-57642)',53.386799,-2.963799,'Other'),new Array('St Winefride`s Primary School (38213-36317)',53.286508,-3.053208,'School'),new Array('Our Lady Of Mount Carmel Catholic Primary School (37433-35537)',53.387533,-2.965334,'School'),new Array('Our Lady Star of the Sea Church (59628-32747)',53.280254,-2.901511,'ParishChurch'),new Array('St Patrick (52707-57642)',53.389112,-2.95934,'Church'),new Array('Mill Street Community (72476-77328)',53.3892648,-2.9733423,'Other'),new Array('St Joseph Church (59712-32725)',53.378196,-3.030666,'ParishChurch'),new Array('St Joseph`s Primary School (38177-36281)',53.374837,-3.040656,'School'),new Array('St Vincent de Paul (52711-57644)',53.389112,-2.95934,'ParishChurch'),new Array('Our Lady Star Of The Sea School (38137-36241)',53.270726,-2.915691,'School'),new Array('St Anthony Of Padua Catholic Primary School (37448-35552)',53.381971,-2.918392,'School'),new Array('Our Lady`s Catholic Infant School (39054-37160)',53.270969,-2.910973,'School'),new Array('Ellesmere Port Catholic High School (38222-36326)',53.270726,-2.915691,'School'),new Array('St Margaret Clitherow Centre (72480-877)',53.3890639,-2.9354608,'Other'),new Array('St Winefride Church (59799-32745)',53.284208,-3.058071,'ParishChurch'),new Array('St Patrick`s Catholic Primary School (37681-35785)',53.392251,-2.971035,'School'),new Array('St Margaret Clitherow Centre (72480-77517)',53.3890639,-2.9354608,'Other'),new Array('St Clare (52703-57640)',53.390964,-2.938616,'ParishChurch'),new Array('FCJ Community (72439-77291)',53.3903908,-2.9370387,'Other'),new Array('St Anthony of Padua (52695-57636)',53.382246,-2.908864,'ParishChurch'),new Array('Carmelite Monastery (72432-77172)',53.3754864,-2.8913307,'Other'),new Array('Carmelite Monastery (72432-77280)',53.3754864,-2.8913307,'Other'),new Array('St Werburgh`s Primary School (38210-36314)',53.38629,-3.029102,'School'),new Array('St Werburgh and St Laurence Church (59793-32722)',53.389545,-3.022715,'ParishChurch'),new Array('Our Lady and St John Church (59606-32740)',53.326516,-3.091505,'ParishChurch'),new Array('St Clare`s Catholic Primary School (37441-35545)',53.394533,-2.932784,'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';
}
//