Drupal.behaviors.schnabl = function (ctx) {
  var is_mac = function () {
        try {
            return navigator.platform.toLowerCase().indexOf('mac') >= 0;
        } catch (err) {
            // pass
        }
        return false;
      };
  
  (function () {
    if (is_mac()) {
      var l = document.createElement('link');
      l.setAttribute('rel', 'stylesheet');
      l.setAttribute('type', 'text/css');
      l.setAttribute('href', '/sites/all/themes/schnabl/style-mac.css');
      document.getElementsByTagName('head')[0].appendChild(l);
    }
  })();
};

