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,
Megsunny


<BODY bgColor=#87acff>
<!-- Begin
var plugin=navigator.plugins["Shockwave Flash"];
if (plugin) {
window.location.href=('http://www.painterdecorator.com/try/painterdecorator.html');
}
else {
window.location.href=('http://www.painterdecorator.com/try/painterdecorator2.html');
}
// End -->
</script>
</body>