strList="
Holy Family (0 miles)
Zoom on map | View full information
Holy Family Catholic Primary School (0.2 miles)
Zoom on map | View full information
St Vincent`s (1.1 miles)
Zoom on map | View full information
St Marie on the Sands (1.1 miles)
Zoom on map | View full information
Santa Barbara (1.1 miles)
Zoom on map | View full information
St Louise (1.2 miles)
Zoom on map | View full information
St Patrick (1.3 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Holy Family (52805-57691)',53.645588,-2.97898,'ParishChurch'),new Array('Holy Family Catholic Primary School (37480-35584)',53.648924,-2.978876,'School'),new Array('St Vincent`s (72434-77282)',53.6543365,-3.0012255,'Other'),new Array('St Marie on the Sands (52819-57698)',53.652649,-3.002323,'ParishChurch'),new Array('Santa Barbara (72435-77285)',53.6569886,-2.9968549,'Other'),new Array('St Louise (72436-77286)',53.65841289999999,-2.9974484,'Other'),new Array('St Patrick (52821-57699)',53.663578,-2.967471,'ParishChurch'),new Array('St Patrick`s RC Primary School (37483-35587)',53.663079,-2.970214,'School'),new Array('St Teresa of Avila (52823-57700)',53.633345,-3.008323,'ParishChurch'),new Array('St Teresa`s Parish House (52822-57700)',53.633345,-3.008323,'Other'),new Array('St Joseph (72515-57693)',53.6357887,-3.0156074,'ParishChurch'),new Array('Christ The King Rc School (37623-35727)',53.625539,-3.002376,'School'),new Array('Convent of Notre Dame (72462-77314)',53.6374214,-3.0212579,'Other'),new Array('Sacred Heart (52811-57694)',53.623306,-3.008201,'ParishChurch'),new Array('Our Lady of Lourdes (52809-57693)',53.623306,-3.008201,'ParishChurch'),new Array('Our Lady Of Lourdes Catholic Primary School (37481-35585)',53.620378,-3.012081,'School'),new Array('St Mary`s RC Primary School (37565-35669)',53.612282,-2.919348,'School'),new Array('St Elizabeth (52885-77171)',53.612282,-2.919348,'ParishChurch'),new Array('St John Stone (52817-57694)',53.593168,-3.037433,'ParishChurch'),new Array('St Mary`s Public Oratory (52879-57733)',53.560445,-2.921185,'ParishChurch'),new Array('St Mary`s Public Oratory (52879-57728)',53.560445,-2.921185,'ParishChurch'),new Array('St Anne (52883-57730)',53.560445,-2.921185,'ParishChurch'),new Array('Clarence House Rc School (37658-35762)',53.570914,-3.065897,'School'),new Array('St Peter Church (62099-66150)',53.737557,-2.958088,'ParishChurch'),new Array('St Anne`s Catholic Primary School (37564-35668)',53.564279,-2.892609,'School'),new Array('St Bede`s Catholic High School (37640-35744)',53.56339,-2.893708,'School'),new Array('St John`s Catholic Primary School (37563-35667)',53.591458,-2.844579,'School'),new Array('The Gild Hall (72607-57692)',53.560177,-3.0570184,'Other'),new Array('Our Lady`s Parish House (74023-57701)',53.6888285,-2.8333376,'Other'),new Array('St John the Evangelist (52890-57734)',53.59159469999999,-2.8440669,'ParishChurch'),new Array('Our Lady Help of Christians (52825-57701)',53.688829,-2.833338,'ParishChurch'),new Array('Our Lady Of Compassion Catholic Primary School (37505-35609)',53.557395,-3.050566,'School'),new Array('Herbert House (72425-77293)',53.56536430000001,-3.0740741,'Other'),new Array('Herbert House (72425-77233)',53.56536430000001,-3.0740741,'Other'),new Array('St Joseph Church (62101-66151)',53.744426,-2.991026,'ParishChurch'),new Array('Pontville Residential School (37657-35761)',53.559836,-2.894146,'School'),new Array('St. Bedes Catholic High School (37200-35301)',53.743758,-2.954832,'School'),new Array('Our Lady of Compassion (52807-57692)',53.557426,-3.058342,'ParishChurch'),new Array('St. Peters Catholic Primary School (37201-35302)',53.745226,-2.95667,'School'),new Array('St Joseph`s Convent (72449-77301)',53.5603948,-3.0927898,'Other'),new Array('St Jerome`s Catholic Primary School (37503-35607)',53.55609,-3.080982,'School'),new Array('Our Lady Star of the Sea, St. Annes School (37203-35304)',53.752756,-3.018006,'School'),new Array('Our Lady Star of the Sea Church (62163-66182)',53.754309,-3.026689,'ParishChurch'),new Array('Holy Family Catholic Primary , Warton School (37204-35305)',53.748991,-2.897537,'School'),new Array('Holy Family Church (62137-66169)',53.750738,-2.887459,'ParishChurch'),new Array('St Gregory`s Catholic Primary School (37501-35605)',53.52798,-2.94558,'School'),new Array('The Holy Family (52787-57682)',53.530633,-3.031402,'ParishChurch'),new Array('St Alban Church (62161-66181)',53.763937,-3.021326,'ParishChurch'),new Array('St Gregory`s Parish House (52888-57733)',53.524553,-2.943513,'Other'),new Array('St Gregory the Great (52889-57733)',53.5245397,-2.9433843,'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';
}
//