/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
 * Build: http://modernizr.com/download/#-fontface-borderradius-boxshadow-generatedcontent-hashchange-video-localstorage-touch-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load-flash(custom)(includes custom navigator.msMaxTouchPoints in touch test)
 */

window.Modernizr=(function(A,c,g){var G="2.6.2",w={},y=true,J=c.documentElement,a="modernizr",F=c.createElement(a),D=F.style,I,B=":)",b={}.toString,j=" -webkit- -moz- -o- -ms- ".split(" "),h="Webkit Moz O ms",E=h.split(" "),H=h.toLowerCase().split(" "),l={},p={},f={},e=[],k=e.slice,s,m=function(S,U,M,T){var L,R,O,P,K=c.createElement("div"),Q=c.body,N=Q||c.createElement("body");if(parseInt(M,10)){while(M--){O=c.createElement("div");O.id=T?T[M]:a+(M+1);K.appendChild(O)}}L=["&#173;",'<style id="s',a,'">',S,"</style>"].join("");K.id=a;(Q?K:N).innerHTML+=L;N.appendChild(K);if(!Q){N.style.background="";N.style.overflow="hidden";P=J.style.overflow;J.style.overflow="hidden";J.appendChild(N)}R=U(K,S);if(!Q){N.parentNode.removeChild(N);J.style.overflow=P}else{K.parentNode.removeChild(K)}return !!R},o=(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=r(O[M],"function");if(!r(O[M],"undefined")){O[M]=g}O.removeAttribute(M)}}O=null;return N}return K})(),i=({}).hasOwnProperty,x;if(!r(i,"undefined")&&!r(i.call,"undefined")){x=function(K,L){return i.call(K,L)}}else{x=function(K,L){return((L in K)&&r(K.constructor.prototype[L],"undefined"))}}if(!Function.prototype.bind){Function.prototype.bind=function d(M){var N=this;if(typeof N!="function"){throw new TypeError()}var K=k.call(arguments,1),L=function(){if(this instanceof L){var Q=function(){};Q.prototype=N.prototype;var P=new Q();var O=N.apply(P,K.concat(k.call(arguments)));if(Object(O)===O){return O}return P}else{return N.apply(M,K.concat(k.call(arguments)))}};return L}}function C(K){D.cssText=K}function u(L,K){return C(j.join(L+";")+(K||""))}function r(L,K){return typeof L===K}function t(L,K){return !!~(""+L).indexOf(K)}function z(M,K){for(var L in M){var N=M[L];if(!t(N,"-")&&D[N]!==g){return K=="pfx"?N:true}}return false}function q(L,O,N){for(var K in L){var M=O[L[K]];if(M!==g){if(N===false){return L[K]}if(r(M,"function")){return M.bind(N||O)}return M}}return false}function n(O,K,N){var L=O.charAt(0).toUpperCase()+O.slice(1),M=(O+" "+E.join(L+" ")+L).split(" ");if(r(K,"string")||r(K,"undefined")){return z(M,K)}else{M=(O+" "+(H).join(L+" ")+L).split(" ");return q(M,K,N)}}l.touch=function(){var K;if(("ontouchstart" in A)||(navigator.msMaxTouchPoints>0)||A.DocumentTouch&&c instanceof DocumentTouch){K=true}else{m(["@media (",j.join("touch-enabled),("),a,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(L){K=L.offsetTop===9})}return K};l.hashchange=function(){return o("hashchange",A)&&(c.documentMode===g||c.documentMode>7)};l.borderradius=function(){return n("borderRadius")};l.boxshadow=function(){return n("boxShadow")};l.fontface=function(){var K;m('@font-face {font-family:"font";src:url("https://")}',function(O,P){var N=c.getElementById("smodernizr"),L=N.sheet||N.styleSheet,M=L?(L.cssRules&&L.cssRules[0]?L.cssRules[0].cssText:L.cssText||""):"";K=/src/i.test(M)&&M.indexOf(P.split(" ")[0])===0});return K};l.generatedcontent=function(){var K;m(["#",a,"{font:0/0 a}#",a,':after{content:"',B,'";visibility:hidden;font:3px/1 a}'].join(""),function(L){K=L.offsetHeight>=3});return K};l.video=function(){var L=c.createElement("video"),K=false;try{if(K=!!L.canPlayType){K=new Boolean(K);K.ogg=L.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"");K.h264=L.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"");K.webm=L.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}}catch(M){}return K};l.flash=function(){var K;try{K=(A.ActiveXObject&&(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))!=false)}catch(M){K=false}var L=((typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object")||K);return !!L};l.localstorage=function(){try{localStorage.setItem(a,a);localStorage.removeItem(a);return true}catch(K){return false}};for(var v in l){if(x(l,v)){s=v.toLowerCase();w[s]=l[v]();e.push((w[s]?"":"no-")+s)}}w.addTest=function(L,M){if(typeof L=="object"){for(var K in L){if(x(L,K)){w.addTest(K,L[K])}}}else{L=L.toLowerCase();if(w[L]!==g){return w}M=typeof M=="function"?M():M;if(typeof y!=="undefined"&&y){J.className+=" "+(M?"":"no-")+L}w[L]=M}return w};C("");F=I=null;(function(T,V){var N=T.html5||{};var Q=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var L=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var Z;var R="_html5shiv";var K=0;var X={};var O;(function(){try{var ac=V.createElement("a");ac.innerHTML="<xyz></xyz>";Z=("hidden" in ac);O=ac.childNodes.length==1||(function(){(V.createElement)("a");var ae=V.createDocumentFragment();return(typeof ae.cloneNode=="undefined"||typeof ae.createDocumentFragment=="undefined"||typeof ae.createElement=="undefined")}())}catch(ad){Z=true;O=true}}());function P(ac,ae){var af=ac.createElement("p"),ad=ac.getElementsByTagName("head")[0]||ac.documentElement;af.innerHTML="x<style>"+ae+"</style>";return ad.insertBefore(af.lastChild,ad.firstChild)}function U(){var ac=S.elements;return typeof ac=="string"?ac.split(" "):ac}function Y(ac){var ad=X[ac[R]];if(!ad){ad={};K++;ac[R]=K;X[K]=ad}return ad}function W(af,ac,ae){if(!ac){ac=V}if(O){return ac.createElement(af)}if(!ae){ae=Y(ac)}var ad;if(ae.cache[af]){ad=ae.cache[af].cloneNode()}else{if(L.test(af)){ad=(ae.cache[af]=ae.createElem(af)).cloneNode()}else{ad=ae.createElem(af)}}return ad.canHaveChildren&&!Q.test(af)?ae.frag.appendChild(ad):ad}function aa(ae,ag){if(!ae){ae=V}if(O){return ae.createDocumentFragment()}ag=ag||Y(ae);var ah=ag.frag.cloneNode(),af=0,ad=U(),ac=ad.length;for(;af<ac;af++){ah.createElement(ad[af])}return ah}function ab(ac,ad){if(!ad.cache){ad.cache={};ad.createElem=ac.createElement;ad.createFrag=ac.createDocumentFragment;ad.frag=ad.createFrag()}ac.createElement=function(ae){if(!S.shivMethods){return ad.createElem(ae)}return W(ae,ac,ad)};ac.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+U().join().replace(/\w+/g,function(ae){ad.createElem(ae);ad.frag.createElement(ae);return'c("'+ae+'")'})+");return n}")(S,ad.frag)}function M(ac){if(!ac){ac=V}var ad=Y(ac);if(S.shivCSS&&!Z&&!ad.hasCSS){ad.hasCSS=!!P(ac,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")}if(!O){ab(ac,ad)}return ac}var S={elements:N.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:(N.shivCSS!==false),supportsUnknownElements:O,shivMethods:(N.shivMethods!==false),type:"default",shivDocument:M,createElement:W,createDocumentFragment:aa};T.html5=S;M(V)}(this,c));w._version=G;w._prefixes=j;w._domPrefixes=H;w._cssomPrefixes=E;w.hasEvent=o;w.testProp=function(K){return z([K])};w.testAllProps=n;w.testStyles=m;w.prefixed=function(M,L,K){if(!L){return n(M,"pfx")}else{return n(M,L,K)}};J.className=J.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(y?" js "+e.join(" "):"");return w})(this,this.document);(function(ad,ac,ab){function aa(b){return"[object Function]"==P.call(b)}function Z(b){return"string"==typeof b}function Y(){}function X(b){return !b||"loaded"==b||"complete"==b||"uninitialized"==b}function W(){var b=O.shift();M=1,b?b.t?R(function(){("c"==b.t?L.injectCss:L.injectJs)(b.s,0,b.a,b.x,b.e,1)},0):(b(),W()):M=0}function V(w,v,t,s,q,p,n){function m(a){if(!g&&X(h.readyState)&&(x.r=g=1,!M&&W(),h.onload=h.onreadystatechange=null,a)){"img"!=w&&R(function(){I.removeChild(h)},50);for(var c in D[v]){D[v].hasOwnProperty(c)&&D[v][c].onload()}}}var n=n||L.errorTimeout,h=ac.createElement(w),g=0,b=0,x={t:t,s:v,e:q,a:p,x:n};1===D[v]&&(b=1,D[v]=[]),"object"==w?h.data=v:(h.src=v,h.type=w),h.width=h.height="0",h.onerror=h.onload=h.onreadystatechange=function(){m.call(this,b)},O.splice(s,0,x),"img"!=w&&(b||2===D[v]?(I.insertBefore(h,J?null:Q),R(m,n)):D[v].push(h))}function U(g,e,j,i,h){return M=0,e=e||"j",Z(g)?V("c"==e?G:H,g,e,this.i++,j,i,h):(O.splice(this.i++,0,g),1==O.length&&W()),this}function T(){var b=L;return b.loader={load:U,i:0},b}var S=ac.documentElement,R=ad.setTimeout,Q=ac.getElementsByTagName("script")[0],P={}.toString,O=[],M=0,K="MozAppearance" in S.style,J=K&&!!ac.createRange().compareNode,I=J?S:Q.parentNode,S=ad.opera&&"[object Opera]"==P.call(ad.opera),S=!!ac.attachEvent&&!S,H=K?"object":S?"script":"img",G=S?"script":H,F=Array.isArray||function(b){return"[object Array]"==P.call(b)},E=[],D={},C={timeout:function(d,c){return c.length&&(d.timeout=c[0]),d}},N,L;L=function(e){function c(i){var i=i.split("!"),h=E.length,q=i.pop(),p=i.length,q={url:q,origUrl:q,prefixes:i},o,l,j;for(l=0;l<p;l++){j=i[l].split("="),(o=C[j.shift()])&&(q=o(q,j))}for(l=0;l<h;l++){q=E[l](q)}return q}function n(b,s,r,q,p){var o=c(b),l=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(s&&(s=aa(s)?s:s[b]||s[q]||s[b.split("/").pop().split("?")[0]]),o.instead?o.instead(b,s,r,q,p):(D[o.url]?o.noexec=!0:D[o.url]=1,r.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":ab,o.noexec,o.attrs,o.timeout),(aa(s)||aa(l))&&r.load(function(){T(),s&&s(o.origUrl,p,q),l&&l(o.origUrl,p,q),D[o.url]=2})))}function m(w,v){function u(b,h){if(b){if(Z(b)){h||(r=function(){var i=[].slice.call(arguments);q.apply(this,i),p()}),n(b,r,v,0,t)}else{if(Object(b)===b){for(g in o=function(){var a=0,i;for(i in b){b.hasOwnProperty(i)&&a++}return a}(),b){b.hasOwnProperty(g)&&(!h&&!--o&&(aa(r)?r=function(){var i=[].slice.call(arguments);q.apply(this,i),p()}:r[g]=function(i){return function(){var a=[].slice.call(arguments);i&&i.apply(this,a),p()}}(q[g])),n(b[g],r,v,g,t))}}}}else{!h&&p()}}var t=!!w.test,s=w.load||w.both,r=w.callback||Y,q=r,p=w.complete||Y,o,g;u(t?w.yep:w.nope,!!s),s&&u(s)}var k,f,d=this.yepnope.loader;if(Z(e)){n(e,0,d,0)}else{if(F(e)){for(k=0;k<e.length;k++){f=e[k],Z(f)?n(f,0,d,0):F(f)?L(f):Object(f)===f&&m(f,d)}}else{Object(e)===e&&m(e,d)}}},L.addPrefix=function(d,c){C[d]=c},L.addFilter=function(b){E.push(b)},L.errorTimeout=10000,null==ac.readyState&&ac.addEventListener&&(ac.readyState="loading",ac.addEventListener("DOMContentLoaded",N=function(){ac.removeEventListener("DOMContentLoaded",N,0),ac.readyState="complete"},0)),ad.yepnope=T(),ad.yepnope.executeStack=W,ad.yepnope.injectJs=function(r,q,p,n,m,h){var g=ac.createElement("script"),f,b,n=n||L.errorTimeout;g.src=r;for(b in p){g.setAttribute(b,p[b])}q=h?W:q||Y,g.onreadystatechange=g.onload=function(){!f&&X(g.readyState)&&(f=1,q(),g.onload=g.onreadystatechange=null)},R(function(){f||(f=1,q(1))},n),m?g.onload():Q.parentNode.insertBefore(g,Q)},ad.yepnope.injectCss=function(b,n,m,l,k,h){var l=ac.createElement("link"),f,n=h?W:n||Y;l.href=b,l.rel="stylesheet",l.type="text/css";for(f in m){l.setAttribute(f,m[f])}k||(Q.parentNode.insertBefore(l,Q),R(n,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};