/* Nifty Corners Cube - rounded corners with CSS and Javascript
Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('n 1D=(G.1k&&G.1E&&1l.1F.O);n 1m=U;23.1F.7=m(a){o(24.25(a)>=0?1G:U)};n 1n=1o.1p;6(1H(Z)!=\'m\')Z=m(){};6(1H(1n)==\'m\')1o.1p=m(){1n();11();Z()};q 1o.1p=m(){11();Z()};m 11(){1m=1G;n l=P("26");l.12("27","28/1q");l.12("29","2a");l.12("2b","/2c/1q/2d.1q");l.12("2e","2f");G.13("2g")[0].V(l)};m 2h(a,b){6(1D==U)o;6(1m==U)11();n i,v=a.J(","),h=0;6(b==Q)b="";6(b.7("2i-14"))h=15(v[0])[0].17;w(i=0;i<v.u;i++)1I(v[i],b);6(b.7("14"))1J(a,h)};m 1I(a,b){n i,H="",I="",v=1K 1l();6(b!=""){b=b.W("18","1r 1s");b=b.W("19","1a 1b");b=b.W("H","1a 1r");b=b.W("I","1b 1s");b=b.W("B","1t");6(b.7("1r")){H="1c";6(!b.7("1a"))H="18"}q 6(b.7("1a"))H="19";6(b.7("1s")){I="1c";6(!b.7("1b"))I="18"}q 6(b.7("1b"))I="19"}6(H==""&&I==""&&!b.7("2j")){H="1c";I="1c"}v=15(a);w(i=0;i<v.u;i++){1L(v[i]);6(H!="")1M(v[i],H,b);6(I!="")1N(v[i],I,b)}};m 1M(a,b,c){n d=P("b"),K=4,L="",p,i,D="r",E,F;d.g.1u="-"+M(a,"1O")+"z";d.g.1v="-"+M(a,"1P")+"z";6(c.7("1t")||(F=1d(a))=="B"){F="B";E="B";L=X(a);D="t"}q{E=X(a);L=1w(F,E)}d.g.1Q=E;d.R="1x";p=M(a,"2k");6(c.7("1R")){d.g.1y=(p-2)+"z";D+="s";K=2}q 6(c.7("1S")){d.g.1y=(p-10)+"z";D+="b";K=8}q d.g.1y=(p-5)+"z";w(i=1;i<=K;i++)d.V(1z(i,b,F,L,D));a.g.2l="0";a.1T(d,a.2m)};m 1N(a,b,c){n d=P("b"),K=4,L="",p,i,D="r",E,F;d.g.1u="-"+M(a,"1O")+"z";d.g.1v="-"+M(a,"1P")+"z";6(c.7("1t")||(F=1d(a))=="B"){F="B";E="B";L=X(a);D="t"}q{E=X(a);L=1w(F,E)}d.g.1Q=E;d.R="1x";p=M(a,"2n");6(c.7("1R")){d.g.1A=(p-2)+"z";D+="s";K=2}q 6(c.7("1S")){d.g.1A=(p-10)+"z";D+="b";K=8}q d.g.1A=(p-5)+"z";w(i=K;i>0;i--)d.V(1z(i,b,F,L,D));a.g.2o=0;a.V(d)};m 1z(a,b,c,d,e){n x=P("b");x.R=e+a;x.g.1U=c;x.g.2p=d;6(b=="18"){x.g.2q="0";x.g.1v="0"}q 6(b=="19"){x.g.2r="0";x.g.1u="0"}o(x)};m P(x){o(G.1E(x))};m 1L(a){6(a.Y!=Q&&a.Y.1V!=Q&&a.Y.1V==U)a.g.2s="2t-2u"};m 1J(a,b){n i,v=a.J(","),t,j,A=[],1e;w(i=0;i<v.u;i++){t=15(v[i]);A=A.2v(t)}w(i=0;i<A.u;i++){6(A[i].17>b)b=A[i].17;A[i].g.14="2w"}w(i=0;i<A.u;i++){1e=b-A[i].17;6(1e>0){t=P("b");t.R="2x";t.g.14=1e+"z";1B=A[i].2y;6(1B.R=="1x")A[i].1T(t,1B);q A[i].V(t)}}};m 15(b){n i,j,1f="",N="",1g=b,1h="",1i,k,f,a,s=[],C=[],c;6(b.7("#")){6(b.7(" ")){s=b.J(" ");n d=s[0].J("#");6(d.u==1)o(C);f=G.1k(d[1]);6(f){v=f.13(s[1]);w(i=0;i<v.u;i++)C.O(v[i])}o(C)}q{s=b.J("#");1g=s[0];1f=s[1];6(1f!=""){f=G.1k(1f);6(f)C.O(f);o(C)}}}6(b.7(".")){s=b.J(".");1g=s[0];N=s[1];6(N.7(" ")){s=N.J(" ");N=s[0];1h=s[1]}}n v=G.13(1g);6(N==""){w(i=0;i<v.u;i++)C.O(v[i]);o(C)}w(i=0;i<v.u;i++){c=v[i].R.J(" ");w(j=0;j<c.u;j++){6(c[j]==N){6(1h=="")C.O(v[i]);q{1i=v[i].13(1h);w(k=0;k<1i.u;k++)C.O(1i[k])}}}}o(C)};m X(x){n a=x.1W,c;2z(a.2A.2B()!="2C"&&(c=1d(a))=="B")a=a.1W;6(c=="B")c="#2D";o(c)};m 1d(x){n c=1C(x,"1U");6(c==Q||c=="B"||c.7("2E(0, 0, 0, 0)"))o("B");6(c.7("2F"))c=1X(c);o(c)};m M(x,a){n p=1C(x,"2G"+a);6(p==Q||!p.7("z"))o(0);o(1j(p))};m 1C(x,a){6(x.Y)o(x.Y[a]);6(G.1Y.1Z)o(G.1Y.1Z(x,\'\')[a]);o(Q)};m 1X(a){n b="",v,h,i;n c=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;n h=c.2H(a);w(i=1;i<4;i++){v=1j(h[i]).20(16);6(v.u==1)b+="0"+v;q b+=v}o("#"+b)};m 1w(a,b){n i,S,T,x,y,r=1K 1l(3);6(a.u==4)S=1;q S=2;6(b.u==4)T=1;q T=2;w(i=0;i<3;i++){x=1j(a.21(1+S*i,S),16);6(S==1)x=16*x+x;y=1j(b.21(1+T*i,T),16);6(T==1)y=16*y+y;r[i]=2I.2J((x*22+y*22)/2K);r[i]=r[i].20(16);6(r[i].u==1)r[i]="0"+r[i]}o("#"+r[0]+r[1]+r[2])};',62,171,'||||||if|find|||||||||style||||||function|var|return||else||||length||for|||px|els|transparent|objlist|btype|bk|color|document|top|bottom|split|lim|border|getPadding|selclass|push|CreateEl|null|className|step1|step2|false|appendChild|replace|getParentBk|currentStyle|NiftyLoad||AddCss|setAttribute|getElementsByTagName|height|getElementsBySelector||offsetHeight|left|right|tr|br|both|getBk|gap|selid|tag|tag2|v2|parseInt|getElementById|Array|niftyCss|oldonload|window|onload|css|tl|bl|alias|marginLeft|marginRight|Mix|niftycorners|marginBottom|CreateStrip|marginTop|nc|getStyleProp|niftyOk|createElement|prototype|true|typeof|Rounded|SameHeight|new|FixIE|AddTop|AddBottom|Left|Right|background|small|big|insertBefore|backgroundColor|hasLayout|parentNode|rgb2hex|defaultView|getComputedStyle|toString|substr|50|String|this|indexOf|link|type|text|rel|stylesheet|href|assets|niftyCorners|media|screen|head|Nifty|fixed|none|Top|paddingTop|firstChild|Bottom|paddingBottom|borderColor|borderRightWidth|borderLeftWidth|display|inline|block|concat|auto|niftyfill|lastChild|while|tagName|toUpperCase|HTML|FFFFFF|rgba|rgb|padding|exec|Math|floor|100'.split('|'),0,{}))