window.Modernizr=function(g,e,l){function h(a,c){return typeof a===c}function o(a,c){for(var f in a)if(j[a[f]]!==l)return c=="pfx"?a[f]:true;return false}function k(a,c){var f=a.charAt(0).toUpperCase()+a.substr(1),f=(a+" "+m.join(f+" ")+f).split(" ");return o(f,c)}function E(){d.input=function(a){for(var c=0,f=a.length;c<f;c++)A[a[c]]=!!(a[c]in i);return A}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));d.inputtypes=function(a){for(var c=0,f,b,d=a.length;c<
d;c++){i.setAttribute("type",b=a[c]);if(f=i.type!=="text")i.value=r,i.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(b)&&i.style.WebkitAppearance!==l?(n.appendChild(i),f=e.defaultView,f=f.getComputedStyle&&f.getComputedStyle(i,null).WebkitAppearance!=="textfield"&&i.offsetHeight!==0,n.removeChild(i)):/^(search|tel)$/.test(b)||(/^(url|email)$/.test(b)?f=i.checkValidity&&i.checkValidity()===false:/^color$/.test(b)?(n.appendChild(i),f=i.value!=r,n.removeChild(i)):f=i.value!=r);B[a[c]]=
!!f}return B}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d={},n=e.documentElement;e.head||e.getElementsByTagName("head");var b=e.createElement("modernizr"),j=b.style,i=e.createElement("input"),r=":)",C=Object.prototype.toString,p=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),m="Webkit Moz O ms Khtml".split(" "),b={},B={},A={},D=[],u,w=function(a,c,f,b){var d,g=e.createElement("div");if(parseInt(f,10))for(;f--;)d=e.createElement("div"),d.id=
b?b[f]:"modernizr"+(f+1),g.appendChild(d);f=["&shy;<style>",a,"</style>"].join("");g.id="modernizr";g.innerHTML+=f;n.appendChild(g);a=c(g,a);g.parentNode.removeChild(g);return!!a},v=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(c,f){var f=f||e.createElement(a[c]||"div"),c="on"+c,b=c in f;b||(f.setAttribute||(f=e.createElement("div")),f.setAttribute&&f.removeAttribute&&(f.setAttribute(c,""),b=h(f[c],"function"),h(f[c],
l)||(f[c]=l),f.removeAttribute(c)));return b}}(),x={}.hasOwnProperty,y;y=!h(x,l)&&!h(x.call,l)?function(a,c){return x.call(a,c)}:function(a,c){return c in a&&h(a.constructor.prototype[c],l)};(function(a,c){var b=a.join(""),t=c.length;w(b,function(a,c){for(var b=e.styleSheets[e.styleSheets.length-1],b=b.cssRules&&b.cssRules[0]?b.cssRules[0].cssText:b.cssText||"",f=a.childNodes,h={};t--;)h[f[t].id]=f[t];d.touch="ontouchstart"in g||h.touch.offsetTop===9;d.csstransforms3d=h.csstransforms3d.offsetLeft===
9;d.generatedcontent=h.generatedcontent.offsetHeight>=1;d.fontface=/src/i.test(b)&&b.indexOf(c.split(" ")[0])===0},t,c)})(['@font-face {font-family:"font";src:url("https://")}',["@media (",p.join("touch-enabled),("),"modernizr){#touch{top:9px;position:absolute}}"].join(""),["@media (",p.join("transform-3d),("),"modernizr){#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',r,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);
b.flexbox=function(){var a=e.createElement("div"),c=e.createElement("div"),b="display";b+=":";a.style.cssText=(b+p.join("box;"+b)).slice(0,-b.length)+"width:42px;padding:0;";c.style.cssText=p.join("box-flex:1;")+"width:10px;";a.appendChild(c);n.appendChild(a);b=c.offsetWidth===42;a.removeChild(c);n.removeChild(a);return b};b.canvas=function(){var a=e.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))};b.canvastext=function(){return!(!d.canvas||!h(e.createElement("canvas").getContext("2d").fillText,
"function"))};b.webgl=function(){return!!g.WebGLRenderingContext};b.touch=function(){return d.touch};b.geolocation=function(){return!!navigator.geolocation};b.postmessage=function(){return!!g.postMessage};b.websqldatabase=function(){return!!g.openDatabase};b.indexedDB=function(){for(var a=-1,c=m.length;++a<c;)if(g[m[a].toLowerCase()+"IndexedDB"])return true;return!!g.indexedDB};b.hashchange=function(){return v("hashchange",g)&&(e.documentMode===l||e.documentMode>7)};b.history=function(){return!(!g.history||
!history.pushState)};b.draganddrop=function(){return v("dragstart")&&v("drop")};b.websockets=function(){for(var a=-1,c=m.length;++a<c;)if(g[m[a]+"WebSocket"])return true;return"WebSocket"in g};b.rgba=function(){j.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+j.backgroundColor).indexOf("rgba")};b.hsla=function(){j.cssText="background-color:hsla(120,40%,100%,.5)";return!!~(""+j.backgroundColor).indexOf("rgba")||!!~(""+j.backgroundColor).indexOf("hsla")};b.multiplebgs=function(){j.cssText=
"background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(j.background)};b.backgroundsize=function(){return k("backgroundSize")};b.borderimage=function(){return k("borderImage")};b.borderradius=function(){return k("borderRadius")};b.boxshadow=function(){return k("boxShadow")};b.textshadow=function(){return e.createElement("div").style.textShadow===""};b.opacity=function(){var a=p.join("opacity:.55;")+"";j.cssText=a;return/^0.55$/.test(j.opacity)};b.cssanimations=function(){return k("animationName")};
b.csscolumns=function(){return k("columnCount")};b.cssgradients=function(){var a=("background-image:"+p.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+p.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);j.cssText=a;return!!~(""+j.backgroundImage).indexOf("gradient")};b.cssreflections=function(){return k("boxReflect")};b.csstransforms=function(){return!!o(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};
b.csstransforms3d=function(){var a=!!o(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in n.style&&(a=d.csstransforms3d);return a};b.csstransitions=function(){return k("transitionProperty")};b.fontface=function(){return d.fontface};b.generatedcontent=function(){return d.generatedcontent};b.video=function(){var a=e.createElement("video"),c=false;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"'),
c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}catch(b){}return c};b.audio=function(){var a=e.createElement("audio"),c=false;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(b){}return c};
b.localstorage=function(){try{return!!localStorage.getItem}catch(a){return false}};b.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return false}};b.webworkers=function(){return!!g.Worker};b.applicationcache=function(){return!!g.applicationCache};b.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};b.inlinesvg=function(){var a=e.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==
"http://www.w3.org/2000/svg"};b.smil=function(){return!!e.createElementNS&&/SVG/.test(C.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};b.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(C.call(e.createElementNS("http://www.w3.org/2000/svg","clipPath")))};for(var z in b)y(b,z)&&(u=z.toLowerCase(),d[u]=b[z](),D.push((d[u]?"":"no-")+u));d.input||E();d.addTest=function(a,c){if(typeof a=="object")for(var b in a)y(a,b)&&d.addTest(b,a[b]);else{a=a.toLowerCase();if(d[a]!==
l)return;c=typeof c=="boolean"?c:!!c();n.className+=" "+(c?"":"no-")+a;d[a]=c}return d};j.cssText="";b=i=null;g.attachEvent&&function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function f(a){for(var b=-1;++b<h;)a.createElement(g[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",g=e.split("|"),
h=g.length,i=RegExp("(^|\\s)("+e+")","gi"),j=RegExp("<(/*)("+e+")","gi"),k=/^\s*[\{\}]\s*$/,n=RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),p=b.createDocumentFragment(),o=b.documentElement,e=o.firstChild,m=b.createElement("body"),s=b.createElement("style"),r=/print|all/,q;d.getCSS=function(a,b){if(a+""===l)return"";for(var c=-1,f=a.length,e,g=[];++c<f;)e=a[c],e.disabled||(b=e.media||b,r.test(b)&&g.push(d.getCSS(e.imports,b),e.cssText),b="all");return g.join("")};d.parseCSS=function(a){for(var b=
[],c;(c=n.exec(a))!=null;)b.push(((k.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(i,"$1.iepp_$2")+c[4]);return b.join("\n")};d.writeHTML=function(){var a=-1;for(q=q||b.body;++a<h;)for(var d=b.getElementsByTagName(g[a]),f=d.length,e=-1;++e<f;)d[e].className.indexOf("iepp_")<0&&(d[e].className+=" iepp_"+g[a]);p.appendChild(q);o.appendChild(m);m.className=q.className;m.id=q.id;m.innerHTML=q.innerHTML.replace(j,"<$1font")};d._beforePrint=function(){s.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all"));
d.writeHTML()};d.restoreHTML=function(){m.innerHTML="";o.removeChild(m);o.appendChild(q)};d._afterPrint=function(){d.restoreHTML();s.styleSheet.cssText=""};f(b);f(p);if(!d.disablePP)e.insertBefore(s,e.firstChild),s.media="print",s.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint)}(g,e);d._version="2.0.6";d._prefixes=p;d._domPrefixes=m;d.mq=function(a){if(g.matchMedia)return matchMedia(a).matches;var b;w("@media "+a+" { #modernizr { position: absolute; } }",
function(a){b=(g.getComputedStyle?getComputedStyle(a,null):a.currentStyle).position=="absolute"});return b};d.hasEvent=v;d.testProp=function(a){return o([a])};d.testAllProps=k;d.testStyles=w;d.prefixed=function(a){return k(a,"pfx")};n.className=n.className.replace(/\bno-js\b/,"")+(" js "+D.join(" "));return d}(this,this.document);
Modernizr.addTest("positionfixed",function(){var g=document.createElement("div"),e=g.cloneNode(false),l=false,h;if(!(h=document.body))l=true,h=document.documentElement.appendChild(document.createElement("body"));var o=h.style.cssText;h.style.cssText="padding:0;margin:0";g.style.cssText="position:fixed;top:42px";h.appendChild(g);h.appendChild(e);var k=g.offsetTop!==e.offsetTop;h.removeChild(g);h.removeChild(e);h.style.cssText=o;l&&document.documentElement.removeChild(h);return k});
