Hi Guys

I am a beginner to JavaScript and found a Script to redirect to either a
HTML only version of a site or another with a Flash movie integrated. I would
like to automatically redirect the visitors to the appropriate site, depending
if they have the Flash plugin installed. I used the code below, but it does
not work. The files are in subfolder as I want to make it work before it
is uploaded as the index page. I would be really happy when someone could
help with my question.

Best regards,

<BODY bgColor=#87acff>
<!-- Begin
var plugin=navigator.plugins["Shockwave Flash"];
if (plugin) {
else {
// End -->