
	// Show the barrister profile selected from the quick nav list
	function ShowBar()
	{
		var i = document.frmProfiles.lstSelectBarrister.selectedIndex;
		var h = document.frmProfiles.lstSelectBarrister[i].value;
		if (h!="") window.location = "/people/" + h + ".htm";
	}
	
	// If a profile page is on display reflect this is the quick nav list
	function SetBar()
	{
		var sHREF = document.location.href;
		var iPos  = sHREF.lastIndexOf("/");
		var sHTML = sHREF.substring(iPos+1, sHREF.length);
		iPos = sHTML.indexOf(".");
		sHTML = sHTML.substring(0, iPos);
		var iSet = 0;

		for (i=1; i<=document.frmProfiles.lstSelectBarrister.length - 1; i++)
			{
			if (document.frmProfiles.lstSelectBarrister[i].value == sHTML) {
				iSet = i-1;
			}
		}
		
		document.frmProfiles.lstSelectBarrister.selectedIndex = iSet+1;
	}
	
	function InsertImage()
	{
		var sItemName;
		var sItemDescription;
		var sBodyStyle;
	
		var iPageNo = 1 + Math.floor(Math.random()*10)
	
		sImg = "img" + iPageNo + ".jpg";
	
		document.write("<img src='/assets/fp/" + sImg + "' width='500' height='250' alt='[Photograph] Selborne Chambers'>");
	}	
	