strList="
St Philip Neri Catholic Primary School (0 miles)
Zoom on map | View full information
St Philip Neri Church (0.2 miles)
Zoom on map | View full information
All Saints Catholic Secondary School (0.4 miles)
Zoom on map | View full information
Polish Church Of Our Lady Church (0.6 miles)
Zoom on map | View full information
St Patrick`s Catholic Primary School (2 miles)
Zoom on map | View full information
St Patrick Church (2.1 miles)
Zoom on map | View full information
St Joseph the Worker Church (2.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Philip Neri Catholic Primary School (37883-35987)',53.149393,-1.204294,'School'),new Array('St Philip Neri Church (56039-62240)',53.1481843,-1.201012100000071,'ParishChurch'),new Array('All Saints Catholic Secondary School (37890-35994)',53.15205,-1.213157,'School'),new Array('Polish Church Of Our Lady Church (44718-48453)',53.149947,-1.190513,'ParishChurch'),new Array('St Patrick`s Catholic Primary School (37884-35988)',53.138672,-1.160319,'School'),new Array('St Patrick Church (56038-62239)',53.1797388,-1.1971727,'ParishChurch'),new Array('St Joseph the Worker Church (56073-62294)',53.125005,-1.260112,'ParishChurch'),new Array('Our Lady Help of Christians Church (56011-62194)',53.099349,-1.241405,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37825-35929)',53.208682,-1.210504,'School'),new Array('St Joseph Church (56065-62282)',53.208682,-1.210504,'ParishChurch'),new Array('St Teresa Church (56043-62249)',53.20299809999999,-1.1549589,'ParishChurch'),new Array('St George Church (56059-62273)',53.114314,-1.119573,'ParishChurch'),new Array('St Bernadette Church (55956-62119)',53.228202,-1.293043,'ParishChurch'),new Array('Holy Cross Catholic Primary School (37882-35986)',53.044435,-1.197666,'School'),new Array('Holy Cross Church (56084-62309)',53.033782,-1.20693,'ParishChurch'),new Array('Christ The King Catholic Primary School (37814-35918)',53.100954,-1.383982,'School'),new Array('Christ the King Church (55946-62103)',53.095709,-1.379562,'ParishChurch'),new Array('St Patrick and St Bridget Church (55967-62133)',53.163997,-1.409195,'Other'),new Array('St Patrick and St Bridget Church (55967-62103)',53.163997,-1.409195,'Other'),new Array('St Joseph Church (56053-62263)',53.203509,-1.006823,'ParishChurch'),new Array('St Anthony Church (55964-62130)',53.040552,-1.082163,'ParishChurch'),new Array('Saint Mary Church (44694-48336)',53.2772999,-1.1375034,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (37886-35990)',53.205661,-0.996517,'School'),new Array('St Joseph`s Catholic Primary School (37385-35489)',53.2578,-1.359411,'School'),new Array('St. Vincent Church (47258-54357)',53.018598,-1.307086,'ParishChurch'),new Array('St. Herbert Church (46997-54218)',53.018598,-1.307086,'ParishChurch'),new Array('St Margaret Clitherow Catholic Primary School (37870-35974)',53.005544,-1.146898,'School'),new Array('The Priory Catholic Primary School (37881-35985)',53.012928,-1.294284,'School'),new Array('Our Lady of Good Counsel Church (55990-62165)',53.012192,-1.291494,'ParishChurch'),new Array('The Holy Family Church (44698-48357)',53.223704,-1.426288,'ParishChurch'),new Array('St Joseph`s Primary (65191-70877)',53.274064,-1.348296,'School'),new Array('St Joseph Church (56060-62274)',53.055393,-1.404355,'ParishChurch'),new Array('Our Lady Of Perpetual Succour Catholic Primary School (37872-35976)',52.996676,-1.184784,'School'),new Array('Infant of Prague Church (56085-62310)',52.999864,-1.153298,'ParishChurch'),new Array('Our Lady of Perpetual Succour Church (56088-62313)',52.994995,-1.184786,'ParishChurch'),new Array('Holy Family Catholic Primary School (37397-35501)',53.29537,-1.115495,'School'),new Array('Barlborough Hall School (37301-35405)',53.299129,-1.28467,'School'),new Array('Christ The King Catholic Secondary School (37888-35992)',53.00063,-1.112901,'School'),new Array('Our Lady of Victories Church (56069-62287)',53.079343,-0.961971,'ParishChurch'),new Array('Good Shepherd Church (56097-62328)',52.992619,-1.134757,'ParishChurch'),new Array('The Annunciation Church (44696-48345)',53.239963,-1.431375,'ParishChurch'),new Array('The Good Shepherd Catholic Primary School (37879-35983)',52.992062,-1.12133,'School'),new Array('St Joseph`s Convent School (37300-35404)',53.241292,-1.433006,'School'),new Array('St Mary`s Catholic Primary School (37393-35497)',53.240328,-1.434502,'School'),new Array('St Joseph`s Convent School (65185-48345)',53.241292,-1.433006,'Other'),new Array('Mount St Mary`s College (37317-35421)',53.302093,-1.319539,'School'),new Array('Immaculate Conception Primary School (37394-35498)',53.302057,-1.317994,'School'),new Array('Mount St Mary`s College (65189-70876)',53.302093,-1.319539,'School'),new Array('Immaculate Conception Church (44704-48387)',53.302057,-1.317994,'ParishChurch'),new Array('St Patrick (chapel Of Ease To Staveley) Church (44703-48386)',53.236196,-1.449327,'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';
}
//