(function(){var m=new Element('mooModernizr'),prop,i,tmp;checkProperties=function(prop){var i=0;for(i in prop)if($defined(m.style[prop[i]]))return prop[i];return false};$extend(Browser.Features,{canvas:!!new Element('canvas').getContext,rgba:(function(){m.style.cssText="background-color: rgba(150,255,150, .5)";return !!(m.style.backgroundColor.indexOf('rgba')!==-1)})(),hsla:(function(){m.style.cssText="background-color: hsla(120,40%,100%, .5)";return !!(m.style.backgroundColor.indexOf('rgba')!==-1)})(),multiplebgs:(function(){m.style.cssText="background: url(m.png), url(a.png), #f99 url(m.png);";tmp=m.style.background;i=0;while(tmp.indexOf('url(')!==-1){i++;tmp=tmp.substring(0,tmp.indexOf('url('))+tmp.substring(tmp.indexOf('url(')+4)};tmp=null;return !!(i===3)})(),borderimage:(function(){prop=['borderImage','webkitBorderImage','MozBorderImage','mozBorderImage','oBorderImage','msBorderImage'];m.style.cssText="border-image: url(m.png) 1 1 stretch; -webkit-border-image: url(m.png) 1 1 stretch; -moz-border-image: url(m.png) 1 1 stretch; -o-border-image: url(m.png) 1 1 stretch; -ms-border-image: url(m.png) 1 1 stretch;";return checkProperties(prop)})(),borderradius:(function(){prop=['borderTopRightRadius','webkitBorderTopRightRadius','MozBorderTopRightRadius','mozBorderTopRightRadius','oBorderTopRightRadius','msBorderTopRightRadius','mozBorderRadiusTopright','MozBorderRadiusTopright'];m.style.cssText="border-top-right-radius: 10px; -webkit-border-top-right-radius: 10px; -moz-border-top-right-radius: 10px; -o-border-top-right-radius: 10px; -ms-border-top-right-radius: 10px;-moz-border-radius-topright: 10px";return checkProperties(prop)})(),boxshadow:(function(){prop=['boxShadow','webkitBoxShadow','MozBoxShadow','mozBoxShadow','oBoxShadow','msBoxShadow'];m.style.cssText="box-shadow: #000 1px 1px 3px; -webkit-box-shadow: #000 1px 1px 3px; -moz-box-shadow: #000 1px 1px 3px; -obox-shadow: #000 1px 1px 3px; -ms-box-shadow: #000 1px 1px 3px;";return checkProperties(prop)})(),textshadow:(function(){prop=['textShadow','webkitTextShadow','MozTextShadow','mozTextShadow','oTextShadow','msTextShadow'];m.style.cssText="text-shadow: 1px 1px 3px #000; -webkit-text-shadow: 1px 1px 3px #000; -moz-text-shadow: 1px 1px 3px #000; -o-text-shadow: 1px 1px 3px #000; -ms-text-shadow: 1px 1px 3px #000;";return checkProperties(prop)})(),opacity:(function(){m.style.cssText="opacity: .5;";return !!(m.style.opacity.indexOf('0.5')!==-1)})(),cssanimations:(function(){prop=['animationName','webkitAnimationName','MozAnimationName','mozAnimationName','oAnimationName','msAnimationName'];m.style.cssText="animation: 'animate' 2s ease 2; -webkit-animation: 'animate' 2s ease 2; -moz-animation: 'animate' 2s ease 2; -o-animation: 'animate' 2s ease 2; -ms-animation: 'animate' 2s ease 2; position:relative;";return checkProperties(prop)})(),csscolumns:(function(){prop=['columnCount','webkitColumnCount','MozColumnCount','mozColumnCount','oColumnCount','msColumnCount'];m.style.cssText="column-count: 3; -webkit-column-count: 3; -moz-column-count: 3; -o-column-count: 3; -ms-column-count: 3;";return checkProperties(prop)})(),cssgradients:(function(){m.style.cssText="background-image: gradient(linear, left top, right bottom, from(#9f9), to(white)); background-image: -webkit-gradient(linear, left top, right bottom, from(#9f9), to(white)); background-image: -moz-gradient(linear, left top, right bottom, from(#9f9), to(white)); background-image: -o-gradient(linear, left top, right bottom, from(#9f9), to(white)); background-image: -ms-gradient(linear, left top, right bottom, from(#9f9), to(white));";return !!(m.style.backgroundImage.indexOf('gradient')!==-1)})(),cssreflections:(function(){prop=['boxReflect','webkitBoxReflect','MozBoxReflect','mozBoxReflect','oBoxReflect','msBoxReflect'];m.style.cssText="box-reflect: right 1px; -webkit-box-reflect: right 1px; -moz-box-reflect: right 1px; -o-box-reflect: right 1px; -ms-box-reflect: right 1px;";return checkProperties(prop)})(),csstransforms:(function(){prop=['transformProperty','webkitTransform','MozTransform','mozTransform','oTransform','msTransform'];m.style.cssText="transform: rotate(3deg); -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg);";return checkProperties(prop)})(),csstransitions:(function(){prop=['transitionProperty','webkitTransitionProperty','MozTransitionProperty','mozTransitionProperty','oTransitionProperty','msTransitionProperty'];m.style.cssText="transition: all .5s linear; -webkit-transition: all .5s linear; -moz-transition: all .5s linear; -o-transition: all .5s linear; -ms-transition: all .5s linear;";return checkProperties(prop)})(),video:typeof HTMLVideoElement=='object'||typeof HTMLVideoElement=='function',audio:typeof HTMLAudioElement=='object'||typeof HTMLAudioElement=='function',query:!!(document.querySelector),json:!!(window.JSON)});m.style.cssText="";tmp=i=prop=null})()
