sample code from jquery hotshot book