This is a great piece of utility code. Can't wait to steal some of these effects ;-)
Thanks for sharing!