strList="
St Peter`s Parish Church (0 miles)
Zoom on map | View full information
St Peter Church (0 miles)
Zoom on map | View full information
St Peter`s Parish Church (0 miles)
Zoom on map | View full information
The Sacred Heart Church (3 miles)
Zoom on map | View full information
Sacred Heart Parish Church (3 miles)
Zoom on map | View full information
The Sacred Heart Church (3 miles)
Zoom on map | View full information
Our Lady Of Peace Church (3.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Peter`s Parish Church (30669-38435)',51.689812,-3.230118,'ParishChurch'),new Array('St Peter Church (41076-38439)',51.689812,-3.230118,'ParishChurch'),new Array('St Peter`s Parish Church (30669-31549)',51.689812,-3.230118,'ParishChurch'),new Array('The Sacred Heart Church (41183-38493)',51.654896,-3.190112,'ParishChurch'),new Array('Sacred Heart Parish Church (30639-31534)',51.654896,-3.190112,'ParishChurch'),new Array('The Sacred Heart Church (41183-38504)',51.654896,-3.190112,'ParishChurch'),new Array('Our Lady Of Peace Church (41170-38493)',51.670868,-3.143721,'ParishChurch'),new Array('St Benedict Church (41166-38490)',51.690302,-3.342991,'ParishChurch'),new Array('St Benedict Church (41166-38488)',51.690302,-3.342991,'ParishChurch'),new Array('St Joseph Church (41084-38443)',51.728667,-3.132409,'ParishChurch'),new Array('Catholic Church, ABERTILLERY Parish Church (30693-31561)',51.728667,-3.132409,'ParishChurch'),new Array('St John`s Parish Church (30715-31572)',51.755635,-3.280224,'ParishChurch'),new Array('(i) (?) St Mary Church (1877) (41075-38438)',51.728667,-3.132409,'ParishChurch'),new Array('St John Church (41194-38511)',51.755635,-3.280224,'ParishChurch'),new Array('St John`s Parish Church (30715-38517)',51.755635,-3.280224,'ParishChurch'),new Array('St Thomas Church (41069-38435)',51.645452,-3.323917,'ParishChurch'),new Array('Our Lady Of Lourdes Church (41168-31532)',51.679839,-3.375312,'ParishChurch'),new Array('Our Lady Of Lourdes Church (41168-38492)',51.679839,-3.375312,'ParishChurch'),new Array('Catholic Church, EBBW VALE Parish Church (30717-31573)',51.781203,-3.209278,'ParishChurch'),new Array('All Saints Church (41138-38517)',51.781203,-3.209278,'ParishChurch'),new Array('All Saints Church (41138-38474)',51.781203,-3.209278,'ParishChurch'),new Array('Immaculate Conception Parish Church (30641-31535)',51.785098,-3.249584,'ParishChurch'),new Array('The Immaculate Conception Church (41200-38517)',51.785293,-3.251503,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36870-34969)',51.785047,-3.257658,'School'),new Array('Catholic Church, Talywain Parish Church (30727-31578)',51.728439,-3.070504,'ParishChurch'),new Array('St Mary`s (7828-34955)',51.7432472,-3.3789905,'Other'),new Array('St Illtyd Church (41163-38488)',51.761158,-3.360844,'ParishChurch'),new Array('St Illtyd`s Parish Church (30649-31539)',51.761158,-3.360844,'ParishChurch'),new Array('St Mary Church (41165-38489)',51.749364,-3.379075,'ParishChurch'),new Array('St Mary`s Priory Parish Church (30645-31537)',51.749364,-3.379075,'ParishChurch'),new Array('St Mary Church (41165-38488)',51.749364,-3.379075,'ParishChurch'),new Array('Bishop Hedley Catholic High School (36877-34976)',51.756386,-3.371422,'School'),new Array('St Helen Church (41089-38446)',51.578547,-3.22255,'ParishChurch'),new Array('St Helen`s School (36834-34933)',51.580331,-3.203043,'School'),new Array('St Dyfig`s Parish Church (30625-38484)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfrig Church (41187-38507)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfig`s Parish Church (30625-31527)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfrig Church (41201-38484)',51.594657,-3.324763,'ParishChurch'),new Array('St Mary`s School (36833-34932)',51.797107,-3.17216,'School'),new Array('St Mary Parish Church (30723-31576)',51.797107,-3.17216,'ParishChurch'),new Array('St Mary Church (41085-38444)',51.797705,-3.17261,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36866-34965)',51.704753,-3.046819,'School'),new Array('Catholic Church, PONTYPOOL Parish Church (30725-31577)',51.704753,-3.046819,'ParishChurch'),new Array('St Alban Church (41186-38506)',51.704753,-3.046819,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36867-34966)',51.589883,-3.323874,'School'),new Array('Cardinal Newman Catholic Comprehensive School (36880-34979)',51.583119,-3.301536,'School'),new Array('St David`s Parish Church (30721-38471)',51.707346,-3.044351,'ParishChurch'),new Array('St Anthony and St Clare Parish Church (30643-31536)',51.606221,-3.09629,'ParishChurch'),new Array('St Aloysius Parish Church (30647-31538)',51.762419,-3.379169,'ParishChurch'),new Array('St Anthony Of Padua And St Clare Church (41195-38512)',51.607053,-3.095791,'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';
}
//