Original plugin by iHWY. I fixed it so that its compatible with jQuery 1.4.X