strList="
St Joseph Church (0 miles)
Zoom on map | View full information
Corpus Christi Church (1.2 miles)
Zoom on map | View full information
Corpus Christi Church (1.2 miles)
Zoom on map | View full information
Our Lady of Lourdes Church (2.2 miles)
Zoom on map | View full information
The Immaculate Conception Church (8.4 miles)
Zoom on map | View full information
Ss Dunstan & Antony Chapel (8.4 miles)
Zoom on map | View full information
The Immaculate Conception Church (8.4 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Joseph Church (42580-63869)',51.3562834,-2.992395100000067,'ParishChurch'),new Array('Corpus Christi Church (42577-63868)',51.34148649999999,-2.979111200000034,'ParishChurch'),new Array('Corpus Christi Church (42577-63831)',51.34148649999999,-2.979111200000034,'ParishChurch'),new Array('Our Lady of Lourdes Church (42582-63871)',51.3540988,-2.941151600000012,'ParishChurch'),new Array('The Immaculate Conception Church (42570-63815)',51.444357,-2.859492,'ParishChurch'),new Array('Ss Dunstan and Antony Chapel (57632-63815)',51.3858666,-2.804894099999956,'Church'),new Array('The Immaculate Conception Church (42570-63816)',51.444357,-2.859492,'ParishChurch'),new Array('St. Joseph`s R.C Primary School and Nursery (66516-36948)',51.233614,-2.99342,'School'),new Array('Our Lady and The English Martyrs Church (42565-63808)',51.2320574,-2.992339600000037,'ParishChurch'),new Array('Our Lady and The English Martyrs Church (42565-63804)',51.2320574,-2.992339600000037,'ParishChurch'),new Array('St Joseph`s Parish Church (30665-31547)',51.418895,-3.199652,'ParishChurch'),new Array('St Joseph Church (41182-38503)',51.438884,-3.183121,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36865-34964)',51.431065,-3.198685,'School'),new Array('Our Lady Queen Of The Apostles Church (42568-63809)',51.2803203,-2.780881499999964,'ParishChurch'),new Array('St Cuthbert`s House Parish Church (30589-31509)',51.463,-3.173395,'ParishChurch'),new Array('St Cuthbert Church (41109-38457)',51.463826,-3.172552,'ParishChurch'),new Array('St Helen`s School (36841-34940)',51.472301,-3.167658,'School'),new Array('St Mary Parish Church (30663-31546)',51.434689,-3.21613,'ParishChurch'),new Array('St Mary Parish Church (30663-31547)',51.434689,-3.21613,'ParishChurch'),new Array('St Mary Church (41136-38503)',51.434689,-3.21613,'ParishChurch'),new Array('St Mary Church (41136-38473)',51.434689,-3.21613,'ParishChurch'),new Array('St Helen`s School (36838-34937)',51.486905,-3.140105,'School'),new Array('St David`s Cathedral Parish Church (30587-31508)',51.478892,-3.163147,'ParishChurch'),new Array('St Patrick Church (41120-38463)',51.466596,-3.18332,'ParishChurch'),new Array('St Alban Church (41103-38453)',51.486805,-3.149392,'ParishChurch'),new Array('St Alban`s Parish Church (30607-31518)',51.486805,-3.149392,'ParishChurch'),new Array('St Francis Of Assisi Church (42573-63818)',51.4281989,-2.755078700000013,'ParishChurch'),new Array('St Richard Gwyn R.C. High School (36871-34970)',51.423321,-3.239474,'School'),new Array('St. David`s Cathedral Church (41111-38458)',51.480751,-3.174196,'Cathedral'),new Array('Blessed Sacrament Church (41093-38448)',51.504483,-3.125314,'ParishChurch'),new Array('St Peter Church (41123-38465)',51.486901,-3.167945,'ParishChurch'),new Array('St John Lloyd Parish Church (30609-38455)',51.516657,-3.109429,'ParishChurch'),new Array('St John Lloyd Parish Church (30609-31519)',51.516657,-3.109429,'ParishChurch'),new Array('St John Lloyd Church (41114-38455)',51.516657,-3.109429,'ParishChurch'),new Array('St Helen Church (41078-38440)',51.408168,-3.263204,'ParishChurch'),new Array('St John Lloyd Church (41114-38460)',51.516657,-3.109429,'ParishChurch'),new Array('St Illtyd`s High School (36874-34973)',51.517446,-3.115358,'School'),new Array('University Of Cardiff Chaplaincy Church (41128-38468)',51.489369,-3.180957,'ParishChurch'),new Array('St Helen`s Infant andamp; Nursery School (36830-34929)',51.408019,-3.266134,'School'),new Array('St Mary`s Priory Parish Church (30595-31512)',51.48307,-3.195599,'ParishChurch'),new Array('Archbishop`s House (30581-38515)',51.484347,-3.192997,'Other'),new Array('Sacred Heart Parish Church (30593-31511)',51.477019,-3.204339,'ParishChurch'),new Array('St Mary Of The Angels Church (41118-38462)',51.48307,-3.195599,'ParishChurch'),new Array('Sacred Heart Church (41101-38452)',51.477019,-3.204339,'ParishChurch'),new Array('Archbishop`s House (30581-38508)',51.484347,-3.192997,'Other'),new Array('St Helen`s School (36844-34943)',51.483537,-3.198333,'School'),new Array('Blessed Sacrament Parish Church (30613-38455)',51.527072,-3.087098,'ParishChurch'),new Array('Blessed Sacrament Parish Church (30613-31521)',51.527072,-3.087098,'ParishChurch'),new Array('St David`s Catholic College (38752-36859)',51.501149,-3.165629,'School'),new Array('St Joseph Church (42575-63822)',51.4835155,-2.779855099999963,'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';
}
//