Jörn Zaefferer’s (now deprecated) jQuery plugin, with tweaks.