// JavaScript Document

hasMac = navigator.appVersion.indexOf('Macintosh');

function startList() {

if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");

		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			
			if (node.nodeName=="LI") {
				
				// using a mac browser
				if (hasMac >= 0) {
					node.style.width = 60;
					
					if (node.childNodes.length > 3) {
						node.onmouseover=function() {
							this.className+=" over";
						}
						node.onmouseout=function() {
							this.className=this.className.replace(" over", "");
						}
					}
					
				// using windows					
				} else {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
}
window.onload=startList;