I have some navigation that works by clicking on one dom element and animating another. What I want to do now is tie the onmouseout event to BOTH those dom elements so that if the mouse cursor stays inside either of them, the navigation panel stays open, but when the mouse leaves either of them, it closes automatically. I have another animations that works similarly but only by chance because the animation scrolls down so the mouse cursor is instantly hovering over the panel in question.
So how do I accomplish this? OR alternatively, how can I set a timeout event so that after "x" seconds the panels automatically close?