Please re-edit your post - delete the script that's there, and post it again, but this time put it inside code tags, and put the whole lot inside spoiler tags.
Reason for the spoiler tags is that it's so big; reason for the code tags is that some of the code has been interpreted by the forum software and is not displaying as it's meant to; code tags also keeps the indenting which makes it easier to read. You will need to copy it again from the original source, not just copy what's already in your post, as the formatting has already been modified.
Also, is the script on a forum or something, with a bit of an explanation about how it works? If so, please just post a link to that, instead of pasting the script itself. A forum thread will usually have a more detailed explanation, as well as questions and answers from others who might have had issues.