// JavaScript Document
<!--
function myFor(obj) {
	for (var key in obj)alert(key + ": " + obj[key]);
}
var showedEl = null;
startList = function() {
			navRoot1 = document.getElementById("topmenu");
			Add(navRoot1);

			function Add(navRoot) {

				//if (document.all && document.getElementById) {

					for (i=0; i<navRoot.childNodes.length; i++) {
						node = navRoot.childNodes[i];

						/*break;*/
						//alert(navRoot.childNodes.length);
						if (node.nodeName=="LI") {
							if (node.className.indexOf("selected") != -1 ) {
								showedEl = node;
							}
							node.onmouseover=function() {
                                if (showedEl) showedEl.className=showedEl.className.replace(" selected", "");
								showedEl = this;
								this.className+=" selected";
                            }
							node.onmouseout=function() {
								//this.className=this.className.replace(" over", "");
							}
						}
					}
				//}
				return;
			}
}







	function init() {
		// quit if this function has already been called
		if (arguments.callee.done) return;
		
		// flag this function so we don't do the same thing twice
		arguments.callee.done = true;
		
		// kill the timer
		if (_timer) {
			clearInterval(_timer);
			_timer = null;
		}
		
		// create the "page loaded" message
		startList();
	};
	
	/* for Mozilla */
	if (document.addEventListener) {
		document.addEventListener("DOMContentLoaded", init, false);
	}
	
	/* for Internet Explorer */
	/*@cc_on @*/
	/*@if (@_win32)
		document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
		var script = document.getElementById("__ie_onload");
		script.onreadystatechange = function() {
			if (this.readyState == "complete") {
				init(); // call the onload handler
			}
		};
	/*@end @*/
	
	/* for Safari */
	if (/WebKit/i.test(navigator.userAgent)) { // sniff
		var _timer = setInterval(function() {
			if (/loaded|complete/.test(document.readyState)) {
				init(); // call the onload handler
			}
		}, 10);
	}


window.onload = init;


//-->
