Flash Detect: Image or Animation (n00b question)

Hi,
I want to use this script in my index file,
but I don’t know where to paste it….
Does it matter where?

Oystein