// Common JavaScript routines for NetGate Site
// Any browser or platform specific changes can be put into the 
// various .css files to override the declarations in the common.css file.

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='/css/macnn.css';
            } 
     	else if (av.indexOf("Win") != -1)
            {
            cssFile='/css/winnn.css';
            }
		else if (av.indexOf("X11") != -1)
		    {
            cssFile='/css/unixnn.css';
            }
		else
			{
			cssFile='/css/other.css'
    		}
    }

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

else
    {
	cssFile='other.css';
	}

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