onload = function() {
	if (window.external) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI" && node.getElementsByTagName('div').length) {

				node.onmouseover=function() {
					this.className+=" over";
					var divDropdownStyle = this.getElementsByTagName('div')[0].style;
					divDropdownStyle.position = 'absolute';
					divDropdownStyle.top = (this.offsetTop+this.offsetHeight+4)+'px';
/*					divDropdownStyle.left = (this.offsetParent.offsetLeft+11)+'px'; */
					divDropdownStyle.left = (this.parentNode.offsetLeft-11)+'px';
					divDropdownStyle.display = 'block';
					divDropdownStyle.visibility = 'visible';
				}

				node.onmouseout=function() {

					this.getElementsByTagName('div')[0].style.visibility = 'hidden';
					this.className=this.className.replace(" over", "");
				}

			} else if(node.nodeName=="LI") {

				node.onmouseover=function() {
					this.className+=" over";
				}

				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}