// Common JavaScript routines for NetGate Site
// Updated on 03.21.02 - Eun-Ha
// the document.write to link has been changed to look for the stylesheets in a "css/" directory

var an=navigator.appName; 		// tells if Netscape or Explorer
var av=navigator.appVersion; 		// tells if Mac or PC
var cssFile="";				// initial CSS file

if (an == "Netscape") // this is the Netscape browser sniffer
    {
     	if (av.indexOf("Mac") != -1) 
            {
            cssFile='macnn.css';
            } 
     	else if (av.indexOf("Win") != -1)
            {
            cssFile='winnn.css';
            }
	else if (av.indexOf("X11") != -1)
	    {
            cssFile='unixnn.css';
            }
	else
	    {
	    cssFile='other.css'
    	    }
    }

else if (an == "Microsoft Internet Explorer") // this is the MSIE browser sniffer
    {
	if (av.indexOf("Mac") != -1) 
            {
            cssFile='macie.css';
            } 
        else if (av.indexOf("Win") != -1)
            {
            cssFile='winie.css';
            }
	else if (av.indexOf("X11") != -1)
		    {
            cssFile='unixie.css';
            }
	else
	    {
            cssFile='other.css';
            }
    }

else
    {
    cssFile='other.css';
    }

document.write("<link href='/css/"+cssFile+"' rel='styleSheet' type='text/css'>");
