Flash Detection

See the script file or the blog entry on this script for details on how this works.