IF load takes to long skip

I am having issues with a server that is taking a long time to load flash on different occasions. So what I would like to do is redirect to a different page if the flash is taking more than say 10 secs to load. Is there a way to do this?