/*
 * 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/
 
 ========
 Downloaded through the Modernizr 2 Beta Custom form.
 @font-face,flexbox,text-shadow,rgba(),border-image,border-radius,box-shadow,opacity,html5 audio/video,input types, input attributes, HTML5 shim
 =======
 */
window.Modernizr=function(E,g,o){function z(b,a){var c=b.charAt(0).toUpperCase()+b.substr(1),h;a:{c=(b+" "+N.join(c+" ")+c).split(" ");for(var d in c)if(r[c[d]]!==o&&(!a||a(c[d],A))){h=true;break a}}return!!h}function O(){e.input=function(b){for(var a=0,c=b.length;a<c;a++)F[b[a]]=!!(b[a]in i);return F}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));e.inputtypes=function(b){for(var a=0,c,h=b.length;a<h;a++){i.setAttribute("type",b[a]);if(c=i.type!=="text"){i.value=
G;if(/^range$/.test(i.type)&&i.style.WebkitAppearance!==o){m.appendChild(i);c=g.defaultView;c=c.getComputedStyle&&c.getComputedStyle(i,null).WebkitAppearance!=="textfield"&&i.offsetHeight!==0;m.removeChild(i)}else/^(search|tel)$/.test(i.type)||(c=/^(url|email)$/.test(i.type)?i.checkValidity&&i.checkValidity()===false:i.value!=G)}H[b[a]]=!!c}return H}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var e={},m=g.documentElement,P=g.head||g.getElementsByTagName("head")[0],
A=g.createElement("modernizr"),r=A.style,i=g.createElement("input"),G=":)",B=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),N="Webkit Moz O ms Khtml".split(" "),j={},H={},F={},I=[],u;(function(){var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(a,c){c=c||g.createElement(b[a]||"div");a="on"+a;var h=a in c;if(!h){c.setAttribute||(c=g.createElement("div"));if(c.setAttribute&&c.removeAttribute){c.setAttribute(a,"");h=typeof c[a]==="function";
typeof c[a]===o||(c[a]=o);c.removeAttribute(a)}}return h}})();var C={}.hasOwnProperty,J;J=typeof C!==o&&typeof C.call!==o?function(b,a){return C.call(b,a)}:function(b,a){return a in b&&typeof b.constructor.prototype[a]===o};j.flexbox=function(){var b=g.createElement("div"),a=g.createElement("div");(function(h,d,p,v){d+=":";h.style.cssText=(d+B.join(p+";"+d)).slice(0,-d.length)+(v||"")})(b,"display","box","width:42px;padding:0;");a.style.cssText=B.join("box-flex:1;")+"width:10px;";b.appendChild(a);
m.appendChild(b);var c=a.offsetWidth===42;b.removeChild(a);m.removeChild(b);return c};j.rgba=function(){r.cssText="background-color:rgba(150,255,150,.5)";return(""+r.backgroundColor).indexOf("rgba")!==-1};j.borderimage=function(){return z("borderImage")};j.borderradius=function(){return z("borderRadius","",function(b){return(""+b).indexOf("orderRadius")!==-1})};j.boxshadow=function(){return z("boxShadow")};j.textshadow=function(){return g.createElement("div").style.textShadow===""};j.opacity=function(){var b=
B.join("opacity:.55;")+"";r.cssText=b;return/^0.55$/.test(r.opacity)};j.fontface=function(){var b,a=P||m,c=g.createElement("style"),h=g.implementation||{hasFeature:function(){return false}};c.type="text/css";a.insertBefore(c,a.firstChild);b=c.sheet||c.styleSheet;a=h.hasFeature("CSS2","")?function(d){if(!(b&&d))return false;var p=false;try{b.insertRule(d,0);p=!/unknown/i.test(b.cssRules[0].cssText);b.deleteRule(b.cssRules.length-1)}catch(v){}return p}:function(d){if(!(b&&d))return false;b.cssText=
d;return b.cssText.length!==0&&!/unknown/i.test(b.cssText)&&b.cssText.replace(/\r+|\n+/g,"").indexOf(d.split(" ")[0])===0};e._fontfaceready=function(d){d(e.fontface)};return a('@font-face { font-family: "font"; src: "font.ttf"; }')};j.video=function(){var b=g.createElement("video"),a=!!b.canPlayType;if(a){a=new Boolean(a);a.ogg=b.canPlayType('video/ogg; codecs="theora"');a.h264=b.canPlayType('video/mp4; codecs="avc1.42E01E"')||b.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');a.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"')}return a};
j.audio=function(){var b=g.createElement("audio"),a=!!b.canPlayType;if(a){a=new Boolean(a);a.ogg=b.canPlayType('audio/ogg; codecs="vorbis"');a.mp3=b.canPlayType("audio/mpeg;");a.wav=b.canPlayType('audio/wav; codecs="1"');a.m4a=b.canPlayType("audio/x-m4a;")||b.canPlayType("audio/aac;")}return a};for(var D in j)if(J(j,D)){u=D.toLowerCase();e[u]=j[D]();I.push((e[u]?"":"no-")+u)}e.input||O();e.crosswindowmessaging=e.postmessage;e.historymanagement=e.history;e.addTest=function(b,a){b=b.toLowerCase();if(!e[b]){a=
!!a();m.className+=" "+(a?"":"no-")+b;e[b]=a;return e}};r.cssText="";A=f=null;E.attachEvent&&function(){var b=g.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(b,a){function c(n){for(var k=-1;++k<p;)n.createElement(d[k])}function h(n,k){for(var q=-1,l=n.length,w,K=[];++q<l;){w=n[q];if((k=w.media||k)!="screen")K.push(h(w.imports,k),w.cssText)}return K.join("")}var d="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),
p=d.length,v=RegExp("(^|\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)","gi"),Q=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)","gi"),R=RegExp("(^|[^\\n]*?\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)([^\\n]*)({[\\n\\w\\W]*?})",
"gi"),L=a.createDocumentFragment(),x=a.documentElement,M=x.firstChild,t=a.createElement("body"),y=a.createElement("style"),s;c(a);c(L);M.insertBefore(y,M.firstChild);y.media="print";b.attachEvent("onbeforeprint",function(){var n=-1,k=h(a.styleSheets,"all"),q=[],l;for(s=s||a.body;(l=R.exec(k))!=null;)q.push((l[1]+l[2]+l[3]).replace(v,"$1.iepp_$2")+l[4]);for(y.styleSheet.cssText=q.join("\n");++n<p;){k=a.getElementsByTagName(d[n]);q=k.length;for(l=-1;++l<q;)if(k[l].className.indexOf("iepp_")<0)k[l].className+=
" iepp_"+d[n]}L.appendChild(s);x.appendChild(t);t.className=s.className;t.innerHTML=s.innerHTML.replace(Q,"<$1font")});b.attachEvent("onafterprint",function(){t.innerHTML="";x.removeChild(t);x.appendChild(s);y.styleSheet.cssText=""})}(E,g);e._enableHTML5=true;e._version="1.6";m.className=m.className.replace(/\bno-js\b/,"")+" js";m.className+=" "+I.join(" ");return e}(this,this.document);
