Code samples from JavaScript & jQuery - Interactive Web Development by Jon Duckett