strList="
St Cadoc`s (0 miles)
Zoom on map | View full information
St Luke`s High (1.9 miles)
Zoom on map | View full information
St Ninian`s High (2 miles)
Zoom on map | View full information
St Angela`s (2.1 miles)
Zoom on map | View full information
Our Lady of the Missions (2.1 miles)
Zoom on map | View full information
St Mark`s (2.1 miles)
Zoom on map | View full information
St Vincent`s (2.3 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Cadoc`s (66365-71264)',55.778307,-4.341324,'School'),new Array('St Luke`s High (66374-71273)',55.788754,-4.386009,'School'),new Array('St Ninian`s High (66373-71272)',55.797701,-4.30193,'School'),new Array('St Angela`s (66357-71256)',55.807943,-4.339736,'School'),new Array('Our Lady of the Missions (66366-71265)',55.802371,-4.307408,'School'),new Array('St Mark`s (66302-71201)',55.793212,-4.387398,'School'),new Array('St Vincent`s (66321-71220)',55.810615,-4.32542,'School'),new Array('St Joseph`s (66341-71240)',55.779839,-4.275089,'School'),new Array('St Bernard`s (66320-71219)',55.81345,-4.361519,'School'),new Array('St John`s (66205-71104)',55.80542,-4.390045,'School'),new Array('St Paul`s High (66382-71281)',55.824391,-4.337818,'School'),new Array('St Thomas` (66154-71053)',55.785459,-4.427167,'School'),new Array('St Marnock`s (66263-71162)',55.830884,-4.345665,'School'),new Array('Our Lady of the Annunciat (66184-71083)',55.815609,-4.274655,'School'),new Array('St Monica`s (66318-71217)',55.831145,-4.355485,'School'),new Array('St Conval`s (66247-71146)',55.826131,-4.292194,'School'),new Array('St Oswald`s (66394-71293)',55.813405,-4.26455,'School'),new Array('St Andrew`s Academy (66415-71314)',55.830696,-4.392282,'School'),new Array('St Fillan`s (66362-71261)',55.81689,-4.253882,'School'),new Array('John Paul II (66251-71150)',55.799443,-4.23628,'School'),new Array('St Margaret Mary`s Second (66387-71286)',55.802924,-4.237613,'School'),new Array('St Mirin`s (66286-71185)',55.816379,-4.247915,'School'),new Array('Our Lady of the Rosary (66355-71254)',55.843782,-4.336155,'School'),new Array('Lourdes Secondary (66384-71283)',55.844285,-4.341872,'School'),new Array('St Charles` (66343-71242)',55.832181,-4.418787,'School'),new Array('Lourdes (66349-71248)',55.849675,-4.341541,'School'),new Array('St Peter`s (66240-71139)',55.824591,-4.435416,'School'),new Array('St George`s (66201-71100)',55.849936,-4.364978,'School'),new Array('St Bride`s (66313-71212)',55.836311,-4.266202,'School'),new Array('St Bartholomew`s (66270-71169)',55.811146,-4.226833,'School'),new Array('Holyrood Secondary (66383-71282)',55.832423,-4.251284,'School'),new Array('St John Ogilvie (66173-71072)',55.843917,-4.40565,'School'),new Array('Holy Cross (66359-71258)',55.8363,-4.255022,'School'),new Array('St Albert`s (66260-71159)',55.845672,-4.282402,'School'),new Array('St Brigid`s (66229-71128)',55.828259,-4.234198,'School'),new Array('St Constantine`s (66253-71152)',55.85937,-4.327454,'School'),new Array('Diocesan Office (66436-71335)',55.84761,-4.418052,'Other'),new Array('St Mark`s, Rutherglen (66133-71032)',55.814121,-4.209366,'School'),new Array('St Saviour`s (66127-71026)',55.859113,-4.304859,'School'),new Array('St Vincent`s (66274-71173)',55.742419,-4.205916,'School'),new Array('Fernhill (66423-71322)',55.805162,-4.200815,'School'),new Array('St Catherine`s (66175-71074)',55.852843,-4.415645,'School'),new Array('St Paul`s (66185-71084)',55.829964,-4.462995,'School'),new Array('St Mary`s (66245-71144)',55.841031,-4.443968,'School'),new Array('St Francis` (66310-71209)',55.845885,-4.243516,'School'),new Array('St Columbkilles` (66332-71231)',55.825961,-4.213198,'School'),new Array('Our Lady of Lourdes (66304-71203)',55.756595,-4.190651,'School'),new Array('St Kenneth`s (66358-71257)',55.768174,-4.183903,'School'),new Array('St Fergus (66101-71000)',55.847752,-4.447217,'School'),new Array('Archdiocese of Glasgow Office (66429-71333)',55.855615,-4.253504,'Other'));
// 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';
}
//