Version Detector

This site has such great tutorials… I seem to remember one on creating a sniffer for detecting if the browser had the needed Shockwave plugin. Can someone please direct me to this or other HTML/Javascript code for Flash 5 plugin?

Thanks.