/**
* Cornerz 0.8 - Bullet Proof Corners
* Jonah Fox (jonah@parkerfox.co.uk) 2008
* 
* Usage: $('.myclass').curve(options)
* options is a hash with the following parameters. Bracketed is the default
*   radius (10)
*   borderWidth (read from BorderTopWidth or 0)
*   background ("white"). Note that this is not calculated from the HTML as it is expensive
*   borderColor (read from BorderTopColor)
*   corners ("tl br tr bl"). Specify which borders
*   fixIE ("padding") - attmepts to fix IE by incrementing the property by 1 if the outer width/height is odd.

CHANGELIST from  v0.4

0.5 - Now attempts to fix the odd dimension problem in IE 
0.6 - Added semicolons for packing and fixed a problem with odd border width's in IE

*/
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}(';(9($){6($.15.16&&W.17["v"]==X){W.17.1B("v","1C:1D-1E-1F:1G");4 v=W.1H().1I;v.1J.1K="v\\\\:*{1L:1M(#1N#1O);}"}$.1P.1Q=9(q){9 18(t,l,r,a,b,c,d,o){4 e,P,1R,Q,R,x,y,p=1.1S,7="B:I;";6(t){e=-p;R=r;y=o?r:0;7+="J:-"+(o?r:a)+"8;"}C{e=p;R=0;y=o?0:r;7+="K:-"+(o?r:a)+"8;"}6(l){P=p*2;Q=r+0;x=o?r:0;7+="D:-"+a+"8;"}C{P=0;Q=0;x=o?0:r;6(d){7+="D:"+(d-r-a)+"8;"}C{7+="L:"+(-a)+"8;"}}4 f=$("<19 E="+r+"8 F="+r+"8 A=\'"+7+"\' ></19>");4 g=f[0].1T(\'2d\');g.1U();g.Y=a*2;4 h=o?r-a:r;6(h<0){h=r;c=b;g.Y=0}g.1a(Q,R,h,e,P,!(t^l));g.1V=b;g.1W();g.Y=0;g.1X(x,y);g.1Y=c;g.1Z();M f};9 1b(a,r,b,c,d,e,f){4 g=$("<G A=\'1c: 20\' />");$.Z(a.1d(" "),9(){g.21(18(z[0]=="t",z[1]=="l",r,b,c,d,e,f))});M g};9 11(r,b,c,m,a,d,e,f){4 l=m-a-e;4 t=m-d;4 g=f?"22":"23";M"<v:1a 24=\'"+g+"\' 25=\'"+f+"\' 26=\'"+b+"8\' 27=\'"+c+"\' 28=\'0\' 29=\'2a\' A=\' J:"+t+"8;D: "+l+";E:"+r+"8; F:"+r+"8\' />"}9 1e(c,r,d,e,w,f,g){4 h="<G A=\'2b-2c:D; \'>";$.Z($.2e(c).1d(" "),9(){4 a,S=1,T=1;4 b=0;6(z.1f(0)=="t"){a="J:-"+(g?r:d)+"8;"}C{a="K:-"+(g?r:d)+"8;";T=r+1}6(z.1f(1)=="l")a+="D:-"+d+"8;";C{a+="L:-"+(d)+"8; ";S=r;b=1}h+="<G A=\'"+a+"; B: I; 2f:2g; E:"+r+"8; F: "+r+"8;\'>";h+="<v:1g  A=\'E:1h;F:1h;B:I;\' 2h=\'1i,1i\' >";6(!g)h+=11(r*3,r+d,f,-r/2,S,T,b);6(d>0||g)h+=11(r*2-d,d,e,2i.2j(d/2+0.5),S,T,b,g?f:X);h+="</v:1g>";h+="</G>"});h+="</G>";M h};4 s=9(a,b,x){4 y=H(a.7(b))||0;a.7(b,x+y)};9 1j(a){4 b=a.2k();4 c=a.2l();6(b%2==1){s(a,"12-L",1);s(a,"N-L",1)}6(c%2==1){s(a,"12-K",1);s(a,"N-K",1)}}9 1k(a,r,b,c,d,e){4 f=e.U("1l")!=-1;4 g=e.U("1m")!=-1;4 i=e.U("1n")!=-1;4 j=e.U("1o")!=-1;4 k=(f||g)?r:0;4 l=(i||j)?r:0;4 m=(f||g)?H(a.7("1p")):0;4 n=H(a.7("1q"));4 o=H(a.7("1q"));4 p=H(a.7("2m"));4 h=a.F()-r-r+m+m;6(h<0)h=0;a.7("F",h);6(!d)d=a.7("1r");6(!b)b=m;6(!c)c=a.7("1s");a.7("B","1t");a.2n("<G 2o=2p A=\'B: I; D: "+p+"8; J: -"+(k-m)+"8\'  />");6(f||g){13(a,f,g,r,b,c,d,"J");s(a,"N-J",k)}6(i||j){13(a,i,j,r,b,c,d,"K");s(a,"N-K",l)}}9 13(a,b,c,r,d,e,f,g){4 i={};i["V-"+g+"-E"]=0;4 w=a.1u();4 h=r-d;4 j=H(a.7("12-"+g));4 k=0;6(h-j<0){k=j-h}4 m={14:f,"B":"I"};4 l=0;m["N-"+g]=-h-d;m[g]=0;4 n=d+"8 2q "+e;m["V-"+g]=n;6(b){l+=r-d;w-=r+d}C{m["V-D"]=n;l-=d}6(c){l-=0;w-=r+d}C{m["V-L"]=n}6(c&&b){w+=d+d}m.D=l;m.E=w;m.F=h;4 o=$("<G>").7(m);a.1v(o).7(i)}4 u={1w:"1l 1m 1n 1o",1x:10,14:"2r",1y:0,1z:2s,O:2t};$.2u(u,q||{});M z.Z(9(){4 a=$(z);4 r=u.1x*1.0;4 b=(u.1y||H(a.7("1p"))||0)*1.0;4 c=u.14;4 d=u.2v;d=d||(b>0?a.7("1s"):c);4 e=u.1w;z.A.2w=1;6(a.7("B")!="I")z.A.B="1t";6(u.O){c=a.7("1r");1k(a,r,b,d,c,e)}6($.15.16){z.1A=1e(e,r,b,d,$(z).E(),c,u.O)+z.1A;6(u.1z&&!u.O)1j(a)}C a.1v(1b(e,r,b,d,c,a.7("1c")=="2x"?a.1u():X,u.O))})}})(2y);',62,159,'||||var||if|css|px|function||||||||||||||||||||||||||this|style|position|else|left|width|height|div|parseInt|absolute|top|bottom|right|return|margin|outer|ea|sx|sy|ml|mt|indexOf|border|document|null|lineWidth|each||vmlCurve|padding|addElement|background|browser|msie|namespaces|canvasCorner|canvas|arc|canvasCorners|display|split|vmlCorners|charAt|group|1000px|1000|fixDimensions|addTopBot|tl|tr|bl|br|borderTopWidth|paddingTop|backgroundColor|borderTopColor|relative|outerWidth|prepend|corners|radius|borderWidth|fixIE|innerHTML|add|urn|schemas|microsoft|com|vml|createStyleSheet|owningElement|styleSheet|cssText|behavior|url|default|VML|fn|cornerz|cw|57|getContext|beginPath|strokeStyle|stroke|lineTo|fillStyle|fill|inherit|append|True|False|filled|fillcolor|strokeweight|strokecolor|startangle|endangle|361|text|align||trim|overflow|hidden|coordsize|Math|floor|innerWidth|innerHeight|paddingLeft|wrapInner|class|_content|solid|white|true|false|extend|borderColor|zoom|inline|jQuery'.split('|'),0,{}))
