// JavaScript Document

var startList = function() {
	if (document.all&&document.getElementById) {
		function menulist(navRoot) {
			var i, node;
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="UL") {
					menulist(node);
				}
				if (node.nodeName=="LI") {
					menulist(node);
					node.onmouseover=function() {
						for (var j=0; j<this.childNodes.length; j++) {
							inode = this.childNodes[j];
							if ( inode.nodeName=="UL" || inode.nodeName=="H2" ) { inode.className += " over"; }
						}
					}
					node.onmouseout=function() {
						for (var j=0; j<this.childNodes.length; j++) {
							inode = this.childNodes[j];
							if ( inode.nodeName=="UL" || inode.nodeName=="H2" ) { inode.className=this.className.replace(" over", ""); }
						}
					}
				}
			}
		}
		menulist(document.getElementById('main_nav'));
	}
}

var _mf_onload_handlers = [];
function add_onload(func) {
    _mf_onload_handlers[_mf_onload_handlers.length] = func;
}
window.onload = function() {
    for ( var i = 0; i < _mf_onload_handlers.length; i++ ) {
        var func = _mf_onload_handlers[i];
        if ( typeof( func ) == 'function' ) {
            func();
        } else if ( typeof( func ) == 'string' ) {
            eval( func );
        }
    }
}
window.add_onload(startList);

