jQuery equivalent to [function].parameters from javascript
<p>I've had this javascript function that I've used many many times over ...</p>

<pre><code>function showHideObjects()
{
    var args;
    args = showHideObjects.arguments;

    for(var i=0;i&lt;args.length;i++)
    {
        if(document.getElementById(args[i]))
        {
            if(args[i+1] == 'flip')
            {
                if(document.getElementById(args[i]).style.display == '')
                {   document.getElementById(args[i]).style.display = 'none';}
                else
                {   document.getElementById(args[i]).style.display = '';}
            }
            else
            {       
                document.getElementById(args[i]).style.display = args[i+1];
            }
        }
        i++;
    }

}
</code></pre>

<p>Now I'm working with ASP.NET and need that same function but in jQuery but I can't find any information about dynamic parameters in jQuery.  Is there a way to do this in jQuery?</p>

<p>To provide a little more background ... you could call the above code with a line like ... <code>showHideObjects('div1','none')</code> and it'd hide div1.  Or you could call ... <code>showHideObjects('div1','none','div2','','div3','flip')</code> and it'd hide div1, show div2 and switch div3 from either hidden or shown.</p>
