Author: Surya Kumar via http://pastebin.com/dTSeLVfj
from his comments on:
http://benalman.com/projects/jquery-resize-plugin/