function doHighlightNav(){
	
	var lastSlash // the position of the last slash in the path
	var fileName  // the name of the file
	var hashPos // the position of the hash symbol in the case of anchors
	var fullPath
	fullPath = document.URL;
//	fullPath = fullPath.replace(/\\/g,"/");     for local testing
	lastSlash = fullPath.lastIndexOf("/");
	fileName = fullPath.substring(lastSlash+1,fullPath.length);
	hashPos = fileName.lastIndexOf("#");
	if (hashPos!=-1) {
		noAnchor = fileName.substring(0,hashPos);
	}
	else {
		noAnchor = fileName;
	}
	hashPos = noAnchor.lastIndexOf("?");
	if (hashPos!=-1) {
		noQstring = noAnchor.substring(0,hashPos);
	}
	else {
		noQstring = noAnchor;
	}
	
	
//	alert (noAnchor);
	
	switch (noQstring){
		case "":
			hme.className='navover';
			break;
		case "index.html":
			hme.className='navover';
			break;
		case "template.html":
			hme.className='navover';
			break;
		case "family-law.html":
			family.className='navover';
			break;
		case "conveyancing.html":
			conveyancing.className='navover';
			break;
		case "wills-probate.html":
			wills.className='navover';
			break;
		case "ronaldsons-team.html":
			team.className='navover';
			break;
		case "contact-us.php":
			contact.className='navover';
			break;
	}
}