function initOnLoad(sElementName) {
	var oElement = (sElementName == "body") ? document[sElementName] : document.getElementById(sElementName);
	if (oElement != null && typeof(oElement) != "undefined") { init(); drop_menu_arr(); }
	else { setTimeout(function() { initOnLoad(sElementName); }, 0); }
}
initOnLoad("footer");

function $(id) {
	return document.getElementById(id);
}

function init() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("top_menu_drop");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="TD") {
				node.onmouseover=function() {
					if (this.className == "act") this.className="act_over";
					else this.className+=" over";
				}
				node.onmouseout=function() {
					if (this.className == "act_over") this.className="act";
					else this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function drop_menu_arr() {
	var top_menu = $('top_menu_drop');
	imgs = top_menu.getElementsByTagName('img');
	for (var i = 0; i < imgs.length; i++) {
		if (imgs[i].parentNode.parentNode.firstChild != imgs[i].parentNode.parentNode.lastChild) imgs[i].style.display = 'inline';
	}
}