strList="
St. Patrick Church (0 miles)
Zoom on map | View full information
St Teresa`s RC Primary School School (0.6 miles)
Zoom on map | View full information
St. Teresa Church (0.9 miles)
Zoom on map | View full information
English Martyrs` School And Sixth Form College School (1.3 miles)
Zoom on map | View full information
St. Cuthbert Church (1.5 miles)
Zoom on map | View full information
St Cuthbert`s RC Primary School School (1.6 miles)
Zoom on map | View full information
St. Joseph Church (2.1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St. Patrick Church (47074-54261)',54.657067,-1.244863,'ParishChurch'),new Array('St Teresa`s RC Primary School School (37085-35186)',54.659574,-1.23054,'School'),new Array('St. Teresa Church (47076-54262)',54.658809,-1.223253,'ParishChurch'),new Array('English Martyrs` School And Sixth Form College School (37079-35180)',54.675537,-1.236457,'School'),new Array('St. Cuthbert Church (47068-54258)',54.67203,-1.216488,'ParishChurch'),new Array('St Cuthbert`s RC Primary School School (37082-35183)',54.673035,-1.217632,'School'),new Array('St. Joseph Church (47066-54257)',54.684383,-1.219973,'ParishChurch'),new Array('St Joseph`s Primary School School (37084-35185)',54.682857,-1.206461,'School'),new Array('Sacred Heart RC Primary School School (37080-35181)',54.690766,-1.231579,'School'),new Array('St Joseph`s RC Primary School School (37092-35193)',54.616259,-1.274437,'School'),new Array('St. Joseph`s Church (46951-54194)',54.6162704,-1.2744518,'ParishChurch'),new Array('St. Thomas More Church (47078-54263)',54.699738,-1.225063,'ParishChurch'),new Array('St. Joseph`s Church (46951-54195)',54.6162704,-1.2744518,'ParishChurch'),new Array('St Michael`s RC Comprehensive School School (37094-35195)',54.613637,-1.270411,'School'),new Array('Our Lady Of The Most Holy Rosary RC Primary School School (37087-35188)',54.612579,-1.29813,'School'),new Array('St John Vianney Primary School School (37083-35184)',54.709965,-1.23075,'School'),new Array('St Bega`s RC Primary School School (37081-35182)',54.702297,-1.194428,'School'),new Array('The Immaculate Conception(st Mary) Church (47072-54260)',54.699789,-1.184904,'ParishChurch'),new Array('Our Lady Of The Most Holy Rosary Church (46949-54194)',54.611145,-1.29879,'ParishChurch'),new Array('St. John Vianney Church (47070-54259)',54.710567,-1.229327,'ParishChurch'),new Array('St Paul`s RC Primary School School (37096-35197)',54.617151,-1.313491,'School'),new Array('St. John The Evangelist Church (46947-54193)',54.598858,-1.284668,'ParishChurch'),new Array('St. John The Evangelist Church (46947-54194)',54.598858,-1.284668,'ParishChurch'),new Array('St John The Evangelist RC Primary School School (37091-35192)',54.599196,-1.284136,'School'),new Array('St. Joseph Church (47240-54348)',54.5908206,-1.3147679,'ParishChurch'),new Array('St Joseph`s RC Primary School School (37093-35194)',54.589703,-1.316351,'School'),new Array('Ss. Peter And Paul Church (47096-54273)',54.721449,-1.333776,'ParishChurch'),new Array('St Alphonsus`s RC Primary School (37580-35684)',54.569234,-1.209211,'School'),new Array('English Martyrs And Ss. Peter And Paul Church (47242-54349)',54.587513,-1.341193,'ParishChurch'),new Array('St Alphonsus Church (64850-70418)',54.568793,-1.211833,'ParishChurch'),new Array('St. Joseph Church (46961-54200)',54.745204,-1.285277,'ParishChurch'),new Array('Sacred Heart RC Primary School (37579-35683)',54.565249,-1.246653,'School'),new Array('St Gregory`s Catholic Primary School School (37090-35191)',54.582033,-1.33664,'School'),new Array('St Peter`s Catholic College (37647-35751)',54.574596,-1.169721,'School'),new Array('St Joseph`s RC Primary School School (37117-35218)',54.746373,-1.288487,'School'),new Array('St Joseph`s RC Primary School (37494-35598)',54.56392,-1.225444,'School'),new Array('Sacred Heart Church (64840-70374)',54.563679,-1.241269500000044,'ParishChurch'),new Array('St. Mary Church (47234-54345)',54.570686,-1.311472,'ParishChurch'),new Array('St Joseph`s Church Church (64842-70382)',54.5629862,-1.225538899999947,'ParishChurch'),new Array('St Bede`s Catholic Primary School School (37088-35189)',54.571918,-1.325883,'School'),new Array('Corpus Christi RC Primary School (37578-35682)',54.565022,-1.194507,'School'),new Array('Corpus Christi Church (64854-70422)',54.565599,-1.186809,'Church'),new Array('St Andrew`s RC Va Primary School (37737-35841)',54.569989,-1.170155,'School'),new Array('St. Bede`s Church (47236-54346)',54.570643,-1.326214,'ParishChurch'),new Array('Holy Name of Mary Church (64846-70394)',54.557052,-1.239367,'ParishChurch'),new Array('St Edward`s RC Primary School (37492-35596)',54.557117,-1.236706,'School'),new Array('St Peter`s RC Primary School (37576-35680)',54.571125,-1.152606,'School'),new Array('Bishop`s House (4802-882)',54.554149,-1.252285,'Other'),new Array('St Mary`s Primary School (37575-35679)',54.572582,-1.146343,'School'),new Array('St Mary`s RC Primary School School (37130-35231)',54.727368,-1.378926,'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';
}
//