var BT=BT||{};BT.Loader=(function(j){var g,h,b={},e=0,f={css:[],js:[]},m=j.styleSheets;function l(p,o){var q=j.createElement(p),n;for(n in o){if(o.hasOwnProperty(n)){q.setAttribute(n,o[n])}}return q}function i(n){var q=b[n],r,o;if(q){r=q.callback;o=q.urls;o.shift();e=0;if(!o.length){r&&r.call(q.context,q.obj);b[n]=null;f[n].length&&k(n)}}}function c(){var n=navigator.userAgent;g={async:j.createElement("script").async===true};(g.webkit=/AppleWebKit\//.test(n))||(g.ie=/MSIE/.test(n))||(g.opera=/Opera/.test(n))||(g.gecko=/Gecko\//.test(n))||(g.unknown=true)}function k(z,y,A,v,r){var t=function(){i(z)},B=z==="css",o=[],u,w,s,q,x,n;g||c();if(y){y=typeof y==="string"?[y]:y.concat();if(B||g.async||g.gecko||g.opera){f[z].push({urls:y,callback:A,obj:v,context:r})}else{for(u=0,w=y.length;u=0){if(m[n].href===o.urls[0]){i("css");break}}e+=1;if(o){if(e<200){setTimeout(d,50)}else{i("css")}}}}return{css:function(p,q,o,n){k("css",p,q,o,n)},js:function(p,q,o,n){k("js",p,q,o,n)}}})(this.document);