Ok, I've pulled up my code and lets see if I can explain it. I've been around awhile and when you've had to revisit code that's really old the last thing you need is code that's too clever for it's own good and unreadable. Better to be less intense and more readable/maintainable. So, I start with a simple switch to allow me to quickly turn my code from a gif to a
regular script. If ...