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