strList="
St Joseph`s School (0 miles)
Zoom on map | View full information
Our Lady of Lourdes Church (1 miles)
Zoom on map | View full information
Cardinal Griffin School (2.6 miles)
Zoom on map | View full information
SS Mary and Thomas More Church (2.8 miles)
Zoom on map | View full information
St Mary`s School (3 miles)
Zoom on map | View full information
St Joseph`s School (3.3 miles)
Zoom on map | View full information
St Joseph and St Theresa`s School (3.6 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Joseph`s School (36720-34819)',52.718303,-1.985881,'School'),new Array('Our Lady of Lourdes Church (36294-34479)',52.705723,-1.997545,'ParishChurch'),new Array('Cardinal Griffin School (36746-34845)',52.696701,-2.036121,'School'),new Array('SS Mary and Thomas More Church (36162-34413)',52.6863451,-2.0278072,'ParishChurch'),new Array('St Mary`s School (36715-34814)',52.68436,-2.028907,'School'),new Array('St Joseph`s School (36726-34825)',52.752953,-1.932471,'School'),new Array('St Joseph and St Theresa`s School (36717-34816)',52.675841,-1.93432,'School'),new Array('SS Joseph and Etheldreda Church (36430-34547)',52.758589,-1.931099,'ParishChurch'),new Array('St Thomas More School (36741-34840)',52.667651,-2.014656,'School'),new Array('St Thomas More Church (65114-34413)',52.667651,-2.014656,'Church'),new Array('St Joseph Church (35946-34304)',52.679265,-1.918222,'ParishChurch'),new Array('St Bede`s School (38813-36919)',52.783882,-1.965975,'School'),new Array('St Mary`s Abbey Church (36219-34445)',52.789936,-1.9894,'Church'),new Array('St Bernadette`s School (36697-34796)',52.65038,-1.930308,'School'),new Array('St Bernadette Church (36358-34511)',52.644499,-1.926711,'ParishChurch'),new Array('St John the Baptist Church (36225-34445)',52.802972,-2.003577,'ParishChurch'),new Array('St John`s School (36719-34818)',52.802279,-2.003058,'School'),new Array('St Anne Church (36164-34414)',52.791393,-2.080049,'ParishChurch'),new Array('St Anne`s School (36736-34835)',52.791393,-2.080049,'School'),new Array('St Peter`s School (36691-34790)',52.621561,-2.000326,'School'),new Array('SS Peter and Paul Church (36043-34353)',52.69161,-1.827756,'Church'),new Array('SS Peter and Paul Church (36043-34539)',52.69161,-1.827756,'Church'),new Array('St Peter and St Paul School (36824-34923)',52.69161,-1.827756,'School'),new Array('SS Peter and Paul School (36740-34839)',52.69161,-1.827756,'School'),new Array('St Francis of Assisi Church (36450-34557)',52.61837,-1.952233,'ParishChurch'),new Array('St Peter Church (36156-34410)',52.61588,-2.004122,'ParishChurch'),new Array('St Francis School (36694-34793)',52.61837,-1.952233,'School'),new Array('Holy Cross Church (36414-34539)',52.678078,-1.825753,'ParishChurch'),new Array('St Joseph`s School (36723-34822)',52.681015,-1.818272,'School'),new Array('St Edmund Gennings Church (36059-34361)',52.611802,-2.035932,'ParishChurch'),new Array('Corpus Christi School (36706-34805)',52.615533,-2.057159,'School'),new Array('St Edmund Gennings Church (36059-34451)',52.611802,-2.035932,'ParishChurch'),new Array('Corpus Christi, Ashmore Park Parish Church (5037-34491)',52.613645,-2.057821,'ParishChurch'),new Array('St Austin Church (36243-34454)',52.799994,-2.115558,'ParishChurch'),new Array('St Austin`s School (36727-34826)',52.801093,-2.112253,'School'),new Array('Blessed Mother Teresa of Calcutta School (36735-34834)',52.791277,-2.129667,'School'),new Array('St Thomas of Canterbury Church (36055-34359)',52.604659,-1.978074,'ParishChurch'),new Array('St Thomas of Canterbury School (36693-34792)',52.604659,-1.978074,'School'),new Array('Blessed William Howard School (36742-34841)',52.800624,-2.122976,'School'),new Array('Sacred Heart Church (36063-34299)',52.818943,-1.88364,'ParishChurch'),new Array('Convent (65107-70837)',52.63101,-1.85379,'Other'),new Array('St Catherine with St Chad`s Church (36287-34476)',52.600183,-2.009273,'ParishChurch'),new Array('Sacred Heart Church (36063-34363)',52.818943,-1.88364,'ParishChurch'),new Array('St Anthony of Padua Church (36184-34424)',52.626763,-2.125382,'ParishChurch'),new Array('St Patrick Church (36142-34403)',52.815509,-2.115436,'ParishChurch'),new Array('St Mary`s School (36714-34813)',52.67973,-2.181327,'School'),new Array('St Mary Church (36424-34544)',52.67973,-2.181327,'ParishChurch'),new Array('St Mary of the Angels Church (36019-34341)',52.599426,-1.91651,'ParishChurch'),new Array('St Patrick`s School (36728-34827)',52.815748,-2.119146,'School'),new Array('St Anthony`s School (36701-34800)',52.625979,-2.127035,'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';
}
//