(function(a,b,c){function B(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function C(){var a=1,b=-1;while(h.length- ++b)if(h[b].s&&!(a=h[b].r))break;a&&F()}function D(a,c,d,g,h){var j=b.createElement("script"),l;j.src=a;for(i in d)j.setAttribute(i,d[i]);c=h?C:c||k,j.onreadystatechange=j.onload=function(){!l&&B(j.readyState)&&(l=1,c(),j.onload=j.onreadystatechange=null)},e(function(){l||(l=1,c())},A.errorTimeout),g?j.onload():f.parentNode.insertBefore(j,f)}function E(a,c,d,g,h){function n(){j||(j=1,e(c,0))}var i=b.createElement("link"),j,m;c=h?C:c||k,i.href=a,i.rel="stylesheet",i.type="text/css";for(m in d)i.setAttribute(m,d[m]);!g&&(q||l)?function o(){e(function(){if(!j)try{i.sheet.cssRules,n()}catch(a){a.code>0?n():o()}},0)}():(i.onload=n,g&&n()),e(n,A.errorTimeout),!g&&f.parentNode.insertBefore(i,f)}function F(){var a=h.shift();j=1,a?a.t?e(function(){a.t=="c"?E(a.s,0,a.a,a.e,1):D(a.s,0,a.a,a.e,1)},0):(a(),C()):j=0}function G(a,c,d,g,i,k,l){function r(){!p&&B(o.readyState)&&(q.r=p=1,!j&&C(),o.onload=o.onreadystatechange=null,a=="object"&&e(function(){n.removeChild(o)},50))}var o=b.createElement(a),p=0,q={t:d,s:c,e:k,a:l};o.src=o.data=c,o.width=o.height="0",o.onerror=o.onload=o.onreadystatechange=r,h.splice(g,0,q),a=="object"&&n.insertBefore(o,m?null:f),e(r,A.errorTimeout)}function H(a,b,c,e){return j=0,b=b||"j",v(a)?G(b=="c"?s:r,a,b,this.i++,d,c,e):(h.splice(this.i++,0,a),h.length==1&&F()),this}function I(){var a=A;return a.loader={load:H,i:0},a}var d=b.documentElement,e=a.setTimeout,f=b.getElementsByTagName("script")[0],g={}.toString,h=[],j=0,k=function(){},l="MozAppearance"in d.style,m=l&&!!b.createRange().compareNode,n=m?d:f.parentNode,o=a.opera&&g.call(a.opera)=="[object Opera]",p=!!b.attachEvent,q="webkitAppearance"in d.style,r=l?"object":"img",s=p?"script":r,t=Array.isArray||function(a){return g.call(a)=="[object Array]"},u=function(a){return Object(a)===a},v=function(a){return typeof a=="string"},w=function(a){return g.call(a)=="[object Function]"},x=[],y={},z,A;A=function(a){function f(a){var b=a.split("!"),c=x.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=y[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=x[h](f);return f}function g(a,b,d,e,g){var h=f(a),i=h.autoCallback;if(h.bypass)return;b&&(b=w(b)?b:b[a]||b[e]||b[a.split("/").pop().split("?")[0]]);if(h.instead)return h.instead(a,b,d,e,g);d.load(h.url,h.forceCSS||!h.forceJS&&/css$/.test(h.url)?"c":c,h.noexec,h.attrs),(w(b)||w(i))&&d.load(function(){I(),b&&b(h.origUrl,g,e),i&&i(h.origUrl,g,e)})}function h(a,b){function i(a){if(v(a))g(a,f,b,0,c);else if(u(a))for(h in a)a.hasOwnProperty(h)&&g(a[h],f,b,h,c)}var c=!!a.test,d=c?a.yep:a.nope,e=a.load||a.both,f=a.callback,h;i(d),i(e),a.complete&&b.load(a.complete)}var b,d,e=this.yepnope.loader;if(v(a))g(a,0,e,0);else if(t(a))for(b=0;b<a.length;b++)d=a[b],v(d)?g(d,0,e,0):t(d)?A(d):u(d)&&h(d,e);else u(a)&&h(a,e)},A.addPrefix=function(a,b){y[a]=b},A.addFilter=function(a){x.push(a)},A.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",z=function(){b.removeEventListener("DOMContentLoaded",z,0),b.readyState="complete"},0)),A.injectJs=D,A.injectCss=E,a.yepnope=I()})(this,this.document)

