function getOut(e, inE){ if (!e) var e = window.event; var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement; while (reltg.tagName != 'BODY'){ if ( reltg.id == 'subnavi' ){ return; } reltg = reltg.parentNode; } clearSubmenu(); } function clearSubmenu() { document.getElementById('subnavi').style.display = 'none'; } function displaySubmenu() { document.getElementById('subnavi').style.display = ''; }