strList="
St Patrick`s (0 miles)
Zoom on map | View full information
St Mary`s, Larkhall (5 miles)
Zoom on map | View full information
St Elizabeth`s (5.2 miles)
Zoom on map | View full information
St John`s, Blackwood (5.4 miles)
Zoom on map | View full information
St Mark`s, Hamilton (5.6 miles)
Zoom on map | View full information
Our Lady and St Anne`s (5.7 miles)
Zoom on map | View full information
St Peter`s (5.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Patrick`s (66136-71035)',55.680918,-4.063236,'School'),new Array('St Mary`s, Larkhall (66087-70986)',55.736661,-3.98169,'School'),new Array('St Elizabeth`s (66281-71180)',55.75564,-4.046495,'School'),new Array('St John`s, Blackwood (66072-70971)',55.67358,-3.926448,'School'),new Array('St Mark`s, Hamilton (66212-71111)',55.762201,-4.074286,'School'),new Array('Our Lady and St Anne`s (66238-71137)',55.763164,-4.046905,'School'),new Array('St Peter`s (66098-70997)',55.765772,-4.063461,'School'),new Array('St Hilary`s (66213-71112)',55.758704,-4.15325,'School'),new Array('St Ninian`s (66186-71085)',55.774074,-4.082236,'School'),new Array('St Mary`s, Hamilton (66293-71192)',55.776676,-4.04342,'School'),new Array('St Louise`s (66121-71020)',55.751732,-4.181151,'School'),new Array('John Ogilvie High (66422-71321)',55.779212,-4.077088,'School'),new Array('St Andrew`s and St Bride` (66420-71319)',55.762046,-4.166569,'School'),new Array('St Vincent`s (66274-71173)',55.742419,-4.205916,'School'),new Array('St Leonard`s (66262-71161)',55.771475,-4.143464,'School'),new Array('St Cuthbert`s (66192-71091)',55.782771,-4.077054,'School'),new Array('Holy Cross High (66421-71320)',55.782986,-4.053048,'School'),new Array('Our Lady of Lourdes (66304-71203)',55.756595,-4.190651,'School'),new Array('St Paul`s (66108-71007)',55.788622,-4.062659,'School'),new Array('St Brendan`s (66179-71078)',55.771779,-3.963416,'School'),new Array('Our Lady`s High School, M (66407-71306)',55.777046,-3.976261,'School'),new Array('St Kenneth`s (66358-71257)',55.768174,-4.183903,'School'),new Array('St Thomas` (66278-71177)',55.769212,-3.927465,'School'),new Array('Diocesan Centre (66435-71334)',55.790416,-3.986477,'Other'),new Array('St Joseph`s (66300-71199)',55.79626,-4.091444,'School'),new Array('St Blane`s (66273-71172)',55.79565,-4.102404,'School'),new Array('St Bernadette`s (66165-71064)',55.797134,-4.015424,'School'),new Array('Cathedral (66360-71259)',55.796037,-3.992889,'School'),new Array('St Ignatius` (66231-71130)',55.778875,-3.929026,'School'),new Array('St Aidan`s High (66408-71307)',55.780024,-3.917666,'School'),new Array('St Bride`s, Bothwell (66206-71105)',55.812164,-4.069283,'School'),new Array('Sacred Heart, Bellshill (66276-71175)',55.81178,-4.023794,'School'),new Array('St Aidan`s (66261-71160)',55.787843,-3.914716,'School'),new Array('St John the Baptist (66311-71210)',55.816119,-4.067131,'School'),new Array('Cardinal Newman High (66409-71308)',55.816538,-4.035581,'School'),new Array('St Athanasius` (66177-71076)',55.732027,-3.835774,'School'),new Array('St Charles (66190-71089)',55.810632,-4.14021,'School'),new Array('St Patrick`s, New Stevens (66147-71046)',55.811497,-3.98104,'School'),new Array('Our Lady and St Francis (66259-71158)',55.806663,-3.957417,'School'),new Array('Taylor High (66410-71309)',55.810432,-3.972958,'School'),new Array('St Cadoc`s (66135-71034)',55.811202,-4.152015,'School'),new Array('St Mary`s, Lanark (66119-71018)',55.727951,-3.826473,'School'),new Array('Holy Family (66252-71151)',55.819492,-4.008423,'School'),new Array('John Paul II (66350-71249)',55.825627,-4.054256,'School'),new Array('St Mary`s, Cleland (66140-71039)',55.800626,-3.920242,'School'),new Array('St Brigid`s (66211-71110)',55.783613,-3.88137,'School'),new Array('St Teresa`s (66237-71136)',55.812196,-3.951406,'School'),new Array('Fernhill (66423-71322)',55.805162,-4.200815,'School'),new Array('St Bride`s, Cambuslang (66319-71218)',55.817702,-4.166262,'School'),new Array('St Gerard`s (66255-71154)',55.828028,-4.019465,'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';
}
//