function initialiseNavElements() {	// highlight the current page	var location = initialiseNavLocation();	var divs = document.getElementsByTagName('DIV');	for (j = 0; j < divs.length; j++) {		var childrenAnchors = divs[j].getElementsByTagName('A');		for (var k = 0; k < childrenAnchors.length; k++) {			if (childrenAnchors[k] == location) {				childrenAnchors[k].parentNode.className = 'currentPage';			}		}	}}function showHideChildren(shElement) {	// toggle visibility of an element's children	var children = shElement.childNodes;	for (var j = 0; j < children.length; j++) {		var child = children[j];		if (child.nodeName == 'DIV') {			var myClassName = (child.className ? child.className : '');			if (myClassName.indexOf('hide') > -1) {				child.className = child.className.replace('hide',' ');			}			else {				child.className = myClassName + ' hide ';			}		}	}}function initialiseNavLocation() {	var location = document.URL;	if (location.indexOf('?') > -1) {		location = location.slice(0,location.indexOf('?'));	}	if (location[location.length-1] == '/') {		location = location.slice(0,-1);	}	return location;}function onLoadFuncs() {	// things to run when the page loads	initialiseNavElements();	initialiseDrag();	try {		svgURL;		onLoadSVGFuncs();	}	catch (e) {}}onload = onLoadFuncs;
