// javascript document
// from http://www.alistapart.com/articles/horizdropdowns/

var startNav = 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() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	
	if (document.all&&document.getElementById) {
		
		var subNavContainers = new Array( 'quickLinks', 'showsLinks' );
		
		for ( var count = 0; count < subNavContainers.length; count++ )
		{
			navRoot = document.getElementById( subNavContainers[count] );
			if ( typeof( navRoot ) == 'undefined' )
				continue;
			
			var nodeList = navRoot.getElementsByTagName( 'LI' );
			for (i=0; i<nodeList.length; i++) {
				node = nodeList[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
			
			var anchorList = navRoot.getElementsByTagName( 'A' );
			for (i=0; i<anchorList.length; i++) {
				node = anchorList[i];
				node.onfocus=function() {
					this.blur();
				}
			}
		}
	}
}

window.onload=startNav;