function startup()
	{
	/* function: to highlight the menu item, this is done by retieving the page currently in the browser, and which link in the navigation matches the page.

This script will require two new classes to be added to your css (feel free to change the class names, but ensure you have the same name in your stylesheet);
	1. here, as in a.here:link, a.here:visted { color: #fff;} - which styles the link, and
	2. highlight_selected, which styles the parent of the link.
	*/

// Start by retrieving the name of the navigation element, in this case a div with an id of 'navblock', and if it doesn't exist skip the rest of the script...
	var nav = window.document.getElementById('leftnav');
	if(nav != null)
	{
	// retrieve the url of the page and clean it up...
	var sloc = window.location.href.toLowerCase().replace('.html','/').replace('//','/');
		
	// retrieve all the links (a href) within the navigation...
	var as = nav.getElementsByTagName('a');
		
	//loop over all the a href links
	for(var i=0; i< as.length;i++) {
		
	// for each link in the loop, remove unwanted data...
	var sAloc = as[i].href.toLowerCase();
	sAloc = sAloc.replace('.html','/').replace('//','/');

//barrybit
//
var myRegExp = sAloc;
var matchLink = sloc.search(myRegExp);
if(matchLink !=-1){as[i].className = 'here';}
	// check if the current page is the same as this link...
	if(sAloc == sloc) {
		// and if the link matches this page, adapt the class...
	as[i].className = 'here';

	// and if you want to adapt the parent menu block, uncomment the line below...
	//as[i].parentNode.parentNode.parentNode.className = 'highlight_selected';
         //as[i].parentNode.parentNode.style.display = "block";


         //as[i].nextSibling.style.display = "block";
	}
	}
	}
}
