/*!
 * selectivizr v1.0.1 - (c) Keith Clark, freely distributable under the terms of the MIT license.
 * selectivizr.com
 */
var k=!0,p=!1;(function(A){function N(e){return e.replace(O,q).replace(P,function(e,t,n){e=n.split(","),n=0;for(var r=e.length;n<r;n++){var i=Q(e[n].replace(R,q).replace(S,q))+w,s=[];e[n]=i.replace(T,function(e,t,n,r,u){if(t){if(s.length>0){e=s;var a;u=i.substring(0,u).replace(U,o);if(u==o||u.charAt(u.length-1)==w)u+="*";try{a=y(u)}catch(l){}if(a){u=0;for(n=a.length;u<n;u++){r=a[u];for(var c=r.className,p=0,d=e.length;p<d;p++){var v=e[p];RegExp("(^|\\s)"+v.className+"(\\s|$)").test(r.className)||v.b&&(v.b===k||v.b(r)===k)&&(c=E(c,v.className,k))}r.className=c}}s=[]}return t}return(t=n?W(n):!F||F.test(r)?{className:G(r),b:k}:null)?(s.push(t),"."+t.className):e})}return t+e.join(",")})}function W(e){var n=k,r=G(e.slice(1)),i=e.substring(0,5)==":not(",o,a;i&&(e=e.slice(5,-1));var f=e.indexOf("(");f>-1&&(e=e.substring(0,f));if(e.charAt(0)==":")switch(e.slice(1)){case"root":n=function(e){return i?e!=H:e==H};break;case"target":if(s==8){n=function(e){function n(){var t=location.hash,n=t.slice(1);return i?t==""||e.id!=n:t!=""&&e.id==n}return t(A,"hashchange",function(){u(e,r,n())}),n()};break}return p;case"checked":n=function(e){return X.test(e.type)&&t(e,"propertychange",function(){event.propertyName=="checked"&&u(e,r,e.checked!==i)}),e.checked!==i};break;case"disabled":i=!i;case"enabled":n=function(n){return Y.test(n.tagName)?(t(n,"propertychange",function(){event.propertyName=="$disabled"&&u(n,r,n.a===i)}),z.push(n),n.a=n.disabled,n.disabled===i):e==":enabled"?i:!i};break;case"focus":o="focus",a="blur";case"hover":o||(o="mouseenter",a="mouseleave"),n=function(e){return t(e,i?a:o,function(){u(e,r,k)}),t(e,i?o:a,function(){u(e,r,p)}),i};break;default:if(!Z.test(e))return p}return{className:r,b:n}}function G(e){return I+"-"+(s==6&&$?aa++:e.replace(ba,function(e){return e.charCodeAt(0)}))}function Q(e){return e.replace(J,q).replace(ca,w)}function u(e,t,n){var r=e.className;t=E(r,t,n),t!=r&&(e.className=t,e.parentNode.className+=o)}function E(e,t,n){var r=RegExp("(^|\\s)"+t+"(\\s|$)"),i=r.test(e);return n?i?e:e+w+t:i?e.replace(r,q).replace(J,q):e}function t(e,t,n){e.attachEvent("on"+t,n)}function D(e,t){if(/^https?:\/\//i.test(e))return t.substring(0,t.indexOf("/",8))==e.substring(0,e.indexOf("/",8))?e:null;if(e.charAt(0)=="/")return t.substring(0,t.indexOf("/",8))+e;var n=t.split("?")[0];return e.charAt(0)!="?"&&n.charAt(n.length-1)!="/"&&(n=n.substring(0,n.lastIndexOf("/")+1)),n+e}function K(e){return e?(v.open("GET",e,p),v.send(),(v.status==200?v.responseText:o).replace(da,o).replace(ea,function(t,n,r,i,s){return K(D(r||s,e))}).replace(fa,function(t,n,r){return n=n||""," url("+n+D(r,e)+n+") "})):o}function ga(){var e,t;e=n.getElementsByTagName("BASE");for(var r=e.length>0?e[0].href:n.location.href,i=0;i<n.styleSheets.length;i++)t=n.styleSheets[i],t.href!=o&&(e=D(t.href,r))&&(t.cssText=N(K(e)));z.length>0&&setInterval(function(){for(var e=0,t=z.length;e<t;e++){var n=z[e];n.disabled!==n.a&&(n.disabled?(n.disabled=p,n.a=k,n.disabled=k):n.a=n.disabled)}},250)}})(this);