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