/* Modernizr v2.8.3 www.modernizr.com Copyright (c) Faruk Ates, Paul Irish, Alex Sexton Available under the BSD and MIT licenses: www.modernizr.com/license/ */ window.Modernizr=function(n,h,A){function z(b,a){return typeof b===a}function O(b,a){for(var c in b){var g=b[c];if(!~(""+g).indexOf("-")&&r[g]!==A)return"pfx"==a?g:!0}return!1}function p(b,a,c){var g=b.charAt(0).toUpperCase()+b.slice(1),m=(b+" "+P.join(g+" ")+g).split(" ");if(z(a,"string")||z(a,"undefined"))a=O(m,a);else a:{m=(b+" "+Q.join(g+" ")+g).split(" "),b=m;for(var t in b)if(g=a[b[t]],g!==A){a=!1===c?b[t]:z(g,"function")?g.bind(c||a):g;break a}a=!1}return a}function X(){l.input=function(b){for(var a= 0,c=b.length;c>a;a++)E[b[a]]=!!(b[a]in q);return E.list&&(E.list=!(!h.createElement("datalist")||!n.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));l.inputtypes=function(b){for(var a,c,g,m=0,t=b.length;t>m;m++)q.setAttribute("type",c=b[m]),(a="text"!==q.type)&&(q.value=I,q.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(c)&&q.style.WebkitAppearance!==A?(y.appendChild(q),g=h.defaultView,a=g.getComputedStyle&& "textfield"!==g.getComputedStyle(q,null).WebkitAppearance&&0!==q.offsetHeight,y.removeChild(q)):/^(search|tel)$/.test(c)||(a=/^(url|email)$/.test(c)?q.checkValidity&&!1===q.checkValidity():q.value!=I)),R[b[m]]=!!a;return R}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var F,l={},y=h.documentElement,d=h.createElement("modernizr"),r=d.style,q=h.createElement("input"),I=":)",S={}.toString,G=" -webkit- -moz- -o- -ms- ".split(" "),P=["Webkit","Moz", "O","ms"],Q=["webkit","moz","o","ms"];d={};var R={},E={},J=[],K=J.slice,B=function(b,a,c,g){var m,t,C,v=h.createElement("div"),w=h.body,x=w||h.createElement("body");if(parseInt(c,10))for(;c--;){var H=h.createElement("div");H.id=g?g[c]:"modernizr"+(c+1);v.appendChild(H)}return m=['\x26#173;\x3cstyle id\x3d"smodernizr"\x3e',b,"\x3c/style\x3e"].join(""),v.id="modernizr",(w?v:x).innerHTML+=m,x.appendChild(v),w||(x.style.background="",x.style.overflow="hidden",C=y.style.overflow,y.style.overflow="hidden", y.appendChild(x)),t=a(v,b),w?v.parentNode.removeChild(v):(x.parentNode.removeChild(x),y.style.overflow=C),!!t},T=function(){var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(a,c){c=c||h.createElement(b[a]||"div");a="on"+a;var g=a in c;return g||(c.setAttribute||(c=h.createElement("div")),c.setAttribute&&c.removeAttribute&&(c.setAttribute(a,""),g=z(c[a],"function"),z(c[a],"undefined")||(c[a]=A),c.removeAttribute(a))),g}}(),L={}.hasOwnProperty; var U=z(L,"undefined")||z(L.call,"undefined")?function(b,a){return a in b&&z(b.constructor.prototype[a],"undefined")}:function(b,a){return L.call(b,a)};Function.prototype.bind||(Function.prototype.bind=function(b){var a=this;if("function"!=typeof a)throw new TypeError;var c=K.call(arguments,1),g=function(){if(this instanceof g){var m=function(){};m.prototype=a.prototype;m=new m;var t=a.apply(m,c.concat(K.call(arguments)));return Object(t)===t?t:m}return a.apply(b,c.concat(K.call(arguments)))};return g}); d.flexbox=function(){return p("flexWrap")};d.flexboxlegacy=function(){return p("boxDirection")};d.canvas=function(){var b=h.createElement("canvas");return!(!b.getContext||!b.getContext("2d"))};d.canvastext=function(){return!(!l.canvas||!z(h.createElement("canvas").getContext("2d").fillText,"function"))};d.webgl=function(){return!!n.WebGLRenderingContext};d.touch=function(){var b;return"ontouchstart"in n||n.DocumentTouch&&h instanceof DocumentTouch?b=!0:B(["@media (",G.join("touch-enabled),("),"modernizr){#modernizr{top:9px;position:absolute}}"].join(""), function(a){b=9===a.offsetTop}),b};d.geolocation=function(){return"geolocation"in navigator};d.postmessage=function(){return!!n.postMessage};d.websqldatabase=function(){return!!n.openDatabase};d.indexedDB=function(){return!!p("indexedDB",n)};d.hashchange=function(){return T("hashchange",n)&&(h.documentMode===A||7f;f++)e.createElement(k[f]);return e}};b.html5=D;C(a)}(this,h),l._version="2.8.3",l._prefixes=G,l._domPrefixes=Q,l._cssomPrefixes=P,l.mq=function(b){var a=n.matchMedia||n.msMatchMedia;if(a)return a(b)&&a(b).matches||!1;var c;return B("@media "+b+" { #modernizr { position: absolute; } }",function(g){c="absolute"==(n.getComputedStyle?getComputedStyle(g,null):g.currentStyle).position}),c}, l.hasEvent=T,l.testProp=function(b){return O([b])},l.testAllProps=p,l.testStyles=B,l.prefixed=function(b,a,c){return a?p(b,a,c):p(b,"pfx")},y.className=y.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+J.join(" ")),l}(this,this.document);