/* ***************************************************************************************************************** o Don't forget to include the line BrowserDetect.init() in your code to populate the BrowserDetect object. You can then pull out the browser, version and OS with BrowserDetect.browser BrowserDetect.version BrowserDetect.OS ***************************************************************************************************************** */ var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i