strList="
St Sebastian`s Parish House (0 miles)
Zoom on map | View full information
Holy Trinity And St Augustine Church (0 miles)
Zoom on map | View full information
St Mary`s Parochial Centre (0 miles)
Zoom on map | View full information
Test Cathedral (0 miles)
Zoom on map | View full information
Our Blessed Lady & St Alphonsus Parish Church (0 miles)
Zoom on map | View full information
St Barbara Church (0 miles)
Zoom on map | View full information
Test Cathedral (0 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Sebastian`s Parish House (52748-57663)',55.378051,-3.435973,'Other'),new Array('Holy Trinity And St Augustine Church (40456-38018)',55.378051,-3.435973,'ParishChurch'),new Array('St Mary`s Parochial Centre (72533-57737)',55.378051,-3.435973,'Other'),new Array('Test Cathedral (72386-77160)',55.378051,-3.435973,'Cathedral'),new Array('Our Blessed Lady and St Alphonsus Parish Church (30561-34300)',55.378051,-3.43597299999999,'ParishChurch'),new Array('St Barbara Church (42453-63644)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Test Cathedral (72386-77980)',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('Test Church (72387-77160)',55.378051,-3.435973,'Church'),new Array('Blessed English Martyrs Church (44707-48396)',55.378051,-3.43597299999999,'ParishChurch'),new Array('St Anne Church (61030-65592)',55.378051,-3.43597299999999,'ParishChurch'),new Array('Halyrude Primary School (66086-70985)',55.65652559999999,-3.196905700000002,'School'),new Array('St Teresa`s (66073-70972)',55.078496,-3.628587,'School'),new Array('St Andrew`s (66182-71081)',55.062715,-3.597333,'School'),new Array('St Joseph`s College (66367-71266)',55.063232,-3.600438,'School'),new Array('St Margaret`s, Hawick (66058-70957)',55.420995,-2.790706,'School'),new Array('St Joseph`s (66059-70958)',55.546681,-2.838873,'School'),new Array('St Columba`s (66075-70974)',54.989985,-3.244879,'School'),new Array('St John`s, Blackwood (66072-70971)',55.67358,-3.926448,'School'),new Array('St Mary`s, Lanark (66119-71018)',55.727951,-3.826473,'School'),new Array('St Athanasius` (66177-71076)',55.732027,-3.835774,'School'),new Array('St Margaret`s, Galashiels (66076-70975)',55.614864,-2.81364,'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';
}
//