if ((navigator.userAgent.indexOf("Mac") != -1))  
            document.write("<link rel='stylesheet' href='/css/mac_ie.css'>")  
if ((navigator.userAgent.indexOf("Linux") != -1))  
            document.write("<link rel='stylesheet' href='/css/pc.css'>") 
if (navigator.userAgent.indexOf('Win') != -1){  
            if (navigator.appName.indexOf('Netscape') != -1) { 
                document.write("<link rel='stylesheet' href='/css/pc.css'>") 
                } 
                else {  
                    document.write("<link rel='stylesheet' href='/css/pc_ie.css'>") 
                } 
            } 

ns4 = (document.layers)? 1:0
ie4 = (document.all)? 1:0
ie5 = (navigator.appVersion.indexOf('MSIE 5')>0)? 1:0

function WM_netscapeCssFix() {
  //thanks to webmonkey for the netscape fix! maybe it'll all be well in 5.0...  
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}