If flash->flashsite, if not->htmlsite

is there any way of making your site know if the viewer has flash or not? so that before the site is loaded if the viewer has flash installed, the flash-site is shown, and if not the html-site is shown? this is to get rid of the “choose: flash / html” page i have…