strList="
St Peter & All Souls Church (0.1 miles)
Zoom on map | View full information
The Assumption of Our Lady (0.4 miles)
Zoom on map | View full information
Immaculate Conception and St John of Beverley (0.4 miles)
Zoom on map | View full information
Maternity Hospital (0.7 miles)
Zoom on map | View full information
Peterborough District Hospital (0.7 miles)
Zoom on map | View full information
St John Fisher Catholic (VA) Secondary School (0.8 miles)
Zoom on map | View full information
St Thomas More Catholic Primary School (0.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Peter and All Souls Church (42622-45149)',52.576412,-0.243714,'ParishChurch'),new Array('The Assumption of Our Lady (62975-66744)',52.582753,-0.246614,'Church'),new Array('Immaculate Conception and St John of Beverley (63001-66740)',52.582753,-0.246614,'Church'),new Array('Maternity Hospital (36969-35069)',52.57324,-0.255455,'Other'),new Array('Peterborough District Hospital (36968-35068)',52.57324,-0.255455,'Other'),new Array('St John Fisher Catholic (VA) Secondary School (36909-35009)',52.581452,-0.222376,'School'),new Array('St Thomas More Catholic Primary School (36908-35008)',52.581234,-0.221072,'School'),new Array('HMP Peterborough (36990-35090)',52.586527,-0.260197,'Other'),new Array('Our Lady Of Lourdes Church (42626-45152)',52.597523,-0.237746,'ParishChurch'),new Array('Our Lady of Lourdes (30756-45149)',52.597523,-0.237746,'Church'),new Array('Edith Cavell Hospital (36970-35070)',52.58394,-0.279473,'Other'),new Array('Sacred Heart and St. Oswald Church (42624-45151)',52.600102,-0.263808,'ParishChurch'),new Array('Sacred Heart Catholic Primary School (36912-35012)',52.587033,-0.283161,'School'),new Array('Sacred Heart Catholic Primary School (36912-45151)',52.587033,-0.283161,'School'),new Array('Fitzwilliam Hospital (private hospital) (36971-35071)',52.576694,-0.297556,'Other'),new Array('St. Luke Church (42628-45154)',52.547469,-0.27916,'ParishChurch'),new Array('St Jude The Apostle Church (42638-45159)',52.555551,-0.126301,'ParishChurch'),new Array('Our Lady of Lincoln and St Guthlac Church (55976-62144)',52.6733,-0.291288,'Other'),new Array('Our Lady of Lincoln and St Guthlac Church (55976-62124)',52.6733,-0.291288,'Other'),new Array('St. Benedict`s Community (42618-45147)',52.438706,-0.286682,'ParishChurch'),new Array('St Benedict`s (43716-45154)',52.43655150000001,-0.2830975,'Other'),new Array('Sacred Heart Of Jesus Church (43725-45159)',52.450969,-0.106225,'ParishChurch'),new Array('Sacred Heart Of Jesus Church (42636-45158)',52.450969,-0.106225,'ParishChurch'),new Array('St Mary and St Augustine Church (56072-62291)',52.653656,-0.478021,'ParishChurch'),new Array('St Augustine`s Catholic Primary School (37858-35962)',52.66244,-0.476636,'School'),new Array('Most Holy Name of Jesus Church (49631-56072)',52.480797,-0.475526,'ParishChurch'),new Array('Franciscan Missionaries of Mary (36925-35025)',52.552557,0.086999,'Other'),new Array('All Saints Inter-Church Primary School (36901-35001)',52.55736,0.089986,'School'),new Array('Our Lady Of Good Counsel and St Peter Church (42608-45141)',52.55366859999999,0.0931252,'ParishChurch'),new Array('Laxton Hall Chapel (49565-56029)',52.563525,-0.574752,'ParishChurch'),new Array('St Gilbert Church (55959-62124)',52.771431,-0.379564,'ParishChurch'),new Array('Ss. Peter and Paul (Anglican Church) Church (42600-45134)',52.455921,0.049265,'ParishChurch'),new Array('RAF Alconbury Church (42785-45245)',52.363632,-0.223422,'ParishChurch'),new Array('Immaculate Conception and St Norbert Church (56070-62288)',52.785466,-0.156669,'ParishChurch'),new Array('St Norbert`s Catholic Primary School (38915-37021)',52.788215,-0.16118,'School'),new Array('St Norbert`s Catholic Primary School (37857-35961)',52.809714,-0.172357,'School'),new Array('Hinchingbrooke Hospital (36952-35052)',52.33335,-0.202679,'Other'),new Array('St Michael The Archangel Church (42604-45138)',52.332234,-0.172695,'ParishChurch'),new Array('St Paul The Apostle Church (49655-56088)',52.3975732,-0.5327674,'ParishChurch'),new Array('St Thomas More Chapel (49635-56088)',52.397349,-0.533461,'ParishChurch'),new Array('Our Lady of Mount Carmel Church (55971-62138)',52.754483,-0.537944,'ParishChurch'),new Array('Our Lady and St. Charles Borromeo Church (42620-45148)',52.660265,0.16071,'ParishChurch'),new Array('North Cambridge Hospital (36978-35078)',52.665012,0.164198,'Other'),new Array('Sacred Heart Church (42612-45144)',52.327212,-0.066212,'ParishChurch'),new Array('St Thomas of Canterbury Church (55991-62167)',52.6961526,-0.6452592,'ParishChurch'),new Array('Sacred Heart Church (43713-45144)',52.327212,-0.066212,'ParishChurch'),new Array('Holy Trinity Church (56005-62187)',52.805736,0.029239,'ParishChurch'),new Array('St. Hugh of Lincoln Church (5555-74275)',52.29597219999999,-0.253568599999994,'Church'),new Array('St. Hugh of Lincoln Church (5555-2597)',52.29597219999999,-0.253568599999994,'Church'),new Array('St Joseph`s Polish Church (71361-75832)',52.4966984,-0.687284,'Church'));
// 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';
}
//