'use strict'; Ox.load.UI = function(options, callback) { options = Ox.extend({ hideScreen: true, showScreen: false, theme: 'oxlight' }, options); var browsers = [ { name: 'Chrome Frame', url: 'http://www.google.com/chromeframe/' }, { name: 'Chrome', regexp: /Chrome\/(\d+)\./, url: 'http://www.google.com/chrome/', version: 10 }, { name: 'Firefox', regexp: /Firefox\/(\d+)\./, url: 'http://www.mozilla.org/firefox/', version: 4 }, { name: 'Safari', regexp: /Version\/(\d+).*? Safari/, url: 'http://www.apple.com/safari/', version: 5 }, { name: 'WebKit', regexp: /AppleWebKit\/(\d+)\./, version: 534 }, { name: 'Googlebot', regexp: /Googlebot\/(\d+)\./, version: 2 }, { name: 'Internet Explorer', url: 'http://windows.microsoft.com/en-US/internet-explorer/products/ie/home', version: 9 } ], browserSupported = false, colors = { marker: { '#000000': 'videoMarkerBorder', '#FFFFFF': 'videoMarkerBackground' }, symbol: { '#FF0000': 'symbolWarningColor' } }, images = {}, isInternetExplorer = /MSIE/.test(navigator.userAgent), loadingInterval, themes = {}; browsers.forEach(function(browser) { var match = browser.regexp && browser.regexp.exec(navigator.userAgent); if (match && match[1] >= browser.version) { browserSupported = true; } }); Ox.documentReady(function() { Ox.$('body').addClass( 'OxTheme' + Ox.toTitleCase(options.theme || 'oxlight') ); options.showScreen && showScreen(); }); loadFiles(); function showScreen() { var body = Ox.$('body'), css = { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, margin: 'auto', MozUserSelect: 'none', WebkitUserSelect: 'none' }, div = Ox.$('