jQuery drop down menu close open topics
<p>Please see <a href="http://www.laerdalmail.com/dev/discoversimulation/needs/#" rel="nofollow">http://www.laerdalmail.com/dev/discoversimulation/needs/#</a> for an example of the menu in question:
When a topic is clicked, and a sub menu drops down, is it possible to have any other open topic automatically close? Below, I have included the function that handles the dropdown for review.</p>

<pre><code>function Reveal(a, orig_height) {
    var ul = a.parentNode.getElementsByTagName("ul").item(0);

    $(ul).animate({
        height: 'toggle',
        opacity: 'toggle'
    }, 'slow', function() {
        if ($(ul.parentNode).height() &lt; orig_height) {
            $(a).css('backgroundPosition', '0 0');
        }
    });
}​
</code></pre>
