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