strList="
Holy Cross Church (0 miles)
Zoom on map | View full information
St JohnBosco Catholic Primary Teaching School Aillance (0.9 miles)
Zoom on map | View full information
Stuart Bathurst School (1.5 miles)
Zoom on map | View full information
St Mary on the Hill Church (1.6 miles)
Zoom on map | View full information
St Mary`s School (1.6 miles)
Zoom on map | View full information
St Joseph`s Church (1.7 miles)
Zoom on map | View full information
St Michael and the Holy Angels Church (1.9 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Holy Cross Church (36172-34418)',52.545866,-1.985845,'ParishChurch'),new Array('St JohnBosco Catholic Primary Teaching School Aillance (36670-34769)',52.538091,-2.001755,'School'),new Array('Stuart Bathurst School (36677-34776)',52.56346,-2.005562,'School'),new Array('St Mary on the Hill Church (36398-34531)',52.556896,-2.018836,'ParishChurch'),new Array('St Mary`s School (36671-34770)',52.557831,-2.018896,'School'),new Array('St Joseph`s Church (65104-34418)',52.561142,-1.955422,'Church'),new Array('St Michael and the Holy Angels Church (36334-34499)',52.519203,-1.995506,'ParishChurch'),new Array('Holy Name of Jesus Church (35970-34316)',52.547217,-1.936222,'ParishChurch'),new Array('Holy Name School (36672-34771)',52.547217,-1.936222,'School'),new Array('St Mary`s The Mount School (36689-34788)',52.576187,-1.970798,'School'),new Array('St Mary Church (36330-34497)',52.580153,-1.982853,'ParishChurch'),new Array('St Mark`s School (36627-34726)',52.53469,-1.929016,'School'),new Array('St John Wall School (36823-34922)',52.516056,-1.951519,'School'),new Array('St Joseph Church (36444-34554)',52.569047,-2.034584,'ParishChurch'),new Array('St Augustine of England Church (36235-34450)',52.514579,-1.944639,'ParishChurch'),new Array('St Augustine`s School (36595-34694)',52.514579,-1.944639,'School'),new Array('St Joseph`s School (36692-34791)',52.573154,-2.038615,'School'),new Array('St Patrick Church (36288-34476)',52.589809,-1.985978,'ParishChurch'),new Array('St Francis Xavier School (36673-34772)',52.504981,-2.012199,'School'),new Array('St Patrick`s School (36690-34789)',52.589809,-1.985978,'School'),new Array('St Francis Xavier Church (36045-34354)',52.503299,-2.012817,'ParishChurch'),new Array('St Teresa`s School (36616-34715)',52.516948,-1.921927,'School'),new Array('Sacred Heart and Holy Souls Church (36140-34402)',52.527162,-2.060464,'ParishChurch'),new Array('Our Blessed Lady and St Thomas of Canterbury Church (36106-34385)',52.5271195,-2.0668108,'ParishChurch'),new Array('Holy Trinity Church (36039-34351)',52.564206,-2.06677,'ParishChurch'),new Array('St Thomas More School (36699-34798)',52.57347,-2.057045,'School'),new Array('St Philip Neri Church (36390-34527)',52.494995,-1.958317,'ParishChurch'),new Array('St Philip`s School (36675-34774)',52.494995,-1.958317,'School'),new Array('Holy Trinity School (36705-34804)',52.567008,-2.070079,'School'),new Array('Saint Clare`s School (36633-34732)',52.509652,-1.913954,'School'),new Array('St Catherine with St Chad`s Church (36287-34476)',52.600183,-2.009273,'ParishChurch'),new Array('St John Fisher Church (36051-34357)',52.547639,-2.079058,'ParishChurch'),new Array('Maryvale School (36590-34689)',52.548083,-1.891051,'School'),new Array('Our Lady of the Assumption Church (35984-34323)',52.547857,-1.889975,'ParishChurch'),new Array('St Teresa Church (35988-34325)',52.516136,-1.904982,'ParishChurch'),new Array('St Mary Church (36237-34451)',52.588025,-2.055721,'ParishChurch'),new Array('St Thomas of Canterbury Church (36055-34359)',52.604659,-1.978074,'ParishChurch'),new Array('St Thomas of Canterbury School (36693-34792)',52.604659,-1.978074,'School'),new Array('Cardinal Wiseman College School (36820-34919)',52.549211,-1.886196,'School'),new Array('Sacred Heart School (36634-34733)',52.509525,-1.901504,'School'),new Array('St Joseph`s School (36664-34763)',52.511072,-2.072111,'School'),new Array('St Francis Church (35974-34318)',52.498901,-1.915507,'ParishChurch'),new Array('Christ the King School (36587-34686)',52.543208,-1.87906,'School'),new Array('Christ the King Church (35980-34321)',52.543208,-1.87906,'ParishChurch'),new Array('Birmingham City Hospital Chapel (65116-34314)',52.489821,-1.929427,'Other'),new Array('St Francis School (36601-34700)',52.497749,-1.914213,'School'),new Array('English Martyrs Church (36285-34475)',52.485775,-2.029305,'ParishChurch'),new Array('St Anne`s School (36696-34795)',52.580096,-1.891695,'School'),new Array('St Anne Church (36340-34502)',52.576693,-1.886347,'ParishChurch'),new Array('St Patrick Church (35966-34314)',52.486667,-1.93195,'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';
}
//