/* * Modernizr v2.8.3 * www.modernizr.com * * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton * Available under the BSD and MIT licenses: www.modernizr.com/license/ */ define("modernizr",function(){window.Modernizr=(function(N,h,K){var L="2.8.3",v={},k=true,g=h.documentElement,t="modernizr",u=h.createElement(t),w=u.style,p=h.createElement("input"),D=":)",J={}.toString,z=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",f=y.split(" "),j=y.toLowerCase().split(" "),x={svg:"http://www.w3.org/2000/svg"},I={},q={},b={},d=[],C=d.slice,m,o=function(W,P,U,Y){var X,V,T,R,Q=h.createElement("div"),O=h.body,S=O||h.createElement("body");if(parseInt(U,10)){while(U--){T=h.createElement("div");T.id=Y?Y[U]:t+(U+1);Q.appendChild(T)}}X=["",'"].join("");Q.id=t;(O?Q:S).innerHTML+=X;S.appendChild(Q);if(!O){S.style.background="";S.style.overflow="hidden";R=g.style.overflow;g.style.overflow="hidden";g.appendChild(S)}V=P(Q,W);if(!O){S.parentNode.removeChild(S);g.style.overflow=R}else{Q.parentNode.removeChild(Q)}return !!V},F=function(Q){var P=N.matchMedia||N.msMatchMedia;if(P){return P(Q)&&P(Q).matches||false}var O;o("@media "+Q+" { #"+t+" { position: absolute; } }",function(R){O=(N.getComputedStyle?getComputedStyle(R,null):R.currentStyle)["position"]=="absolute"});return O},s=(function(){var P={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function O(R,Q){Q=Q||h.createElement(P[R]||"div");R="on"+R;var S=R in Q;if(!S){if(!Q.setAttribute){Q=h.createElement("div")}if(Q.setAttribute&&Q.removeAttribute){Q.setAttribute(R,"");S=r(Q[R],"function");if(!r(Q[R],"undefined")){Q[R]=K}Q.removeAttribute(R)}}Q=null;return S}return O})(),a=({}).hasOwnProperty,n;if(!r(a,"undefined")&&!r(a.call,"undefined")){n=function(O,P){return a.call(O,P)}}else{n=function(O,P){return((P in O)&&r(O.constructor.prototype[P],"undefined"))}}if(!Function.prototype.bind){Function.prototype.bind=function c(R){var Q=this;if(typeof Q!="function"){throw new TypeError()}var O=C.call(arguments,1),P=function(){if(this instanceof P){var S=function(){};S.prototype=Q.prototype;var U=new S();var T=Q.apply(U,O.concat(C.call(arguments)));if(Object(T)===T){return T}return U}else{return Q.apply(R,O.concat(C.call(arguments)))}};return P}}function A(O){w.cssText=O}function B(O,P){return A(z.join(O+";")+(P||""))}function r(O,P){return typeof O===P}function e(O,P){return !!~(""+O).indexOf(P)}function G(R,P){for(var O in R){var Q=R[O];if(!e(Q,"-")&&w[Q]!==K){return P=="pfx"?Q:true}}return false}function E(S,R,O){for(var P in S){var Q=R[S[P]];if(Q!==K){if(O===false){return S[P]}if(r(Q,"function")){return Q.bind(O||R)}return Q}}return false}function H(Q,P,O){var S=Q.charAt(0).toUpperCase()+Q.slice(1),R=(Q+" "+f.join(S+" ")+S).split(" ");if(r(P,"string")||r(P,"undefined")){return G(R,P)}else{R=(Q+" "+(j).join(S+" ")+S).split(" ");return E(R,P,O)}}I.flexbox=function(){return H("flexWrap")};I.flexboxlegacy=function(){return H("boxDirection")};I.canvas=function(){var O=h.createElement("canvas");return !!(O.getContext&&O.getContext("2d"))};I.canvastext=function(){return !!(v.canvas&&r(h.createElement("canvas").getContext("2d").fillText,"function"))};I.webgl=function(){return !!N.WebGLRenderingContext};I.touch=function(){var O;if(("ontouchstart" in N)||N.DocumentTouch&&h instanceof DocumentTouch){O=true}else{o(["@media (",z.join("touch-enabled),("),t,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(P){O=P.offsetTop===9})}return O};I.geolocation=function(){return"geolocation" in navigator};I.postmessage=function(){return !!N.postMessage};I.websqldatabase=function(){return !!N.openDatabase};I.indexedDB=function(){return !!H("indexedDB",N)};I.hashchange=function(){return s("hashchange",N)&&(h.documentMode===K||h.documentMode>7)};I.history=function(){return !!(N.history&&history.pushState)};I.draganddrop=function(){var O=h.createElement("div");return("draggable" in O)||("ondragstart" in O&&"ondrop" in O)};I.websockets=function(){return"WebSocket" in N||"MozWebSocket" in N};I.rgba=function(){A("background-color:rgba(150,255,150,.5)");return e(w.backgroundColor,"rgba")};I.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return e(w.backgroundColor,"rgba")||e(w.backgroundColor,"hsla")};I.multiplebgs=function(){A("background:url(https://),url(https://),red url(https://)");return(/(url\s*\(.*?){3}/).test(w.background)};I.backgroundsize=function(){return H("backgroundSize")};I.borderimage=function(){return H("borderImage")};I.borderradius=function(){return H("borderRadius")};I.boxshadow=function(){return H("boxShadow")};I.textshadow=function(){return h.createElement("div").style.textShadow===""};I.opacity=function(){B("opacity:.55");return(/^0.55$/).test(w.opacity)};I.cssanimations=function(){return H("animationName")};I.csscolumns=function(){return H("columnCount")};I.cssgradients=function(){var O="background-image:",P="gradient(linear,left top,right bottom,from(#9f9),to(white));",Q="linear-gradient(left top,#9f9, white);";A((O+"-webkit- ".split(" ").join(P+O)+z.join(Q+O)).slice(0,-O.length));return e(w.backgroundImage,"gradient")};I.cssreflections=function(){return H("boxReflect")};I.csstransforms=function(){return !!H("transform")};I.csstransforms3d=function(){var O=!!H("perspective");if(O&&"webkitPerspective" in g.style){o("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(P,Q){O=P.offsetLeft===9&&P.offsetHeight===3})}return O};I.csstransitions=function(){return H("transition")};I.fontface=function(){var O;o('@font-face {font-family:"font";src:url("https://")}',function(Q,R){var T=h.getElementById("smodernizr"),S=T.sheet||T.styleSheet,P=S?(S.cssRules&&S.cssRules[0]?S.cssRules[0].cssText:S.cssText||""):"";O=/src/i.test(P)&&P.indexOf(R.split(" ")[0])===0});return O};I.generatedcontent=function(){var O;o(["#",t,"{font:0/0 a}#",t,':after{content:"',D,'";visibility:hidden;font:3px/1 a}'].join(""),function(P){O=P.offsetHeight>=3});return O};I.video=function(){var Q=h.createElement("video"),O=false;try{if(O=!!Q.canPlayType){O=new Boolean(O);O.ogg=Q.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"");O.h264=Q.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"");O.webm=Q.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}}catch(P){}return O};I.audio=function(){var Q=h.createElement("audio"),O=false;try{if(O=!!Q.canPlayType){O=new Boolean(O);O.ogg=Q.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"");O.mp3=Q.canPlayType("audio/mpeg;").replace(/^no$/,"");O.wav=Q.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"");O.m4a=(Q.canPlayType("audio/x-m4a;")||Q.canPlayType("audio/aac;")).replace(/^no$/,"")}}catch(P){}return O};I.localstorage=function(){try{localStorage.setItem(t,t);localStorage.removeItem(t);return true}catch(O){return false}};I.sessionstorage=function(){try{sessionStorage.setItem(t,t);sessionStorage.removeItem(t);return true}catch(O){return false}};I.webworkers=function(){return !!N.Worker};I.applicationcache=function(){return !!N.applicationCache};I.svg=function(){return !!h.createElementNS&&!!h.createElementNS(x.svg,"svg").createSVGRect};I.inlinesvg=function(){var O=h.createElement("div");O.innerHTML="";return(O.firstChild&&O.firstChild.namespaceURI)==x.svg};I.smil=function(){return !!h.createElementNS&&/SVGAnimate/.test(J.call(h.createElementNS(x.svg,"animate")))};I.svgclippaths=function(){return !!h.createElementNS&&/SVGClipPath/.test(J.call(h.createElementNS(x.svg,"clipPath")))};function M(){v.input=(function(Q){for(var O=0,P=Q.length;O
";ad=("hidden" in ah);ae=ah.childNodes.length==1||(function(){(R.createElement)("a");var aj=R.createDocumentFragment();return(typeof aj.cloneNode=="undefined"||typeof aj.createDocumentFragment=="undefined"||typeof aj.createElement=="undefined")}())}catch(ai){ad=true;ae=true}}());function O(ai,ah){var aj=ai.createElement("p"),ak=ai.getElementsByTagName("head")[0]||ai.documentElement;aj.innerHTML="x";return ak.insertBefore(aj.lastChild,ak.firstChild)}function V(){var ah=X.elements;return typeof ah=="string"?ah.split(" "):ah}function W(ai){var ah=T[ai[S]];if(!ah){ah={};U++;ai[S]=U;T[U]=ah}return ah}function Q(aj,ak,ah){if(!ak){ak=R}if(ae){return ak.createElement(aj)}if(!ah){ah=W(ak)}var ai;if(ah.cache[aj]){ai=ah.cache[aj].cloneNode()}else{if(aa.test(aj)){ai=(ah.cache[aj]=ah.createElem(aj)).cloneNode()}else{ai=ah.createElem(aj)}}return ai.canHaveChildren&&!Z.test(aj)&&!ai.tagUrn?ah.frag.appendChild(ai):ai}function P(am,ai){if(!am){am=R}if(ae){return am.createDocumentFragment()}ai=ai||W(am);var ah=ai.frag.cloneNode(),ak=0,aj=V(),al=aj.length;for(;ak