strList="
Our Lady Star of the Sea (0 miles)
Zoom on map | View full information
Our Lady Star of the Sea (0 miles)
Zoom on map | View full information
Bethany Community House (0.4 miles)
Zoom on map | View full information
St Joseph (0.9 miles)
Zoom on map | View full information
St Joseph (0.9 miles)
Zoom on map | View full information
St. Wilfrid`s School (1.5 miles)
Zoom on map | View full information
Chatsmore Catholic High School (2.1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady Star of the Sea (34791-33697)',50.809381,-0.479861,'ParishChurch'),new Array('Our Lady Star of the Sea (34749-33676)',50.809381,-0.479861,'ParishChurch'),new Array('Bethany Community House (71065-75028)',50.8152261,-0.4806175,'Other'),new Array('St Joseph (34913-33735)',50.8131114,-0.5005387,'ParishChurch'),new Array('St Joseph (34913-33758)',50.8131114,-0.5005387,'ParishChurch'),new Array('St. Wilfrid`s School (33280-33016)',50.830784,-0.48601,'School'),new Array('Chatsmore Catholic High School (38790-36896)',50.816072,-0.433635,'School'),new Array('English Martyrs (65956-70932)',50.815115,-0.4253885,'ParishChurch'),new Array('St Catherine (34867-33735)',50.8056542,-0.538681900000029,'ParishChurch'),new Array('St Catherine`s Catholic School (38784-36890)',50.816746,-0.53967,'School'),new Array('English Martyrs School (33295-33031)',50.826344,-0.41381,'School'),new Array('Convent of Poor Clares (65162-70856)',50.846554,-0.539308,'Other'),new Array('St Michael (34967-33785)',50.842464,-0.404855,'ParishChurch'),new Array('St Mary of The Angels (34963-33783)',50.812549,-0.378521,'ParishChurch'),new Array('St. Mary`s School (33306-33042)',50.81486,-0.379094,'School'),new Array('St. Philip`s School (33281-33017)',50.856182,-0.561541,'School'),new Array('Cathedral of Our Lady and St Philip Howard (65160-70856)',50.857076,-0.56103,'Cathedral'),new Array('St Charles Borromeo (65952-33784)',50.820506,-0.357177,'Church'),new Array('The Holy Family (36468-34567)',50.830126,-0.322162,'Church'),new Array('The Holy Family (34989-33807)',50.830126,-0.322162,'Church'),new Array('Parish Office (71224-33784)',50.8300693,-0.3228578,'Other'),new Array('The Holy Family (34965-33784)',50.830126,-0.322162,'ParishChurch'),new Array('The Priory (71066-75029)',50.915977,-0.4596978,'Other'),new Array('St Philip Howard Catholic High School (38793-36899)',50.833628,-0.644954,'School'),new Array('Our Lady of England (34931-33767)',50.916562,-0.459342,'ParishChurch'),new Array('St Richard (34757-33684)',50.867953,-0.637096,'ParishChurch'),new Array('St Juliana`s Convent (71078-75065)',50.7855672,-0.6650138,'Other'),new Array('Christ the King (35001-33819)',50.884116,-0.326834,'Church'),new Array('Christ the King (65971-33675)',50.884116,-0.326834,'Church'),new Array('Our Lady of Sorrows (34765-33684)',50.784073,-0.669666,'ParishChurch'),new Array('St. Mary`s School (33284-33020)',50.785526,-0.67171,'School'),new Array('St Peter (36479-34578)',50.83341,-0.276601,'Church'),new Array('St Peter (65976-70939)',50.83341,-0.276601,'Church'),new Array('St Peter (65970-33675)',50.833704,-0.277669,'Church'),new Array('The Towers Convent (65972-33675)',50.878329,-0.29358,'Other'),new Array('The Blessed Sacrament (35002-33820)',50.878329,-0.29358,'Church'),new Array('St Peter`s Catholic Primary School (38785-36891)',50.837146,-0.263567,'School'),new Array('The Towers (71079-75067)',50.8778057,-0.2860822,'Other'),new Array('St Anthony of Viareggio (34907-33684)',50.7843807,-0.714721,'ParishChurch'),new Array('St Theresa of Lisieux (34927-33765)',50.8407784,-0.235891700000025,'ParishChurch'),new Array('St. Mary`s School (33301-33037)',50.832265,-0.213633,'School'),new Array('St Anthony and St George (65949-33748)',50.95151,-0.630553,'Other'),new Array('Convent of the Blessed Sacrament (71080-75415)',50.9281187,-0.2726942,'Other'),new Array('Corpus Christi (36470-34569)',50.931564,-0.276135,'Church'),new Array('Corpus Christi (34991-75414)',50.931564,-0.276135,'Church'),new Array('St Peter (34853-33728)',50.833526,-0.184671,'ParishChurch'),new Array('St. Richard`s School (33288-33024)',50.832699,-0.776549,'School'),new Array('St Richard of Chichester (65164-70860)',50.832699,-0.776549,'ParishChurch'),new Array('St George (34855-33765)',50.846445,-0.182621,'ParishChurch'),new Array('St George (34855-33729)',50.846445,-0.182621,'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';
}
//