Credits for the original code go to Rappy and Galil. If you'd like to use it, give them credit. Thanks to Eleazaros for the IE-compatible version.