strList="
St Teresa Of Lisieux Church (0 miles)
Zoom on map | View full information
St Teresa`s Catholic Primary School (0.3 miles)
Zoom on map | View full information
St Benedict`s College (1.3 miles)
Zoom on map | View full information
St John The Baptist Church (1.5 miles)
Zoom on map | View full information
St Thomas More`s (2.7 miles)
Zoom on map | View full information
St James The Less And St Helen Church (2.7 miles)
Zoom on map | View full information
St Theodore Of Canterbury Church (2.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(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('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 Thomas More`s (36492-34591)',51.888624,0.908304,'School'),new Array('St James The Less And St Helen Church (39266-37364)',51.888624,0.908304,'ParishChurch'),new Array('St Theodore Of Canterbury Church (39272-37369)',51.864351,0.903904,'ParishChurch'),new Array('St Joseph Church (39268-37367)',51.921955,0.91664,'ParishChurch'),new Array('St John Payne Church (39312-37401)',51.889751,0.935324,'ParishChurch'),new Array('University Of Essex Chaplaincy (39470-37501)',51.876558,0.945028,'Other'),new Array('The Sacred Heart Church (42773-45238)',51.971607,0.87541,'ParishChurch'),new Array('St Mary The Virgin Church (39458-37401)',51.927073,0.985096,'ParishChurch'),new Array('St Bernard Church (39264-37427)',51.871914,0.685617,'ParishChurch'),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('St Cedd And St Gregory Church (39270-37368)',51.778177,0.913951,'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('St Monica Church (39200-37336)',51.813568,1.028793,'ParishChurch'),new Array('St Sabinas Catholic Church (39234-37336)',51.811686,1.02681,'ParishChurch'),new Array('St Francis Of Assisi Church (39318-37404)',51.943963,0.644112,'ParishChurch'),new Array('St Mary Church (39398-37487)',51.849575,0.629077,'ParishChurch'),new Array('St Mary and St Michael Church (39460-37401)',51.942352,1.066251,'ParishChurch'),new Array('The Holy Family And All Saints Church (39446-37487)',51.799533,0.638899,'ParishChurch'),new Array('Holy Family Church (42727-45211)',51.965562,1.063628,'ParishChurch'),new Array('Holy Family (36489-34588)',51.79128,0.629948,'School'),new Array('St Joseph`s Roman Catholic Primary School (38849-36955)',52.041908,0.726819,'School'),new Array('Our Lady and St. John The Evangelist Church (42779-45242)',52.041237,0.726676,'ParishChurch'),new Array('St Joseph Church (42745-45222)',52.046474,0.959008,'ParishChurch'),new Array('Catholic Church, Hadleigh Parish Church (30752-31594)',52.046474,0.959008,'ParishChurch'),new Array('St Joseph Church (43780-45242)',52.046474,0.959008,'ParishChurch'),new Array('Our Lady Queen Of Peace Church (39232-37334)',51.879219,0.555524,'ParishChurch'),new Array('St Peter`s Church (39462-37404)',51.978543,0.584504,'ParishChurch'),new Array('St Francis Catholic Primary School (38826-36932)',51.883154,0.546592,'School'),new Array('Assumption Of Our Lady Church (39372-37435)',51.730671,0.684967,'ParishChurch'),new Array('St Francis (36512-34611)',51.732865,0.672337,'School'),new Array('St Clare`s (36490-34589)',51.801009,1.1305,'School'),new Array('St Clare`s Nursery School (36491-34590)',51.78622,1.14943,'School'),new Array('Our Lady Of Light And St Osyth Church (39260-37358)',51.790068,1.159198,'ParishChurch'),new Array('St. Mark Church (42759-45231)',52.046395,1.121959,'ParishChurch'),new Array('Cavendish United Reformed Church (42733-45215)',52.087154,0.639886,'Other'),new Array('St Joseph`s College (36897-34997)',52.043992,1.134875,'School'),new Array('St Mark`s Catholic Primary School (36894-34994)',52.047187,1.13243,'School'),new Array('New Hall Preparatory School (36508-34607)',51.76421,0.51073,'School'),new Array('New Hall School (36515-34614)',51.76421,0.51073,'School'),new Array('New Hall School (36515-78138)',51.76421,0.51073,'School'),new Array('Mother Of Good Counsel Church (42793-45249)',52.074055,0.578431,'ParishChurch'),new Array('Clare Oratory (65968-45249)',52.074055,0.578431,'Other'),new Array('Sacred Heart And St Francis Church (39302-37392)',51.835636,1.24523,'ParishChurch'),new Array('The Bishops` (36513-34612)',51.751605,0.499628,'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';
}
//