detected = (function () {
    var engine
      , browser
      , system
      , ua = win.navigator.userAgent