
  if(document.all){brw='IE'}
  if(!document.all && document.getElementById){brw='moz'}

  var tmpC=null

function named(){}

function explination(){
	alert('Drag the mouse pointer over the image, if the mouse pointer changes to a hand, hover the pointer, after a couple of seconds the name of that hill will appear')
}
function effort(){
	alert('A basic calculation joining distance and height\n1 point per mile + 3 points per 1000\' of ascent')
}

function showMap(){
	var nH='<table width="100%" border="0" cellspacing="4" cellpadding="4"><tr><td><div align="center"><p><img src="map.gif" border="2"></p><p><font size="4"><b>'
	nH +='<font size="2">Walk '+wlk+' miles --- '
	if(cyc){nH +=' Bike '+cyc+' miles --- '}
	nH +='Ascent ' +ascent+'\''
	nH +='</font></b></font></p><p><a href="javascript:hideMap()">Close</a></p><p><font size="2">Image produced from the Ordnance Survey <a href="http://www.ordnancesurvey.co.uk/getamap">Get-a-map</a>service.<br>Image reproduced with kind permission of <a href="http://www.ordnancesurvey.co.uk/">Ordnance Survey</a></font></p></div></td></tr></table>'
	if(brw=='IE'){
		document.all.tLyr.style.pixelWidth= 405
		document.all.tLyr.style.visibility='visible'
		document.all.tLyr.style.pixelTop=document.body.scrollTop+5
		document.all.tLyr.innerHTML= nH
	};
	if(brw=='moz'){
		document.getElementById("tLyr").style.width = 418+ "px"
		document.getElementById("tLyr").style.top=document.body.scrollTop+5+ "px"
		document.getElementById("tLyr").style.visibility='visible'
		document.getElementById("tLyr").innerHTML= nH
	};	
}

function hideMap(){
	if(brw=='IE'){
		document.all.tLyr.style.visibility='hidden'
	}
	if(brw=='moz'){
		document.getElementById("tLyr").style.visibility='hidden'
	}
}

function showChart(){
	if (!tmpC || tmpC.closed) {
		tmpC=window.open('../chartwindow.htm','chrtW','status,hieght=450,width=800,resizable,scrollbars')
	    }else{
		tmpC.focus()
	}
}


