(function(f){var g="string",k="head",u="body",v="script",i="readyState",d="preloaddone",n="loadtrigger",w="srcuri",q="preload",P="complete",o="done",p="which",x="preserve",r="onreadystatechange",E="onload",y="hasOwnProperty",F="script/cache",z="[object ",R=z+"Function]",S=z+"Array]",a=null,b=true,c=false,e=f.document,G=f.location,H=f.ActiveXObject,l=f.setTimeout,I=f.clearTimeout,A=function(a){return e.getElementsByTagName(a)},B=Object.prototype.toString,s=function(){},h={},C={},J=/^[^?#]*\//.exec(G.href)[0],K=/^\w+\:\/\/\/?[^\/]+/.exec(J)[0],T=A(v),L=f.opera&&B.call(f.opera)==z+"Opera]",M="MozAppearance"in e.documentElement.style,N=e.createElement(v).async===true,j={cache:!(M||L),order:M||L||N,xhr:b,dupe:b,base:"",which:k};j[x]=c;j[q]=b;h[k]=e.head||A(k);h[u]=A(u);function m(a){return B.call(a)===R}function D(b,c){var d=/^\w+\:\/\//,a;if(typeof b!=g)b="";if(typeof c!=g)c="";a=(/^\/\//.test(b)?G.protocol:"")+b;a=(d.test(a)?"":c)+a;return(d.test(a)?"":a.charAt(0)==="/"?K:J)+a}function U(a){return D(a).indexOf(K)===0}function Q(d){var a,e=-1;while(a=T[++e])if(typeof a.src==g&&d===D(a.src)&&a.type!==F)return b;return c}function t(G,u){G=!!G;if(u==a)u=j;var X=c,J=G&&u[q],Y=J&&u.cache,L=J&&u.order,Z=J&&u.xhr,ib=u[x],jb=u.which,kb=u.base,ab=s,M=c,K,A=b,z={},O=[],R=a;J=Y||Z||L;function bb(d,e){if(d[i]&&d[i]!==P&&d[i]!=="loaded"||e[o])return c;d[E]=d[r]=a;return b}function T(e,c,a){a=!!a;if(!a&&!bb(e,c))return;c[o]=b;for(var d in z)if(z[y](d)&&!z[d][o])return;X=b;ab()}function cb(b){if(m(b[n])){b[n]();b[n]=a}}function lb(c,a){if(!bb(c,a))return;a[d]=b;l(function(){h[a[p]].removeChild(c);cb(a)},0)}function mb(a,c){if(a[i]===4){a[r]=s;c[d]=b;l(function(){cb(c)},0)}}function V(f,q,i,n,j,o){var d=f[p];l(function(){if("item"in h[d]){if(!h[d][0]){l(arguments.callee,25);return}h[d]=h[d][0]}var p=e.createElement(v);if(typeof i==g)p.type=i;if(typeof n==g)p.charset=n;if(m(j)){p[E]=p[r]=function(){j(p,f)};p.src=q;if(N)p.async=c}h[d].insertBefore(p,d===k?h[d].firstChild:a);if(typeof o==g){p.text=o;T(p,f,b)}},0)}function db(a,c,d,e){C[a[w]]=b;V(a,c,d,e,T)}function eb(b,f,h,g){var e=arguments;if(A&&b[d]==a){b[d]=c;V(b,f,F,g,lb)}else if(!A&&b[d]!=a&&!b[d])b[n]=function(){eb.apply(a,e)};else!A&&db.apply(a,e)}function fb(e,h,i,j){var k=arguments,g;if(A&&e[d]==a){e[d]=c;g=e.xhr=H?new H("Microsoft.XMLHTTP"):new f.XMLHttpRequest;g[r]=function(){mb(g,e)};g.open("GET",h);g.send("")}else if(!A&&e[d]!=a&&!e[d])e[n]=function(){fb.apply(a,k)};else if(!A){C[e[w]]=b;V(e,h,i,j,a,e.xhr.responseText);e.xhr=a}}function gb(f){if(typeof f=="undefined"||!f)return;if(f.allowDup==a)f.allowDup=u.dupe;var m=f.src,j=f.type,i=f.charset,k=f.allowDup,e=D(m,kb),h,l=U(e);if(typeof i!=g)i=a;k=!!k;if(!k&&(C[e]!=a||A&&z[e]||Q(e))){z[e]!=a&&z[e][d]&&!z[e][o]&&l&&T(a,z[e],b);return}if(z[e]==a)z[e]={};h=z[e];if(h[p]==a)h[p]=jb;h[o]=c;h[w]=e;M=b;if(!L&&Z&&l)fb(h,e,j,i);else if(!L&&Y)eb(h,e,j,i);else db(h,e,j,i)}function W(a){G&&!L&&O.push(a);(!G||J)&&a()}function hb(b){for(var a=[],c=-1;++c<b.length;)if(B.call(b[c])===S)a=a.concat(hb(b[c]));else a[a.length]=b[c];return a}K={script:function(){I(R);var b=hb(arguments),d=K,a;if(ib)for(a=-1;++a<b.length;){if(m(b[a]))b[a]=b[a]();if(a===0)W(function(){gb(typeof b[0]==g?{src:b[0]}:b[0])});else d=d.script(b[a]);d=d.wait()}else{for(a=-1;++a<b.length;)if(m(b[a]))b[a]=b[a]();W(function(){for(a=-1;++a<b.length;)gb(typeof b[a]==g?{src:b[a]}:b[a])})}R=l(function(){A=c},5);return d},wait:function(a){I(R);A=c;if(!m(a))a=s;var b=t(G||M,u),f=b.trigger,d=function(){try{a()}catch(b){}f()};delete b.trigger;var e=function(){if(M&&!X)ab=d;else d()};if(G&&!M)O.push(e);else W(e);return b}};if(G)K.trigger=function(){var a,b=-1;while(a=O[++b])a();O=[]};else K.trigger=s;return K}function O(g){var b,d={},e={UseCachePreload:"cache",UseLocalXHR:"xhr",UsePreloading:q,AlwaysPreserveOrder:x,AllowDuplicates:"dupe"},f={AppendTo:p,BasePath:"base"};for(b in e)f[b]=e[b];d.order=!!j.order;for(b in f)if(f[y](b)&&j[f[b]]!=a)d[f[b]]=g[b]!=a?g[b]:j[f[b]];for(b in e)if(e[y](b))d[e[b]]=!!d[e[b]];if(!d[q])d.cache=d.order=d.xhr=c;d.which=d.which===k||d.which===u?d.which:k;return d}f.$LAB={setGlobalDefaults:function(a){j=O(a)},setOptions:function(a){return t(c,O(a))},script:function(){return t().script.apply(a,arguments)},wait:function(){return t().wait.apply(a,arguments)}};(function(b,d,f){if(e[i]==a&&e[b]){e[i]="loading";e[b](d,f=function(){e.removeEventListener(d,f,c);e[i]=P},c)}})("addEventListener","DOMContentLoaded")})(window);
