jQuery Plugins: If I want to call something like $('selector').plugin.group.method(), how can I achieve this?
<p>I have written some relatively simple jQuery plug-ins, but I am contemplating writing something more advanced in order to keep commonly used methods on the site easily accessible and DRY</p>

<p>For example, I might have something like this for a structure:</p>

<pre>
plugin
- popup
- element
...

=== popup ===
- login
- product
...

=== element ===
- shoppingCart
- loginStatus
...
</pre>

<p>So, to bind a popup login popup event, I'd like to be able to do:
$('#login_button').plugin.popup.login();</p>

<p>What's the best way to do this? Is there a better way of achieving what I want to do?</p>

<p>Cheers,</p>
