See http://gist.github.com/646354 for code; there's also a jsFiddle http://jsfiddle.net/bhofmann/Agt3G/.
Addy Osmani presents some performance tips and tricks for your jQuery apps.
More stuff from “Tutorials”
Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!
Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.