Welcome to the questionable coding hell.

(Feel free to plop the code open with F12 and use it for your sites if you want to do so!)