var fellsNormal='<li><a class="intLnk" onclick=roFunc("fells")>+ Fells</a></li>' 
var fellsActive='<li><a class="intLnk" onclick=roFunc("defaultRows")>- Fells</a></li>' +
                '<ul class="listType2">' +
				    '<li><a class="intLnk" onclick=flyToLocation("blencathra")>Blencathra</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("bowfell")>Bowfell</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("conistonOldMan")>Coniston Old Man</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("fairfield")>Fairfield</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("glaramara")>Glaramara</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("grasmoor")>Grasmoor</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("greatGable")>Great Gable</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("helmCrag")>Helm Crag</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("helvellyn")>Hellvellyn</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("highStile")>High Stile</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("highStreet")>High Street</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("langdalePikes")>Langdale Pikes</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("paveyArk")>Pavey Ark</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("pillar")>Pillar</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("scafell")>Scafell</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("scafellPike")>Scafell Pike</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("skiddaw")>Skiddaw</a></li>' +				
				'</ul>';
				
var lakesNormal='<li><a class="intLnk" onclick=roFunc("lakes")>+ Lakes</a></li>' 
var lakesActive='<li><a class="intLnk" onclick=roFunc("defaultRows")>- Lakes</a></li>' +
                '<ul class="listType2">' +
				    '<li><a class="intLnk" onclick=flyToLocation("bassenthwaite")>Bassenthwaite</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("buttermere")>Buttermere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("conistonWater")>Coniston Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("crummockWater")>Crummock Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("derwentWater")>Derwent Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("elterWater")>Elter Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("ennerdaleWater")>Ennerdale Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("esthwaiteWater")>Esthwaite Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("grasmere")>Grasmere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("haweswater")>Haweswater</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("loweswater")>Loweswater</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("rydalWater")>Rydal Water</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("thirlmere")>Thirlmere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("ullswater")>Ullswater</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("wastwater")>Wastwater</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("windermere")>Windermere</a></li>' +
				'</ul>';
				
var valleysNormal='<li><a class="intLnk" onclick=roFunc("valleys")>+ Valleys</a></li>' 				 
var valleysActive='<li><a class="intLnk" onclick=roFunc("defaultRows")>- Valleys</a></li>' +
                '<ul class="listType2">' +
				    '<li><a class="intLnk" onclick=flyToLocation("borrowdale")>Borrowdale</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("buttermereValley")>Buttermere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("duddon")>Duddon</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("ennerdale")>Ennerdale</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("eskdale")>Eskdale</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("kentmereValley")>Kentmere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("langdale")>Langdale</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("newlands")>Newlands</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("patterdaleValley")>Patterdale</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("wasdale")>Wasdale</a></li>' +									
				'</ul>';
				
var villagesNormal='<li><a class="intLnk" onclick=roFunc("villages")>+ Villages</a></li>' 				 
var villagesActive='<li><a class="intLnk" onclick=roFunc("defaultRows")>- Villages</a></li>' +
                '<ul class="listType2">' +
				    '<li><a class="intLnk" onclick=flyToLocation("ambleside")>Ambleside</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("bowness")>Bowness</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("buttermereVillage")>Buttermere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("conistonVillage")>Coniston</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("elterwater")>Elterwater</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("glenridding")>Glenridding</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("grange")>Grange</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("grasmereVillage")>Grasmere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("hartsop")>Hartsop</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("hawkeshead")>Hawkshead</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("kentmere")>Kentmere</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("keswick")>Keswick</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("nearSawrey")>Near Sawrey</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("rosthwaite")>Rosthwaite</a></li>' +				
					'<li><a class="intLnk" onclick=flyToLocation("stonethwaite")>Stonethwaite</a></li>' +	
					'<li><a class="intLnk" onclick=flyToLocation("threlkeld")>Threlkeld</a></li>' +
					'<li><a class="intLnk" onclick=flyToLocation("troutbeck")>Troutbeck</a></li>' +
													
				'</ul>';
							
	
	var pan;
        var wiki; 
	var myLayer;
        var myWikiLayer;
        var map;
        var map_type;
        var osMap;
        var x;
        var y;
        var z;
        

var placemark=new Array();
var fname= new Array();
var vname=new Array();
var tname=new Array();
var latCo= new Array();
var lonCo= new Array();
var descr= new Array();
var loopCount;

        function load() 
	{	               
	        buildList(0)
	        document.getElementById("map-container").innerHTML="<div id='map' style='width: 800px; height: 600px; border: 1px solid #213e00;'></div>";
		map_type="googleMap"
                document.form1.map_view[0].checked=true
                document.form1.panPhotos.checked=false
                document.form1.wiki.checked=false
                document.form1.points_of_interest.checked=true
// **** search bar
                var mapOptions={
		    googleBarOptions : {
                style : "new",
                adsOptions: {
                client: "partner-pub-9007086301054729",
                channel: "LakeDistrictMapSearch",
                adsafe: "high",
                language: "en"
                }
              }
            }	
//**** search bar end

		map = new GMap2(document.getElementById("map"), mapOptions);	// ****   search bar - , mapOptions ****
                map.setCenter(new GLatLng(54.45753, -3.02239), 10);		
		map.setMapType(G_HYBRID_MAP);
		map.setUIToDefault();

                map.enableGoogleBar();                                          // **** search bar - enables adverts *****
                map.disableScrollWheelZoom();   
                poi()
                //tx='Lake Windermere'
                //tx=tx+'<br/><a class="intLnk" onclick="">See view in 3d</a>' 
                //document.getElementById("inf").innerHTML=tx;
        }

           
// Google Earth *********************************************************************	
               
function GoogleEarth() 
{
    document.form1.panPhotos.checked=false
    document.form1.wiki.checked=false
    document.form1.points_of_interest.checked=false
    map_type="googleEarth"; 
    buildList(0)
    document.getElementById("map-container").innerHTML="<div id='map3d' style='width: 800px; height: 600px; border: 1px solid #213e00;'></div>";
    google.earth.createInstance("map3d", initCallback, failureCallback);
    document.getElementById("inf").innerHTML='<b>Google Earth Map of the Lake District</b>'
   }

function initCallback(object) 
{  
    ge = object;  ge.getWindow().setVisibility(true);

    var oldFlyToSpeed = ge.getOptions().getFlyToSpeed();
    ge.getOptions().setFlyToSpeed(ge.SPEED_TELEPORT); 
    var la = ge.createCamera('');
    la.set(54.20390, -2.90261, 22456.91463, ge.ALTITUDE_RELATIVE_TO_GROUND, -19.48960,50.74125,0); 
    ge.getView().setAbstractView(la);        
    ge.getOptions().setFlyToSpeed(.25); 
    var navControl = ge.getNavigationControl();
    navControl.setVisibility(ge.VISIBILITY_SHOW);
}

function failureCallback(object) {}      	

// **********************************************************************************	
	
	function photographs()			
    {
        if (map_type=="googleMap")
        {
	    pan= document.form1.panPhotos.checked;
		
		if (pan==true)
		{
	            myLayer = new GLayer("com.panoramio.all");
    		    map.addOverlay(myLayer);
		}
		else
		{
		map.removeOverlay(myLayer);
		}
         }
         else
         {
         alert("Sorry, the Panaramio layer is just intended for the Google Map. \n However, you can view the Points of Interest Layer OR you can select the Google Map using the radio button in the left side bar.")
         document.form1.panPhotos.checked=false
         }
    }

        function wikipedia()			
    {

        if (map_type=="googleMap")
        {

	        wiki= document.form1.wiki.checked;
		
		if (wiki==true)
		{
	            var myWikiLayer = new GLayer("org.wikipedia.en");
    		    map.addOverlay(myWikiLayer);
		}
		else
		{                
		var location=map.getCenter();
		var cLat = location.lat();
                var cLon = location.lng();
		var zoom=map.getZoom();
                document.getElementById("map-container").innerHTML="<div id='map' style='width: 800px; height: 600px; border: 1px solid #213e00;'></div>";
		map_type="googleMap"
                document.form1.map_view[0].checked=true
                document.form1.panPhotos.checked=false
                document.form1.wiki.checked=false
                document.form1.points_of_interest.checked=false
		map = new GMap2(document.getElementById("map"));	   
                map.setCenter(new GLatLng(cLat, cLon), zoom);		
		map.setMapType(G_HYBRID_MAP);
		map.setUIToDefault();
		}
          }
         else
         {
         alert("Sorry, the Wikipedia layer is just intended for the Google Map.\n However, you can view the Points of Interest Layer OR you can select the Google Map using the radio button in the left side bar.")
         document.form1.wiki.checked=false
         }

    }
	
	
	
	function poi()
	{   

            pageTracker._trackEvent('tick box', 'click', 'poi') // ********
	    
            var points_box= document.form1.points_of_interest.checked;
            if (points_box==true)
            {
	        pLab1();
            }
	    else
	    {
                 switch (map_type)
                 {
                      case "googleMap":
                              delete_Gmarkers();
                              break;
                      case "googleEarth":
                              delete_placemarks();
                              break;
                      case "ordnanceSurvey":
                              delete_osMarkers();
                              break;
                      default:
                              break;
                 }
	    }
		
	}

	function sZoom()
        {
        var location=map.getCenter();
	var cLat = location.lat();
        var cLon = location.lng();
	var zoom=map.getZoom();
        osMap.setCenter(new OpenSpace.MapPoint(cLon, cLat), 2);
        }


	function myLocation()
	{
	    switch (map_type)
            {
                case "ordnanceSurvey":
                    alert("get os center");
                    osLocation();
                    break;
                case "googleMap":
	            var location=map.getCenter();
		    var cLat = location.lat();
                    var cLon = location.lng();
		    var zoom=map.getZoom();	
		    alert("center: " + location + " \n Zoom: " + zoom + "\n Lat: " + cLat + "\n Lon: " + cLon);
                    break;
                default:
                    break;
            }
	}

function vCapture()
{
        

        var la=ge.getView().copyAsCamera(ge.ALTITUDE_RELATIVE_TO_GROUND)
	var tilt=la.getTilt();
	var lat=la.getLatitude(); 
	var lon=la.getLongitude();
	var al=la.getAltitude();
	var head=la.getHeading()
	//var range=la.getRange()
	var text="Latitude: " + lat.toFixed(5) +  '\n' + "Longitude: " + lon.toFixed(5) + '\n' + "Altitude: "+ al.toFixed(5) + '\n' + "Heading: " + head.toFixed(5) + '\n' + "Tilt: " + tilt.toFixed(5) 
	alert(text)
  
//document.getElementById("inf").innerHTML=text;
}	
	function hybrid()
	{
                    if (map_type=="ordnanceSurvey")
                    {
                        document.getElementById("map-container").innerHTML="<div id='map' style='width: 800px; height: 600px; border: 1px solid #213e00;'></div>";
                        load();
                    }
                    else
                    { 
                        alert("testing else condition")
		        map.addMapType(G_HYBRID_MAP);
		        map.setMapType(G_HYBRID_MAP);	
	    	        map.removeMapType(G_SATELLITE_3D_MAP);
                    }
	}
		
    function earthCamera(x,y,ht,hd,an,ds,tx){
                        
                        pageTracker._trackEvent('view', 'select', 'earth camera')  // ************
 			
                        var la = ge.createCamera('');
			la.set(x, y,ht, ge.ALTITUDE_RELATIVE_TO_GROUND,hd,an,ds);
          	        document.getElementById("inf").innerHTML=tx;
			ge.getView().setAbstractView(la);       
	}	

 
       function init()
       {
           document.form1.panPhotos.checked=false
           document.form1.wiki.checked=false
           document.form1.points_of_interest.checked=false
           map_type="ordnanceSurvey";
	   buildList(0);
           document.getElementById("map-container").innerHTML="<div id='map1' style='width: 800px; height: 600px; border: 1px solid #213e00;'></div>";
           var options = {resolutions: [100, 50, 25, 10, 5]}
           osMap = new OpenSpace.Map('map1', options);
		  
           osMap.setCenter(new OpenSpace.MapPoint(333816.9001568594,507385.72881431604), 0);
           document.getElementById("inf").innerHTML='<b>Ordnance Survey Map of the Lake District</b> - click on the map navigation links below, or use the zoom control to see the 1:250,000, 1:50,000, and 1:25,000 scale os maps.'
           
  		   
       } 

       function qMapType()
       {
            alert(map_type);
       }
function mapView(x, y, z, tx)
{
           pageTracker._trackEvent('view', 'select', 'earth camera')   // ********     
           
           map.setCenter(new GLatLng(x, y), z);            
           document.getElementById("inf").innerHTML=tx;  
}

function osLocation()
{
    a=osMap.getCenter();
    alert(a);

    var gridProjection = new OpenSpace.GridProjection();
    
        
    var pos = gridProjection.getLonLatFromMapPoint(a);
    alert(pos)
}

function osView1(x,y,z,tx)
{
        pageTracker._trackEvent('view', 'select', 'os view1') // ********
        
        var gridProjection = new OpenSpace.GridProjection();
        var lonlat = new OpenLayers.LonLat(y,x);
        var pos = gridProjection.getMapPointFromLonLat(lonlat);
        var a=pos.getEasting();
        var b=pos.getNorthing();

        

        osMap.setCenter(new OpenSpace.MapPoint(a,b), z);
        document.getElementById("inf").innerHTML=tx;
        
}

function osView(x, y, z, tx)
{        
           osMap.setCenter(new OpenSpace.MapPoint(x, y), z);
           document.getElementById("inf").innerHTML=tx;  
}
//************************************************************************************


function roFunc(features){
    switch (features){
	    case "fells":
		    listCode=1;
			break;
		case "lakes":
		    listCode=2;
			break;
		case "valleys":
		    listCode=3;
			break;
		case "villages":
		    listCode=4;
			break;
		default:
			listCode=0;
	}
	buildList(listCode)
	flyToLocation('defaultView')
}

function buildList(listCode){
    switch (listCode){
	    case 1:
	        var listBuild=fellsActive + lakesNormal + valleysNormal + villagesNormal;			
			break;
		case 2:
		    var listBuild=fellsNormal + lakesActive + valleysNormal + villagesNormal;
			break;
		case 3:
		    var listBuild=fellsNormal + lakesNormal + valleysActive + villagesNormal;
			break;
		case 4:
		    var listBuild=fellsNormal + lakesNormal + valleysNormal + villagesActive;
			break;
		default:
		    var listBuild=fellsNormal + lakesNormal + valleysNormal + villagesNormal ;
	}
	document.getElementById("listShell").innerHTML = listBuild;	       
}
function flyToLocation(locationKey)
{
    
	switch (locationKey)
        {
	    //case "defaultView":
			//switch (map_type)
                        //{
			//case "googleMap":
				 //mapView(54.3685, -2.9199, 12,  'Lake Windermere');
				 //break;
			//case "googleEarth":
				 //earthCamera( 54.27566, -2.89642, 6000.58671, -26.68446,48.52598,0, 'Lake Windermere');
				 //break;
			//case "ordnanceSurvey":
				 //osView1(54.3685, -2.9199, 0,  'Lake Windermere');
				 //break;
                        //}			 
			//break;

               case "defaultView":
                        switch (map_type)
                        {
			case "googleMap":
				 mapView(54.45753, -3.02239, 10,  '<b>Map Navigation Links</b> - select a category and click on a link. The Lake District Map will then change location and zoom level so you can view the requested feature.  You can also adjust the map positioning manually using the navigation control in the map Window');
				 break;
                        case "googleEarth":
			         earthCamera(54.20390, -2.90261,22456.91463, -19.48960,50.74125,0, '<b>Map Navigation Links</b> - select a category and click on a link. The Lake District Map will then change location and zoom level so you can view the requested feature.  You can also adjust the map positioning manually using the navigation control in the map Window');
                        case "ordnanceSurvey":
				 osView1(54.45753, -3.02239, 0,  '<b>Map Navigation Links</b> - select a category and click on a link. The Lake District Map will then change location and zoom level so you can view the requested feature.  You can also adjust the map positioning manually using the navigation control in the map Window');
				 break;
                        }			 
		break;

	    
                         
		case "blencathra":
                        switch (map_type)
                        {
			case "googleMap":
		                mapView(54.63995, -3.04982, 14,  'Blencathra');
				break;
                        case "googleEarth":
		                earthCamera(54.61495, -3.06696, 1473.81143, 20.48753, 58.31362, 0, 'Blencathra');
			        break;
                        case "ordnanceSurvey":
				osView1(54.63995, -3.04982, 3,  'Blencathra');
				break;
                        }			 
		break;
			
		case "bowfell": 
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.448001 , -3.166015, 14,  'Bow Fell');
				break;
                        case "googleEarth":
		                earthCamera(54.45839, -3.15876, 1749.75468, -156.10600, 24.01305, 0, 'Bowfell');
                        case "ordnanceSurvey":
				osView1(54.448001 , -3.166015, 3,  'Lake District');
				break;
                        }
		break;	

		case "conistonOldMan": 

                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.37064, -3.12145, 14,  'Coniston Old Man');
				break;
                        case "googleEarth":
		                earthCamera(54.37633, -3.11425, 993.12914, -143.09455, 33.01398, 0, 'Coniston Old Man');
			        break;
			case "ordnanceSurvey":
				osView1(54.37064, -3.12145, 3,  'Coniston Old Man');
				break;
                       }
                break;

		case "fairfield":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4969 , -2.9918, 14,  'Fairfield'); 
				break;
                        case "googleEarth":
		                earthCamera(54.49892, -3.02262, 1429.28387, 96.46526, 50.98458, 0, 'Fairfield');
                        case "ordnanceSurvey":
				osView1(54.4969, -2.9918, 3,  'Fairfield');
				break;
                   }
			break;

		case "glaramara":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.48506, -3.16342, 14,  'Glaramara'); 
				break;
                        case "googleEarth":
		                earthCamera(54.51117, -3.18997, 1791.06656, 151.28965, 55.97554, 0, 'Glaramara');
                        case "ordnanceSurvey":
				osView1(54.48506, -3.16342, 3,  'Glaramara');
				break;
                    }
			break;
			
		case "grasmoor":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5715, -3.2773, 14,  'Grasmoor'); 
				break;
                        case "googleEarth":
		                earthCamera(54.58439, -3.29715, 1020.52737, 138.05201, 63.55856, 0, 'Grasmoor');
                        case "ordnanceSurvey":
				osView1(54.5715, -3.2773, 3,  'Grasmoor');
				break;
                    }
			break;	
			
		case "greatGable":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.48291, -3.21864, 14,  'Great Gable'); 
				break;
                        case "googleEarth":
		                earthCamera(54.48895, -3.22937, 551.92089, 134.10721, 67.56353, 0, 'Great Gable');
                        case "ordnanceSurvey":
				osView1(54.48291, -3.21864, 3,  'Great Gable');
				break;
                    }
			break;
				
		case "helmCrag":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.47492 , -3.04081, 14,  'Helm Crag'); 
				break;
                        case "googleEarth":
		                earthCamera(54.48106, -3.03808, 369.59048, -174.23712, 65.66349, 0, 'Helm Crag');
			        break;
			case "ordnanceSurvey":
				osView1(54.47492 , -3.04081, 3,  'Helm Crag');
				break;
                    }
                break;

		case "helvellyn":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5269, -3.0174, 14,  'Helvellyn'); 
				break;
                        case "googleEarth":
		                earthCamera(54.52359, -2.99607, 1649.31120, -74.67312, 34.93107, 0, 'Helvellyn');
			case "ordnanceSurvey":
				osView1(54.5269, -3.0174, 3,  'Helvellyn');
			break;
                    }
                break;
			
		case "highStile":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5218, -3.2837, 14,  'High Stile'); 
				break;
                        case "googleEarth":
		                earthCamera(54.53826, -3.28890, 1011.04909, 170.58832, 66.93274, 0, 'High Stile');
			case "ordnanceSurvey":
				osView1(54.5218, -3.2837, 3,  'High Stile');
			break;
                    }
                break;
	
		case "highStreet":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.49167, -2.86490, 14,  'High Street'); 
				break;
                        case "googleEarth":
		               earthCamera(54.50002, -2.86934, 662.36185, 161.42974, 59.26571, 0, 'High Street');
			case "ordnanceSurvey":
				osView1(54.49167, -2.86490, 3,  'High Street');
			break;
                    }
                break;
	
		case "langdalePikes":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4569, -3.1095, 14,  'Langdale Pikes'); 
				break;
                        case "googleEarth":
		                earthCamera(54.44519, -3.08186, 501.75532, -57.24313, 79.26967, 0, 'Langdale Pikes');
                                break;
			case "ordnanceSurvey":
				osView1(54.4569, -3.1095, 3,  'Langdale Pikes');
			break;
                    }
                break;
	
		case "paveyArk":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4615, -3.1095, 14,  'Pavey Ark'); 
				break;
                        case "googleEarth":
		                earthCamera(54.46031, -3.09334, 1015.57256, -72.25245, 32.99445, 0, 'Pavey Ark');
			        break;
                       	case "ordnanceSurvey":
				osView1(54.4615, -3.1051, 3,  'Pavey Ark');
			break;
                    }
                break;

		case "pillar":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4981, -3.2816, 14,  'Pillar'); 
				break;
                        case "googleEarth":
		                earthCamera(54.50803, -3.27490, 1825.00739, -165.90021, 32.33904, 0, 'Pillar');
			        break;
                        case "ordnanceSurvey":
				osView1(54.4981, -3.2816, 3,  'Pillar');
			break;
                    }
                break;
		
		case "scafell":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.447765, -3.22579, 14,  'Scafell'); 
				break;
                        case "googleEarth":
		                earthCamera(54.45602, -3.22644, 648.76395, 172.63961, 55.00653, 0, 'Scafell');
			        break;
			case "ordnanceSurvey":
				osView1(54.447765, -3.22579, 3,  'Scafell');
			break;
                    }
                break;

	    case "scafellPike":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.45421, -3.21155, 14,  'Scafell Pike'); 
				break;
                        case "googleEarth":
		                earthCamera(54.44024, -3.19168, 1280.42427, -39.92596, 58.29592, 0, 'Scafell Pike');
			        break;
                        case "ordnanceSurvey":
				osView1(54.45421, -3.21155, 3,  'Scafell Pike');
			break;
                    }
                break;
		
		case "skiddaw":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.6514, -3.1478, 14,  'Skiddaw'); 
				break;
                        case "googleEarth":
		                earthCamera(54.63440, -3.17538, 1751.65846, 42.68109, 48.67360, 0, 'Skiddaw');
			        break;	
			case "ordnanceSurvey":
				osView1(54.6514, -3.1478, 3,  'Skiddaw');
			break;
                    }
                break;

// lakes	
		
		case "windermere":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.3769, -2.9329, 11,  'Lake Windermere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.35478, -2.89945, 3474.15794, -50.09546, 44.58474, 0, 'Lake Windermere');
			        break;
                        case "ordnanceSurvey":
				osView1(54.3769, -2.9329, 3,  'Lake Windermere');
			        break;
                    }
                break;

		case "bassenthwaite":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.65300635618244, -3.2147046989335935, 12,  'Bassenthwaite Lake'); 
				break;
                        case "googleEarth":
		                earthCamera(54.64542, -3.16824, 4730.53819, -77.83367, 29.30866, 0, 'Bassenthwaite Lake');
			        break;
                        case "ordnanceSurvey":
				osView1(54.65300635618244, -3.2147046989335935, 3,  'Bassenthwaite Lake');
			        break;
                    }
                break;


		case "buttermere":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5289, -3.2604, 13,  'Buttermere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.53135, -3.24974, 1099.63237, -103.90013, 32.66193, 0, 'Buttermere');
			break;
                        case "ordnanceSurvey":
				osView1(54.5289, -3.2604, 3,  'Buttermere');
			        break;
                    }
                break;

		case "conistonWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.3462, -3.0694, 12,  'Coniston Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.37924, -3.08770, 2221.00590, 153.23148, 54.67124, 0, 'Coniston Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.3462, -3.0694, 3,  'Coniston Water');
			        break;
                    }
                break;
			
		case "crummockWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.55407105158333, -3.2995244197351843,  13,  'Crummock Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.53593, -3.31256, 1493.70910, 25.54875, 48.98451, 0, 'Crummock Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.55407105158333, -3.2995244197351843, 3,  'Crummock Water');
			        break;
                    }
                break;
	
			
		case "derwentWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.57593178297414, -3.1453494153831856,  12,  'Derwent Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.55711, -3.16964, 1313.03626, 40.98134, 48.64945, 0, 'Derwent Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.57593178297414, -3.1453494153831856, 3,  'Derwent Water');
			        break;
                    }
                break;
			
		case "elterWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.42814, -3.02457, 14,  'Elter Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.42435, -3.02257, 450.48953, -34.38943, 43.33081, 0, 'Elter Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.42814, -3.02457, 4,  'Elter Water');
			        break;
                    }
                break;
			
		case "ennerdaleWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5188, -3.3695, 12,  'Ennerdale Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.53871, -3.40482, 1292.04295, 151.29962, 51.31924, 0, 'Ennerdale Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.5188, -3.3695, 3,  'Ennerdale Water');
			        break;
                    }
                break;
				
		case "esthwaiteWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.35890698995922, -2.985105514526367, 14,  'Esthwaite Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.34673, -2.99050, 938.46559, 28.02042, 44.32400, 0, 'Esthwaite Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.35890698995922, -2.985105514526367, 4,  'Esthwaite Water');
			        break;
                    }
                break;
	
		case "grasmere":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.44999, -3.02110, 14,  'Grasmere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.44724, -3.00897, 647.67554, -82.96070, 44.99269, 0, 'Grasmere');
			break;
                        case "ordnanceSurvey":
				osView1(54.44999, -3.02110, 4,  'Grasmere');
			        break;
                    }
                break;
		
		case "rydalWater":
                    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4470, -2.9975, 14,  'Rydal Water'); 
				break;
                        case "googleEarth":
		                earthCamera(54.45105, -2.98491, 654.75068, -124.94119, 37.65963, 0, 'Rydal Water');
			break;
                        case "ordnanceSurvey":
				osView1(54.4470, -2.9975, 4,  'Rydal Water');
			        break;
                    }
                break;
	
		case "haweswater":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.51971, -2.80481, 12,  'Haweswater'); 
				break;
                        case "googleEarth":
		                earthCamera(54.54250, -2.80008, 2915.85310, 168.70934, 37.30808, 0, 'Haweswater');
			break;
                        case "ordnanceSurvey":
				osView1(54.51971, -2.80481, 3,  'Haweswater');
			        break;
                    }
                break;
			
		case "loweswater":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5820, -3.3538, 14,  'Loweswater'); 
				break;
                        case "googleEarth":
		                earthCamera(54.58475, -3.34386, 1038.34659, -101.27085, 30.66708, 0, 'Loweswater');
			break;
                        case "ordnanceSurvey":
				osView1(54.5820, -3.3538, 4,  'Loweswater');
			        break;
                    }
                break;
			
		case "thirlmere":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.53514614713926, -3.063223739173669,  12,  'Thirlmere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.50651, -3.06648, 1501.34267, 22.93064, 50.99581, 0, 'Thirlmere');
			break;
                        case "ordnanceSurvey":
				osView1(54.53514614713926, -3.063223739173669, 3,  'Thirlmere');
			        break;
                    }
                break;
			
		case "ullswater":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.563406080369184, -2.9014951241049314, 12,  'Ullswater'); 
				break;
                        case "googleEarth":
		                earthCamera( 54.56384,   -2.98672, 4606.51896, 89.99558, 42.64952, 0, 'Ullswater');
			break;
                        case "ordnanceSurvey":
				osView1(54.563406080369184, -2.9014951241049314, 3,  'Ullswater');
			        break;
                    }
                break;
	
		case "wastwater":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4436, -3.2922, 12,  'Wastwater'); 
				break;
                        case "googleEarth":
		                earthCamera(54.42925, -3.33306, 1182.27567, 82.34102, 56.32906, 0, 'Wastwater');
			break;
                        case "ordnanceSurvey":
				osView1(54.4436, -3.2922, 3,  'Wastwater');
			        break;
                    }
                break;


// valleys

		case "borrowdale":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.53864, -3.15455, 12,  'Borrowdale Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.55157, -3.16261, 265.60328, 169.35205, 76.03961, 0, 'Borrowdale Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.53864, -3.15455, 3,  'Borrowdale Valley');
			        break;
                    }
                break;
		
		case "buttermereValley":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.52975, -3.25747, 12,  'Borrowdale Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.50419, -3.23664, 123.78636, -33.96719,  69.96696, 0, 'Buttermere Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.52975, -3.25747, 3,  'Borrowdale Valley');
			        break;
                    }
                break;
		
		case "duddon":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.38576 , -3.17786, 12,  'Duddon Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.37729, -3.18067, 366.50284, 18.07839,  74.00512, 0, 'Duddon Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.38576 , -3.17786, 3,  'Duddon Valley');
			        break;
                    }
                break;
		
		case "ennerdale":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.51382, -3.30280, 12,  'Duddon Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.49693, -3.23147, 425.39454, -75.56652,  68.85659, 0, 'Ennerdale Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.51382, -3.30280, 3,  'Duddon Valley');
			        break;
                    }
                break;
		
		case "eskdale":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.39604, -3.23070, 12,  'Eskdale'); 
				break;
                        case "googleEarth":
		                earthCamera(54.42306, -3.21558, 1732.39539, -171.54041,  52.16622, 0, 'Eskdale');
			break;
                        case "ordnanceSurvey":
				osView1(54.39604, -3.23070, 3,  'Eskdale');
			        break;
                    }
                break;

		case "kentmereValley":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.45500, -2.85241, 12,  'Kentmere Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.43963, -2.83468, 1088.63950, -27.30657,  65.64516, 0, 'Kentmere Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.45500, -2.85241, 3,  'Kentmere Valley');
			        break;
                    }
                break;
			
		case "langdale":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.44902, -3.08138, 12,  'Great Langdale'); 
				break;
                        case "googleEarth":
		                earthCamera(54.42645, -3.06398, 2147.96438, -37.91732,  49.98862, 0, 'Great Langdale');
			break;
                        case "ordnanceSurvey":
				osView1(54.44902, -3.08138, 3,  'Great Langdale');
			        break;
                    }
                break;

		case "newlands":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.57153 , -3.18234, 12,  'Newlands Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.58896, -3.15820, 2809.51427, -136.71108,  42.97659, 0, 'Newlands Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.57153 , -3.18234, 3,  'Newlands Valley');
			        break;
                    }
                break;	

		case "patterdaleValley":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.51734 , -2.92158, 12,  'Patterdale Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.47677, -2.93401, 1153.08775, 11.18380,  58.65669, 0, 'Patterdale Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.51734 , -2.92158, 3,  'Patterdale Valley');
			        break;
                    }
                break;
		
		case "wasdale":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.46080, -3.25717, 12,  'Wasdale Valley'); 
				break;
                        case "googleEarth":
		                earthCamera(54.44556, -3.25933, 1826.92363, -1.09900,  40.32835, 0, 'Wasdale Valley');
			break;
                        case "ordnanceSurvey":
				osView1(54.46080, -3.25717, 3,  'Wasdale Valley');
			        break;
                    }
                break;
		
// villages

   		case "ambleside":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.4315, -2.9604, 14,  'Ambleside'); 
				break;
                        case "googleEarth":
		                earthCamera(54.43197, -2.96207, 988.33964, -56.93636,  0, 0, 'Ambleside');
			break;
                        case "ordnanceSurvey":
				osView1(54.4315, -2.9604, 4,  'Ambleside');
			        break;
                    }
                break;
 		
		case "bowness":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.3636, -2.9190, 14,  'Bowness-on-Windermere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.36395, -2.91894, 992.05082, -111.40034,  0, 0, 'Bowness-on-Windermere');
			break;
                        case "ordnanceSurvey":
				osView1(54.3636, -2.9190, 4,  'Bowness-on-Windermere');
			        break;
                    }
                break;
 		
		case "buttermereVillage":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.54101565054374, -3.276243209838867, 15,  'Buttermere Village'); 
				break;
                        case "googleEarth":
		                earthCamera(54.54116, -3.27664, 425.38044, 26.80808,  0, 0, 'Buttermere Village');
			break;
                        case "ordnanceSurvey":
				osView1(54.54101565054374, -3.276243209838867, 4,  'Buttermere Village');
			        break;
                    }
                break;
			
		case "conistonVillage":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.36965, -3.07360 , 14,  'Coniston Village'); 
				break;
                        case "googleEarth":
		                earthCamera(54.36750, -3.07588, 385.87177, 13.50262,  17.66551, 0, 'Coniston Village');
			break;
                        case "ordnanceSurvey":
				osView1(54.36965, -3.07360 , 4,  'Coniston Village');
			        break;
                    }
                break;

		case "elterwater":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.43425 , -3.03749, 14,  'Elterwater'); 
				break;
                        case "googleEarth":
		                earthCamera(54.43430, -3.03724, 416.55745, -19.95239,  0.33495, 0, 'Elterwater');
			break;
                        case "ordnanceSurvey":
				osView1(54.43425 , -3.03749, 4,  'Elterwater');
			        break;
                    }
                break;
			
		case "glenridding":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5450, -2.9520, 14,  'Glenridding'); 
				break;
                        case "googleEarth":
		                earthCamera(54.54439, -2.94915, 642.72549, -6.43908,  0, 0, 'Glenridding');
			break;
                        case "ordnanceSurvey":
				osView1(54.5450, -2.9520, 4,  'Glenridding');
			        break;
                    }
                break;
		
		case "grasmereVillage":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.45753, -3.02239, 14,  'Grasmere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.45916, -3.02385, 862.55033, -52.49953,  0, 0, 'Grasmere');
			break;
                        case "ordnanceSurvey":
				osView1(54.45753, -3.02239, 4,  'Grasmere');
			        break;
                    }
                break;

		case "hartsop":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.5091, -2.9142, 14,  'Harsop'); 
				break;
                        case "googleEarth":
		                earthCamera(54.51148, -2.91514, 238.17685, 168.12749,  34.65988, 0, 'Harsop');
			break;
                        case "ordnanceSurvey":
				osView1(54.5091, -2.9142, 4,  'Harsop');
			        break;
                    }
                break;
	
		case "kentmere":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.42907, -2.83739, 14,  'Kentmere'); 
				break;
                        case "googleEarth":
		                earthCamera(54.42790, -2.83627, 614.68603, -0.81344,  12.33214, 0, 'Kentmere');
			break;
                        case "ordnanceSurvey":
				osView1(54.42907, -2.83739, 4,  'Kentmere');
			        break;
                    }
                break;
				
		case "keswick":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.60122, -3.13461 , 14,  'Keswick'); 
				break;
                        case "googleEarth":
		                earthCamera(54.60066, -3.13281, 1293.36415, 32.94798,  0, 0, 'Keswick');
			break;
                        case "ordnanceSurvey":
				osView1(54.60122, -3.13461 , 4,  'Keswick');
			        break;
                    }
                break;
		
		case "threlkeld":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.6202, -3.0525, 14,  'Threlkeld'); 
				break;
                        case "googleEarth":
		                earthCamera(54.61840, -3.05044, 756.86653, -23.98488,  9.66599, 0, 'Threlkeld');
			break;
                        case "ordnanceSurvey":
				osView1(54.6202, -3.0525, 4,  'Threlkeld');
			        break;
                    }
                break;
		 
		case "nearSawrey":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.35190, -2.96952, 14,  'Near Sawrey'); 
				break;
                        case "googleEarth":
		                earthCamera(54.35273, -2.97167, 267.61733, 127.61714,  15.99956, 0, 'Near Sawrey');
			break;
                        case "ordnanceSurvey":
				osView1(54.35190, -2.96952, 4,  'Near Sawrey');
			        break;
                    }
                break;

		case "hawkeshead":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.3762, -2.9983, 14, 'Hawkeshead'); 
				break;
                        case "googleEarth":
		                earthCamera(54.37739, -3.00002, 469.36329, 165.97329,  31.99739, 0, 'Hawkeshead');
			break;
                        case "ordnanceSurvey":
				osView1(54.3762, -2.9983, 4,  'Hawkeshead');
			        break;
                    }
                break;
	
		case "troutbeck":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.41650, -2.91484, 14,  'Troutbeck'); 
				break;
                        case "googleEarth":
		                earthCamera(54.41696, -2.91526, 381.85410, 117.29202,  13.99910, 0, 'Troutbeck');
			break;
                        case "ordnanceSurvey":
				osView1(54.41650, -2.91484, 4,  'Troutbeck');
			        break;
                    }
                break;
		
		case "rosthwaite":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.52396 , -3.14756 , 14,  'Rosthwaite'); 
				break;
                        case "googleEarth":
		                earthCamera(54.52406, -3.14772, 351.66863, -165.69725, 15.00150, 0, 'Rosthwaite');
			break;
                        case "ordnanceSurvey":
				osView1(54.52396 , -3.14756 , 4,  'Rosthwaite');
			        break;
                    }
                break;
			
		case "stonethwaite":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.51283 , -3.13973  , 14,  'Stonethwaite'); 
				break;
                        case "googleEarth":
		                earthCamera(54.51622, -3.14106, 597.70543, -176.69539, 30.33179, 0, 'Stonethwaite');
			break;
                        case "ordnanceSurvey":
				osView1(54.51283 , -3.13973  , 4,  'Stonethwaite');
			        break;
                    }
                break;
	
		case "grange":
		    switch (map_type)
                    {
			case "googleMap":
		                mapView(54.54686 ,  -3.15696, 14,  'Grange'); 
				break;
                        case "googleEarth":
		                earthCamera(54.54731, -3.15794,  305.16394, 144.35248, 11.33278, 0, 'Grange');
			break;
                        case "ordnanceSurvey":
				osView1(54.54686 ,  -3.15696, 4,  'Grange');
			        break;
                    }
                break;
	 			
		default:
		    alert("FlyToLocation is " + locationKey);
	}			 

}


// **********************************************************************************

function pLab1()
{

fname[1]="Scafell Pike"
latCo[1]=54.45421
lonCo[1]=-3.21155
descr[1]='<div class="infoBalloon">Height: 978 m (3,209 ft)<br/>Grid Ref: NY 21548, 07212</b><br/>Scafell Pike is the highest fell in England.  It is also noted for being, rocky, rugged and remote.  It can be approached from the valleys of Wasdale, Eskdale, Langdale, and Borrowdale.  All routes apart from from Wasdale Head path involve a long walk before Scafell Pike is reached.<br/><a href="../scafell-pike/scafell-pike.html" target="_blank">More Info</a></div>'

fname[2]="Skiddaw"
latCo[2]=54.6514
lonCo[2]=-3.1478
descr[2]= '<div class="infoBalloon"><b>Height: 931 m (3,054  ft)<br/>Grid Ref: NY 26039, 29083</b><br/>Skiddaw is a popular fell for walkers due to an easy route from Keswick used by many general tourists. It is also a spectacular fell in its own right with fantastic views over the Lake District.<br/><a href="../skiddaw/skiddaw.html" target="_blank">More Info</a></div>'

fname[3]="Blencathra"
latCo[3]=54.63995
lonCo[3]=-3.04982
descr[3]='<div class="infoBalloon"><b>Height: 868 m (2,848 ft)<br/>Grid Ref: NY 32342, 27710</b><br/>Blencathra has a number of rocky ridges, the most dramatic being Sharp Edge on its north-eastern flank. Because many of Blencathras ascents involves some challenging scrambling, Wainwright refers to this fell as "... a mountaineers mountain." <br/><a href="http://english-lake-district.info/blencathra/blencathra.html" target="_blank">More Info</a></div>'

fname[4]="Helvellyn"
latCo[4]=54.5269
lonCo[4]=-3.0174
descr[4]='<div class="infoBalloon"><b>Height: 950 metres (3,117 ft)<br/>Grid Ref: NY 34252, 15100</b><br/>Helvellyn is Englands third highest mountain.  It is popular with walkers, and well known for the Striding Edge ridge on its Eastern side.  The summit itself is a long plateau that joins with a number of other neighbouring fells. <br/><a href="../helvellyn/helvellyn.html" target="blank">More Info</a></div>'

fname[5]="High Street"
latCo[5]=54.49167
lonCo[5]=-2.86490
descr[5]='<div class="infoBalloon"><b>Height: 828 m (2718 ft)<br/>Grid Ref: NY 44073, 11048</b><br/>High Street is the highest fell in the Far Eastern area of Lakeland.  It is named after the Roman Road that crosses the summit plateau.</div>'

fname[6]="Coniston Old Man"
latCo[6]=54.37064
lonCo[6]=-3.12145
descr[6]='<div class="infoBalloon" ><b>Height: 803 m (2634 ft)<br/>Grid Ref: SD 27241, 97816</b><br/>The Old Man of Coniston is the highest fell in a wider range which includes Dow Crag, Grey Friar, Weatherlam, Swirl How and Great Carrs. <br/><a href="../coniston-old-man/coniston-old-man.html" target="_blank">More Info</a> </div>'

fname[7]="Scafell"
latCo[7]=54.447765
lonCo[7]=-3.22579
descr[7]='<div class="infoBalloon">Height: 964 m (3,163 ft)<br/>Grid Ref: NY 20612, 06510</b><br/>Although Scafell is not as high as its neighbouring Scafell Pike, it is regarded by many - Wainwright included - as the more interesting fell.  This is because of the towering crags above Mickledore on its Northern flank.  These are impassable to walkers without climbing gear.<br/><a href="../scafell-pike/scafell-pike.html" target="_blank">More Info</a> </div>'

fname[8]="Fairfield"
latCo[8]=54.4969
lonCo[8]=-2.9918
descr[8]='<div class="infoBalloon">Height: 873 m (2,863 ft)<br/>Grid Ref: NY 35862, 11739<br/>Described by Wainwright as "... a bulky mountain system with five distinct summits over 2500 ft.  High ridges link these summits; there are also subsidiary ridges and spurs of lesser altitude, massive rocky buttresses, gloomy coves and fine daleheads.  The whole system constitutes a single geographical unit, and the main summit is Fairfield, a grand mountain with grand satellites in support."</div>'

fname[9]="Harrison Stickle"
latCo[9]=54.4569
lonCo[9]=-3.1095
descr[9]='<div class="infoBalloon">Harrison Stickle Height: 736 m (2,415  ft)<br/>Grid Ref: NY 27749, 07119<br/>The Langdale Pikes are made up of three separate fells - Harrison Stickle, Loft Crag and Pike of Stickle.  These fells together form an iconic view of the Lake District recognised by many.<br/> <a href="../central-fells/langdale-pikes.html" target="blank">More Info</a></div>'

fname[10]="Pike of Stickle"
latCo[10]=54.4564
lonCo[10]=-3.1214
descr[10]='<div class="infoBalloon">Harrison Stickle Height: 736 m (2,415  ft)<br/>Grid Ref: NY 27749, 07119<br/>The Langdale Pikes are made up of three separate fells - Harrison Stickle, Loft Crag and Pike of Stickle.  These fells together form an iconic view of the Lake District recognised by many.<br/> <a href="../central-fells/langdale-pikes.html" target="blank">More Info</a></div>'

fname[11]="Pavey Ark"
latCo[11]=54.4615
lonCo[11]=-3.1051
descr[11]='<div class="infoBalloon">Height: 700 m (2,297 ft)<br/>Grid Ref: NY 28462, 07909<br/>Pavey Ark is a rock face towering over Stickle Tarn above the Langdale Valley.  There is a well known scrambling route called Jacks Rake which climbs diagonally across the crag.<br/><a href="../central-fells/pavey-ark.html" target="blank">More Info</a></div>'

fname[12]="Loft Crag"
latCo[12]=54.4543
lonCo[12]=-3.1159
descr[12]='<div class="infoBalloon">Harrison Stickle Height: 736 m (2,415  ft)<br/>Grid Ref: NY 27749, 07119<br/>The Langdale Pikes are made up of three separate fells - Harrison Stickle, Loft Crag and Pike of Stickle.  These fells together form an iconic view of the Lake District recognised by many.<br/> <a href="../central-fells/langdale-pikes.html" target="blank">More Info</a></div>'

fname[13]="Bow Fell"
latCo[13]=54.448001
lonCo[13]=-3.166015
descr[13]='<div class="infoBalloon">Height: 902 m (2,949 ft)<br/>Grid Ref: NY 24489, 06471<br/>Bowfell is described by Wainwright as "a favourite of all fell walkers ... for it has the rare characteristic of displaying a graceful outline and a sturdy shapeliness on all sides".  It is generally approached from Langdale or Eskdale.</div>'

fname[14]="Great Gable"
latCo[14]=54.48291
lonCo[14]=-3.21864
descr[14]='<div class="infoBalloon">Height: 899 m (2,949 ft)<br/>Grid Ref: NY 21144, 10413<br/>Great Gable is a particularly steep fell to climb from any direction, although once at the top it is a round shaped plateau.  There is an impressive rock face on the northern side called Gable Crag.  The fell is generally approaced from Wasdale, Ennerdale, Borrowdale, or the top of the Honister Pass.</div>'

fname[15]="Glaramara"
latCo[15]=54.48506
lonCo[15]=-3.16342
descr[15]='<div class="infoBalloon"> Height: 783 m (2,569 ft)<br/>Grid Ref: NY 24725, 10591<br/>Wikipedia describes  Glaramara as " ... a substantial fell that is part of a long ridge that stretches for over six kilometres from Stonethwaite in Borrowdale up to the important mountain pass of Esk Hause. The summit of Glaramara at 783 m (2,569 ft) is the central point of this ridge, which separates the valleys of Langstrath and Grains Gill, however the ridge has two additional fells, numerous subsidiary tops and several small tarns making its traverse an appealing and challenging walk." </div> '

fname[16]="Helm Crag"
latCo[16]=54.47492 
lonCo[16]=-3.04081
descr[16]='<div class="infoBalloon"> Height: 405 m (1,329 ft)<br/>Grid Ref: NY 32651, 09339<br/>Helm Crag is one of Lakelands smaller fells, but is nevertheless steep, and in parts, quite rocky.  It is a pleasant fell to climb, and because of its close proximity to Grasmere, can be done as a half a day walk from this base. </div> '

fname[17]="Pillar"
latCo[17]=54.4981
lonCo[17]=-3.2816
descr[17]='<div class="infoBalloon">Height: 892 m (2927 ft)<br/>Grid Ref: NY 17095, 12175<br/>Wikipedia states that ... "Pillar stands on the southern wall of Ennerdale, three miles from the head of the valley. Two tiers of impressive crags run the full length of the fell from Wind Gap in the west to Black Sail Pass in the east. The top tier fronts the summit ridge, a series of coves being interspersed between the butresses. Below is a narrow terrace bearing the High Level Route path and then a further wall including Pillar Rock, Raven and Ash Crags and Proud Knott. The lower slopes are planted with a broad belt of conifers, extending across the River Liza to the flanks of High Crag."</div>'

fname[18]="High Stile"
latCo[18]=54.5218
lonCo[18]=-3.2837
descr[18]='<div class="infoBalloon">Height: 807 m (2,648 ft)<br/>Grid Ref: NY 17008, 14815<br/>High Stile is a fell located in the Western Lake District between the valleys of Ennerdale and Buttermere.</div>'

fname[19]="Grasmoor"
latCo[19]=54.5715
lonCo[19]=-3.2773
descr[19]='<div class="infoBalloon">Height: 852 m, (2,795 ft)<br/>Grid Ref: NY 17522, 203371<br/>Grasmoor is a high bulky mountain in the North-western fells area of Lakeland.  It towers over Crummock Water in the Buttermere Valley.</div>'

// **** view features ****

vname[102]="Lake Windermere"
latCo[102]=54.3769
lonCo[102]=-2.9329
descr[102]='<div class="infoBalloon">At 10.5 miles (16.9km)long, Windermere is the largest natural lake in England.  It is referred to as a ribbon lake, long in length, but relatively short across (just 1 mile at its widest point).  At its deepest point Windermere is 220 feet (67 meters).</div>'

vname[103]="Ullswater"
latCo[103]=54.5639
lonCo[103]=-2.9312
descr[103]='<div class="infoBalloon">At 14.5km (9miles) long, 1.2km (0.5miles) wide, Ullswater is the second largest lake in the district.  It has a depth of 60 meters (197ft).  There are three separate sections that wend their way through the hills.  The village of Pooley Bridge is at the North of the Lake, whilst the Glenridding and Patterdale villages are located at the south.</div>'

vname[104]="Wast Water"
latCo[104]=54.4436
lonCo[104]=-3.2922
descr[104]='<div class="infoBalloon">At 79 meters (258ft) Wastwater is the deepest lake in England.  Like many of the lakes in the district it too was formed through the process of glaciation.  It is 4.6km (3miles) long, and 600meters (1/3mile) wide.  The Wastwater Screes (steep slopes of rocks and stones) are located on the south west edge of the lake.  They start 200 feet below the surface of the lake rising to a height of 2000 ft from its underwater base.  The fells of Whin Rigg and Illgil Head stand at the top of the scree slopes.</div>'

vname[105]="Esthwaite Water"
latCo[105]=54.3624
lonCo[105]=-2.9895
descr[105]='<div class="infoBalloon">Esthwaite Water is located in the South of the Lake District between the villages of Hawkeshead and Near Sawrey.  It features in some of the work of William Wordsworth and Beatrix Potter, the later living at Hilltop farm which is in the village of Near Sawrey.  It is one of Lakelands smaller lakes, covering just 280 acres (1.1 km square).  It is 15.5 meters (21ft) at its deepest point.</div>'

vname[106]="Elter Water"
latCo[106]=54.42814
lonCo[106]=-3.02457
descr[106]='<div class="infoBalloon"> At 915 meters long and 393 meters wide, Elter Water is one of Lakelands smaller lakes or Tarns.  It is situated in the picturesque Langdale Valley close to the Village of Elterwater itself.</div>'

vname[107]="Rydal Water"
latCo[107]=54.4470
lonCo[107]=-2.9975
descr[107]='<div class="infoBalloon">Rydal Water is located a short distance up the River Rothay from Windermere. It is a small lake or Tarn less than a mile (1.14km) long, a quarter of a mile (737m) wide, and 55 feet in depth.  The lake has close associations with William Wordsworth, the Lakeland Poet. The home where he lived at Rydal Mount is located North-west of the Lake.</div>'

vname[108]="Buttermere Lake"
latCo[108]=54.5289
lonCo[108]=-3.2604
descr[108]='<div class="infoBalloon">The lake of Buttermere, is a place of considerable scenic value.  It is surrounded by fells on three sides with the ridge of Fleetwith Pike rising from the head of the lake.  The lake itself is 2km (1 1/4 miles) long, 400 meters (1/4 mile) across, and is 23 meters (75ft) in depth.</div>'

vname[109]="Crummock Water"
latCo[109]=54.5479
lonCo[109]=-3.2967
descr[109]='<div class="infoBalloon">It is thought that Crummock Water and Buttermere (further up the valley) were once joined together before they became separated by some natural process.  Crummock Water is 2.5 miles long and 0.6 miles across.  The fell of Grasmoor rises above to the East whilst Mellbreak runs nearly the full length of its bank to the west.</div>'

vname[110]="Grasmere (Lake)"
latCo[110]=54.44999
lonCo[110]=-3.02110
descr[110]='<div class="infoBalloon">The lake of Grasmere is situated south of Grasmere village with which it shares its name.  It is 1.24km long, 622 meters across, and 23 meters (75ft) deep.  Like Rydal Water Grasmere has close associations with William Wordsworth.  He lived at Dove Cottage in the nearby village for eight years.</div>'

vname[111]="Thirlmere"
latCo[111]=54.53640 
lonCo[111]=-3.06372
descr[111]='<div class="infoBalloon">Thirlmere is located in the valley between Keswick and Grasmere, north of Dunmail Raise.  Originally it was made up of two separate lakes until the water levels were raised artificially to make a single body of water. It is 6.05km long, 178 meters wide, and 40 meters (131 ft) deep. The reservoir now supplies drinking water to homes in the Greater Manchester area.</div>'

vname[112]="Derwent Water"
latCo[112]=54.5735
lonCo[112]=-3.1459
descr[112]='<div class="infoBalloon">Derwent Water is a lake of considerable scenic value.  It is located between the entrance to Borrowdale valley and the market town of Keswick in the northern lake district. It is fed by the River Derwent that flows through Borrowdale. The lake is 4km (3 miles) long, 1.5km (1 mile) wide, and 22 meters (72ft)in depth.</div>'

vname[113]="Bassenthwaite Lake"
latCo[113]=54.6505
lonCo[113]=-3.2137
descr[113]='<div class="infoBalloon">Bassenthwaite Lake is fed by the River Derwent which has already passed through Derwent Water further upstream.  The lake is 6.4km (4 miles) long, 1.3km (3/4 mile) wide, and 21 meters (71 ft) in depth.  It is the most northerly lake in the district.</div>'

vname[114]="Loweswater"
latCo[114]=54.5820
lonCo[114]=-3.3538
descr[114]='<div class="infoBalloon">Loweswater is a small lake in the north west of the district, not far from Cockermouth.  It is 1.8km (1.1mile) long, 550 meters (1/4 mile) wide, and 16 meters (52ft) in depth.</div>'

vname[115]="Ennerdale Water"
latCo[115]=54.5188
lonCo[115]=-3.3695
descr[115]='<div class="infoBalloon">Ennerdale Water is the most westerly lake in the district.  It is a quiet and remote location relatively untouched by tourism.  It is 3.9 km (2 1/2 miles) long, 1.5km (1mile) wide, and 45 meters (150ft) in depth.</div>'

vname[116]="Coniston Water"
latCo[116]=54.3462
lonCo[116]=-3.0694
descr[116]='<div class="infoBalloon">At 8km (five miles) long and 800 meters (1/2mile) wide, Coniston Water is the third largest lake in England. The village of Coniston is to the north west of the lake.</div>'

vname[117]="Haweswater"
latCo[117]=54.51971
lonCo[117]=-2.80481
descr[117]='<div class="infoBalloon">Haweswater is a man made lake situated in the Far East area of Lakeland. Originally a picturesque valley with two villages, the communities were controversially uprooted so the valley could be flooded for the present reservoir. Despite this, the Haweswater valley is still a place of particular scenic value.  Many walkers visit the southern head of the valley where there are fell routes onto the High Street range.</div>'

vname[118]="Buttermere Valley"
latCo[118]=54.52975
lonCo[118]=-3.25747
descr[118]='<div class="infoBalloon">A picturesque valley in the North-west of the Lake District. <a href="../buttermere.html" target="_blank">More Info</a>.</div>'

vname[119]="Langdale Valley"
latCo[119]=54.44902
lonCo[119]=-3.08138
descr[119]='<div class="infoBalloon">Great Langdale is one of the nicest valleys in the Lake District. People come here for its stunning mountain scenery, and some of the best walks in Lakeland start from here. <a href="../langdale.html" target="_blank">More Info</a></div>'

vname[120]="Borrowdale Valley"
latCo[120]=54.53864
lonCo[120]=-3.15455
descr[120]='<div class="infoBalloon">Borrowdale is a valley stretching from the Scafell Pike range of fells in the South to Derwent Water and the Vale of Keswick in the North. The valley is popular with tourists and walkers. <a href="../valleys/borrowdale.html" target="_blank">More Info</a>.</div>'

vname[121]="Longsleddale Valley"
latCo[121]=54.45114
lonCo[121]=-2.80160
descr[121]='<div class="infoBalloon">A quiet valley in the South East of the Lake District.</div>'

vname[122]="Wasdale Valley"
latCo[122]=54.46080
lonCo[122]=-3.25717
descr[122]='<div class="infoBalloon">Not one of the easiest valleys to travel too, but is certainly one of the most dramatic in terms of mountain scenery with Scafell Pike and Great Gable at its head.</div>'

vname[123]="Eskdale Valley"
latCo[123]=54.39604
lonCo[123]=-3.23070
descr[123]='<div class="infoBalloon">A picturesque valley south of the Scafell Pike range of fells.  The river Esk has its origins high up in these mountains.  Eskdale itself is in the west of the Lake District.</div>'

vname[124]="Ennerdale Valley"
latCo[124]=54.51382 
lonCo[124]=-3.30280
descr[124]='<div class="infoBalloon">A remote and wild valley in the West of the Lake District.</div>'

vname[125]="Duddon Valley"
latCo[125]=54.38576 
lonCo[125]=-3.17786
descr[125]='<div class="infoBalloon">One of the lesser known valleys in the Lake District between Eskdale and the Coniston Fells.</div>'

vname[126]="Patterdale Valley"
latCo[126]=54.51734 
lonCo[126]=-2.92158
descr[126]='<div class="infoBalloon">A scenic valley in the Eastern Lake District.  The Lake of Ullswater runs through the northern section of this valley.</div>'

vname[127]="Newlands Valley"
latCo[127]=54.57153 
lonCo[127]=-3.18234
descr[127]='<div class="infoBalloon">A quiet valley in the North-west of the Lake District.</div>'

vname[128]="Kentmere Valley"
latCo[128]=54.45500  
lonCo[128]=-2.85241
descr[128]='<div class="infoBalloon">A quiet valley in the South East of the Lake District.</div>'

// **** Towns and buildings

tname[200]="Ambleside"
latCo[200]=54.4315
lonCo[200]=-2.9604
descr[200]='<div class="infoBalloon">Ambleside is located at the northern tip of Lake Windermere.  Like Coniston, the landscape here changes from the gentle scenery of the south to the more rugged terrain found further to the north.  The fells of Fairfield and Red Screes are close by.  There are also lower level walks on Loughrigg and Wansfell Pike. <a href="../ambleside.html" target="_blank">More Info</a>.</div>'

tname[201]="Grasmere"
latCo[201]=54.45753
lonCo[201]=-3.02239
descr[201]='<div class="infoBalloon">Grasmere is a picturesque village right in the heart of Lakeland.  Very popular with tourists and walkers, the area is closely associated with William Wordsworth.  Dove Cottage, home to the Wordsworths (now a museum) is located south east of the village. <a href="../grasmere.html" target="_blank">More Info</a>.</div>'

tname[202]="Coniston"
latCo[202]=54.36965
lonCo[202]=-3.07360 
descr[202]='<div class="infoBalloon">Located on the edge of Coniston Water at the foot of the Coniston Fells.  An attractive village popular with tourists, it also has historic associations with copper and slate mining.  Here the gentle landscape of the Southern Lake District changes to the volcanic ruggedness characteristic of the fells further north. </div>'

tname[203]="Bowness"
latCo[203]=54.3636
lonCo[203]=-2.9190
descr[203]='<div class="infoBalloon">Bowness is located on the edge of Lake Windermere in the south eastern Lake district. Although hilly, the landscape around here is quite different to that further north which comprises of higher fells formed from prehistoric volcanic activity.  Bowness by contrast is located in an area of much gentler scenery. <a href="../bowness.html" target="_blank">More Info</a></div>'

tname[204]="Keswick"
latCo[204]=54.60122
lonCo[204]=-3.13461 
descr[204]='<div class="infoBalloon">Keswick is the largest town situated in the north of the lake district.  A tourist destination on the edge of Derwent Water, it is overlooked by the fell of Skiddaw, the second highest mountain in England.  Other neaby fells include Latrigg and Cat Bells. <a href="../villages/keswick" target="_blank">More Info</a>.</div>'

tname[205]="Patterdale"
latCo[205]=54.5373
lonCo[205]=-2.9402
descr[205]='<div class="infoBalloon">A village located at the southern head of Ullswater.  A major starting point for walks up Helvellyn via Striding Edge, one of the most popular summits for fell walkers in the Lake District.</div>'

tname[206]="Buttermere"
latCo[206]=54.5412
lonCo[206]=-3.2789
descr[206]='<div class="infoBalloon">Buttermere Village is located between Buttermere Lake and Crummock water.  It is set amidst spectacular scenery, surrounded by the fells of Fleetwith Pike, Grasmoor, Red Pike and Heystacks, to name but a few.</div>'

tname[207]="Troutbeck"
latCo[207]=54.41650
lonCo[207]=-2.91484
descr[207]='<div class="infoBalloon">Troutbeck is a picturesque village set in a hilly landscape south of the Kirkstone Pass on the lower eastern slopes of Wansfell.</div>'

tname[208]="Windermere"
latCo[208]=54.3808
lonCo[208]=-2.9030
descr[208]='<div class="infoBalloon">The town of Windermere.</div>'

tname[209]="Glenridding"
latCo[209]=54.5450
lonCo[209]=-2.9520
descr[209]='<div class="infoBalloon">A village located at the southern head of Ullswater.  A major starting point for walks up Helvellyn via Striding Edge, one of the most popular summits for fell walkers in the Lake District.</div>'

tname[210]="Near Sawrey"
latCo[210]=54.35190
lonCo[210]=-2.96952
descr[210]='<div class="infoBalloon">Near Sawrey has a gentle hilly landscape.  The village overlooks Esthwaite Water and has close associations with Beatrix Potter, being the location of Hill Top Farm.</div>'

tname[211]="Hawkshead"
latCo[211]=54.3762
lonCo[211]=-2.9983
descr[211]='<div class="infoBalloon">Located just north of Esthwaite Water, Hawkshead is another scenic location close to hills, lakes, and forests.  Buildings in the area date back to the 1600s, giving the area a medieval appearance.  The township of Hawkshead has historic connections with the Monks of Furness Abbey.</div>'

tname[212]="Kentmere"
latCo[212]=54.42907
lonCo[212]=-2.83739
descr[212]='<div class="infoBalloon">This is a quiet village located in the scenic Kentmere Valley close to the High Street range of fells.</div>'

tname[213]="Elterwater"
latCo[213]=54.43425 
lonCo[213]=-3.03749
descr[213]='<div class="infoBalloon">Elterwater is a small village located in the picturesque Langdale Valley.</div>'

tname[214]="Boot"
latCo[214]=54.3989
lonCo[214]=-3.2692
descr[214]='<div class="infoBalloon">A small village in the Eskdale Valley.</div>'

tname[215]="Wasdale Head"
latCo[215]=54.4681
lonCo[215]=-3.2556
descr[215]='<div class="infoBalloon">A small remote village in the Wasdale Valley.</div>'

tname[216]="Seathwaite"
latCo[216]=54.4988
lonCo[216]=-3.1829
descr[216]='<div class="infoBalloon">A small hamlet at the head of the Borrowdale Valley. Popular with walkers,  a number of classic routes start from here - eg Borrowdale to Scafell Pike.</div>'

tname[217]="Seatoller"
latCo[217]=54.5135
lonCo[217]=-3.1688
descr[217]='<div class="infoBalloon">A small village in the Borrowdale Valley</div>'

tname[218]="Rosthwaite"
latCo[218]=54.52396 
lonCo[218]=-3.14756 
descr[218]='<div class="infoBalloon">Rosthwaite is the largest village right in the heart of the scenic Borrowdale Valley.</div>'

tname[219]="Grange"
latCo[219]=54.54686 
lonCo[219]=-3.15696
descr[219]='<div class="infoBalloon">Grange lies at the northern entrance to the Borrowdale Valley close to the head of Derwent Water.  Many popular walking routes are close by eg Cat Bells and Castle Crag.  The village sites on the western bank of the River Derwent.</div>'

tname[220]="Braithwaite"
latCo[220]=54.6030
lonCo[220]=-3.1888
descr[220]='<div class="infoBalloon"></div>'

tname[221]="Thornthwaite"
latCo[221]=54.6199
lonCo[221]=-3.2046
descr[221]='<div class="infoBalloon"></div>'

tname[222]="Threlkeld"
latCo[222]=54.6202
lonCo[222]=-3.0525
descr[222]='<div class="infoBalloon">A small village surrounded by fields, overlooked by the fell of Blencathra.</div>'

tname[223]="Dockray"
latCo[223]=54.5848
lonCo[223]=-2.9408
descr[223]='<div class="infoBalloon"></div>'

tname[224]="Hartsop"
latCo[224]=54.5091
lonCo[224]=-2.9142
descr[224]='<div class="infoBalloon">A quiet village at the bottom of the Kirkstone Pass near Brothers Water.  It consists of 17th Century stone cottages, and is popular with walkers tackling the High Street range of fells.</div>'

tname[225]="Stonethwaite"
latCo[225]=54.51283 
lonCo[225]=-3.13973  
descr[225]='<div class="infoBalloon">A small picturesque village below Rosthwaite Fell in the Borrowdale Valley.  Stonethwaite sits at the entrance to the Langstrath Valley.</div>'

switch (map_type)
{
    case "googleMap":
        map_marker();
        break;
    case "ordnanceSurvey":
        os_markers();
        break;
    case "googleEarth":
        ge_placemarks();
        break;
    default:
        break;
}
}


function ge_placemarks()
{


//** Placemarks for peaks
for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
{

placemark[loopCount] = ge.createPlacemark('');

placemark[loopCount].setName(fname[loopCount]);
placemark[loopCount].setDescription(descr[loopCount]);
ge.getFeatures().appendChild(placemark[loopCount]);

// Create style map for placemark
var normal = ge.createIcon('');
normal.setHref('http://maps.google.com/mapfiles/kml/shapes/triangle.png');
var iconNormal = ge.createStyle('');
iconNormal.getIconStyle().setIcon(normal);
var highlight = ge.createIcon('');
highlight.setHref('http://maps.google.com/mapfiles/kml/shapes/triangle.png');
var iconHighlight = ge.createStyle('');
iconHighlight.getIconStyle().setIcon(highlight);
var styleMap = ge.createStyleMap('');
styleMap.setNormalStyle(iconNormal);
styleMap.setHighlightStyle(iconHighlight);
placemark[loopCount].setStyleSelector(styleMap);
  
// Create point
var point = ge.createPoint('');
point.setLatitude(latCo[loopCount]);
point.setLongitude(lonCo[loopCount]);
placemark[loopCount].setGeometry(point);  
}	  

//***********************************************************************************

//****************************Placemarks for features********************************
//***********************************************************************************

for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
{
placemark[loopCount] = ge.createPlacemark('');

placemark[loopCount].setName(vname[loopCount]);
placemark[loopCount].setDescription(descr[loopCount]);
ge.getFeatures().appendChild(placemark[loopCount]);

// Create style map for placemark
var normal = ge.createIcon('');
normal.setHref('http://maps.google.com/mapfiles/kml/shapes/star.png');
var iconNormal = ge.createStyle('');
iconNormal.getIconStyle().setIcon(normal);
var highlight = ge.createIcon('');
highlight.setHref('http://maps.google.com/mapfiles/kml/shapes/star.png');
var iconHighlight = ge.createStyle('');
iconHighlight.getIconStyle().setIcon(highlight);
var styleMap = ge.createStyleMap('');
styleMap.setNormalStyle(iconNormal);
styleMap.setHighlightStyle(iconHighlight);
placemark[loopCount].setStyleSelector(styleMap);
  
// Create point
var point = ge.createPoint('');
point.setLatitude(latCo[loopCount]);
point.setLongitude(lonCo[loopCount]);
placemark[loopCount].setGeometry(point);  
}

// ****** Placemarks for Towns and buildings *********************
// ***************************************************************

for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
{
placemark[loopCount] = ge.createPlacemark('');

placemark[loopCount].setName(tname[loopCount]);
placemark[loopCount].setDescription(descr[loopCount]);
ge.getFeatures().appendChild(placemark[loopCount]);

// Create style map for placemark
var normal = ge.createIcon('');
normal.setHref('http://maps.google.com/mapfiles/kml/shapes/square.png');
var iconNormal = ge.createStyle('');
iconNormal.getIconStyle().setIcon(normal);
var highlight = ge.createIcon('');
highlight.setHref('http://maps.google.com/mapfiles/kml/shapes/square.png');
var iconHighlight = ge.createStyle('');
iconHighlight.getIconStyle().setIcon(highlight);
var styleMap = ge.createStyleMap('');
styleMap.setNormalStyle(iconNormal);
styleMap.setHighlightStyle(iconHighlight);
placemark[loopCount].setStyleSelector(styleMap);
  
// Create point
var point = ge.createPoint('');
point.setLatitude(latCo[loopCount]);
point.setLongitude(lonCo[loopCount]);
placemark[loopCount].setGeometry(point);

}
}

function delete_placemarks()
{
    for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
    {
	    ge.getFeatures().removeChild(placemark[loopCount]);
	}
	for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
    {
        ge.getFeatures().removeChild(placemark[loopCount]);
    }
    for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
    {
        ge.getFeatures().removeChild(placemark[loopCount]);
	}
}

function delete_Gmarkers()
{
    for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
	{
	    map.removeOverlay(placemark[loopCount])
	}
	for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
	{
	    map.removeOverlay(placemark[loopCount])
	}
	for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
	{
	    map.removeOverlay(placemark[loopCount])
	}

}

function delete_osMarkers()
{
    for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
	{
	     osMap.removeMarker(placemark[loopCount])
	}
	for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
	{
	     osMap.removeMarker(placemark[loopCount])
	}
	for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
	{
	     osMap.removeMarker(placemark[loopCount])
	}

}


function restoreDefaultView()
{
    map.setCenter(new GLatLng(54.3685, -2.9199), 12);
}

function map_marker()
{
 	for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
	{	 
		 
    	 var center = new GLatLng(latCo[loopCount], lonCo[loopCount]);
    	 placemark[loopCount] = new GMarker(center);
		 temp_placemark=placemark[loopCount];
		 temp_name=fname[loopCount];   	 
    	 map.addOverlay(placemark[loopCount]);
	}
    
	for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
	{	 
		 
    	 var center = new GLatLng(latCo[loopCount], lonCo[loopCount]);
    	 placemark[loopCount] = new GMarker(center);
		 temp_placemark=placemark[loopCount];    	 
    	 map.addOverlay(placemark[loopCount]);
	}
	
	for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
	{	 
		 
    	 var center = new GLatLng(latCo[loopCount], lonCo[loopCount]);
    	 placemark[loopCount] = new GMarker(center);
		 temp_placemark=placemark[loopCount];    	 
    	 map.addOverlay(placemark[loopCount]);
	}
	
        var mOps= map.getInfoWindow(maxWidth="50")

	GEvent.addListener(placemark[1], "click", function(){	
	    placemark[1].openInfoWindowHtml('<b>' + fname[1]  + '</b>' +'<br/>' + descr[1]);
		 });
        GEvent.addListener(placemark[2], "click", function(){	
	    placemark[2].openInfoWindowHtml('<b>' + fname[2]  + '</b>' +'<br/>' + descr[2]);
		 });
        GEvent.addListener(placemark[3], "click", function(){
	    placemark[3].openInfoWindowHtml('<b>' + fname[3]  + '</b>' +'<br/>' + descr[3]);
		 });

	GEvent.addListener(placemark[4], "click", function(){	
	    placemark[4].openInfoWindowHtml('<b>' + fname[4]  + '</b>' +'<br/>' + descr[4]);
		 });

	GEvent.addListener(placemark[5], "click", function(){	
	    placemark[5].openInfoWindowHtml('<b>' + fname[5]  + '</b>' +'<br/>' + descr[5]);
		 });
	GEvent.addListener(placemark[6], "click", function(){	
	    placemark[6].openInfoWindowHtml('<b>' + fname[6]  + '</b>' +'<br/>' + descr[6]);
		 });
	 GEvent.addListener(placemark[7], "click", function(){	
	    placemark[7].openInfoWindowHtml('<b>' + fname[7]  + '</b>' +'<br/>' + descr[7]);
		 });
         GEvent.addListener(placemark[8], "click", function(){	
	    placemark[8].openInfoWindowHtml('<b>' + fname[8]  + '</b>' +'<br/>' + descr[8]);
		 });
         GEvent.addListener(placemark[9], "click", function(){	
	    placemark[9].openInfoWindowHtml('<b>' + fname[9]  + '</b>' +'<br/>' + descr[9]);
		 });
        GEvent.addListener(placemark[10], "click", function(){	
	    placemark[10].openInfoWindowHtml('<b>' + fname[10]  + '</b>' +'<br/>' + descr[10]);
		 });
        GEvent.addListener(placemark[11], "click", function(){	
	    placemark[11].openInfoWindowHtml('<b>' + fname[11]  + '</b>' +'<br/>' + descr[11]);
		 });
        GEvent.addListener(placemark[12], "click", function(){	
	    placemark[12].openInfoWindowHtml('<b>' + fname[12]  + '</b>' +'<br/>' + descr[12]);
		 });
        GEvent.addListener(placemark[13], "click", function(){	
	    placemark[13].openInfoWindowHtml('<b>' + fname[13]  + '</b>' +'<br/>' + descr[13]);
		 });
	GEvent.addListener(placemark[14], "click", function(){	
	    placemark[14].openInfoWindowHtml('<b>' + fname[14]  + '</b>' +'<br/>' + descr[14]);
		 });
	GEvent.addListener(placemark[15], "click", function(){	
	    placemark[15].openInfoWindowHtml('<b>' + fname[15]  + '</b>' +'<br/>' + descr[15]);
		 });
	GEvent.addListener(placemark[16], "click", function(){	
	    placemark[16].openInfoWindowHtml('<b>' + fname[16]  + '</b>' +'<br/>' + descr[16]);
		 });
	GEvent.addListener(placemark[17], "click", function(){	
	    placemark[17].openInfoWindowHtml('<b>' + fname[17]  + '</b>' +'<br/>' + descr[17]);
		 });
	GEvent.addListener(placemark[18], "click", function(){	
	    placemark[18].openInfoWindowHtml('<b>' + fname[18]  + '</b>' +'<br/>' + descr[18]);
		 });
	GEvent.addListener(placemark[19], "click", function(){	
	    placemark[19].openInfoWindowHtml('<b>' + fname[19]  + '</b>' +'<br/>' + descr[19]);
		 });
	// *** view features event listeners
	
	GEvent.addListener(placemark[102], "click", function(){	
	    placemark[102].openInfoWindowHtml('<b>' + vname[102]  + '</b>' +'<br/>' + descr[102]);
		 });

GEvent.addListener(placemark[103], "click", function(){	
	    placemark[103].openInfoWindowHtml('<b>' + vname[103]  + '</b>' +'<br/>' + descr[103]);
		 });
GEvent.addListener(placemark[104], "click", function(){	
	    placemark[104].openInfoWindowHtml('<b>' + vname[104]  + '</b>' +'<br/>' + descr[104]);
		 });
GEvent.addListener(placemark[105], "click", function(){	
	    placemark[105].openInfoWindowHtml('<b>' + vname[105]  + '</b>' +'<br/>' + descr[105]);
		 });
GEvent.addListener(placemark[106], "click", function(){	
	    placemark[106].openInfoWindowHtml('<b>' + vname[106]  + '</b>' +'<br/>' + descr[106]);
		 });
GEvent.addListener(placemark[107], "click", function(){	
	    placemark[107].openInfoWindowHtml('<b>' + vname[107]  + '</b>' +'<br/>' + descr[107]);
		 });
GEvent.addListener(placemark[108], "click", function(){	
	    placemark[108].openInfoWindowHtml('<b>' + vname[108]  + '</b>' +'<br/>' + descr[108]);
		 });
GEvent.addListener(placemark[109], "click", function(){	
	    placemark[109].openInfoWindowHtml('<b>' + vname[109]  + '</b>' +'<br/>' + descr[109]);
		 });
GEvent.addListener(placemark[110], "click", function(){	
	    placemark[110].openInfoWindowHtml('<b>' + vname[110]  + '</b>' +'<br/>' + descr[110]);
		 });
GEvent.addListener(placemark[111], "click", function(){	
	    placemark[111].openInfoWindowHtml('<b>' + vname[111]  + '</b>' +'<br/>' + descr[111]);
		 });
GEvent.addListener(placemark[112], "click", function(){	
	    placemark[112].openInfoWindowHtml('<b>' + vname[112]  + '</b>' +'<br/>' + descr[112]);
		 });
GEvent.addListener(placemark[113], "click", function(){	
	    placemark[113].openInfoWindowHtml('<b>' + vname[113]  + '</b>' +'<br/>' + descr[113]);
		 });
GEvent.addListener(placemark[114], "click", function(){	
	    placemark[114].openInfoWindowHtml('<b>' + vname[114]  + '</b>' +'<br/>' + descr[114]);
		 });
GEvent.addListener(placemark[115], "click", function(){	
	    placemark[115].openInfoWindowHtml('<b>' + vname[115]  + '</b>' +'<br/>' + descr[115]);
		 });
GEvent.addListener(placemark[116], "click", function(){	
	    placemark[116].openInfoWindowHtml('<b>' + vname[116]  + '</b>' +'<br/>' + descr[116]);
		 });
GEvent.addListener(placemark[117], "click", function(){	
	    placemark[117].openInfoWindowHtml('<b>' + vname[117]  + '</b>' +'<br/>' + descr[117]);
		 });
GEvent.addListener(placemark[118], "click", function(){	
	    placemark[118].openInfoWindowHtml('<b>' + vname[118]  + '</b>' +'<br/>' + descr[118]);
		 });
GEvent.addListener(placemark[119], "click", function(){	
	    placemark[119].openInfoWindowHtml('<b>' + vname[119]  + '</b>' +'<br/>' + descr[119]);
		 });
GEvent.addListener(placemark[120], "click", function(){	
	    placemark[120].openInfoWindowHtml('<b>' + vname[120]  + '</b>' +'<br/>' + descr[120]);
		 });
GEvent.addListener(placemark[121], "click", function(){	
	    placemark[121].openInfoWindowHtml('<b>' + vname[121]  + '</b>' +'<br/>' + descr[121]);
		 });
GEvent.addListener(placemark[122], "click", function(){	
	    placemark[122].openInfoWindowHtml('<b>' + vname[122]  + '</b>' +'<br/>' + descr[122]);
		 });
GEvent.addListener(placemark[123], "click", function(){	
	    placemark[123].openInfoWindowHtml('<b>' + vname[123]  + '</b>' +'<br/>' + descr[123]);
		 });
GEvent.addListener(placemark[124], "click", function(){	
	    placemark[124].openInfoWindowHtml('<b>' + vname[124]  + '</b>' +'<br/>' + descr[124]);
		 });
GEvent.addListener(placemark[125], "click", function(){	
	    placemark[125].openInfoWindowHtml('<b>' + vname[125]  + '</b>' +'<br/>' + descr[125]);
		 });
GEvent.addListener(placemark[126], "click", function(){	
	    placemark[126].openInfoWindowHtml('<b>' + vname[126]  + '</b>' +'<br/>' + descr[126]);
		 });
GEvent.addListener(placemark[127], "click", function(){	
	    placemark[127].openInfoWindowHtml('<b>' + vname[127]  + '</b>' +'<br/>' + descr[127]);
		 });
GEvent.addListener(placemark[128], "click", function(){	
	    placemark[128].openInfoWindowHtml('<b>' + vname[128]  + '</b>' +'<br/>' + descr[128]);
		 });







			 
	// *** towns and building event listeners ***
	
	GEvent.addListener(placemark[200], "click", function(){	
	    placemark[200].openInfoWindowHtml('<b>' + tname[200]  + '</b>' +'<br/>' + descr[200]);
		 });
	GEvent.addListener(placemark[201], "click", function(){	
	    placemark[201].openInfoWindowHtml('<b>' + tname[201]  + '</b>' +'<br/>' + descr[201]);
		 });
        GEvent.addListener(placemark[202], "click", function(){	
	    placemark[202].openInfoWindowHtml('<b>' + tname[202]  + '</b>' +'<br/>' + descr[202]);
		 });
        GEvent.addListener(placemark[203], "click", function(){	
	    placemark[203].openInfoWindowHtml('<b>' + tname[203]  + '</b>' +'<br/>' + descr[203]);
		 });
        GEvent.addListener(placemark[204], "click", function(){	
	    placemark[204].openInfoWindowHtml('<b>' + tname[204]  + '</b>' +'<br/>' + descr[204]);
		 });
        GEvent.addListener(placemark[205], "click", function(){	
	    placemark[205].openInfoWindowHtml('<b>' + tname[205]  + '</b>' +'<br/>' + descr[205]);
		 });
        GEvent.addListener(placemark[206], "click", function(){	
	    placemark[206].openInfoWindowHtml('<b>' + tname[206]  + '</b>' +'<br/>' + descr[206]);
		 });
        GEvent.addListener(placemark[207], "click", function(){	
	    placemark[207].openInfoWindowHtml('<b>' + tname[207]  + '</b>' +'<br/>' + descr[207]);
		 });

        GEvent.addListener(placemark[208], "click", function(){	
	    placemark[208].openInfoWindowHtml('<b>' + tname[208]  + '</b>' +'<br/>' + descr[208]);
		 });

        GEvent.addListener(placemark[209], "click", function(){	
	    placemark[209].openInfoWindowHtml('<b>' + tname[209]  + '</b>' +'<br/>' + descr[209]);
		 });
        GEvent.addListener(placemark[210], "click", function(){	
	    placemark[210].openInfoWindowHtml('<b>' + tname[210]  + '</b>' +'<br/>' + descr[210]);
		 });
        GEvent.addListener(placemark[211], "click", function(){	
	    placemark[211].openInfoWindowHtml('<b>' + tname[211]  + '</b>' +'<br/>' + descr[211]);
		 });
        GEvent.addListener(placemark[212], "click", function(){	
	    placemark[212].openInfoWindowHtml('<b>' + tname[212]  + '</b>' +'<br/>' + descr[212]);
		 });

        GEvent.addListener(placemark[213], "click", function(){	
	    placemark[213].openInfoWindowHtml('<b>' + tname[213]  + '</b>' +'<br/>' + descr[213]);
		 });

        GEvent.addListener(placemark[214], "click", function(){	
	    placemark[214].openInfoWindowHtml('<b>' + tname[214]  + '</b>' +'<br/>' + descr[214]);
		 });
        GEvent.addListener(placemark[215], "click", function(){	
	    placemark[215].openInfoWindowHtml('<b>' + tname[215]  + '</b>' +'<br/>' + descr[215]);
		 });
        GEvent.addListener(placemark[216], "click", function(){	
	    placemark[216].openInfoWindowHtml('<b>' + tname[216]  + '</b>' +'<br/>' + descr[216]);
		 });
        GEvent.addListener(placemark[217], "click", function(){	
	    placemark[217].openInfoWindowHtml('<b>' + tname[217]  + '</b>' +'<br/>' + descr[217]);
		 });
        GEvent.addListener(placemark[218], "click", function(){	
	    placemark[218].openInfoWindowHtml('<b>' + tname[218]  + '</b>' +'<br/>' + descr[218]);
		 });
        GEvent.addListener(placemark[218], "click", function(){	
	    placemark[218].openInfoWindowHtml('<b>' + tname[218]  + '</b>' +'<br/>' + descr[218]);
		 });
        GEvent.addListener(placemark[219], "click", function(){	
	    placemark[219].openInfoWindowHtml('<b>' + tname[219]  + '</b>' +'<br/>' + descr[219]);
		 });
        GEvent.addListener(placemark[220], "click", function(){	
	    placemark[220].openInfoWindowHtml('<b>' + tname[220]  + '</b>' +'<br/>' + descr[220]);
		 });
        GEvent.addListener(placemark[221], "click", function(){	
	    placemark[221].openInfoWindowHtml('<b>' + tname[221]  + '</b>' +'<br/>' + descr[221]);
		 });
        GEvent.addListener(placemark[222], "click", function(){	
	    placemark[222].openInfoWindowHtml('<b>' + tname[222]  + '</b>' +'<br/>' + descr[222]);
		 });
        GEvent.addListener(placemark[223], "click", function(){	
	    placemark[223].openInfoWindowHtml('<b>' + tname[223]  + '</b>' +'<br/>' + descr[223]);
		 });
        GEvent.addListener(placemark[224], "click", function(){	
	    placemark[224].openInfoWindowHtml('<b>' + tname[224]  + '</b>' +'<br/>' + descr[224]);
		 });
        GEvent.addListener(placemark[225], "click", function(){	
	    placemark[225].openInfoWindowHtml('<b>' + tname[225]  + '</b>' +'<br/>' + descr[225]);
		 });			 
}

function os_markers()
{
    var popUpSize = new OpenLayers.Size(220, 300)
    for (loopCount=1; loopCount<=fname.length-1; loopCount ++)
    {     
        var gridProjection = new OpenSpace.GridProjection();
        var lonlat = new OpenLayers.LonLat(lonCo[loopCount], latCo[loopCount]);
        
        var pos = gridProjection.getMapPointFromLonLat(lonlat);
    
        var content='<b>' + fname[loopCount] + '</b><br/>' + descr[loopCount];
        placemark[loopCount]=osMap.createMarker(pos,null,content,popUpSize);
    }
    for (loopCount=102; loopCount<=vname.length-1; loopCount ++)
    {     
        var gridProjection = new OpenSpace.GridProjection();
        var lonlat = new OpenLayers.LonLat(lonCo[loopCount], latCo[loopCount]);
        
        var pos = gridProjection.getMapPointFromLonLat(lonlat);
    
        var content='<b>' + vname[loopCount] + '</b><br/>' + descr[loopCount];
        placemark[loopCount]=osMap.createMarker(pos,null,content,popUpSize);
    }  
    for (loopCount=200; loopCount<=tname.length-1; loopCount ++)
    {     
        var gridProjection = new OpenSpace.GridProjection();
        var lonlat = new OpenLayers.LonLat(lonCo[loopCount], latCo[loopCount]);
        
        var pos = gridProjection.getMapPointFromLonLat(lonlat);
    
        var content='<b>' + tname[loopCount] + '</b><br/>' + descr[loopCount];
        placemark[loopCount]=osMap.createMarker(pos,null,content,popUpSize);
    }  

}
 
 
