strList="
St Joseph`s (0 miles)
Zoom on map | View full information
St Margaret`s, Galashiels (4.8 miles)
Zoom on map | View full information
St Margaret`s, Hawick (8.9 miles)
Zoom on map | View full information
Halyrude Primary School (15.9 miles)
Zoom on map | View full information
St Andrew`s (22 miles)
Zoom on map | View full information
St Luke`s (23.6 miles)
Zoom on map | View full information
St Matthew`s (24.3 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Joseph`s (66059-70958)',55.546681,-2.838873,'School'),new Array('St Margaret`s, Galashiels (66076-70975)',55.614864,-2.81364,'School'),new Array('St Margaret`s, Hawick (66058-70957)',55.420995,-2.790706,'School'),new Array('Halyrude Primary School (66086-70985)',55.65652559999999,-3.196905700000002,'School'),new Array('St Andrew`s (66131-71030)',55.843203,-3.0453,'School'),new Array('St Luke`s (66124-71023)',55.868911,-3.040893,'School'),new Array('St Matthew`s (66062-70961)',55.855338,-3.134942,'School'),new Array('Sacred Heart (66110-71009)',55.830789,-3.232172,'School'),new Array('St Mary`s (66145-71044)',55.873259,-3.107895,'School'),new Array('St David`s (66116-71015)',55.888839,-3.052795,'School'),new Array('St David`s High (66400-71299)',55.901656,-3.044953,'School'),new Array('St Margaret`s (66061-70960)',55.881238,-3.151028,'School'),new Array('St Barbara Church (42453-63644)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Our Blessed Lady and St Alphonsus Parish Church (30561-34300)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Holy Trinity And St Augustine Church (40456-38018)',55.378051,-3.435973,'ParishChurch'),new Array('Test Cathedral (72386-77160)',55.378051,-3.435973,'Cathedral'),new Array('Former St Thomas of Canterbury church, Great George`s Road: part of the Irenaeus Project (72612-77170)',55.378051,-3.435973,'Other'),new Array('St Mary`s Parochial Centre (72533-57737)',55.378051,-3.435973,'Other'),new Array('St Anne Church (61030-65592)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Blessed English Martyrs Church (44707-48396)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Test Church (72387-77160)',55.378051,-3.435973,'Church'),new Array('St Sebastian`s Parish House (52748-57663)',55.378051,-3.435973,'Other'),new Array('Test Cathedral (72386-77980)',55.378051,-3.435973,'Cathedral'),new Array('St Catherine`s (66221-71120)',55.903836,-3.156816,'School'),new Array('St Martin`s (66196-71095)',55.943279,-2.947863,'School'),new Array('St Mary`s (66105-71004)',55.952749,-2.781559,'School'),new Array('St John Vianney (66269-71168)',55.918932,-3.157825,'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('St Francis` (66149-71048)',55.934823,-3.12726,'School'),new Array('St Mark`s (66158-71057)',55.911585,-3.23059,'School'),new Array('Holy Rood High (66375-71274)',55.940784,-3.14434,'School'),new Array('St. Ninian Church (47312-54385)',55.540442,-2.076159,'ParishChurch'));
// 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';
}
//