strList="
St Mary`s (C of E) (0 miles)
Zoom on map | View full information
St Theresa of the Infant Jesus Church (1.4 miles)
Zoom on map | View full information
All Saints (2.6 miles)
Zoom on map | View full information
St John the Baptist Church (2.6 miles)
Zoom on map | View full information
All Saints (2.6 miles)
Zoom on map | View full information
Woldingham School (3.8 miles)
Zoom on map | View full information
St Ambrose (3.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Mary`s (C of E) (34939-33771)',51.290521,0.032493,'ParishChurch'),new Array('St Theresa of the Infant Jesus Church (61260-65709)',51.310052,0.037776,'ParishChurch'),new Array('All Saints (36476-34575)',51.261882,-0.005951,'ParishChurch'),new Array('St John the Baptist Church (61090-65622)',51.265093,0.077787,'ParishChurch'),new Array('All Saints (36476-33745)',51.261882,-0.005951,'ParishChurch'),new Array('Woldingham School (38749-36855)',51.276323,-0.051738,'School'),new Array('St Ambrose (34996-33814)',51.307486,-0.052987,'Church'),new Array('St Ambrose (36475-33745)',51.307486,-0.052987,'Church'),new Array('Combe Bank School (39071-37177)',51.282306,0.122387,'School'),new Array('Good Shepherd Church (61000-65577)',51.352799,-0.020691,'ParishChurch'),new Array('Good Shepherd Catholic Primary School (38492-36596)',51.352799,-0.020691,'School'),new Array('St Thomas of Canterbury (36486-34585)',51.30838,-0.078761,'Church'),new Array('St Thomas of Canterbury (35007-33825)',51.30838,-0.078761,'Church'),new Array('The Sacred Heart (34787-33695)',51.2878629,-0.0864322,'ParishChurch'),new Array('St Francis Catholic Primary School (38765-36871)',51.296686,-0.087941,'School'),new Array('Daughters of Mary and Joseph Convent (65145-65574)',51.363825,-0.004299,'Other'),new Array('St Michael and All Angels Church (61174-65665)',51.367424,0.054904,'ParishChurch'),new Array('The Holy Family Church (61012-65583)',51.330669,-0.0747,'ParishChurch'),new Array('Holy Innocents Catholic Primary School (38485-36589)',51.366114,0.08125,'School'),new Array('St Columba Church (61010-65582)',51.346157,-0.064473,'ParishChurch'),new Array('Holy Innocents Church (61176-65666)',51.364239,0.091077,'ParishChurch'),new Array('Our Lady of the Rosary Church (60990-65571)',51.375868,0.016658,'ParishChurch'),new Array('St Mark Church (60996-65574)',51.376682,-0.019992,'ParishChurch'),new Array('St Lawrence Church (61082-65618)',51.198255,0.064128,'ParishChurch'),new Array('St Mary Help of Christians Church (61189-65673)',51.30183,-0.118485,'ParishChurch'),new Array('Coloma Convent Girls` School (38499-36603)',51.369335,-0.052232,'School'),new Array('St Thomas of Canterbury Church (61088-65621)',51.272507,0.186681,'ParishChurch'),new Array('St James Church (60998-65576)',51.388052,0.069324,'ParishChurch'),new Array('St John the Baptist Church (61195-65676)',51.332589,-0.113092,'ParishChurch'),new Array('St Thomas Catholic Primary School (38615-36719)',51.270724,0.188245,'School'),new Array('St Gertrude Church (61008-65581)',51.351174,-0.097924,'ParishChurch'),new Array('St James Catholic Primary School (38482-36586)',51.389382,0.066323,'School'),new Array('St Philomena`s Catholic Primary School (38483-36587)',51.382283,0.115368,'School'),new Array('St Swithin Church (60992-65572)',51.396116,0.035072,'ParishChurch'),new Array('Regina Coeli Catholic Primary School (38494-36598)',51.355893,-0.106116,'School'),new Array('Our Lady of the Annunciation Church (61006-65580)',51.380737,-0.065184,'ParishChurch'),new Array('St Joseph`s Parish Office (65146-65664)',51.387048,0.113461,'Other'),new Array('Our Lady of the Crays Church (61172-65664)',51.387048,0.113461,'ParishChurch'),new Array('Margaret Roper Catholic Primary School (38493-36597)',51.344061,-0.120173,'School'),new Array('Thomas More Catholic Secondary School (38501-36605)',51.344061,-0.120173,'School'),new Array('Holy Ghost Fathers Chapel (65144-65569)',51.403326,0.047556,'Other'),new Array('St Dominic Church (61004-65579)',51.360366,-0.107972,'ParishChurch'),new Array('St Teresa of the Child Jesus (34873-33752)',51.257819,-0.144403,'ParishChurch'),new Array('St Teresa of the Child Jesus (34873-33738)',51.257819,-0.144403,'ParishChurch'),new Array('Laleham Lea Preparatory School (38503-36607)',51.344178,-0.134269,'School'),new Array('St Aidan`s Catholic Primary School (38491-36595)',51.314728,-0.151378,'School'),new Array('St Thomas Becket Catholic Primary School (38490-36594)',51.389162,-0.070592,'School'),new Array('The John Fisher Catholic Boys School (38581-36685)',51.345493,-0.133857,'School'),new Array('Bishop Challoner Catholic Secondary School (38487-36591)',51.406891,-0.003704,'School'),new Array('St Aidan Church (61191-65674)',51.318124,-0.15226,'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';
}
//