strList="
The Sacred Heart Church (0 miles)
Zoom on map | View full information
Sacred Heart Catholic Primary Teddington School (0.2 miles)
Zoom on map | View full information
St Agatha`s Catholic Primary School (1 miles)
Zoom on map | View full information
St Agatha Church (1.1 miles)
Zoom on map | View full information
St Joseph`s Catholic Primary School (1.2 miles)
Zoom on map | View full information
St Thomas Aquinas Church (1.5 miles)
Zoom on map | View full information
St Raphael Church (1.7 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('The Sacred Heart Church (40812-38196)',51.418812,-0.316848,'ParishChurch'),new Array('Sacred Heart Catholic Primary Teddington School (38435-36539)',51.421387,-0.320234,'School'),new Array('St Agatha`s Catholic Primary School (38519-36623)',51.42221,-0.293163,'School'),new Array('St Agatha Church (61052-65603)',51.420241,-0.291309,'ParishChurch'),new Array('St Joseph`s Catholic Primary School (38521-36625)',51.40855,-0.29498,'School'),new Array('St Thomas Aquinas Church (61274-65716)',51.4400518,-0.3149655,'ParishChurch'),new Array('St Raphael Church (61048-65601)',51.395031,-0.310289,'ParishChurch'),new Array('St James`s Catholic Primary School (38437-36541)',51.437072,-0.347599,'School'),new Array('St James Church (40822-38201)',51.441989,-0.337248,'ParishChurch'),new Array('St Francis De Sales Church (40574-38077)',51.43037,-0.353135,'ParishChurch'),new Array('St Catherine`s School School (38438-36542)',51.443198,-0.330571,'School'),new Array('Holy Cross Preparatory School (38525-36629)',51.41811,-0.273512,'School'),new Array('An Grianan N S (70475-73772)',51.44548469999999,-0.334528599999999,'School'),new Array('St Pius X Church (61050-65602)',51.4089059,-0.273654899999997,'ParishChurch'),new Array('St Ann Church (61054-65604)',51.428073,-0.272245,'ParishChurch'),new Array('St Barnabas (34879-33741)',51.403466,-0.357724,'ParishChurch'),new Array('Marymount International Catholic For Girls School (38526-36630)',51.417456,-0.268848,'School'),new Array('St Theodore Of Canterbury Church (40576-38078)',51.415631,-0.36852,'ParishChurch'),new Array('Community House (71058-75307)',51.398594,-0.3579745,'Other'),new Array('Corpus Christi Catholic Primary School (38520-36624)',51.404401,-0.267774,'School'),new Array('House of Prayer (71082-75069)',51.3992432,-0.3601896,'Other'),new Array('St Alban`s Catholic Primary School (38775-36881)',51.399027,-0.362469,'School'),new Array('St. Paul`s School (33302-33038)',51.388704,-0.347071,'School'),new Array('Our Lady of Lourdes (34941-33772)',51.388704,-0.347071,'ParishChurch'),new Array('St Margaret Of Scotland Church (40784-38182)',51.455927,-0.320204,'ParishChurch'),new Array('St Joseph Church (61230-65694)',51.400615,-0.261664,'ParishChurch'),new Array('The Holy Cross Catholic Convent For Girls School (38524-36628)',51.397976,-0.26139,'School'),new Array('St Elizabeth`s Catholic Primary School (38558-36662)',51.455684,-0.292217,'School'),new Array('St Elizabeth Church (61272-65715)',51.457828,-0.302386,'ParishChurch'),new Array('Our Lady Immaculate Church (61234-65696)',51.382459,-0.28362,'ParishChurch'),new Array('Our Lady Immaculate Catholic Primary School (38522-36626)',51.382459,-0.28362,'School'),new Array('St Edmund Of Canterbury Church (40870-38225)',51.452754,-0.36036,'ParishChurch'),new Array('St Edmund`s Catholic Primary School (38436-36540)',51.452754,-0.36036,'School'),new Array('Richard Challoner Catholic Secondary For Boys School (38523-36627)',51.385144,-0.264406,'School'),new Array('Our Lady Queen of Peace Church (61094-65624)',51.462562,-0.285324,'ParishChurch'),new Array('Gumley House Convent School (38258-36362)',51.469083,-0.330303,'School'),new Array('St Mary`s Catholic Primary School (38417-36521)',51.469379,-0.32711,'School'),new Array('Sacred Heart School Mass Centre (65149-65660)',51.400528,-0.24016,'School'),new Array('Sacred Heart Catholic Primary School (39064-37170)',51.400528,-0.24016,'School'),new Array('Our Lady Of Sorrows And St Bridget Church (40638-38109)',51.470151,-0.328263,'ParishChurch'),new Array('St Joseph Church (60982-65567)',51.449136,-0.239817,'ParishChurch'),new Array('Wimbledon College Preparatory School (38555-36659)',51.41842,-0.223279,'School'),new Array('Wimbledon College School (38553-36657)',51.419238,-0.221507,'School'),new Array('Ursuline Convent Preparatory School (38554-36658)',51.416222,-0.221854,'School'),new Array('Ursuline High School (38552-36656)',51.41406,-0.222757,'School'),new Array('St Mary Magdalen Church (60980-65566)',51.467919,-0.262577,'ParishChurch'),new Array('St John Fisher RC Primary School (39065-37171)',51.39664,-0.228004,'School'),new Array('St Catherine of Siena Church (61236-65697)',51.359779,-0.310811,'ParishChurch'),new Array('Parish Office (71225-33705)',51.36319289999999,-0.3553175,'Other'),new Array('The Sacred Heart Church (61164-65660)',51.417745,-0.220256,'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';
}
//