how do I take multiple nested arguments in a jquery plugin?
<p>I am learning how to make jquery plugins, and I am trying to make a simple slideshow plugin. I want it to look like:</p>

<pre><code>$("#container").myslider({
   settings:{
      //slide1,  slide2 etc are supposed to be ids of slide divs
      slide1:{
         option1:"something",
         option2:"something"
      }
      slide2:{
      ............ 
       .......
       .......

   }
})
</code></pre>

<p>As you can see, <code>settings</code> is the actual parameter, but I want it to accept nested parameters. But since I don't know the number of slides beforehand, I can't simply define those. So what would the basic plugin structure look like to handle this sort of nested+dynamic argument? </p>
