strList="
Cardinal Newman Catholic Comprehensive School (0 miles)
Zoom on map | View full information
University Chaplaincy Parish Church (1 miles)
Zoom on map | View full information
St Mary`s & St Patrick`s School (1.1 miles)
Zoom on map | View full information
St Dyfig`s Parish Church (1.3 miles)
Zoom on map | View full information
St Dyfig`s Parish Church (1.3 miles)
Zoom on map | View full information
St Dyfrig Church (1.3 miles)
Zoom on map | View full information
St Dyfrig Church (1.3 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Cardinal Newman Catholic Comprehensive School (36880-34979)',51.583119,-3.301536,'School'),new Array('University Chaplaincy Parish Church (30474-31438)',51.586628,-3.324645,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36867-34966)',51.589883,-3.323874,'School'),new Array('St Dyfig`s Parish Church (30625-38484)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfig`s Parish Church (30625-31527)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfrig Church (41187-38507)',51.594657,-3.324763,'ParishChurch'),new Array('St Dyfrig Church (41201-38484)',51.594657,-3.324763,'ParishChurch'),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 Thomas Church (41069-38435)',51.645452,-3.323917,'ParishChurch'),new Array('All Hallows Church (41157-38484)',51.521232,-3.371364,'ParishChurch'),new Array('All Hallows Parish Church (30667-31548)',51.521232,-3.371364,'ParishChurch'),new Array('All Hallows Church (41184-38505)',51.521232,-3.371364,'ParishChurch'),new Array('Tonyrefail Church (41199-38516)',51.582986,-3.428199,'ParishChurch'),new Array('St Mary Magdalene Parish Church (30476-31439)',51.61984,-3.413669,'ParishChurch'),new Array('St Mary Magdalene Church (41189-38508)',51.621815,-3.412416,'ParishChurch'),new Array('St Teilo Church (41126-38467)',51.515563,-3.218658,'ParishChurch'),new Array('Christ The King Church (41095-38449)',51.532029,-3.190466,'ParishChurch'),new Array('Our Lady Of Lourdes Church (41099-38451)',51.515563,-3.218658,'ParishChurch'),new Array('Christ The King Church (41095-31528)',51.532029,-3.190466,'ParishChurch'),new Array('Christ the King Parish Church (30603-31516)',51.531111,-3.189721,'ParishChurch'),new Array('Holy Family Parish Church (30655-38462)',51.497463,-3.240951,'ParishChurch'),new Array('Holy Family Parish Church (30655-31542)',51.497463,-3.240951,'ParishChurch'),new Array('Holy Family Church (41097-38450)',51.497463,-3.240951,'ParishChurch'),new Array('Our Lady of Lourdes Parish Church (30599-31514)',51.50051,-3.215274,'ParishChurch'),new Array('Our Lady of Lourdes Parish Church (30599-38467)',51.50051,-3.215274,'ParishChurch'),new Array('Sacred Heart Parish Church (30639-31534)',51.654896,-3.190112,'ParishChurch'),new Array('Corpus Christi Catholic High School (36873-34972)',51.533962,-3.160946,'School'),new Array('The Sacred Heart Church (41183-38504)',51.654896,-3.190112,'ParishChurch'),new Array('The Sacred Heart Church (41183-38493)',51.654896,-3.190112,'ParishChurch'),new Array('Ss Gabriel And Raphael Church (41198-38515)',51.61879,-3.45255,'ParishChurch'),new Array('St Mary`s andamp; St Patrick`s School (36869-34968)',51.619243,-3.452984,'School'),new Array('Catholic Church, TONYPANDY Parish Church (30629-31529)',51.619506,-3.454235,'ParishChurch'),new Array('Our Lady Of Lourdes Church (41168-38492)',51.679839,-3.375312,'ParishChurch'),new Array('Our Lady Of Lourdes Church (41168-31532)',51.679839,-3.375312,'ParishChurch'),new Array('St Helen`s School (36835-34934)',51.478191,-3.256282,'School'),new Array('St Joseph`s Parish Church (30601-31515)',51.500456,-3.18983,'ParishChurch'),new Array('St Joseph Church (41116-38461)',51.500456,-3.18983,'ParishChurch'),new Array('St Benedict Church (41166-38488)',51.690302,-3.342991,'ParishChurch'),new Array('St Benedict Church (41166-38490)',51.690302,-3.342991,'ParishChurch'),new Array('St Paul Church (41121-38464)',51.511762,-3.165353,'ParishChurch'),new Array('St Paul Church (41121-31528)',51.511762,-3.165353,'ParishChurch'),new Array('St Bernadette`s Catholic Primary School (38836-36942)',51.526207,-3.143984,'School'),new Array('St Francis Of Assisi Church (41112-38459)',51.4752936,-3.2498193,'ParishChurch'),new Array('St Philip Evans RC Primary School (36847-34946)',51.517294,-3.149684,'School'),new Array('St Peter`s Parish Church (30669-31549)',51.689812,-3.230118,'ParishChurch'),new Array('St Philip Evans Church (41125-38466)',51.516301,-3.151014,'ParishChurch'),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 David`s Catholic College (38752-36859)',51.501149,-3.165629,'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';
}
//