strList="
English Martyrs Catholic Primary School (0 miles)
Zoom on map | View full information
St Joseph Church (0.5 miles)
Zoom on map | View full information
St Thomas of Canterbury Church (3.5 miles)
Zoom on map | View full information
St Hugh of Lincoln Church (4.8 miles)
Zoom on map | View full information
St Francis Convent Chapel Church (9.1 miles)
Zoom on map | View full information
St Francis Convent (9.1 miles)
Zoom on map | View full information
St John the Baptist Church (9.3 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('English Martyrs Catholic Primary School (37851-35955)',52.671796,-0.71963,'School'),new Array('St Joseph Church (56056-62267)',52.672264,-0.731345,'ParishChurch'),new Array('St Thomas of Canterbury Church (55991-62167)',52.6961526,-0.6452592,'ParishChurch'),new Array('St Hugh of Lincoln Church (55973-62141)',52.72611,-0.650205,'ParishChurch'),new Array('St Francis Convent Chapel Church (56047-62255)',52.753421,-0.889412,'ParishChurch'),new Array('St Francis Convent (65797-62255)',52.753421,-0.889412,'Other'),new Array('St John the Baptist Church (56048-62256)',52.76453,-0.881497,'ParishChurch'),new Array('St Francis`s Catholic Primary School (37844-35948)',52.759699,-0.889741,'School'),new Array('Our Lady of Mount Carmel Church (55971-62138)',52.754483,-0.537944,'ParishChurch'),new Array('Laxton Hall Chapel (49565-56029)',52.563525,-0.574752,'ParishChurch'),new Array('St Mary and St Augustine Church (56072-62291)',52.653656,-0.478021,'ParishChurch'),new Array('St Augustine`s Catholic Primary School (37858-35962)',52.66244,-0.476636,'School'),new Array('St Peters Church (56049-62256)',52.772772,-0.896643,'ParishChurch'),new Array('The Sacred Heart Church (56061-62276)',52.6347536,-0.9616959,'ParishChurch'),new Array('Our Lady of Walsingham Church (49499-55990)',52.502614,-0.705502,'ParishChurch'),new Array('St Joseph`s Polish Church (71361-75832)',52.4966984,-0.687284,'Church'),new Array('Our Lady Of Walsingham Primary School (37797-35901)',52.495413,-0.697288,'School'),new Array('St Brendan and St Patrick`s Church (49501-55991)',52.490015,-0.723369,'ParishChurch'),new Array('St Brendans Primary School (37798-35902)',52.490015,-0.723369,'School'),new Array('St Patricks Primary School (37799-35903)',52.478644,-0.710313,'School'),new Array('St John Ogilvie Church (49503-55993)',52.469447,-0.733607,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37832-35936)',52.645443,-1.061205,'School'),new Array('The Rosary Church (65856-62208)',52.645536,-1.060464,'Other'),new Array('St Paul`s Catholic Secondary School (37836-35940)',52.629033,-1.068707,'School'),new Array('Divine Infant of Prague Church (56075-62297)',52.6960466,-1.079386,'ParishChurch'),new Array('Bishop Ellis Catholic Primary School (37846-35950)',52.684219,-1.087934,'School'),new Array('Ratcliffe College School (37894-35998)',52.729733,-1.076056,'School'),new Array('St Joseph Church (56020-62208)',52.64183,-1.089008,'ParishChurch'),new Array('St Paul Polish Church (65854-70906)',52.623721,-1.088571,'Church'),new Array('St Gilbert Church (55959-62124)',52.771431,-0.379564,'ParishChurch'),new Array('Immaculate Conception Church (56013-62200)',52.600704,-1.078935,'ParishChurch'),new Array('Our Lady of Victories Church (56041-62244)',52.476773,-0.925233,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37842-35946)',52.477364,-0.924983,'School'),new Array('Our Lady of Good Counsel Church (56016-62203)',52.662964,-1.105232,'ParishChurch'),new Array('Sacred Heart and St Margaret Mary Church (56017-62205)',52.638656,-1.107782,'ParishChurch'),new Array('Sacred Heart Catholic Primary School (37831-35935)',52.638965,-1.109401,'School'),new Array('Holy Trinity Church (49517-56026)',52.441323,-0.819552,'ParishChurch'),new Array('St Patrick`s Catholic Primary School (37833-35937)',52.65577,-1.113332,'School'),new Array('St Theresa Church (55954-62117)',52.674902,-1.118329,'ParishChurch'),new Array('St Gregory Church (56066-62283)',52.730639,-1.10518,'ParishChurch'),new Array('Most Holy Name of Jesus Church (49631-56072)',52.480797,-0.475526,'ParishChurch'),new Array('St John Fisher Catholic Primary School (37848-35952)',52.591267,-1.096817,'School'),new Array('St Thomas More Catholic Primary School (37834-35938)',52.611449,-1.110934,'School'),new Array('St Thomas More Church (56024-62217)',52.611848,-1.111414,'ParishChurch'),new Array('Corpus Christi Convent (65855-62217)',52.614105,-1.112638,'Other'),new Array('St Mary`s Catholic Primary School (37853-35957)',52.91513,-0.630103,'School'),new Array('St Mary the Immaculate Church (55996-62174)',52.917426,-0.646852,'ParishChurch'),new Array('Holy Cross Church (56012-62196)',52.630171,-1.129762,'ParishChurch'),new Array('St Clements Hall (56014-62201)',52.630171,-1.129762,'Other'),new Array('St Bernadette Church (49637-56026)',52.422854,-0.797001,'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';
}
//