Flash detector

Hi there

I saw the tutorial on http://www.kirupa.com/developer/mx/detection.htm and I was wondering how to make it so that if the person has flash it displays it, if they don’t it shows an error message that has a link to macromedia website which will load in a new page while the main page keeps refreshing?