Pass references to javascript functions that use jquery
<p>I have a number of links that, when clicked, are going to make some divs show and others not.</p>

<pre><code>function slideup(whichdiv)
{
    $("#div1").hide();
    $("#div2").slideDown(2000);
    $(whichdiv)slideDown(2000);
}
</code></pre>

<p>The function above works if the 3rd line is missing ... how do you pass a reference to a div to a jquery function? How do you get it to know which of the divs is 'whichdiv'?</p>
