/*!
* 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(c,a,s){var f="2.0.6",q={},u=true,w=a.documentElement,A=a.head||a.getElementsByTagName("head")[0],G="modernizr",j=a.createElement(G),n=j.style,H=a.createElement("input"),y=":)",I=Object.prototype.toString,h=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),F="Webkit Moz O ms Khtml".split(" "),o={svg:"http://www.w3.org/2000/svg"},J={},i={},e={},b=[],B,D=function(P,R,K,M){var N,L,O,Q=a.createElement("div");if(parseInt(K,10)){while(K--){O=a.createElement("div");O.id=M?M[K]:G+(K+1);Q.appendChild(O)}}N=["&shy;","<style>",P,"</style>"].join("");Q.id=G;Q.innerHTML+=N;w.appendChild(Q);L=R(Q,P);Q.parentNode.removeChild(Q);return !!L},z=function(L){if(c.matchMedia){return matchMedia(L).matches}var K;D("@media "+L+" { #"+G+" { position: absolute; } }",function(M){K=(c.getComputedStyle?getComputedStyle(M,null):M.currentStyle)["position"]=="absolute"});return K},d=(function(){var L={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function K(M,O){O=O||a.createElement(L[M]||"div");M="on"+M;var N=M in O;if(!N){if(!O.setAttribute){O=a.createElement("div")}if(O.setAttribute&&O.removeAttribute){O.setAttribute(M,"");N=E(O[M],"function");if(!E(O[M],s)){O[M]=s}O.removeAttribute(M)}}O=null;return N}return K})();var C=({}).hasOwnProperty,l;if(!E(C,s)&&!E(C.call,s)){l=function(K,L){return C.call(K,L)}}else{l=function(K,L){return((L in K)&&E(K.constructor.prototype[L],s))}}function t(K){n.cssText=K}function r(L,K){return t(h.join(L+";")+(K||""))}function E(L,K){return typeof L===K}function p(L,K){return !!~(""+L).indexOf(K)}function v(M,K){for(var L in M){if(n[M[L]]!==s){return K=="pfx"?M[L]:true}}return false}function g(N,K){var L=N.charAt(0).toUpperCase()+N.substr(1),M=(N+" "+F.join(L+" ")+L).split(" ");return v(M,K)}var k=(function(N,M){var L=N.join(""),K=M.length;D(L,function(R,T){var Q=a.styleSheets[a.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]}q.touch=("ontouchstart" in c)||S.touch.offsetTop===9;q.csstransforms3d=S.csstransforms3d.offsetLeft===9;q.generatedcontent=S.generatedcontent.offsetHeight>=1;q.fontface=/src/i.test(P)&&P.indexOf(T.split(" ")[0])===0},K,M)})(['@font-face {font-family:"font";src:url("https://")}',["@media (",h.join("touch-enabled),("),G,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",h.join("transform-3d),("),G,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',y,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);J.flexbox=function(){function M(Q,S,R,P){S+=":";Q.style.cssText=(S+h.join(R+";"+S)).slice(0,-S.length)+(P||"")}function K(Q,S,R,P){Q.style.cssText=h.join(S+":"+R+";")+(P||"")}var O=a.createElement("div"),N=a.createElement("div");M(O,"display","box","width:42px;padding:0;");K(N,"box-flex","1","width:10px;");O.appendChild(N);w.appendChild(O);var L=N.offsetWidth===42;O.removeChild(N);w.removeChild(O);return L};J.canvas=function(){var K=a.createElement("canvas");return !!(K.getContext&&K.getContext("2d"))};J.canvastext=function(){return !!(q.canvas&&E(a.createElement("canvas").getContext("2d").fillText,"function"))};J.webgl=function(){return !!c.WebGLRenderingContext};J.touch=function(){return q.touch};J.geolocation=function(){return !!navigator.geolocation};J.postmessage=function(){return !!c.postMessage};J.websqldatabase=function(){var K=!!c.openDatabase;return K};J.indexedDB=function(){for(var L=-1,K=F.length;++L<K;){if(c[F[L].toLowerCase()+"IndexedDB"]){return true}}return !!c.indexedDB};J.hashchange=function(){return d("hashchange",c)&&(a.documentMode===s||a.documentMode>7)};J.history=function(){return !!(c.history&&history.pushState)};J.draganddrop=function(){return d("dragstart")&&d("drop")};J.websockets=function(){for(var L=-1,K=F.length;++L<K;){if(c[F[L]+"WebSocket"]){return true}}return"WebSocket" in c};J.rgba=function(){t("background-color:rgba(150,255,150,.5)");return p(n.backgroundColor,"rgba")};J.hsla=function(){t("background-color:hsla(120,40%,100%,.5)");return p(n.backgroundColor,"rgba")||p(n.backgroundColor,"hsla")};J.multiplebgs=function(){t("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(n.background)};J.backgroundsize=function(){return g("backgroundSize")};J.borderimage=function(){return g("borderImage")};J.borderradius=function(){return g("borderRadius")};J.boxshadow=function(){return g("boxShadow")};J.textshadow=function(){return a.createElement("div").style.textShadow===""};J.opacity=function(){r("opacity:.55");return/^0.55$/.test(n.opacity)};J.cssanimations=function(){return g("animationName")};J.csscolumns=function(){return g("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);";t((M+h.join(L+M)+h.join(K+M)).slice(0,-M.length));return p(n.backgroundImage,"gradient")};J.cssreflections=function(){return g("boxReflect")};J.csstransforms=function(){return !!v(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};J.csstransforms3d=function(){var K=!!v(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(K&&"webkitPerspective" in w.style){K=q.csstransforms3d}return K};J.csstransitions=function(){return g("transitionProperty")};J.fontface=function(){return q.fontface};J.generatedcontent=function(){return q.generatedcontent};J.video=function(){var M=a.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=a.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 !!c.Worker};J.applicationcache=function(){return !!c.applicationCache};J.svg=function(){return !!a.createElementNS&&!!a.createElementNS(o.svg,"svg").createSVGRect};J.inlinesvg=function(){var K=a.createElement("div");K.innerHTML="<svg/>";return(K.firstChild&&K.firstChild.namespaceURI)==o.svg};J.smil=function(){return !!a.createElementNS&&/SVG/.test(I.call(a.createElementNS(o.svg,"animate")))};J.svgclippaths=function(){return !!a.createElementNS&&/SVG/.test(I.call(a.createElementNS(o.svg,"clipPath")))};function m(){q.input=(function(M){for(var L=0,K=M.length;L<K;L++){e[M[L]]=!!(M[L] in H)}return e})("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));q.inputtypes=(function(N){for(var M=0,L,P,O,K=N.length;M<K;M++){H.setAttribute("type",P=N[M]);L=H.type!=="text";if(L){H.value=y;H.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(P)&&H.style.WebkitAppearance!==s){w.appendChild(H);O=a.defaultView;L=O.getComputedStyle&&O.getComputedStyle(H,null).WebkitAppearance!=="textfield"&&(H.offsetHeight!==0);w.removeChild(H)}else{if(/^(search|tel)$/.test(P)){}else{if(/^(url|email)$/.test(P)){L=H.checkValidity&&H.checkValidity()===false}else{if(/^color$/.test(P)){w.appendChild(H);w.offsetWidth;L=H.value!=y;w.removeChild(H)}else{L=H.value!=y}}}}}i[N[M]]=!!L}return i})("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var x in J){if(l(J,x)){B=x.toLowerCase();q[B]=J[x]();b.push((q[B]?"":"no-")+B)}}q.input||m();q.addTest=function(L,M){if(typeof L=="object"){for(var K in L){if(l(L,K)){q.addTest(K,L[K])}}}else{L=L.toLowerCase();if(q[L]!==s){return}M=typeof M=="boolean"?M:!!M();w.className+=" "+(M?"":"no-")+L;q[L]=M}return q};t("");j=H=null;if(c.attachEvent&&(function(){var K=a.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+""===s){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)})(c,a)}q._version=f;q._prefixes=h;q._domPrefixes=F;q.mq=z;q.hasEvent=d;q.testProp=function(K){return v([K])};q.testAllProps=g;q.testStyles=D;q.prefixed=function(K){return g(K,"pfx")};w.className=w.className.replace(/\bno-js\b/,"")+(u?" js "+b.join(" "):"");return q})(this,this.document);
