strList="
Our Lady Help of Christians (0 miles)
Zoom on map | View full information
St Joseph`s (6.5 miles)
Zoom on map | View full information
St David, Mold (8.8 miles)
Zoom on map | View full information
St David`s School (8.8 miles)
Zoom on map | View full information
St David (8.8 miles)
Zoom on map | View full information
Our Lady of the Rosary (11.2 miles)
Zoom on map | View full information
St Winefride`s RC Primary School (11.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady Help of Christians (60136-65122)',53.110355,-3.323185,'ParishChurch'),new Array('St Joseph`s (60083-65099)',53.180311,-3.426824,'ParishChurch'),new Array('St David, Mold (70996-32868)',53.1700197,-3.135938600000031,'ParishChurch'),new Array('St David`s School (38457-36561)',53.17002,-3.135939,'School'),new Array('St David (60110-65111)',53.17002,-3.135939,'ParishChurch'),new Array('Our Lady of the Rosary (60070-32869)',53.16542399999999,-3.069177500000023,'ParishChurch'),new Array('St Winefride`s RC Primary School (39091-37197)',53.257616,-3.451103,'School'),new Array('St David (60116-32871)',53.274511,-3.261155,'ParishChurch'),new Array('St David (60116-65114)',53.274511,-3.261155,'ParishChurch'),new Array('St Mary`s School (38455-36559)',53.241773,-3.129237,'School'),new Array('St Winefride`s Catholic Primary School (39088-37194)',53.275128,-3.22698,'School'),new Array('St Richard Gwyn School (38460-36564)',53.241773,-3.129237,'School'),new Array('The Immaculate Conception (60087-65101)',53.248499,-3.137612,'ParishChurch'),new Array('Church of the Immaculate Conception (70995-32867)',53.2484987,-3.137612100000069,'ParishChurch'),new Array('St Winefride Church (60094-65104)',53.27764,-3.223168,'ParishChurch'),new Array('The Sacred Heart (60089-65102)',53.186867,-3.035185,'ParishChurch'),new Array('St Francis Of Assisi (60107-65110)',53.099673,-2.998081,'ParishChurch'),new Array('Ven Edward Morgan School (38459-36563)',53.211661,-3.04023,'School'),new Array(' The Cathedral Church Of Our Lady Of Sorrows (60043-65084)',53.047312,-2.99887,'ParishChurch'),new Array('St Illtyd Church (66518-65148)',53.295731,-3.46806,'Church'),new Array('St Mary`s School (38465-36569)',53.043809,-2.996342,'School'),new Array('Curial Office (344-876)',53.038458,-2.995607,'Other'),new Array('Y Groes Church (60101-65107)',52.989632,-3.038044,'ParishChurch'),new Array('Bishop`s House (4796-876)',53.038458,-2.995607,'Other'),new Array('St Mary the Virgin Church (60134-65121)',52.989632,-3.038044,'ParishChurch'),new Array('St Josephs Catholic and Anglican High School (38466-36570)',53.035222,-2.994474,'School'),new Array('The Blessed Trinity (60130-65119)',53.195267,-3.002187,'ParishChurch'),new Array('St Anne`s School (38464-36568)',53.045337,-2.971392,'School'),new Array('St Mary`s School (38453-36557)',53.313801,-3.475284,'School'),new Array('Blessed Edward Jones School (38454-36558)',53.314463,-3.477694,'School'),new Array('Christ the Word School (71096-75089)',53.3145548,-3.4776832,'School'),new Array('Christ the King Church (60154-65130)',53.298123,-3.5337,'Church'),new Array('Ss Peter And Frances, Prestatyn Church (60124-65117)',53.33401,-3.3984,'ParishChurch'),new Array('Christ the King Church (60170-65146)',53.109789,-2.942519,'Church'),new Array('Our Lady Of The Assumption (60132-65120)',53.316641,-3.496249,'ParishChurch'),new Array('St Therese Of Lisieux (60048-65086)',53.287293,-3.580328,'ParishChurch'),new Array('St Winefride Church (59799-32745)',53.284208,-3.058071,'ParishChurch'),new Array('St Winefride`s Primary School (38213-36317)',53.286508,-3.053208,'School'),new Array('The Sacred Heart, Chirk Church (60075-65095)',52.93071,-3.059842,'ParishChurch'),new Array('St Anthony`s Catholic Primary School (39089-37195)',53.178177,-2.92687,'School'),new Array('St Anthony`s School (38458-36562)',53.179016,-2.92412,'School'),new Array('St Anthony Of Padua (60142-65124)',53.179016,-2.92412,'ParishChurch'),new Array('St Clare`s School (38228-36332)',53.173414,-2.913961,'School'),new Array('St Clare Church (59681-32721)',53.174936,-2.91359,'ParishChurch'),new Array('Our Lady and St John Church (59606-32740)',53.326516,-3.091505,'ParishChurch'),new Array('St Theresa Church (59780-32719)',53.207897,-2.921942,'ParishChurch'),new Array('St Theresa`s School (38205-36309)',53.209201,-2.917238,'School'),new Array('Holy Family Church (63230-32741)',53.34113,-3.103473,'ParishChurch'),new Array('Holy Family Church (59590-32741)',53.34113,-3.103473,'ParishChurch'),new Array('Ladymount Primary School (38130-36234)',53.342284,-3.103984,'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';
}
//