strList="
St Paul`s (0 miles)
Zoom on map | View full information
St Ninian`s (4 miles)
Zoom on map | View full information
St Andrew`s High (4.3 miles)
Zoom on map | View full information
St Marie`s (4.4 miles)
Zoom on map | View full information
St Kenneth`s (6.1 miles)
Zoom on map | View full information
St Patrick`s (6.4 miles)
Zoom on map | View full information
St Agatha`s (6.7 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Paul`s (66176-71075)',56.190887,-3.183617,'School'),new Array('St Ninian`s (66123-71022)',56.148896,-3.256773,'School'),new Array('St Andrew`s High (66379-71278)',56.132413,-3.148321,'School'),new Array('St Marie`s (66331-71230)',56.130392,-3.149162,'School'),new Array('St Kenneth`s (66203-71102)',56.164141,-3.334213,'School'),new Array('St Patrick`s (66160-71059)',56.132012,-3.312199,'School'),new Array('St Agatha`s (66224-71123)',56.20166,-3.009465,'School'),new Array('St Joseph`s (66144-71043)',56.131615,-3.383898,'School'),new Array('St Bride`s (66199-71098)',56.106196,-3.353834,'School'),new Array('St Columba`s (66244-71143)',56.318742,-3.019182,'School'),new Array('St Columba`s High (66380-71279)',56.070121,-3.418529,'School'),new Array('St Margaret`s (66329-71228)',56.069205,-3.444824,'School'),new Array('Kilgraston (66413-71312)',56.341775,-3.416317,'School'),new Array('St John`s (66250-71149)',56.03434,-3.420859,'School'),new Array('Holy Cross (66267-71166)',55.97338,-3.195857,'School'),new Array('St Mary`s, Leith (66288-71187)',55.971845,-3.160912,'School'),new Array('St David`s (66233-71132)',55.97368,-3.250716,'School'),new Array('St Ninian`s (66223-71122)',55.960053,-3.150627,'School'),new Array('St Mary`s, Edinburgh (66344-71243)',55.959494,-3.188734,'School'),new Array('St Margaret`s (66090-70989)',55.987565,-3.388124,'School'),new Array('Holy Name (66070-70969)',56.085059,-3.568215,'School'),new Array('St John`s (66352-71251)',55.949561,-3.121139,'School'),new Array('Fox Covert RC (66161-71060)',55.951689,-3.280756,'School'),new Array('St Thomas of Aquin`s High (66377-71276)',55.943548,-3.19766,'School'),new Array('Holy Rood High (66375-71274)',55.940784,-3.14434,'School'),new Array('Archdiocese of St Andrews and Edinburgh (66430-71328)',55.934335,-3.200705,'Other'),new Array('St Francis` (66149-71048)',55.934823,-3.12726,'School'),new Array('Loretto (66164-71063)',55.942598,-3.047528,'School'),new Array('St Gabriel`s (66191-71090)',55.955122,-2.983435,'School'),new Array('Greyfriars (66198-71097)',56.332292,-2.791598,'School'),new Array('St John`s RC Academy (66299-71198)',56.410129,-3.437883,'School'),new Array('St Peter`s (66354-71253)',55.929699,-3.207108,'School'),new Array('St Cuthbert`s (66142-71041)',55.930342,-3.240068,'School'),new Array('St Augustine`s High (66376-71275)',55.933043,-3.288544,'School'),new Array('St Joseph`s (66243-71142)',55.928527,-3.273493,'School'),new Array('Our Lady`s (66235-71134)',56.404935,-3.470892,'School'),new Array('St Serf`s (66097-70996)',56.061656,-3.605554,'School'),new Array('St John Vianney (66269-71168)',55.918932,-3.157825,'School'),new Array('St Martin`s (66196-71095)',55.943279,-2.947863,'School'),new Array('St Mark`s (66158-71057)',55.911585,-3.23059,'School'),new Array('Holy Family (66077-70976)',55.956335,-3.468325,'School'),new Array('St Catherine`s (66221-71120)',55.903836,-3.156816,'School'),new Array('St Ninian`s (66148-71047)',56.467526,-3.034673,'School'),new Array('St Joseph`s RC Primary School (66283-71182)',56.459008,-2.987253,'School'),new Array('St Mary`s (66197-71096)',56.011272,-3.599261,'School'),new Array('St Mary`s (66239-71138)',56.471047,-3.008586,'School'),new Array('St Clement`s (66193-71092)',56.475283,-3.034202,'School'),new Array('Diocese of Dunkeld (66433-71331)',56.467859,-2.996069,'Other'),new Array('St David`s High (66400-71299)',55.901656,-3.044953,'School'),new Array('Our Lady`s (66104-71003)',56.467544,-2.967867,'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';
}
//