strList="
Our Lady of Mount Carmel Church (0 miles)
Zoom on map | View full information
The Sacred Heart Church (6.9 miles)
Zoom on map | View full information
St Peter`s Catholic Primary School (7.1 miles)
Zoom on map | View full information
Our Lady Immaculate Church (7.3 miles)
Zoom on map | View full information
St Mary`s Catholic Primary School (7.4 miles)
Zoom on map | View full information
St Thomas of Canterbury Church (9 miles)
Zoom on map | View full information
St Thomas Catholic Primary School (9.1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady of Mount Carmel Church (61242-65700)',51.314991,0.88429,'ParishChurch'),new Array('The Sacred Heart Church (61238-65698)',51.340958,0.729325,'ParishChurch'),new Array('St Peter`s Catholic Primary School (38617-36721)',51.334489,0.724002,'School'),new Array('Our Lady Immaculate Church (61020-65587)',51.3609239,1.0374103,'ParishChurch'),new Array('St Mary`s Catholic Primary School (38625-36729)',51.361428,1.038937,'School'),new Array('St Thomas of Canterbury Church (61014-65584)',51.278068,1.083924,'ParishChurch'),new Array('St Thomas Catholic Primary School (38597-36701)',51.280871,1.086464,'School'),new Array('St Edward`s RC Primary School (39067-37173)',51.433083,0.755405,'School'),new Array('St Anselm`s Comprehensive School (38629-36733)',51.262685,1.100011,'School'),new Array('St Henry and St Elizabeth Church (61240-65699)',51.44052,0.767682,'ParishChurch'),new Array('St Edward`s Catholic Primary School (38616-36720)',51.437029,0.755513,'School'),new Array('Our Lady of the Sacred Heart Church (61022-65588)',51.370278,1.114276,'ParishChurch'),new Array('St Teresa`s Catholic Primary School (38595-36699)',51.155348,0.86721,'School'),new Array('St Teresa Church (61268-65713)',51.152632,0.866112,'ParishChurch'),new Array('St Simon Of England RC (va) Primary School (39068-37174)',51.142762,0.866573,'School'),new Array('St Dunstan Church (61018-65586)',51.315977,1.164892,'ParishChurch'),new Array('St Simon Of England Primary School (38594-36698)',51.139803,0.846546,'School'),new Array('St Simon Stock Church (61266-65712)',51.137698,0.857424,'ParishChurch'),new Array('St Augustine of Canterbury Church (61068-65611)',51.341064,0.595341,'ParishChurch'),new Array('St Augustine Of Canterbury Catholic Primary School (38611-36715)',51.341152,0.595834,'School'),new Array('St Thomas of Canterbury Church (61066-65610)',51.365407,0.598327,'ParishChurch'),new Array('St Thomas Of Canterbury Catholic Primary School (38612-36716)',51.370906,0.581856,'School'),new Array('St Peter Church (61246-65702)',51.265454,0.57247,'ParishChurch'),new Array('St Mary`s C of E Church (66490-65585)',51.2715707,1.213373899999965,'Other'),new Array('St Benedict`s Catholic Primary School (38623-36727)',51.337711,0.545702,'School'),new Array('Our Lady of Gillingham Church (61064-65609)',51.387267,0.558442,'ParishChurch'),new Array('St Mary`s Catholic Primary School (38604-36708)',51.388583,0.557078,'School'),new Array('St Finbarr Church (61016-65585)',51.22613,1.202814,'ParishChurch'),new Array('Holy Family Catholic Primary School (38627-36731)',51.238438,0.556449,'School'),new Array('Holy Family Church (61248-65703)',51.238438,0.556449,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38596-36700)',51.226465,1.208338,'School'),new Array('St George And The English Martyrs Church (39394-37449)',51.530727,0.78254,'ParishChurch'),new Array(' Church (61062-65608)',51.34815,0.52547,'ParishChurch'),new Array('St Thomas More Catholic Primary School (38622-36726)',51.34815,0.52547,'School'),new Array('St Francis Church (61244-65701)',51.27722,0.522409,'ParishChurch'),new Array('St George`s Catholic Primary School (38824-36930)',51.53729,0.78568,'School'),new Array('St Gregory Chapel of Ease (39422-37464)',51.536082,0.760701,'ParishChurch'),new Array('St Gregory Chapel of Ease (39422-37449)',51.536082,0.760701,'ParishChurch'),new Array('St Michael`s Catholic Primary School (38598-36702)',51.378112,0.521486,'School'),new Array('St Michael the Archangel Church (61060-65607)',51.379613,0.521138,'ParishChurch'),new Array('St John Fisher Catholic Comprehensive School (38630-36734)',51.377735,0.517269,'School'),new Array('Sacred Heart (36528-34627)',51.539639,0.725509,'School'),new Array('St Francis Catholic Primary School (38628-36732)',51.274503,0.497698,'School'),new Array('St Simon Stock Secondary School (38632-36736)',51.272861,0.496677,'School'),new Array('The Sacred Heart Church (39400-37442)',51.53993,0.725007,'ParishChurch'),new Array('St William Of Perth Catholic Primary School (38614-36718)',51.373994,0.497507,'School'),new Array('St John Fisher Church (61056-65605)',51.373994,0.497507,'ParishChurch'),new Array('St Bernard`s High School (36530-34629)',51.537412,0.698537,'School'),new Array('Our Lady Help Of Christians And St Helen Church (39442-37482)',51.539166,0.700502,'ParishChurch'),new Array('St Helen`s RC Primary School (38823-36929)',51.541958,0.703061,'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';
}
//