strList="
St Thomas of Canterbury Church (0 miles)
Zoom on map | View full information
St Joseph`s Catholic Primary School (9.3 miles)
Zoom on map | View full information
Saint Joseph Church (9.3 miles)
Zoom on map | View full information
St Patrick`s Catholic Primary School (11.7 miles)
Zoom on map | View full information
St Bernadette Church (12.6 miles)
Zoom on map | View full information
St Bede`s Catholic Secondary School (12.7 miles)
Zoom on map | View full information
St Bernadette`s Catholic Primary School (12.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Thomas of Canterbury Church (55992-62168)',53.400584,-0.771756,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37395-35499)',53.321405,-0.95354,'School'),new Array('Saint Joseph Church (44692-48326)',53.321405,-0.95354,'ParishChurch'),new Array('St Patrick`s Catholic Primary School (37396-35500)',53.421105,-1.054187,'School'),new Array('St Bernadette Church (56063-62279)',53.567912,-0.653706,'ParishChurch'),new Array('St Bede`s Catholic Secondary School (37866-35970)',53.5681,-0.644896,'School'),new Array('St Bernadette`s Catholic Primary School (37864-35968)',53.569278,-0.637021,'School'),new Array('St Joseph`s Catholic School (37738-35842)',53.47687,-1.070034,'School'),new Array('Christ The King Church (44723-48468)',53.47687,-1.070034,'ParishChurch'),new Array('St Augustine Webster Catholic Primary School (37865-35969)',53.59496,-0.674665,'School'),new Array('The Mcauley Catholic High School (37598-35702)',53.508207,-1.059924,'School'),new Array('Holy Souls Church (56062-62277)',53.59396,-0.654283,'ParishChurch'),new Array('St Patrick Church (44690-48321)',53.389911,-1.114755,'ParishChurch'),new Array('Saint Helen Church (44691-48324)',53.389911,-1.114755,'ParishChurch'),new Array('St Paul`s Church (44714-48424)',53.506851,-1.076224,'ParishChurch'),new Array('St Hugh`s Catholic Primary School (37854-35958)',53.213254,-0.611073,'School'),new Array('St Norbert`s Catholic Primary School (37862-35966)',53.607873,-0.832223,'School'),new Array('St Joseph and St Dympna Church (56035-62234)',53.608282,-0.833602,'ParishChurch'),new Array('Our Lady of Lincoln Church (56027-62221)',53.248045,-0.52657,'ParishChurch'),new Array('Our Lady Of Lincoln Catholic Primary School (37855-35959)',53.248045,-0.52657,'School'),new Array('St Norbert Church (55975-62143)',53.607873,-0.832223,'ParishChurch'),new Array('Saint Joseph The Worker Church (44693-48328)',53.319568,-1.110611,'ParishChurch'),new Array('St Hugh of Lincoln Church (56029-62224)',53.230648,-0.532965,'ParishChurch'),new Array('Our Lady Of Sorrows Catholic Primary School (37378-35482)',53.53971,-1.061822,'School'),new Array('Our Lady Of Sorrows And Saint Francis of Assisi Church (44706-48391)',53.53971,-1.061822,'ParishChurch'),new Array('St Mary Church (55960-62125)',53.553621,-0.491867,'ParishChurch'),new Array('Saint Peter And Saint Paul Catholic High School (37860-35964)',53.211308,-0.563725,'School'),new Array('Ss Peter and Paul Church (56028-62222)',53.210811,-0.564251,'ParishChurch'),new Array('Holy Family Catholic Primary School (37397-35501)',53.29537,-1.115495,'School'),new Array('St Mary`s Catholic Primary School (37861-35965)',53.560378,-0.489483,'School'),new Array('St Peter`s Catholic Primary School (37296-35400)',53.514796,-1.110466,'School'),new Array('Saint Mary Church (44719-48454)',53.509693,-1.114977,'ParishChurch'),new Array('St Peter`s Primary School (65173-70861)',53.514796,-1.110466,'School'),new Array('Our Lady and St Joseph Church (56057-62270)',53.419794,-0.383142,'ParishChurch'),new Array('Our Lady Of Mt Carmel School (37297-35401)',53.53246,-1.099851,'School'),new Array('St Joseph`s Catholic Primary School (37886-35990)',53.205661,-0.996517,'School'),new Array('Our Lady Of Mount Carmel And Saint Mary Magdalen (44712-48406)',53.533179,-1.10094,'ParishChurch'),new Array('Our Lady of Mount Carmel School (65169-48406)',53.531438,-1.102975,'School'),new Array('St Thomas Of Canterbury, Kirk Sandal Parish Church (4980-70872)',53.565648,-1.063725,'ParishChurch'),new Array('St Joseph Church (56053-62263)',53.203509,-1.006823,'ParishChurch'),new Array('St Peter-in-Chains (65172-70861)',53.520908,-1.128784,'ParishChurch'),new Array('Our Lady Of The Assumption Church (44724-48473)',53.594661,-1.024116,'ParishChurch'),new Array('St Francis Xavier Primary (65174-70861)',53.514658,-1.140826,'School'),new Array('Maridon Pastoral Centre Church (44717-48452)',53.525109,-1.130418,'ParishChurch'),new Array('St Francis Xavier Primary School (65168-48398)',53.514658,-1.140826,'School'),new Array('St Francis Xavier Catholic Primary School (37298-35402)',53.514658,-1.140826,'School'),new Array('Maridon Pastoral Centre (65175-70862)',53.525109,-1.130418,'Other'),new Array('Holy Family Catholic Primary School (37376-35480)',53.600169,-1.021647,'School'),new Array('Saint Mary Church (44694-48336)',53.2772999,-1.1375034,'ParishChurch'),new Array('St Mary`s Catholic Primary School (37381-35485)',53.419201,-1.194167,'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';
}
//