/* K.I.L.L. BILL */
var closeInterval, closeObject, skipClose;
var closeInterval = false;
var old_onload = window.onload;
window.onload = function() {
    if (typeof old_onload == 'function')
    {
		var load_funct = old_onload;
		old_onload = null;
		load_funct();
    }
	if (document.all && document.getElementById)
		{
        var navRoot = document.getElementById('top');
        if (!navRoot)
        {
            return null;
        }
        for (i=0; i<navRoot.childNodes.length; i++)
        {
            node = navRoot.childNodes[i];
            var nodeName = node.nodeName.toLowerCase();
            if ((nodeName == 'li' || nodeName == 'ul'))
            {
                node.onmouseover = function()
                {
					if(this.className.indexOf(' over') == -1)
					{
						this.className += " over";
					}
					skipClose = true;
                }
                node.onmouseout = function()
                {
					skipClose = false;
					closeObject = this;
					if(!closeInterval)
					{
						closeInterval = window.setTimeout(closeMenu, 500);
					}
                }
            node = null;
            }
        }
    }
}
function closeMenu(){
	if(!skipClose)
	{
		closeObject.className = closeObject.className.replace(" over", "");
	}
	clearInterval(closeInterval);
	closeInterval = false;
}