Hey guys,
I'm about to upload a site that uses the following script to dish out stylesheets and redirect old browsers. I hacked a couple different scripts together, and think it works, but i dont have an old version of ie to test on.

Can anyone look this over for me and tell me how i can improve it?
Theres probably some dumb errors, as I am new to js.

Thanks in advance,

Anson

code follows:
----------------


<script type="text/javascript"><!--
var IE4 = (navigator.appVersion.indexOf("MSIE") > 0);
var Netscape = (navigator.appName == "Netscape");
if(Netscape) {
var NetscapeVer = parseFloat(navigator.appVersion);
}
var OPERA = navigator.userAgent.indexOf("Opera") > -1;
var SAFARI = navigator.userAgent.indexOf("Safari") > -1;
var OS;
if (navigator.appVersion.indexOf("Win") > 0) OS = "Windows";
if (navigator.appVersion.indexOf("Mac") > 0) {OS = "MacOS";}

switch (OS) {
case "Windows":
if (IE4 > 0) window.location="error.html";
if (NetscapeVer < 5) window.location="error.html";
if (NetscapeVer >= 5) window.location="error.html";
if (OPERA > 0) window.location="error.html";
break;
case "MacOS":
if (SAFARI > 0) window.location="error.html";
if (IE4 > 0) document.write ('<link href="../macIE.css" rel="stylesheet" type="text/css">');
if (NetscapeVer < 5) window.location="error.html";
if (NetscapeVer >= 5) window.location="error.html";
if (OPERA > 0) window.location="error.html";

break;
}
//-->
</script>