startList = function() {
      if (document.all&&document.getElementById) {
            tdRoot = document.getElementById("menu");
			for (j=0; j<tdRoot.childNodes.length; j++) {
				navRoot=tdRoot.childNodes[j];
				navRoot.onmouseover=function() {
					for (i=0; i<this.childNodes.length; i++) {
						node = this.childNodes[i];
						if (node.nodeName=="UL") {
							node.style.display="block";
							var topEl = 0, leftEl = 0, tmpEl=this;
							while(tmpEl != null){
								topEl+=tmpEl.offsetTop;
								leftEl+=tmpEl.offsetLeft;
								tmpEl=tmpEl.offsetParent;
							}
							node.style.top=topEl+20+"px";
							node.style.left=leftEl+1+"px";
						}
					}
	            }
				navRoot.onmouseout=function() {
					for (i=0; i<this.childNodes.length; i++) {
						node = this.childNodes[i];
						if (node.nodeName=="UL") node.style.display="none";
					}
	            }
			}
      }
}
window.onload=startList;
