if (document.getElementById && document.getElementsByTagName){
	var container = document.getElementById("secondary");
	// init showHide assignments
	var submenus = container.getElementsByTagName("UL");
	for (var i=0; i<submenus.length; i++) {
		// hide all
		submenus[i].style.display = "none";
		// target the anchor that will show and hide
		var controller = submenus[i].parentNode.childNodes[0];
		// create a new reference to the submenu in the controller anchor for use on click
		controller.showHideTarget = submenus[i];
		controller.onclick = function(){
			showHide(this.showHideTarget);
			// only one link has an actual url to go to, therefore we need to test to make
			// sure that if the link is empty, simply reutrn false. otherwise go to the url.
			if (this.href.indexOf("#") != -1) {
				return false;
			}
		}
	}
	
	// show location
	var links = container.getElementsByTagName("A");
	for (var i=0; i<links.length; i++) {
		if (links[i].href == window.location.href) {
			var mark = links[i];
			while (mark != container) {
				for (var j=0; j<mark.childNodes.length; j++) {
					if (mark.childNodes[j].style) {
						mark.childNodes[j].style.display = "block";
					}
				}
				mark = mark.parentNode;
			}
		}
	}
	
	// simple show and hide
	function showHide(obj) {
		if (obj.style.display == "block") {
			obj.style.display = "none";
		}
		else {
			obj.style.display = "block";
		}
	}
	
}