// Determine if it is IE and Version
//This handles our local envs.
if (location.hostname.indexOf("mathworks.com")>=0) {
   prefix = "";
} else {
   prefix = "http://www.mathworks.com";
}

msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
index = navigator.appVersion.substr(msieIndex,3);
index = parseFloat (index);
if ((navigator.appName == "Microsoft Internet Explorer") && (index < 6 ) && navigator.platform == "Win32" ) {
    document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/ie4_5.css\" type=\"text/css\">");
    brows = "IE 5.5<";
    //alert ("you are IE 5.5 and DOWN on windows, you have the body td bug, and everyone in the world has you. You get Percentages!" + index);
} else if ((navigator.appName == "Microsoft Internet Explorer") && (index >= 6 ) && navigator.platform == "Win32" ) {
    document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/ie6_up.css\" type=\"text/css\">");
    brows = "IE 6>";
    // alert ("you are IE 6 and UP on windows, you are in Standards Mode DTD and everyone in the world has you. You get Percentages with EM's!" + index);
} else if (document.layers) {
    document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/nn_4.css\" type=\"text/css\">");
    brows = "NN4<";
    //alert ("you are Netscape 4 - you get points!" + index);
} else {
    document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/dom.css\" type=\"text/css\">");
    brows = "DOM";
    //alert ("you are DOM or Mac, or Netscape 4 or up or some other thing I dont know - you get pixels!" + index);
} // end if
document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/site4.css\" type=\"text/css\">");
document.write("<link rel=\"stylesheet\" href=\""+prefix+"/includes_content/css/print.css\" type=\"text/css\" media=\"print\">");
