strList="
Our Lady Of Hartley Catholic Primary School (0 miles)
Zoom on map | View full information
Oratory of St Francis de Sales Church (0.2 miles)
Zoom on map | View full information
St Paul Church (2.3 miles)
Zoom on map | View full information
St Joseph`s Catholic Primary School (4 miles)
Zoom on map | View full information
Our Lady of the Assumption Church (4.1 miles)
Zoom on map | View full information
St Joseph`s Convent Preparatory School (4.4 miles)
Zoom on map | View full information
St John the Evangelist Church (4.8 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady Of Hartley Catholic Primary School (38606-36710)',51.385569,0.306718,'School'),new Array('Oratory of St Francis de Sales Church (61038-65596)',51.384347,0.310336,'ParishChurch'),new Array('St Paul Church (61220-65689)',51.376955,0.359037,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38610-36714)',51.439786,0.336876,'School'),new Array('Our Lady of the Assumption Church (61216-65687)',51.4421116,0.336591799999951,'ParishChurch'),new Array('St Joseph`s Convent Preparatory School (38635-36739)',51.431531,0.377487,'School'),new Array('St John the Evangelist Church (61218-65688)',51.441292,0.371144,'ParishChurch'),new Array('St John`s Catholic Comprehensive School (38626-36730)',51.434221,0.384965,'School'),new Array('St John`s Catholic Primary School (38605-36709)',51.436547,0.386913,'School'),new Array('St Anselm`s Catholic Primary School (38599-36703)',51.450644,0.232404,'School'),new Array('St Vincent Church (61036-65595)',51.449845,0.226708,'ParishChurch'),new Array('Our Lady Star Of The Sea Church (39424-37465)',51.461039,0.357397,'ParishChurch'),new Array('St Mary`s RC Primary School (38825-36931)',51.461504,0.358458,'School'),new Array('Church of the Apostles Church (61182-65669)',51.398976,0.174723,'ParishChurch'),new Array('St Bartholomew`s Catholic Primary School (38619-36723)',51.398976,0.174723,'School'),new Array('St Anselm Church (61032-65593)',51.446191,0.207332,'ParishChurch'),new Array('Our Lady`s Catholic Primary School (38600-36704)',51.446992,0.208234,'School'),new Array('St Thomas Of Canterbury Church (39308-37398)',51.476506,0.332315,'ParishChurch'),new Array('Convent High School for Girls (36536-34635)',51.482929,0.329964,'School'),new Array('St Mary`s (36535-34634)',51.467057,0.393889,'School'),new Array('St Thomas of Canterbury (36533-34632)',51.486474,0.328949,'School'),new Array('St Joseph`s Catholic Primary School (38470-36574)',51.453683,0.172155,'School'),new Array('St Mary of the Crays Church (61034-65594)',51.454534,0.170382,'ParishChurch'),new Array('St Peter Church (39414-37398)',51.499505,0.326688,'ParishChurch'),new Array('St John Fisher Church (61040-65597)',51.44276,0.148526,'ParishChurch'),new Array('St Thomas More Church (61250-65704)',51.295211,0.418276,'ParishChurch'),new Array('More Park Catholic Primary School (38624-36728)',51.295211,0.418276,'School'),new Array('St Columba`s Catholic Boys` School (38476-36580)',51.452692,0.155195,'School'),new Array('St Catherine`s Catholic For Girls School (38475-36579)',51.454674,0.15454,'School'),new Array('St Philomena`s Catholic Primary School (38483-36587)',51.382283,0.115368,'School'),new Array('Our Lady of the Crays Church (61172-65664)',51.387048,0.113461,'ParishChurch'),new Array('St Joseph`s Parish Office (65146-65664)',51.387048,0.113461,'Other'),new Array('St William Of Perth Catholic Primary School (38614-36718)',51.373994,0.497507,'School'),new Array('St John Fisher Church (61056-65605)',51.373994,0.497507,'ParishChurch'),new Array('Holy Cross (36532-34631)',51.505948,0.282574,'School'),new Array('English Martyrs Catholic Primary School (38618-36722)',51.400789,0.499484,'School'),new Array('St Mary And St Joseph`s Catholic School (38477-36581)',51.425644,0.122929,'School'),new Array('English Martyrs Church (61058-65606)',51.400789,0.499484,'ParishChurch'),new Array('St Peter Chanel Catholic Primary School (38472-36576)',51.420352,0.118291,'School'),new Array('The Holy Cross Church (39212-37321)',51.511076,0.282932,'ParishChurch'),new Array('St John Vianney Church (61042-65598)',51.455487,0.137622,'ParishChurch'),new Array('St Fidelis Catholic Primary School (38471-36575)',51.476274,0.162859,'School'),new Array('Our Lady of the Angels Church (61046-65600)',51.480315,0.169992,'ParishChurch'),new Array('St John Fisher Catholic Comprehensive School (38630-36734)',51.377735,0.517269,'School'),new Array('St Thomas More Catholic Primary School (38469-36573)',51.466788,0.139288,'School'),new Array('St Michael the Archangel Church (61060-65607)',51.379613,0.521138,'ParishChurch'),new Array('St Michael`s Catholic Primary School (38598-36702)',51.378112,0.521486,'School'),new Array('St Thomas of Canterbury Church (61088-65621)',51.272507,0.186681,'ParishChurch'),new Array('St Lawrence of Canterbury Church (61222-65690)',51.427265,0.099406,'ParishChurch'),new Array('St Peter And St Paul`s Catholic Primary School (38484-36588)',51.403371,0.089843,'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';
}
//