strList="
 St Elizabeth`s Primary School (0 miles)
 St Elizabeth`s Primary School (0 miles)
Zoom on map | View full information
 St Elizabeth`s RC Church (0.3 miles)
 St Elizabeth`s RC Church (0.3 miles)
Zoom on map | View full information
 St Anthony`s Primary School (0.6 miles)
 St Anthony`s Primary School (0.6 miles)
Zoom on map | View full information
 St Anthony`s RC Church (0.6 miles)
 St Anthony`s RC Church (0.6 miles)
Zoom on map | View full information
 St Anthony`s RC Primary School (0.6 miles)
 St Anthony`s RC Primary School (0.6 miles)
Zoom on map | View full information
 St John`s Primary School (0.7 miles)
 St John`s Primary School (0.7 miles)
Zoom on map | View full information
 Larkhall Rise (1 miles)
 Larkhall Rise (1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Elizabeth`s Primary School (38165-36269)',53.3785987,-2.2499308,'School'),new Array('St Elizabeth`s RC Church (59691-32760)',53.3773,-2.243956,'ParishChurch'),new Array('St Anthony`s Primary School (38154-36258)',53.373586,-2.262107,'School'),new Array('St Anthony`s RC Church (59667-32760)',53.372127,-2.259017,'ParishChurch'),new Array('St Anthony`s RC Primary School (8885-80184)',53.373586,-2.262107,'Other'),new Array('St John`s Primary School (38172-36276)',53.385399,-2.263405,'School'),new Array('Larkhall Rise (78771-80228)',53.3926457,-2.2509166,'Other'),new Array('Christ Church (59577-32792)',53.371703,-2.224145,'ParishChurch'),new Array('St Paul`s School (38233-36337)',53.385143,-2.278866,'School'),new Array('St Peter`s Primary School (38200-36304)',53.385143,-2.278866,'School'),new Array('Cheadle Catholic Infants School (38124-36228)',53.37622,-2.206853,'School'),new Array('Cheadle Catholic Junior School (38125-36229)',53.37622,-2.206853,'School'),new Array('St Chad (59679-32791)',53.395012,-2.208613,'ParishChurch'),new Array('St Aidan`s  Church (59652-64966)',53.395687,-2.290473,'Other'),new Array('S t Aidan`s  Church (63292-66778)',53.395687,-2.290473,'Other'),new Array('Sacred Heart Primary School (38144-36248)',53.39653,-2.290581,'School'),new Array('Sacred Heart and St Peter RC Church (59635-32765)',53.39653,-2.290581,'ParishChurch'),new Array('St Hilda (59700-32764)',53.410253,-2.260558,'ParishChurch'),new Array('St Aidan`s School (78799-80245)',53.4091206,-2.2758802,'School'),new Array('Francis House Family Trust (71162-75228)',53.4116913,-2.224219,'Other'),new Array('St Aidan (59651-32764)',53.408049,-2.285109,'ParishChurch'),new Array('St James School (38229-36333)',53.359857,-2.198269,'School'),new Array('Barlow RC High School (38955-37061)',53.415432,-2.220072,'School'),new Array('St Benedict`s Primary School (38158-36262)',53.346494,-2.207144,'School'),new Array('St Benedict (59673-32795)',53.34587759999999,-2.210175400000026,'ParishChurch'),new Array('Holy Angels (59586-32817)',53.369948,-2.316536,'ParishChurch'),new Array('St Ambrose School (38225-36329)',53.370533,-2.319741,'School'),new Array('St Ambrose Prep School (38150-36254)',53.370533,-2.319741,'School'),new Array('Stella Maris School (39103-37209)',53.412075,-2.207057,'School'),new Array('St Ann (63301-32793)',53.365831,-2.183915,'ParishChurch'),new Array('St Catherine of Siena (57255-63304)',53.416502,-2.222607,'ParishChurch'),new Array('St Catherine`s RC Primary School (38932-37038)',53.416502,-2.222607,'School'),new Array('St Ambrose RC Primary School (38928-37034)',53.423331,-2.258131,'School'),new Array('St Ambrose (57239-63296)',53.423331,-2.258131,'ParishChurch'),new Array('St Ambrose (59658-32785)',53.389553,-2.171011,'ParishChurch'),new Array('St Winifred`s RC Primary School (39015-37121)',53.413463,-2.194456,'School'),new Array('St Winifred (57403-63378)',53.415321,-2.196943,'ParishChurch'),new Array('Holy Family (59592-32768)',53.420954,-2.300679,'ParishChurch'),new Array('St Ambrose Primary School (38151-36255)',53.392105,-2.165037,'School'),new Array('Holy Family Catholic Primary School (39052-37158)',53.420423,-2.301126,'School'),new Array('St Cuthbert`s RC Primary School (38948-37054)',53.429703,-2.22141,'School'),new Array('Sacred Heart and St Teresa (59637-32794)',53.32637,-2.230844,'ParishChurch'),new Array('St Cuthbert (57291-63322)',53.432222,-2.229401,'ParishChurch'),new Array('Blessed Thomas Holford School (38219-36323)',53.386121,-2.341644,'School'),new Array('St Bernadette (57289-63321)',53.433083,-2.247587,'ParishChurch'),new Array('St Hugh`s School (38168-36272)',53.402894,-2.33519,'School'),new Array('Our Lady`s Primary School (38141-36245)',53.403073,-2.16368,'School'),new Array('Loreto High School (38951-37057)',53.434013,-2.263442,'School'),new Array('St Bernard`s RC Primary School (38944-37050)',53.429027,-2.201939,'School'),new Array('Our Lady and The Apostles (59610-32784)',53.40242,-2.161332,'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';
}
    //