var os = (navigator.appVersion.indexOf ("Win", 0) != -1) ? "win" : "mac"; if (os == "win" || os == "mac") { document.write ('<link rel="stylesheet" type="text/css" href="/web/css/' + os + '.css">'); }