Wordpress flash detect

Hi

I have a wordpress blog and a flash site. I want to show the blog only to those who don’t have flash.

I am trying to put the javascript inside the already existent index.php from wordpress but without success.

this is the wordpress index.php

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>

I need some way to detect if flash exists.

If yes redirect to another URL, and if not keep the same php info. Any idea?

Thanks