strList="
 Salesian College (0 miles)
 Salesian College (0 miles)
Zoom on map | View full information
 Our Lady Help of Christians (0.1 miles)
 Our Lady Help of Christians (0.1 miles)
Zoom on map | View full information
 Forces of England & Wales (0.7 miles)
 Forces of England & Wales (0.7 miles)
Zoom on map | View full information
 St Patrick`s Primary School (0.9 miles)
 St Patrick`s Primary School (0.9 miles)
Zoom on map | View full information
 Our Lady and St Dominic Savio (1.3 miles)
 Our Lady and St Dominic Savio (1.3 miles)
Zoom on map | View full information
 RC Bishopric of the Forces (1.5 miles)
 RC Bishopric of the Forces (1.5 miles)
Zoom on map | View full information
 RC Bishopric of the Forces (1.5 miles)
 RC Bishopric of the Forces (1.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Salesian College (1159-10256)',51.279997,-0.743313,'School'),new Array('Our Lady Help of Christians (871-9803)',51.279032,-0.743841,'ParishChurch'),new Array('Forces of England and Wales (9669-10649)',51.290376,-0.747633,'Other'),new Array('St Patrick`s Primary School (1119-10216)',51.292563,-0.746154,'School'),new Array('Our Lady and St Dominic Savio (873-9804)',51.294862,-0.761897,'ParishChurch'),new Array('RC Bishopric of the Forces (65229-76446)',51.258694,-0.748251,'Other'),new Array('RC Bishopric of the Forces (65229-10649)',51.258694,-0.748251,'Other'),new Array('Farnborough Hill Senior School (1177-10274)',51.30065,-0.750667,'School'),new Array('St Bernadette`s Primary School (1120-10217)',51.300481,-0.762707,'School'),new Array('St Mary (796-9774)',51.2472164,-0.747129599999994,'Church'),new Array('The Holy Angels (34751-33677)',51.248423,-0.718226,'ParishChurch'),new Array('Our Lady Queen of Heaven (34817-33710)',51.316002,-0.74243,'ParishChurch'),new Array('St Joseph (793-9774)',51.2483356,-0.769565599999964,'ParishChurch'),new Array('St. Augustine`s School (33286-33022)',51.320772,-0.723687,'School'),new Array('All Hallows Catholic School (1152-10249)',51.234716,-0.775057,'School'),new Array('The Holy Family (34837-33677)',51.237945,-0.792447,'ParishChurch'),new Array('The Holy Family (34837-33720)',51.237945,-0.792447,'ParishChurch'),new Array('Our Lady  (874-9805)',51.282459,-0.8353,'ParishChurch'),new Array('St Tarcisius War Memorial Church (65975-33694)',51.3386,-0.75011,'Church'),new Array('St Tarcisius (36482-34581)',51.3386,-0.75011,'Church'),new Array('St Peter and St John (65974-33694)',51.347441,-0.723549,'Church'),new Array('St Peter andamp; St John (36483-34582)',51.347441,-0.723549,'Church'),new Array('St Peter andamp; St John (35004-33822)',51.347441,-0.723549,'Church'),new Array('The Immaculate Conception (1016-9797)',51.345889,-0.798702,'ParishChurch'),new Array('St Polycarp`s Catholic Primary School (38766-36872)',51.211617,-0.789142,'School'),new Array('St Joan of Arc (34811-33707)',51.210991,-0.790318,'ParishChurch'),new Array('St Swithun (1089-9871)',51.339629,-0.834154,'ParishChurch'),new Array('Christ the King (65973-33694)',51.360483,-0.687222,'Church'),new Array('St Hugh Of Lincoln Catholic Primary School (38772-36878)',51.311445,-0.60978,'School'),new Array('St Hugh of Lincoln (65962-70937)',51.318119,-0.61295,'Church'),new Array('Rydes Hill Preparatory And Nursery School (38782-36888)',51.251536,-0.602115,'School'),new Array('St Joseph`s Catholic Primary School (38767-36873)',51.251192,-0.601108,'School'),new Array('Holy Ghost (849-9797)',51.37164,-0.803717,'Church'),new Array('St Thomas More (906-9871)',51.304416,-0.898324,'ParishChurch'),new Array('Our Lady`s Independent Preparatory School (1180-10277)',51.374727,-0.802243,'School'),new Array('More House School (38748-36854)',51.178821,-0.798599,'Other'),new Array('St Margaret Clitherow Primary School (1137-10234)',51.390755,-0.765362,'School'),new Array('St Edward the Confessor (34935-33714)',51.271682,-0.5562921,'Church'),new Array('St Joseph (34825-33714)',51.238608,-0.568126,'ParishChurch'),new Array('St Edward the Confessor (34935-33769)',51.271682,-0.5562921,'Church'),new Array('Clareville Community (71221-75061)',51.1882843,-0.618454,'Other'),new Array('Greccio Convent (71074-75062)',51.2348258,-0.5652896,'Other'),new Array('Clareville Community (71221-75587)',51.1882843,-0.618454,'Other'),new Array('St John`s (C of E) (65954-33712)',51.1953076,-0.6038355,'Other'),new Array('St John`s (C of E) (65954-70930)',51.1953076,-0.6038355,'Other'),new Array('St Mary (34915-33759)',51.2461619,-0.5550501,'Church'),new Array('St Joseph (33513-33712)',51.1723389,-0.6506665,'Church'),new Array('St Mary`s Independent Senior School (1163-10260)',51.393673,-0.67049,'School'),new Array('St Mary (34915-33714)',51.2461619,-0.5550501,'Church'),new Array('St Joseph (34877-33740)',51.172593,-0.649706,'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';
}
    //