doesDom = document.getElementById;visiblePanel="none";cPanel = "";function showMenu(menu) {	if (doesDom) {		document.getElementById(menu).className = "menuOn";				if (visiblePanel!="none" && visiblePanel!=menu) {			document.getElementById(visiblePanel).className = "menuOff";		}		visiblePanel = menu;	}}function hideMenu() {	if (doesDom && visiblePanel!="none") {		document.getElementById(visiblePanel).className = "menuOff";		visiblePanel = "none";	}}function stopprop(e) {    if (e.stopPropagation) e.stopPropagation();}function killbubble(e) {    window.event.cancelBubble = true;}function doListeners() {    wrap = document.getElementById("buttonWrapper");        if (document.all) {		wrap.attachEvent("onmouseout", killbubble);		document.attachEvent("onmouseout", hideMenu);	} else {		wrap.addEventListener("mouseout", stopprop, false);		document.addEventListener("mouseout", hideMenu, false);	}  }window.onload = doListeners;