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