// Menu flyout for IE taken from alistapart.com

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
				}
				node.onmouseout=function() {
				obj=this;
					mo = function(){
						obj.className=obj.className.replace(" over", "");
					}
					setTimeout("mo()", 500);
					closeOthers(obj);
				}
			}
		}
		closeOthers = function(current){
			for(i=0; i<navRoot.childNodes.length; i++){
				node = navRoot.childNodes[i];
				if(node != current) node.className = "";
			}
		}
	}
} 
window.onload=startList;
//hilight handling - (dlaz)
function overH(e){
	if(!e) var e = window.event;
	if(e.target && e.target.tagName=="LI"){	//this is lame
		e.target.parentNode.className='left-active'
	}
}
function outH(e){
	if(!e) var e = window.event;
	if(e.target && e.target.tagName=="LI"){	//this is lame
		e.target.parentNode.className='';
	}
}
document.onmouseover =	overH;
document.onmouseout  =	outH;
