strList="
St Bernadette`s Catholic Primary School (0 miles)
Zoom on map | View full information
(0.3 miles)
Zoom on map | View full information
St Mary (0.3 miles)
Zoom on map | View full information
(0.3 miles)
Zoom on map | View full information
(0.3 miles)
Zoom on map | View full information
Cottesmore St Mary`s Catholic Primary School (0.7 miles)
Zoom on map | View full information
Cardinal Newman Catholic School (0.7 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Bernadette`s Catholic Primary School (38757-36863)',50.846704,-0.150421,'School'),new Array(' (71063-75016)',50.8426151,-0.1458757,'Other'),new Array('St Mary (34775-33689)',50.844472,-0.145808,'ParishChurch'),new Array(' (71063-75417)',50.8426151,-0.1458757,'Other'),new Array(' (71063-75423)',50.8426151,-0.1458757,'Other'),new Array('Cottesmore St Mary`s Catholic Primary School (38760-36866)',50.837305,-0.158335,'School'),new Array('Cardinal Newman Catholic School (38763-36869)',50.836982,-0.157836,'School'),new Array('St Thomas More (34779-33691)',50.859253,-0.141584,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38756-36862)',50.842027,-0.126743,'School'),new Array('St Joseph (34773-33687)',50.832458,-0.126757,'ParishChurch'),new Array('St George (34855-33729)',50.846445,-0.182621,'ParishChurch'),new Array('St Joseph (34773-33688)',50.832458,-0.126757,'ParishChurch'),new Array('St George (34855-33765)',50.846445,-0.182621,'ParishChurch'),new Array('St Mary Magdalen (34777-33690)',50.825359,-0.148496,'ParishChurch'),new Array('St Mary Magdalen`s RC Primary School (38755-36861)',50.825073,-0.149217,'School'),new Array('The Sacred Heart (34851-33727)',50.829006,-0.171086,'ParishChurch'),new Array('St Peter (34853-33728)',50.833526,-0.184671,'ParishChurch'),new Array('St Francis of Assisi (34881-33742)',50.852512,-0.105524,'ParishChurch'),new Array('St John the Baptist (34771-33687)',50.819308,-0.125509,'ParishChurch'),new Array('St. John the Baptist School (33285-33021)',50.822669,-0.115861,'School'),new Array('The Meeting House (30467-70911)',50.876786,-0.1262901,'Church'),new Array('The Meeting House (30467-74973)',50.876786,-0.1262901,'Church'),new Array('St. Mary`s School (33301-33037)',50.832265,-0.213633,'School'),new Array('St Theresa of Lisieux (34927-33765)',50.8407784,-0.235891700000025,'ParishChurch'),new Array('St Patrick (36473-34572)',50.827895,-0.06429,'Church'),new Array('St Patrick (36473-33757)',50.827895,-0.06429,'Church'),new Array('St Patrick (34994-33812)',50.827895,-0.06429,'Church'),new Array('Our Lady Of Lourdes Catholic Primary School (38885-36991)',50.806289,-0.058668,'School'),new Array('Our Lady of Lourdes (34911-33757)',50.805421,-0.056235,'ParishChurch'),new Array('Our Lady of Lourdes, Queen of Peace (34995-33813)',50.805421,-0.056235,'Church'),new Array('Our Lady of Lourdes, Queen of Peace (36474-34573)',50.805421,-0.056235,'Church'),new Array('St Peter`s Catholic Primary School (38785-36891)',50.837146,-0.263567,'School'),new Array('St Edward the Confessor (34857-33692)',50.92101,-0.133106,'ParishChurch'),new Array('The Priory of Our Lady of Good Counsel Community House (71067-75032)',50.860586,-0.0336726,'Other'),new Array('St Peter (36479-34578)',50.83341,-0.276601,'Church'),new Array('St Peter (65976-70939)',50.83341,-0.276601,'Church'),new Array('St Peter (65970-33675)',50.833704,-0.277669,'Church'),new Array('The Towers (71079-75067)',50.8778057,-0.2860822,'Other'),new Array('The Blessed Sacrament (35002-33820)',50.878329,-0.29358,'Church'),new Array('The Towers Convent (65972-33675)',50.878329,-0.29358,'Other'),new Array('St. Pancras School (33300-33036)',50.873321,-0.001304,'School'),new Array('St Pancras (34861-33732)',50.872771,0.002411,'ParishChurch'),new Array('St Wilfrid (34781-33692)',50.953554,-0.135191,'ParishChurch'),new Array('The Immaculate Conception of Our Lady (34891-33747)',50.7928179,-0.0001786,'ParishChurch'),new Array('St Wilfrid`s Catholic Primary School (38788-36894)',50.955183,-0.136962,'School'),new Array('Parish Office (71224-33784)',50.8300693,-0.3228578,'Other'),new Array('The Holy Family (34965-33784)',50.830126,-0.322162,'ParishChurch'),new Array('The Holy Family (36468-34567)',50.830126,-0.322162,'Church'),new Array('The Holy Family (34989-33807)',50.830126,-0.322162,'Church'),new Array('Convent of the Blessed Sacrament (71080-75415)',50.9281187,-0.2726942,'Other'));
// 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';
}
//