Quick note: I know the script call should ideally be in the head tag, but this is going into a CMS that doesn't allow me access to the page head! - so this'll have to do...
I have the following piece of code that I've been going over in my head for a few hours now and I'm drawing blanks! This is an extended version of a script I found on this site - but I...