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