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