/*!
 * Modernizr JavaScript library 1.5
 * http://www.modernizr.com/
 *
 * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
 * Dual-licensed under the BSD and MIT licenses.
 * http://www.modernizr.com/license/
 *
 * Featuring major contributions by
 * Paul Irish  - http://paulirish.com
 */
 window.Modernizr=function(m,e,B){function v(a,b){return(""+a).indexOf(b)!==-1}function C(a,b){for(var c in a)if(j[a[c]]!==B&&(!b||b(a[c],D)))return true}function s(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){i.input=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in g);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));i.inputtypes=function(a){for(var b=0,c,n=
 a.length;b<n;b++){g.setAttribute("type",a[b]);if(c=g.type!=="text"){g.value=K;if(/^range$/.test(g.type)&&g.style.WebkitAppearance!==B){o.appendChild(g);c=e.defaultView.getComputedStyle&&e.defaultView.getComputedStyle(g,null).WebkitAppearance!=="textfield"&&g.offsetHeight!==0;o.removeChild(g)}else/^(search|tel)$/.test(g.type)||(c=/^(url|email)$/.test(g.type)?g.checkValidity&&g.checkValidity()===false:g.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}
 var i={},o=e.documentElement,D=e.createElement("modernizr"),j=D.style,g=e.createElement("input"),K=":)",M=Object.prototype.toString,w=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],t=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,c){c=c||document.createElement(a[b]||"div");b="on"+b;var n=b in c;if(!n){c.setAttribute||(c=document.createElement("div"));if(c.setAttribute&&c.removeAttribute){c.setAttribute(b,
 "");n=typeof c[b]=="function";if(typeof c[b]!="undefined")c[b]=void 0;c.removeAttribute(b)}}return n}}(),E={}.hasOwnProperty,O;O=typeof E!=="undefined"&&typeof E.call!=="undefined"?function(a,b){return E.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};d.flexbox=function(){var a=e.createElement("div"),b=e.createElement("div");(function(n,h,p,r){h+=":";n.style.cssText=(h+w.join(p+";"+h)).slice(0,-h.length)+(r||"")})(a,"display","box","width:42px;padding:0;");
 b.style.cssText=w.join("box-flex:1;")+"width:10px;";a.appendChild(b);o.appendChild(a);var c=b.offsetWidth===42;a.removeChild(b);o.removeChild(a);return c};d.canvas=function(){var a=e.createElement("canvas");return!!(a.getContext&&a.getContext("2d"))};d.canvastext=function(){return!!(i.canvas&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!m.postMessage};d.websqldatabase=function(){var a=
 !!m.openDatabase;if(a)try{a=!!openDatabase("modernizrtestdb","1.0","modernizrtestdb",2E4)}catch(b){a=false}return a};d.indexedDB=function(){return!!m.indexedDB};d.hashchange=function(){return t("hashchange",m)&&(document.documentMode===B||document.documentMode>7)};d.historymanagement=function(){return!!(m.history&&history.pushState)};d.draganddrop=function(){return t("drag")&&t("dragstart")&&t("dragenter")&&t("dragover")&&t("dragleave")&&t("dragend")&&t("drop")};d.websockets=function(){return"WebSocket"in
 m};d.rgba=function(){j.cssText="background-color:rgba(150,255,150,.5)";return v(j.backgroundColor,"rgba")};d.hsla=function(){j.cssText="background-color:hsla(120,40%,100%,.5)";return v(j.backgroundColor,"rgba")||v(j.backgroundColor,"hsla")};d.multiplebgs=function(){j.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(j.background)};d.backgroundsize=function(){return s("backgroundSize")};d.borderimage=function(){return s("borderImage")};d.borderradius=function(){return s("borderRadius",
 "",function(a){return v(a,"orderRadius")})};d.boxshadow=function(){return s("boxShadow")};d.opacity=function(){var a=w.join("opacity:.5;")+"";j.cssText=a;return v(j.opacity,"0.5")};d.cssanimations=function(){return s("animationName")};d.csscolumns=function(){return s("columnCount")};d.cssgradients=function(){var a=("background-image:"+w.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+w.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);
 j.cssText=a;return v(j.backgroundImage,"gradient")};d.cssreflections=function(){return s("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+w.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";
 e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";o.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};d.csstransitions=function(){return s("transitionProperty")};d.fontface=function(){var a,b,c=e.head||e.getElementsByTagName("head")[0]||o,n=e.implementation||{hasFeature:function(){return false}};b=e.createElement("style");b.type="text/css";c.insertBefore(b,c.firstChild);a=b.sheet||b.styleSheet;b=n.hasFeature("CSS2","")?function(h){if(!(a&&
 h))return false;var p=false;try{a.insertRule(h,0);p=!/unknown/i.test(a.cssRules[0].cssText);a.deleteRule(a.cssRules.length-1)}catch(r){}return p}:function(h){if(!(a&&h))return false;a.cssText=h;return a.cssText.length!==0&&!/unknown/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(h.split(" ")[0])===0};i._fontfaceready=function(h){h(i.fontface)};return b('@font-face { font-family: "font"; src: "font.ttf"; }')};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=
 new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localstorage=function(){try{return"localStorage"in
 m&&m.localStorage!==null}catch(a){return false}};d.sessionstorage=function(){try{return"sessionStorage"in m&&m.sessionStorage!==null}catch(a){return false}};d.webWorkers=function(){return!!m.Worker};d.applicationcache=function(){var a=m.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&
 /SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","clipPath")))};for(var y in d)if(O(d,y))N.push(((i[y.toLowerCase()]=d[y]())?"":"no-")+y.toLowerCase());i.input||P();i.addTest=function(a,b){a=a.toLowerCase();if(!i[a]){b=!!b();o.className+=" "+(b?"":"no-")+a;i[a]=b;return i}};j.cssText="";D=g=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";
 return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(r[f])r[f].styleSheet.cssText+=k;else{var l=h[F],q=b[z]("style");q.media=f;l.insertBefore(q,l[F]);r[f]=q;c(f,k)}}function n(f,k){for(var l=RegExp("\\b("+G+")\\b(?!.*[;}])","gi"),q=function(A){return".iepp_"+A},x=-1;++x<f.length;){k=f[x].media||k;n(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var h=b.documentElement,p=b.createDocumentFragment(),r={},G="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",
 H=G.split("|"),u=[],I=-1,F="firstChild",z="createElement";++I<H.length;){b[z](H[I]);p[z](H[I])}p=p.appendChild(b[z]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=RegExp("^"+G+"$","i"),A=-1;++A<k.length;)if((f=k[A])&&(q=f.nodeName.match(x))){l=RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");p.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=p.childNodes[0];l.className+=" iepp_"+q;l=u[u.length]=
 [f,l];f.parentNode.replaceChild(l[1],l[0])}n(b.styleSheets,"all")});a.attachEvent("onafterprint",function(){for(var f=-1,k;++f<u.length;)u[f][1].parentNode.replaceChild(u[f][0],u[f][1]);for(k in r)h[F].removeChild(r[k]);r={};u=[]})}(this,e);i._enableHTML5=true;i._version="1.5";o.className=o.className.replace(/\bno-js\b/,"")+" js";o.className+=" "+N.join(" ");return i}(this,this.document);

