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