ubc
jquery.com
learn.jquery.com
Bringing it all together
See the JavaScript to see a new plugin that uses all the ideas described here:
http://learn.jquery.com/plugins/basic-plugin-creation/