Sweet monkey Jesus on a pogo stick! I've not seen a thing that ugly since I ran into the south end of a northbound moose. Very thoroughly obfuscated, though. Two thumbs way up!
Not obfuscated, recursive and aimed at a slightly different target, but somewhat related is this thread of mine, with lots of following discussion that the OP may still find to be useful. Feel free to exand (or compress ;-) on it, just like Tanktalusdid.