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);(function(n,t,i){function tt(){var n=u;return n.loader={load:ft,i:0},n}function ft(n,t,i){var r=t=="c"?ht:g;return h=0,t=t||"j",l(n)?st(r,n,t,this.i++,a,i):(e.splice(this.i++,0,n),e.length==1&&d()),this}function st(n,i,s,l,a,v){function k(){!b&&it(y.readyState)&&(w.r=b=1,!h&&r(),y.onload=y.onreadystatechange=null,f(function(){p.removeChild(y)},0))}var y=t.createElement(n),b=0,w={t:s,s:i,e:v};y.src=y.data=i,!c&&(y.style.display="none"),y.width=y.height="0",n!="object"&&(y.type=s),y.onload=y.onreadystatechange=k,n=="img"?y.onerror=k:n=="script"&&(y.onerror=function(){w.e=w.r=1,d()}),e.splice(l,0,w),p.insertBefore(y,c?null:o),f(function(){b||(p.removeChild(y),w.r=w.e=b=1,r())},u.errorTimeout)}function d(){var n=e.shift();h=1,n?n.t?f(function(){n.t=="c"?ot(n):et(n)},0):(n(),r()):h=0}function ot(n){var e=t.createElement("link"),i;e.href=n.s,e.rel="stylesheet",e.type="text/css",!n.e&&(v||s)?function h(n){f(function(){if(!i)try{n.sheet.cssRules.length?(i=1,r()):h(n)}catch(t){t.code==1e3||t.message=="security"||t.message=="denied"?(i=1,f(function(){r()},0)):h(n)}},0)}(e):(e.onload=function(){i||(i=1,f(function(){r()},0))},n.e&&e.onload()),f(function(){i||(i=1,r())},u.errorTimeout),!n.e&&o.parentNode.insertBefore(e,o)}function et(n){var i=t.createElement("script"),e;i.src=n.s,i.onreadystatechange=i.onload=function(){!e&&it(i.readyState)&&(e=1,r(),i.onload=i.onreadystatechange=null)},f(function(){e||(e=1,r())},u.errorTimeout),n.e?i.onload():o.parentNode.insertBefore(i,o)}function r(){var t=1,n=-1;while(e.length-++n)if(e[n].s&&!(t=e[n].r))break;t&&d()}function it(n){return!n||n=="loaded"||n=="complete"}var a=t.documentElement,f=n.setTimeout,o=t.getElementsByTagName("script")[0],b={}.toString,e=[],h=0,s="MozAppearance"in a.style,c=s&&!!t.createRange().compareNode,at=s&&!c,p=c?a:o.parentNode,lt=n.opera&&b.call(n.opera)=="[object Opera]",v="webkitAppearance"in a.style,ct=v&&"async"in t.createElement("script"),g=s?"object":lt||ct?"img":"script",ht=v?"img":g,nt=Array.isArray||function(n){return b.call(n)=="[object Array]"},y=function(n){return typeof n=="object"},l=function(n){return typeof n=="string"},w=function(n){return b.call(n)=="[object Function]"},k=[],ut={},rt,u;u=function(n){function o(n,t){function f(n){if(l(n))e(n,u,t,0,r);else if(y(n))for(i in n)n.hasOwnProperty(i)&&e(n[i],u,t,i,r)}var r=!!n.test,s=r?n.yep:n.nope,o=n.load||n.both,u=n.callback,i;f(s),f(o),n.complete&&t.load(n.complete)}function e(n,t,r,u,f){var e=s(n),o=e.autoCallback;if(!e.bypass){t&&(t=w(t)?t:t[n]||t[u]||t[n.split("/").pop().split("?")[0]]);if(e.instead)return e.instead(n,t,r,u,f);r.load(e.url,e.forceCSS||!e.forceJS&&/css$/.test(e.url)?"c":i,e.noexec),(w(t)||w(o))&&r.load(function(){tt(),t&&t(e.origUrl,f,u),o&&o(e.origUrl,f,u)})}}function s(n){for(var r=n.split("!"),e=k.length,f=r.pop(),o=r.length,i={url:f,origUrl:f,prefixes:r},u,t=0;t<o;t++)u=ut[r[t]],u&&(i=u(i));for(t=0;t<e;t++)i=k[t](i);return i}var r,t,f=this.yepnope.loader;if(l(n))e(n,0,f,0);else if(nt(n))for(r=0;r<n.length;r++)t=n[r],l(t)?e(t,0,f,0):nt(t)?u(t):y(t)&&o(t,f);else y(n)&&o(n,f)},u.addPrefix=function(n,t){ut[n]=t},u.addFilter=function(n){k.push(n)},u.errorTimeout=1e4,t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0),t.readyState="complete"},0)),n.yepnope=tt()})(this,this.document)
