strList="
St Anne and St Mary Magdalen (0 miles)
Zoom on map | View full information
St Peter`s Anglican Church (21.7 miles)
Zoom on map | View full information
Our Lady Star of the Sea (23 miles)
Zoom on map | View full information
St Mary & St Michael Catholic Primary School (23 miles)
Zoom on map | View full information
Notre Dame du Rosaire School (24.3 miles)
Zoom on map | View full information
Notre Dame du Rosaire (24.3 miles)
Zoom on map | View full information
St Joseph & St Mary (24.8 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Anne and St Mary Magdalen (790-9773)',49.7241394,-2.1773613,'ParishChurch'),new Array('St Peter`s Anglican Church (66494-9809)',49.4326,-2.3574,'Other'),new Array('Our Lady Star of the Sea (887-9809)',49.480113,-2.526835,'ParishChurch'),new Array('St Mary and St Michael Catholic Primary School (1153-10250)',49.480113,-2.526835,'School'),new Array('Notre Dame du Rosaire School (1154-10251)',49.4597339,-2.5331087,'School'),new Array('Notre Dame du Rosaire (891-9809)',49.4597339,-2.5331087,'Church'),new Array('St Joseph and St Mary (889-9809)',49.4518128,-2.538238,'Church'),new Array('Blanchelande College School (39105-37211)',49.442445,-2.58713,'School'));
// 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';
}
//