var cssFx=cssFx||{};(function(e){function a(e,t){var n=function(e){for(e=0;e<4;e++)try{return e?new ActiveXObject([,"Msxml2","Msxml3","Microsoft"][e]+".XMLHTTP"):new XMLHttpRequest}catch(t){}};(r=n())&&(r.onreadystatechange=function(){r.readyState==4&&t(r.responseText)},r.open("GET",e,!0),r.send(u))}function f(e){var t=window,n="complete",r="readystatechange",i=!1,s=i,o=!0,u=t.document,a=u.documentElement,f=u.addEventListener?"addEventListener":"attachEvent",l=u.addEventListener?"removeEventListener":"detachEvent",c=u.addEventListener?"":"on",h=function(o){(o.type!=r||u.readyState==n)&&((o.type=="load"?t:u)[l](c+o.type,h,i),!s&&(s=!0)&&e.call(t,o.type||o))},p=function(){try{a.doScroll("left")}catch(e){setTimeout(p,50);return}h("poll")};if(u.readyState==n)e.call(t,"lazy");else{if(u.createEventObject&&a.doScroll){try{o=!t.frameElement}catch(d){}o&&p()}u[f](c+"DOMContentLoaded",h,i),u[f](c+r,h,i),t[f](c+"load",h,i)}}function l(e,t){return e.replace(t!=u?/\/\*([\s\S]*?)\*\//gim:"","").replace(/\n/gm,"").replace(/^\s\s*/,"").replace(/\s\s*$/,"").replace(/\s{2,}|\t/gm," ")}function c(e,t,n){return((256+e<<8|t)<<8|n).toString(16).slice(1)}function h(e,t){for(var n=t.length,r=0;r=0){L=e.processDec(N),L&&_.push(T+"{"+L+"}");break}i.lastIndex=0}_.length&&r.push(_.join("\n"))}return r},e.insertCSS=function(e){for(var t,n=0;n=0){if(d=a[H].split(i),d.length!=2)return!1;var B=l(d[0]),j=l(d[1]),F=[B,j].join(i),I=[];if(h(B,N))I.push(E+F,S+F);else if(h(B,C))I.push(E+F,S+F,B=="box-align"?T+B+":middle":T+F);else if(h(B,k))p([0,1,2,3],function(e){var t,n,r;B==o?(t=j.split(" ")[0],h(t,A)?I.push(w[e]+F.replace(t,w[e]+t)):I.push(w[e]+F)):B=="transition-property"?e==0&&(n=j.split(","),r=[],p(n,function(t){var n=l(t);h(n,A)&&r.push(w[e]+n)}),I.push(w[e]+B+i+r.join(","))):I.push(w[e]+F)});else if(h(B,L))B==m+"-clip"?j==="padding-box"&&I.push(S+F,E+B+":padding"):(v=B.split("-"),I.push(E+"border-radius-"+v[1]+v[2]+i+j,S+F));else switch(B){case"display":j=="box"?p([0,1,3],function(e){I.push(r+w[e]+j)}):j=="inline-block"&&I.push(r+E+"inline-stack","zoom:1;*display:inline");break;case t:j=="ellipsis"&&I.push(x+F);break;case"opacity":g=Math.round(j*100),I.push(T+"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity="+g+")","filter: alpha(opacity="+g+")",E+F,S+F);break;case m+s:case m+"-color":case m:y="linear-gradient",j.indexOf(y)>=0?(b=(new RegExp(y+"\\s?\\((.*)\\)","ig")).exec(j),b[1]!=u&&(b=b[1],O=y+"("+b+")",p([0,1,2,3],function(e){I.push(B+i+w[e]+O)}),_=b.match(/\#([a-z0-9]{3,})/g),_&&_.length>1&&_[_.length-1]!=u&&I.push(M.replace("{1}",_[0]).replace("{2}",_[_.length-1])))):j.indexOf("rgba")>=0&&(D=j.match(/rgba\((.*?)\)/)[1].split(","),P=Math.floor(+l(D[3])*255).toString(16)+c(+l(D[0]),+l(D[1]),+l(D[2])),I.push(M.replace("{1}","#"+P).replace("{2}","#"+P)+";zoom:1"));break;default:!n||I.push(F)}I.length&&f.push(I.join(";"))}return f.length&&f.join(";")},e.fetchCSS=function(t,n){a(t,n==u?function(n){e.insertCSS(e.processCSS([n],t))}:n)},_=function(){var t=document.getElementsByTagName("style"),n=document.getElementsByTagName("link"),r,i;for(i in n)typeof n[i]=="object"&&n[i].className==="cssfx"&&e.fetchCSS(n[i].href);r=[];for(i in t)typeof t[i]=="object"&&r.push(t[i].innerHTML);r.length&&e.insertCSS(e.processCSS(r))},f(_)})(cssFx)