Flash detection thing

How do you put a thing on your page that will detect if the visitor has the proper flash plug-in to view your site? And if they don’t a link that points them to where they can get it?

Any help would be great

Thanks

http://www.macromedia.com/support/flash/detection.html