/**************************************************************** * * * curvyCorners * * ------------ * * * * This script generates rounded corners for your divs. * * * * Version 1.2.11 * * Modified by Mac Chan * * - pretty print and fix all errors reported by JSLint * * - include a 14k packed version * * - change method name from corner() to curvy() to avoid * * conflict with other plugin * * - options can be passed as object literal * * * * {tl: { radius: 10 }, * * tr: { radius: 10 }, * * bl: { radius: 10 }, * * br: { radius: 10 }, * * antiAlias: true , * * autoPad: true } * * * * or string, which is space delimited options. * * * * "20px top bottom tl tr bl br" * * * * Version 1.2.10 * * Modified by Stefan Holmberg - for jquery usage * * http://www.aspcode.net * * * * Version 1.2.9 * * Copyright (c) 2006 Cameron Cooke * * By: Cameron Cooke and Tim Hutchison. * * * * * * Website: http://www.curvycorners.net * * Email: info@totalinfinity.com * * Forum: http://www.curvycorners.net/forum/ * * * * * * This library is free software; you can redistribute * * it and/or modify it under the terms of the GNU * * Lesser General Public License as published by the * * Free Software Foundation; either version 2.1 of the * * License, or (at your option) any later version. * * * * This library 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 Lesser General Public * * License for more details. * * * * You should have received a copy of the GNU Lesser * * General Public License along with this library; * * Inc., 59 Temple Place, Suite 330, Boston, * * MA 02111-1307 USA * * * ****************************************************************/ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[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}('(M($){8 2s={K:{o:10},N:{o:10},P:{o:10},R:{o:10},2F:1s,2M:1s,4P:["4z"]};2i.4O.4B=M(1D){8 g;a(23(1D)==\'4C\'){8 1q=J((1D.4D(/(\\d+)c/)||[])[1],10)||10;8 1t={K:/1e|K/.2k(1D),N:/1e|N/.2k(1D),P:/1U|P/.2k(1D),R:/1U|R/.2k(1D)};a(!1t.K&&!1t.N&&!1t.P&&!1t.R)1t={K:1,N:1,P:1,R:1};1w(8 j 2b 1t)1t[j]={o:1t[j]?1q:0};g=2i.32({},2s,1t)}w a(23(1D)==\'4E\'){g=2i.32({},2s,1D)}w{g=2i.32({},2s)}L 6.4F(M(){(1Y 3D(g,6)).3M()})};M 3D(){6.G=3C[1];6.g=3C[0];6.1p=2h;6.1l=2h;6.2j=1Y 2z();6.3e=2h;8 1j=1E(6.G,"T","T");8 1v=1E(6.G,"1q","1q");8 m=1E(6.G,"3N","3i-1e-1q");8 1y=1E(6.G,"4H","3i-1e-3g");8 1F=1E(6.G,"1W","3G-3g");8 Z=1E(6.G,"Z","3G-2T");8 37=1E(6.G,"O","O");8 1f=1E(6.G,"3b","3K-1e");6.1j=J(((1j!=""&&1j!="2C"&&1j.V("%")==-1)?1j.1m(0,1j.V("c")):6.G.4I));6.1v=J(((1v!=""&&1v!="2C"&&1v.V("%")==-1)?1v.1m(0,1v.V("c")):6.G.4J));6.m=J(((m!=""&&m.V("c")!==-1)?m.3J(0,m.V("c")):0));6.1F=2N(1F);6.1f=J(((1f!=""&&1f.V("c")!==-1)?1f.3J(0,1f.V("c")):0));6.1y=2N(1y);6.19=6.m+"c"+" 4K "+6.1y;6.Z=((Z!="2L")?Z:"");6.3a=6.G.2O;a(37!="1b")6.G.7.O="2q";6.G.7.3K="I";8 3L=2e.2g.29().V("4M")>-1;a(3L&&1v=="2C"&&1j=="2C")6.G.7.1q="U%";a(6.g.2M==1s&&6.1f>0)6.G.2O="";6.3M=M(){1w(8 t=0;t<2;t++){1J(t){q 0:a(6.g.K||6.g.N){8 H=1B.1O("1L");H.7.1q="U%";H.7.1T="1N";H.7.1V="1X";H.7.O="1b";H.7.2P=6.m+"c";H.7.2Q=6.m+"c";8 1c=h.27(6.g.K?6.g.K.o:0,6.g.N?6.g.N.o:0);H.7.T=1c+"c";H.7.1e=0-1c+"c";H.7.1d=0-6.m+"c";6.1p=6.G.1a(H)}v;q 1:a(6.g.P||6.g.R){8 H=1B.1O("1L");H.7.1q="U%";H.7.1T="1N";H.7.1V="1X";H.7.O="1b";H.7.2P=6.m+"c";H.7.2Q=6.m+"c";8 1k=h.27(6.g.P?6.g.P.o:0,6.g.R?6.g.R.o:0);H.7.T=1k+"c";H.7.1U=0-1k+"c";H.7.1d=0-6.m+"c";6.1l=6.G.1a(H)}v}}a(6.1p)6.G.7.3N="I";a(6.1l)6.G.7.4N="I";8 34=["N","K","R","P"];1w(8 i 2b 34){a(i>-1<4){8 p=34[i];a(!6.g[p]){a(((p=="N"||p=="K")&&6.1p!=2h)||((p=="R"||p=="P")&&6.1l!=2h)){8 f=1B.1O("1L");f.7.O="2q";f.7.1T="1N";f.7.1V="1X";a(6.Z=="")f.7.1W=6.1F;w f.7.Z=6.Z;1J(p){q"K":f.7.T=1c-6.m+"c";f.7.2o=6.g.N.o-(6.m*2)+"c";f.7.2t=6.19;f.7.2J=6.19;f.7.1d=-6.m+"c";v;q"N":f.7.T=1c-6.m+"c";f.7.2n=6.g.K.o-(6.m*2)+"c";f.7.2u=6.19;f.7.2J=6.19;f.7.1u="-"+(1c+6.m)+"c I";f.7.1d=6.m+"c";v;q"P":f.7.T=1k-6.m+"c";f.7.2o=6.g.R.o-(6.m*2)+"c";f.7.2t=6.19;f.7.2K=6.19;f.7.1d=-6.m+"c";f.7.1u="-"+(6.m)+"c -"+(6.1j+(1k+6.m))+"c";v;q"R":f.7.T=1k-6.m+"c";f.7.2n=6.g.P.o-(6.m*2)+"c";f.7.2u=6.19;f.7.2K=6.19;f.7.1d=6.m+"c";f.7.1u="-"+(1k+6.m)+"c -"+(6.1j+(1k+6.m))+"c";v}}}w{a(6.2j[6.g[p].o]){8 f=6.2j[6.g[p].o].3o(1s)}w{8 f=1B.1O("1L");f.7.T=6.g[p].o+"c";f.7.1q=6.g[p].o+"c";f.7.O="1b";f.7.1T="1N";f.7.1V="1X";8 1G=J(6.g[p].o-6.m);1w(8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.7.1T="1N";1g.7.1V="1X";8 1c=h.27(6.g["N"].o,6.g["K"].o);a(2T==-1&&6.Z!=""){1g.7.Z=6.Z;1g.7.1u="-"+(6.1v-(3h-s)+6.m)+"c -"+((6.1j+1c+X)-6.m)+"c"}w{1g.7.1W=17}a(2V!=U)3m(1g,2V);1g.7.1e=X+"c";1g.7.1d=s+"c";f.1a(1g)}}M 4s(3n,3p,3q){3n.4t(3p,3q.4v)}M 3s(2v,2w,1x){8 3v=J(2v.1Q(1,2),16);8 3x=J(2v.1Q(3,2),16);8 3z=J(2v.1Q(5,2),16);8 3w=J(2w.1Q(1,2),16);8 3y=J(2w.1Q(3,2),16);8 3A=J(2w.1Q(5,2),16);a(1x>1||1x<0)1x=1;8 24=h.2Y((3v*1x)+(3w*(1-1x)));a(24>21)24=21;a(24<0)24=0;8 20=h.2Y((3x*1x)+(3y*(1-1x)));a(20>21)20=21;a(20<0)20=0;8 22=h.2Y((3z*1x)+(3A*(1-1x)));a(22>21)22=21;a(22<0)22=0;L"#"+1S(24)+1S(20)+1S(22)}M 1S(31){8 2E=31/16;8 33=31%16;2E=2E-(33/16);8 3E=2W(2E);8 3R=2W(33);L 3E+\'\'+3R}M 2W(x){a((x>=0)&&(x<=9)){L x}w{1J(x){q 10:L"A";q 11:L"B";q 12:L"C";q 13:L"D";q 14:L"E";q 15:L"F"}}}M 2A(x,y,r){8 1R=0;8 1h=1Y 2z(1);8 1i=1Y 2z(1);8 18=0;8 1A="";8 W=h.1M((h.Y(r,2)-h.Y(x,2)));a((W>=y)&&(W<(y+1))){1A="3V";1h[18]=0;1i[18]=W-y;18=18+1}8 W=h.1M((h.Y(r,2)-h.Y(y+1,2)));a((W>=x)&&(W<(x+1))){1A=1A+"3X";1h[18]=W-x;1i[18]=1;18=18+1}8 W=h.1M((h.Y(r,2)-h.Y(x+1,2)));a((W>=y)&&(W<(y+1))){1A=1A+"3Y";1h[18]=1;1i[18]=W-y;18=18+1}8 W=h.1M((h.Y(r,2)-h.Y(y,2)));a((W>=x)&&(W<(x+1))){1A=1A+"40";1h[18]=W-x;1i[18]=0}1J(1A){q"41":1R=h.2r(1i[0],1i[1])+((h.27(1i[0],1i[1])-h.2r(1i[0],1i[1]))/2);v;q"42":1R=1-(((1-1h[0])*(1-1i[1]))/2);v;q"43":1R=h.2r(1h[0],1h[1])+((h.27(1h[0],1h[1])-h.2r(1h[0],1h[1]))/2);v;q"4a":1R=(1i[0]*1h[1])/2;v;4b:1R=1}L 1R}M 2R(2c){3T{8 1z=2X(2c);8 2y=J(1z[0]);8 2l=J(1z[1]);8 2D=J(1z[2]);8 3j="#"+1S(2y)+1S(2l)+1S(2D)}3d(e){4e("4f 4g 4i 4j 4l 4m 4n 28 4o 4p 2b M 2R")}L 3j}M 2X(2c){8 3k=2c.1m(4,2c.V(")"));8 1z=3k.4r(", ");L 1z}M 3m(Q,1o){8 2f=((2e.2g.29().V(\'3t\')!=-1)&&(2e.2g.29().V(\'3r\')!=-1))?1s:2B;1o=(1o==U)?4u.4w:1o;a(2f&&Q.4x!="4y"){8 1z=2X(Q.7.1W);8 2y=J(1z[0]);8 2l=J(1z[1]);8 2D=J(1z[2]);Q.7.1W="4A("+2y+", "+2l+", "+2D+", "+1o/U+")"}w a(23(Q.7.1o)!="2m"){Q.7.1o=1o/U}w a(23(Q.7.3F)!="2m"){Q.7.3F=1o/U}w a(23(Q.7.3H)!="2m"){Q.7.3H="4L(1o:"+1o+")"}w a(23(Q.7.3Q)!="2m"){Q.7.3Q=1o/U}}M 3U(2a,28){1w(8 i=0;i<2a.2S;i++){a(2a[i]===28)L i}L 2B}M 3Z(2a,28){1w(8 39 2b 2a){a(39===28)L 1s}L 2B}M 2N(17){8 2d="#45";a(17!=""&&17!="48"){a(17.1Q(0,3)=="4c"){2d=2R(17)}w a(17.2S==4){2d="#"+17.1m(1,2)+17.1m(1,2)+17.1m(2,3)+17.1m(2,3)+17.1m(3,4)+17.1m(3,4)}w{2d=17}}L 2d}M 1E(Q,38,3l){8 2f=((2e.2g.29().V(\'3t\')!=-1)&&(2e.2g.29().V(\'3r\')!=-1))?1s:2B;3T{a(Q.36){8 2U=3W("Q.36."+38)}w{a(2f&&Q.7.2H=="2L"){Q.7.2H="";8 3B=1s}8 2U=1B.4h.4k(Q,\'\').4q(3l);a(2f&&3B){Q.7.2H="2L"}}}3d(e){}L 2U}M 4G(3f){L 1Y 3u("4d 3u:\\n"+3f)}})(2i);',62,300,'||||||this|style|var||if||px|||newCorner|settings|Math|||||borderWidth||radius|cc|case||intx||newFiller|break|else||||||||||box|newMainContainer|0px|parseInt|tl|return|function|tr|position|bl|obj|br|newFillerBar|height|100|indexOf|intersect|inty|pow|backgroundImage||||||||colour|point|borderString|appendChild|absolute|topMaxRadius|left|top|boxPadding|pixel|xvalues|yvalues|boxHeight|botMaxRadius|bottomContainer|substring|pixelBar|opacity|topContainer|width|abs|true|opts|backgroundPosition|boxWidth|for|Col1Fraction|borderColour|rgbArray|whatsides|document|contentContainer|options|get_style|boxColour|borderRadius|y1|drawPixel|switch|y2|DIV|sqrt|1px|createElement|y3|substr|pixelfraction|IntToHex|fontSize|bottom|overflow|backgroundColor|hidden|new|radiusDiff|endGreen|255|endBlue|typeof|endRed|pixelBarLeft|pixelBarTop|max|value|toLowerCase|array|in|rgbColour|returnColour|navigator|isSafari|userAgent|null|jQuery|masterCorners|test|green|undefined|marginLeft|marginRight|right|relative|min|defaults|borderLeft|borderRight|Col1|Col2|pixelBarHeight|red|Array|pixelFraction|false|auto|blue|base|antiAlias|outsideColour|display|smallerCornerType|borderTop|borderBottom|none|autoPad|format_colour|innerHTML|paddingLeft|paddingRight|rgb2Hex|length|image|returnVal|transAmount|MakeHex|rgb2Array|round|y4||strNum|extend|rem|corners|childNodes|currentStyle|boxPosition|property|key|boxContent|paddingTop|topPadding|catch|contentDIV|errorMessage|color|cornerRadius|border|hexColour|rgbValues|propertyNS|setOpacity|parent|cloneNode|node|referenceNode|mac|BlendColour|safari|Error|red1|red2|green1|green2|blue1|blue2|wasHidden|arguments|curvyObject|baseS|MozOpacity|background|filter|ceil|slice|padding|isIE|applyCorners|borderTopWidth|floor|borderFract|KHTMLOpacity|remS|pixelcolour|try|inArray|Left|eval|Top|Right|inArrayKey|Bottom|LeftRight|TopRight|TopBottom|className|ffffff|autoPadDiv|botPadding|transparent|paddingBottom|LeftBottom|default|rgb|curvyCorners|alert|There|was|defaultView|an|error|getComputedStyle|converting|the|RGB|to|Hexadecimal|getPropertyValue|split|insertAfter|insertBefore|99|nextSibling|999|tagName|IFRAME|div|rgba|curvy|string|match|object|each|newCurvyError|borderTopColor|scrollHeight|scrollWidth|solid|alpha|msie|borderBottomWidth|fn|validTags'.split('|'),0,{}))