strList="
St Francis Of Assisi Church (0 miles)
Zoom on map | View full information
St Peter`s Church (3.5 miles)
Zoom on map | View full information
St Bernard Church (5.3 miles)
Zoom on map | View full information
Our Lady Queen Of Peace Church (5.9 miles)
Zoom on map | View full information
St Francis Catholic Primary School (5.9 miles)
Zoom on map | View full information
St Mary Church (6.6 miles)
Zoom on map | View full information
Our Lady & St. John The Evangelist Church (7.6 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Francis Of Assisi Church (39318-37404)',51.943963,0.644112,'ParishChurch'),new Array('St Peter`s Church (39462-37404)',51.978543,0.584504,'ParishChurch'),new Array('St Bernard Church (39264-37427)',51.871914,0.685617,'ParishChurch'),new Array('Our Lady Queen Of Peace Church (39232-37334)',51.879219,0.555524,'ParishChurch'),new Array('St Francis Catholic Primary School (38826-36932)',51.883154,0.546592,'School'),new Array('St Mary Church (39398-37487)',51.849575,0.629077,'ParishChurch'),new Array('Our Lady and St. John The Evangelist Church (42779-45242)',52.041237,0.726676,'ParishChurch'),new Array('St Joseph`s Roman Catholic Primary School (38849-36955)',52.041908,0.726819,'School'),new Array('St Mary Immaculate And The Holy Archangels Church (39358-37427)',51.833759,0.69567,'ParishChurch'),new Array('St John Houghton (39425-37427)',51.833759,0.69567,'Church'),new Array('The Holy Spirit Church (39310-37400)',51.946748,0.440689,'ParishChurch'),new Array('Clare Oratory (65968-45249)',52.074055,0.578431,'Other'),new Array('Mother Of Good Counsel Church (42793-45249)',52.074055,0.578431,'ParishChurch'),new Array('St Teresa Of Lisieux Church (39364-37430)',51.886236,0.845301,'ParishChurch'),new Array('St Teresa`s Catholic Primary School (38822-36928)',51.884071,0.852203,'School'),new Array('Cavendish United Reformed Church (42733-45215)',52.087154,0.639886,'Other'),new Array('The Holy Family And All Saints Church (39446-37487)',51.799533,0.638899,'ParishChurch'),new Array('The Sacred Heart Church (42773-45238)',51.971607,0.87541,'ParishChurch'),new Array('Holy Family (36489-34588)',51.79128,0.629948,'School'),new Array('St Benedict`s College (36496-34595)',51.885157,0.87522,'School'),new Array('St John The Baptist Church (39366-37430)',51.871785,0.871824,'ParishChurch'),new Array('St Joseph Church (39268-37367)',51.921955,0.91664,'ParishChurch'),new Array('St James The Less And St Helen Church (39266-37364)',51.888624,0.908304,'ParishChurch'),new Array('St Thomas More`s (36492-34591)',51.888624,0.908304,'School'),new Array('St Theodore Of Canterbury Church (39272-37369)',51.864351,0.903904,'ParishChurch'),new Array('Our Lady Immaculate and St. Edmund Church (42795-45250)',51.995814,0.928798,'ParishChurch'),new Array('Our Lady Immaculate and St Edmund King and Martyr Parish Church (5665-77748)',51.995814,0.928798,'ParishChurch'),new Array('The English Martyrs Church (39420-37400)',51.952291,0.344092,'ParishChurch'),new Array('Our Lady And St Anne Line Church (39290-37381)',51.872761,0.365144,'ParishChurch'),new Array('St John Payne Church (39312-37401)',51.889751,0.935324,'ParishChurch'),new Array('St Felix Catholic Primary School (36893-34993)',52.082656,0.421432,'School'),new Array('St Felix Church (42749-45224)',52.084307,0.423332,'ParishChurch'),new Array('New Hall School (36515-34614)',51.76421,0.51073,'School'),new Array('New Hall Preparatory School (36508-34607)',51.76421,0.51073,'School'),new Array('New Hall School (36515-78138)',51.76421,0.51073,'School'),new Array('University Of Essex Chaplaincy (39470-37501)',51.876558,0.945028,'Other'),new Array('St Mary The Virgin Church (39458-37401)',51.927073,0.985096,'ParishChurch'),new Array('The Bishops` (36513-34612)',51.751605,0.499628,'School'),new Array('St Francis (36512-34611)',51.732865,0.672337,'School'),new Array('St Augustine Of Canterbury Church (39406-37347)',51.751146,0.497545,'ParishChurch'),new Array('Assumption Of Our Lady Church (39372-37435)',51.730671,0.684967,'ParishChurch'),new Array('St Joseph Church (43780-45242)',52.046474,0.959008,'ParishChurch'),new Array('Catholic Church, Hadleigh Parish Church (30752-31594)',52.046474,0.959008,'ParishChurch'),new Array('St Joseph Church (42745-45222)',52.046474,0.959008,'ParishChurch'),new Array('Saint John Payne Rc School (38827-36933)',51.751847,0.463041,'School'),new Array('St John Payne Comprehensive School (36516-34615)',51.75248,0.460757,'School'),new Array('St Pius X (36510-34609)',51.74972,0.460708,'School'),new Array('Our Lady Immaculate and St. Joseph Church (42735-45216)',52.168992,0.713819,'ParishChurch'),new Array('Our Lady Immaculate and St. Joseph Church (43775-45213)',52.168992,0.713819,'ParishChurch'),new Array('The Blessed Sacrament Church (39250-37349)',51.748332,0.444493,'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';
}
//