I took the example from alistapart and tried to come up with a jQuery solution. This is my proposal. Use as you wish.
2010-02-09, Arno Richter