﻿window.Modernizr=function(I,K,M){function V(){Q.input=function(d){for(var e=0,f=d.length;e<f;e++){aj[d[e]]=!!(d[e] in ab)}return aj}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),Q.inputtypes=function(b){for(var c=0,g,j,k,l=b.length;c<l;c++){ab.setAttribute("type",j=b[c]),g=ab.type!=="text",g&&(ab.value=ac,ab.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(j)&&ab.style.WebkitAppearance!==M?(U.appendChild(ab),k=K.defaultView,g=k.getComputedStyle&&k.getComputedStyle(ab,null).WebkitAppearance!=="textfield"&&ab.offsetHeight!==0,U.removeChild(ab)):/^(search|tel)$/.test(j)||(/^(url|email)$/.test(j)?g=ab.checkValidity&&ab.checkValidity()===!1:/^color$/.test(j)?(U.appendChild(ab),U.offsetWidth,g=ab.value!=ac,U.removeChild(ab)):g=ab.value!=ac)),ai[b[c]]=!!g}return ai}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function T(e,f){var g=e.charAt(0).toUpperCase()+e.substr(1),h=(e+" "+af.join(g+" ")+g).split(" ");return !!R(h,f)}function R(c,e){for(var f in c){if(aa[c[f]]!==M&&(!e||e(c[f],Z))){return !0}}}function P(c,d){return(""+c).indexOf(d)!==-1}function N(c,d){return typeof c===d}function L(c,d){return J(ae.join(c+";")+(d||""))}function J(b){aa.cssText=b}var O="1.7",Q={},S=!0,U=K.documentElement,W=K.head||K.getElementsByTagName("head")[0],Y="modernizr",Z=K.createElement(Y),aa=Z.style,ab=K.createElement("input"),ac=":)",ad=Object.prototype.toString,ae=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),af="Webkit Moz O ms Khtml".split(" "),ag={svg:"http://www.w3.org/2000/svg"},ah={},ai={},aj={},ak=[],al,am=function(b){var f=K.createElement("style"),g=K.createElement("div"),h;f.textContent=b+"{#modernizr{height:3px}}",W.appendChild(f),g.id="modernizr",U.appendChild(g),h=g.offsetHeight===3,f.parentNode.removeChild(f),g.parentNode.removeChild(g);return !!h},an=function(){function c(a,g){g=g||K.createElement(b[a]||"div");var h=(a="on"+a) in g;h||(g.setAttribute||(g=K.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(a,""),h=N(g[a],"function"),N(g[a],M)||(g[a]=M),g.removeAttribute(a))),g=null;return h}var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c}(),ao=({}).hasOwnProperty,ap;N(ao,M)||N(ao.call,M)?ap=function(c,d){return d in c&&N(c.constructor.prototype[d],M)}:ap=function(c,d){return ao.call(c,d)},ah.hashchange=function(){return an("hashchange",I)&&(K.documentMode===M||K.documentMode>7)},ah.history=function(){return !!(I.history&&history.pushState)},ah.draganddrop=function(){return an("dragstart")&&an("drop")},ah.cssgradients=function(){var d="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",f="linear-gradient(left top,#9f9, white);";J((d+ae.join(e+d)+ae.join(f+d)).slice(0,-d.length));return P(aa.backgroundImage,"gradient")},ah.fontface=function(){var b,g,h=W||U,j=K.createElement("style"),k=K.implementation||{hasFeature:function(){return !1}};j.type="text/css",h.insertBefore(j,h.firstChild),b=j.sheet||j.styleSheet;var l=k.hasFeature("CSS2","")?function(a){if(!b||!a){return !1}var e=!1;try{b.insertRule(a,0),e=/src/i.test(b.cssRules[0].cssText),b.deleteRule(b.cssRules.length-1)}catch(f){}return e}:function(a){if(!b||!a){return !1}b.cssText=a;return b.cssText.length!==0&&/src/i.test(b.cssText)&&b.cssText.replace(/\r+|\n+/g,"").indexOf(a.split(" ")[0])===0};g=l('@font-face { font-family: "font"; src: url(data:,); }'),h.removeChild(j);return g},ah.video=function(){var b=K.createElement("video"),e=!!b.canPlayType;if(e){e=new Boolean(e),e.ogg=b.canPlayType('video/ogg; codecs="theora"');var f='video/mp4; codecs="avc1.42E01E';e.h264=b.canPlayType(f+'"')||b.canPlayType(f+', mp4a.40.2"'),e.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"')}return e};for(var X in ah){ap(ah,X)&&(al=X.toLowerCase(),Q[al]=ah[X](),ak.push((Q[al]?"":"no-")+al))}Q.input||V(),Q.crosswindowmessaging=Q.postmessage,Q.historymanagement=Q.history,Q.addTest=function(c,d){c=c.toLowerCase();if(!Q[c]){d=!!d(),U.className+=" "+(d?"":"no-")+c,Q[c]=d;return Q}},J(""),Z=ab=null,S&&I.attachEvent&&function(){var b=K.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(q,r){function F(g,h){var i=-1,j=g.length,k,l=[];while(++i<j){k=g[i],(h=k.media||h)!="screen"&&l.push(F(k.imports,h),k.cssText)}return l.join("")}function E(c){var d=-1;while(++d<u){c.createElement(t[d])}}var s="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",t=s.split("|"),u=t.length,v=new RegExp("(^|\\s)("+s+")","gi"),w=new RegExp("<(/*)("+s+")","gi"),x=new RegExp("(^|[^\\n]*?\\s)("+s+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),y=r.createDocumentFragment(),z=r.documentElement,A=z.firstChild,B=r.createElement("body"),C=r.createElement("style"),D;E(r),E(y),A.insertBefore(C,A.firstChild),C.media="print",q.attachEvent("onbeforeprint",function(){var b=-1,d=F(r.styleSheets,"all"),e=[],f;D=D||r.body;while((f=x.exec(d))!=null){e.push((f[1]+f[2]+f[3]).replace(v,"$1.iepp_$2")+f[4])}C.styleSheet.cssText=e.join("\n");while(++b<u){var g=r.getElementsByTagName(t[b]),h=g.length,i=-1;while(++i<h){g[i].className.indexOf("iepp_")<0&&(g[i].className+=" iepp_"+t[b])}}y.appendChild(D),z.appendChild(B),B.className=D.className,B.innerHTML=D.innerHTML.replace(w,"<$1font")}),q.attachEvent("onafterprint",function(){B.innerHTML="",z.removeChild(B),z.appendChild(D),C.styleSheet.cssText=""})}(I,K),Q._enableHTML5=S,Q._version=O,U.className=U.className.replace(/\bno-js\b/,"")+" js "+ak.join(" ");return Q}(this,this.document),function(I,K,M){function aa(b){return !b||b=="loaded"||b=="complete"}function Z(){var c=1,d=-1;while(af.length- ++d){if(af[d].s&&!(c=af[d].r)){break}}c&&U()}function Y(b){var e=K.createElement("script"),f;e.src=b.s,e.onreadystatechange=e.onload=function(){!f&&aa(e.readyState)&&(f=1,Z(),e.onload=e.onreadystatechange=null)},ac(function(){f||(f=1,Z())},X.errorTimeout),b.e?e.onload():ad.parentNode.insertBefore(e,ad)}function W(b){var f=K.createElement("link"),g;f.href=b.s,f.rel="stylesheet",f.type="text/css",!b.e&&(am||ah)?function h(c){ac(function(){if(!g){try{c.sheet.cssRules.length?(g=1,Z()):h(c)}catch(a){a.code==1000||a.message=="security"||a.message=="denied"?(g=1,ac(function(){Z()},0)):h(c)}}},0)}(f):(f.onload=function(){g||(g=1,ac(function(){Z()},0))},b.e&&f.onload()),ac(function(){g||(g=1,Z())},X.errorTimeout),!b.e&&ad.parentNode.insertBefore(f,ad)}function U(){var b=af.shift();ag=1,b?b.t?ac(function(){b.t=="c"?W(b):Y(b)},0):(b(),Z()):ag=0}function S(b,g,j,k,m,n){function p(){!s&&aa(q.readyState)&&(t.r=s=1,!ag&&Z(),q.onload=q.onreadystatechange=null,ac(function(){ak.removeChild(q)},0))}var q=K.createElement(b),s=0,t={t:j,s:g,e:n};q.src=q.data=g,!ai&&(q.style.display="none"),q.width=q.height="0",b!="object"&&(q.type=j),q.onload=q.onreadystatechange=p,b=="img"?q.onerror=p:b=="script"&&(q.onerror=function(){t.e=t.r=1,U()}),af.splice(k,0,t),ak.insertBefore(q,ai?null:ad),ac(function(){s||(ak.removeChild(q),t.r=t.e=s=1,Z())},X.errorTimeout)}function Q(e,f,g){var h=f=="c"?ap:ao;ag=0,f=f||"j",N(e)?S(h,e,f,this.i++,ab,g):(af.splice(this.i++,0,e),af.length==1&&U());return this}function O(){var b=X;b.loader={load:Q,i:0};return b}var ab=K.documentElement,ac=I.setTimeout,ad=K.getElementsByTagName("script")[0],ae=({}).toString,af=[],ag=0,ah="MozAppearance" in ab.style,ai=ah&&!!K.createRange().compareNode,aj=ah&&!ai,ak=ai?ab:ad.parentNode,al=I.opera&&ae.call(I.opera)=="[object Opera]",am="webkitAppearance" in ab.style,an=am&&"async" in K.createElement("script"),ao=ah?"object":al||an?"img":"script",ap=am?"img":ao,J=Array.isArray||function(b){return ae.call(b)=="[object Array]"},L=function(b){return typeof b=="object"},N=function(b){return typeof b=="string"},P=function(b){return ae.call(b)=="[object Function]"},R=[],T={},V,X;X=function(c){function k(i){var o=i.split("!"),p=R.length,q=o.pop(),r=o.length,s={url:q,origUrl:q,prefixes:o},t,u;for(u=0;u<r;u++){t=T[o[u]],t&&(s=t(s))}for(u=0;u<p;u++){s=R[u](s)}return s}function j(f,o,p,q,r){var s=k(f),t=s.autoCallback;if(!s.bypass){o&&(o=P(o)?o:o[f]||o[q]||o[f.split("/").pop().split("?")[0]]);if(s.instead){return s.instead(f,o,p,q,r)}p.load(s.url,s.forceCSS||!s.forceJS&&/css$/.test(s.url)?"c":M,s.noexec),(P(o)||P(t))&&p.load(function(){O(),o&&o(s.origUrl,r,q),t&&t(s.origUrl,r,q)})}}function d(e,o){function p(b){if(N(b)){j(b,t,o,0,q)}else{if(L(b)){for(u in b){b.hasOwnProperty(u)&&j(b[u],t,o,u,q)}}}}var q=!!e.test,r=q?e.yep:e.nope,s=e.load||e.both,t=e.callback,u;p(r),p(s),e.complete&&o.load(e.complete)}var l,m,n=this.yepnope.loader;if(N(c)){j(c,0,n,0)}else{if(J(c)){for(l=0;l<c.length;l++){m=c[l],N(m)?j(m,0,n,0):J(m)?X(m):L(m)&&d(m,n)}}else{L(c)&&d(c,n)}}},X.addPrefix=function(c,d){T[c]=d},X.addFilter=function(b){R.push(b)},X.errorTimeout=10000,K.readyState==null&&K.addEventListener&&(K.readyState="loading",K.addEventListener("DOMContentLoaded",V=function(){K.removeEventListener("DOMContentLoaded",V,0),K.readyState="complete"},0)),I.yepnope=O()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
