strList="
Sacred Heart Church (0 miles)
Zoom on map | View full information
Sacred Heart Church (0 miles)
Zoom on map | View full information
St Michael The Archangel Church (4.5 miles)
Zoom on map | View full information
Papworth Hospital (5.8 miles)
Zoom on map | View full information
Hinchingbrooke Hospital (5.8 miles)
Zoom on map | View full information
St John Fisher Community Centre (5.9 miles)
Zoom on map | View full information
Papworth Methodist Church (6.1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Sacred Heart Church (43713-45144)',52.327212,-0.066212,'ParishChurch'),new Array('Sacred Heart Church (42612-45144)',52.327212,-0.066212,'ParishChurch'),new Array('St Michael The Archangel Church (42604-45138)',52.332234,-0.172695,'ParishChurch'),new Array('Papworth Hospital (36972-35072)',52.24865,-0.115527,'Other'),new Array('Hinchingbrooke Hospital (36952-35052)',52.33335,-0.202679,'Other'),new Array('St John Fisher Community Centre (43812-45146)',52.2494296,-0.1215282,'Church'),new Array('Papworth Methodist Church (42610-45138)',52.2466057,-0.1224589,'Other'),new Array('Papworth Methodist Church (42610-45143)',52.2466057,-0.1224589,'Other'),new Array('Church Centre Bar Hill Church (42588-45125)',52.252973,0.01836,'ParishChurch'),new Array('RAF Alconbury Church (42785-45245)',52.363632,-0.223422,'ParishChurch'),new Array('The Ark Ecumenical Church (42809-45258)',52.21591,-0.06543,'ParishChurch'),new Array('St. Hugh of Lincoln Church (5555-2597)',52.29597219999999,-0.253568599999994,'Church'),new Array('St. Hugh of Lincoln Church (5555-74275)',52.29597219999999,-0.253568599999994,'Church'),new Array('Sacred Heart Of Jesus Church (42636-45158)',52.450969,-0.106225,'ParishChurch'),new Array('Sacred Heart Of Jesus Church (43725-45159)',52.450969,-0.106225,'ParishChurch'),new Array('Ss. Peter and Paul (Anglican Church) Church (42600-45134)',52.455921,0.049265,'ParishChurch'),new Array('St Laurence`s Catholic Primary School (36888-34988)',52.230838,0.119775,'School'),new Array('St Laurence`s Catholic Primary School (36888-45131)',52.230838,0.119775,'School'),new Array('St Joseph Church (42614-45145)',52.2292749,-0.2634032,'ParishChurch'),new Array('St Edmund`s College Chapel (42805-45128)',52.212908,0.109246,'ParishChurch'),new Array('Blackfriars Dominican Priory Of St Michael Church (43802-77749)',52.213753,0.109242,'ParishChurch'),new Array('Blackfriars Dominican Priory Of St Michael Church (43802-45128)',52.213753,0.109242,'ParishChurch'),new Array('St Joesph`s (5577-74275)',52.229381,-0.263841,'ParishChurch'),new Array('St Michael Church (42789-45247)',52.213753,0.109242,'ParishChurch'),new Array('Cambridge Lea (BUPA) (36946-35046)',52.228325,0.138593,'School'),new Array('Milton Hospice (Children) (36947-35047)',52.228325,0.138593,'School'),new Array('St. Laurence Church (42594-45131)',52.218331,0.129193,'ParishChurch'),new Array('Cambridge Polish Chaplaincy Church (42811-45133)',52.215784,0.131355,'ParishChurch'),new Array('Polonia House Chapel (43813-45259)',52.215784,0.131355,'ParishChurch'),new Array('Margaret Beaufort Institute (36999-35099)',52.197865,0.105197,'School'),new Array('Margaret Beaufort Institute Church (43803-45128)',52.197865,0.105197,'ParishChurch'),new Array('University Catholic Chaplaincy Parish Church (5561-45133)',52.204656,0.120153,'ParishChurch'),new Array('University Catholic Chaplaincy Church (42596-45132)',52.204656,0.120153,'ParishChurch'),new Array('St Benedict`s (43716-45154)',52.43655150000001,-0.2830975,'Other'),new Array('St. Mary`s Junior School (36992-35092)',52.196008,0.12299,'School'),new Array('Our Lady and The English Martyrs Church (42592-45128)',52.198458,0.127292,'ParishChurch'),new Array('St. Benedict`s Community (42618-45147)',52.438706,-0.286682,'ParishChurch'),new Array('St Mary`s School (36891-34991)',52.194911,0.125499,'School'),new Array('St Vincent De Paul Church (42787-45246)',52.21613,0.1686,'ParishChurch'),new Array('Our Lady Of Lourdes Church (42616-45146)',52.175237,0.126284,'ParishChurch'),new Array('St Alban`s Catholic Primary School (36887-34987)',52.175237,0.126284,'School'),new Array('Sisters of the Holy Family (36918-35018)',52.175237,0.126284,'School'),new Array('St Bede`s Inter-Church High School (36889-34989)',52.190526,0.162452,'School'),new Array('St Philip Howard Church (42598-45133)',52.187897,0.162119,'ParishChurch'),new Array('Fulbourn Hospital (36944-35044)',52.18581,0.162486,'Other'),new Array('Ida Darwin Hospital (36945-35045)',52.18581,0.162486,'Other'),new Array('St Etheldreda Church (42602-45137)',52.401678,0.261571,'ParishChurch'),new Array('St Jude The Apostle Church (42638-45159)',52.555551,-0.126301,'ParishChurch'),new Array('Franciscan Missionaries of Mary (36925-35025)',52.552557,0.086999,'Other'),new Array('Our Lady Of Good Counsel and St Peter Church (42608-45141)',52.55366859999999,0.0931252,'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';
}
//