startList = function() {
if (document.getElementById) {
	var baseId = document.getElementsByTagName('body')[0].id;// these  3 lines set currently selected item to on
	var addclass= "xx" + baseId
	document.getElementById(addclass).className ="on";
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onclick=function() {		
		this.className = (this.className == "on") ? "off" : "on";

			}
   		}
  	}
 }
}
if (document.getElementById) {
document.write("<style type='text/css'>ul ul {display:none;}</style>");
}
window.onload=startList;
