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" && navigator.appVersion.substring(0,1) == "4") // this is the Netscape browser sniffer
    	 	{
     		if (navigator.appVersion.indexOf("Macintosh") == -1) 
          		{
          		cssFile='winnn.css';
          		} 
     		else 
          		{
          		cssFile='macnn.css';
          		}
     		}

else if (an == "Microsoft Internet Explorer") // this is the MSIE browser sniffer
     		{
         	if (av.indexOf("Macintosh") == -1) 
               	{
               	cssFile='winie.css';
               	} 
          	else 
               	{
               	cssFile='macie.css';
               	}
    		}
			
else // this is the other browser sniffer
     		{
         	if (av.indexOf("Macintosh") == -1) 
               	{
               	cssFile='winie.css';
               	} 
          	else 
               	{
               	cssFile='macie.css';
               	}
    		}

document.write("<link href='"+cssFile+"' rel='styleSheet' type='text/css'>")

