/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* Email: drew.diller@gmail.com
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.2a
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD_roundies.addRule('#doc .container', '10px 5px'); // selector and multiple radii
* DD_roundies.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
* 
* Just want the PNG fixing effect for IE6, and don't want to also use the DD_belatedPNG library?  Don't give any additional arguments after the CSS selector.
* DD_roundies.addRule('.your .example img');
**/

//MODIFIED VERSION OF DD_ROUNDIES TO ALLOW CORNERS + VML GRADIENTS 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}('t K={16:\'K\',1N:G,1O:G,1d:G,2j:y(){u(D.2k!=8&&D.1P&&!D.1P[q.16]){q.1N=M;q.1O=M}17 u(D.2k==8){q.1d=M}},2l:D.2m,1Q:[],1b:{},2n:y(){u(q.1N||q.1O){D.1P.2L(q.16,\'2M:2N-2O-2P:x\')}u(q.1d){D.2Q(\'<?2R 2S="\'+q.16+\'" 2T="#1R#2o" ?>\')}},2p:y(){t a=D.1l(\'z\');1S{D.1x.1e.1y(a,D.1x.1e.1e)}1T(1U){D.1x.1y(a,D.1x.1e.1e)}u(a.12){1S{t b=a.12;b.1z(q.16+\'\\\\:*\',\'{1m:2U(#1R#2o)}\');q.12=b}1T(1U){}}17{q.12=a}},1z:y(a,b,c){u(1V b==\'1W\'||b===2V){b=0}u(b.2W.2q().1A(\'2X\')==-1){b=b.2q().2Y(/[^0-9 ]/g,\'\').1X(\' \')}H(t i=0;i<4;i++){b[i]=(!b[i]&&b[i]!==0)?b[C.1f((i-2),0)]:b[i]}u(q.12){u(q.12.1z){t d=a.1X(\',\');H(t i=0;i<d.1Y;i++){q.12.1z(d[i],\'1m:2Z(K.1Z.2r(q, [\'+b.20(\',\')+\']))\')}}17 u(c){t e=b.20(\'F \')+\'F\';q.12.1B(D.2s(a+\' {Q-1g:\'+e+\'; -30-Q-1g:\'+e+\';}\'));q.12.1B(D.2s(a+\' {-1C-Q-1n-1o-1g:\'+b[0]+\'F \'+b[0]+\'F; -1C-Q-1n-21-1g:\'+b[1]+\'F \'+b[1]+\'F; -1C-Q-22-21-1g:\'+b[2]+\'F \'+b[2]+\'F; -1C-Q-22-1o-1g:\'+b[3]+\'F \'+b[3]+\'F;}\'))}}17 u(q.1d){q.1Q.31({\'2t\':a,\'2u\':b})}},2v:y(a){2w(32.33){I\'z.Q\':I\'z.34\':I\'z.1D\':q.1p(a);13;I\'z.2x\':q.23(a);13;I\'z.1q\':I\'z.2y\':I\'z.2z\':q.1p(a);13;I\'z.24\':a.18.z.24=(a.z.24==\'S\')?\'S\':\'35\';13;I\'z.25\':q.26(a);13;I\'z.1c\':a.18.z.1c=a.z.1c;13}},1p:y(a){a.14.27=\'\';q.2A(a);q.23(a);q.1E(a);q.1F(a);q.28(a);q.2B(a);q.26(a)},26:y(a){u(a.W.25.1A(\'36\')!=-1){t b=a.W.25;b=1h(b.37(b.29(\'=\')+1,b.29(\')\')),10)/2C;H(t v 1i a.x){a.x[v].1j.38=b}}},2A:y(a){u(!a.W){1r}17{t b=a.W}a.14.1q=\'\';a.14.1G=\'\';t c=(b.1q==\'2D\');t d=M;u(b.1G!=\'S\'||a.1H){u(!a.1H){a.J=b.1G;a.J=a.J.39(5,a.J.29(\'")\')-5)}17{a.J=a.2a}t e=q;u(!e.1b[a.J]){t f=D.1l(\'3a\');f.1s(\'3b\',y(){q.1t=q.3c;q.1u=q.3d;e.1F(a)});f.3e=e.16+\'3f\';f.14.27=\'1m:S; 1k:2b; 1n:-2E; 1o:-2E; Q:S;\';f.2a=a.J;f.2F(\'1t\');f.2F(\'1u\');D.2G.1y(f,D.2G.1e);e.1b[a.J]=f}a.x.Z.1j.2a=a.J;d=G}a.x.Z.2H=!d;a.x.Z.1I=\'S\';a.x.1v.2H=!c;a.x.1v.1I=b.1q;a.14.1G=\'S\';a.14.1q=\'2D\'},23:y(a){a.x.1J.1I=a.W.2x},1E:y(a){t c=[\'N\',\'19\',\'1a\',\'O\'];a.P={};H(t b=0;b<4;b++){a.P[c[b]]=1h(a.W[\'Q\'+c[b]+\'U\'],10)||0}},1F:y(c){t e=[\'O\',\'N\',\'U\',\'V\'];H(t d=0;d<4;d++){c.E[e[d]]=c[\'3g\'+e[d]]}t f=y(a,b){a.z.1o=(b?0:c.E.O)+\'F\';a.z.1n=(b?0:c.E.N)+\'F\';a.z.1t=c.E.U+\'F\';a.z.1u=c.E.V+\'F\'};H(t v 1i c.x){t g=(v==\'Z\')?1:2;c.x[v].3h=(c.E.U*g)+\', \'+(c.E.V*g);f(c.x[v],M)}f(c.18,G);u(K.1d){c.x.1J.z.2c=\'-3i\';u(1V c.P==\'1W\'){q.1E(c)}c.x.1v.z.2c=(c.P.N-1)+\'F \'+(c.P.O-1)+\'F\'}},28:y(j){t k=y(a,w,h,r,b,c,d){t e=a?[\'m\',\'1K\',\'l\',\'1L\',\'l\',\'1K\',\'l\',\'1L\',\'l\']:[\'1L\',\'l\',\'1K\',\'l\',\'1L\',\'l\',\'1K\',\'l\',\'m\'];b*=d;c*=d;w*=d;h*=d;t R=r.2I();H(t i=0;i<4;i++){R[i]*=d;R[i]=C.3j(w/2,h/2,R[i])}t f=[e[0]+C.11(0+b)+\',\'+C.11(R[0]+c),e[1]+C.11(R[0]+b)+\',\'+C.11(0+c),e[2]+C.15(w-R[1]+b)+\',\'+C.11(0+c),e[3]+C.15(w+b)+\',\'+C.11(R[1]+c),e[4]+C.15(w+b)+\',\'+C.15(h-R[2]+c),e[5]+C.15(w-R[2]+b)+\',\'+C.15(h+c),e[6]+C.11(R[3]+b)+\',\'+C.15(h+c),e[7]+C.11(0+b)+\',\'+C.15(h-R[3]+c),e[8]+C.11(0+b)+\',\'+C.11(R[0]+c)];u(!a){f.3k()}t g=f.20(\'\');1r g};u(1V j.P==\'1W\'){q.1E(j)}t l=j.P;t m=j.2J.2I();t n=k(M,j.E.U,j.E.V,m,0,0,2);m[0]-=C.1f(l.O,l.N);m[1]-=C.1f(l.N,l.19);m[2]-=C.1f(l.19,l.1a);m[3]-=C.1f(l.1a,l.O);H(t i=0;i<4;i++){m[i]=C.1f(m[i],0)}t o=k(G,j.E.U-l.O-l.19,j.E.V-l.N-l.1a,m,l.O,l.N,2);t p=k(M,j.E.U-l.O-l.19+1,j.E.V-l.N-l.1a+1,m,l.O,l.N,1);j.x.1v.2d=o;j.x.Z.2d=p;j.x.1J.2d=n+o;q.2K(j)},2B:y(a){t s=a.W;t b=[\'N\',\'O\',\'19\',\'1a\'];H(t i=0;i<4;i++){a.14[\'1D\'+b[i]]=(1h(s[\'1D\'+b[i]],10)||0)+(1h(s[\'Q\'+b[i]+\'U\'],10)||0)+\'F\'}a.14.Q=\'S\'},2K:y(e){t f=K;u(!e.J||!f.1b[e.J]){1r}t g=e.W;t h={\'X\':0,\'Y\':0};t i=y(a,b){t c=M;2w(b){I\'1o\':I\'1n\':h[a]=0;13;I\'3l\':h[a]=0.5;13;I\'21\':I\'22\':h[a]=1;13;1R:u(b.1A(\'%\')!=-1){h[a]=1h(b,10)*0.3m}17{c=G}}t d=(a==\'X\');h[a]=C.15(c?((e.E[d?\'U\':\'V\']-(e.P[d?\'O\':\'N\']+e.P[d?\'19\':\'1a\']))*h[a])-(f.1b[e.J][d?\'1t\':\'1u\']*h[a]):1h(b,10));h[a]+=1};H(t b 1i h){i(b,g[\'2y\'+b])}e.x.Z.1j.1k=(h.X/(e.E.U-e.P.O-e.P.19+1))+\',\'+(h.Y/(e.E.V-e.P.N-e.P.1a+1));t j=g.2z;t c={\'T\':1,\'R\':e.E.U+1,\'B\':e.E.V+1,\'L\':1};t k={\'X\':{\'2e\':\'L\',\'2f\':\'R\',\'d\':\'U\'},\'Y\':{\'2e\':\'T\',\'2f\':\'B\',\'d\':\'V\'}};u(j!=\'2g\'){c={\'T\':(h.Y),\'R\':(h.X+f.1b[e.J].1t),\'B\':(h.Y+f.1b[e.J].1u),\'L\':(h.X)};u(j.1A(\'2g-\')!=-1){t v=j.1X(\'2g-\')[1].3n();c[k[v].2e]=1;c[k[v].2f]=e.E[k[v].d]+1}u(c.B>e.E.V){c.B=e.E.V+1}}e.x.Z.z.3o=\'3p(\'+c.T+\'F \'+c.R+\'F \'+c.B+\'F \'+c.L+\'F)\'},1w:y(a){t b=q;2h(y(){b.1p(a)},1)},2i:y(a){q.1F(a);q.28(a)},1Z:y(b){$(q).3q(\'3r\');q.z.1m=\'S\';u(!q.W){1r}17{t c=q.W}t d={3s:G,3t:G,3u:G,3v:G,3w:G,3x:G,3y:G};u(d[q.1M]===G){1r}t e=q;t f=K;q.2J=b;q.E={};t g={3z:\'2i\',3A:\'2i\'};u(q.1M==\'A\'){t i={3B:\'1w\',3C:\'1w\',3D:\'1w\',3E:\'1w\'};H(t a 1i i){g[a]=i[a]}}H(t h 1i g){q.1s(\'3F\'+h,y(){f[g[h]](e)})}q.1s(\'3G\',y(){f.2v(e)});t j=y(a){a.z.3H=1;u(a.W.1k==\'3I\'){a.z.1k=\'3J\'}};j(q.3K);j(q);q.18=D.1l(\'3L\');q.18.14.27=\'1m:S; 1k:2b; 2c:0; 1D:0; Q:0; 3M:S;\';q.18.z.1c=c.1c;q.x={\'1v\':M,\'Z\':M,\'1J\':M};H(t v 1i q.x){q.x[v]=D.1l(f.16+\':3N\');q.x[v].1j=D.1l(f.16+\':3O\');q.x[v].1B(q.x[v].1j);q.x[v].3P=G;q.x[v].z.1k=\'2b\';q.x[v].z.1c=c.1c;q.x[v].3Q=\'1,1\';q.18.1B(q.x[v])}q.x.Z.1I=\'S\';q.x.Z.1j.3R=\'3S\';q.3T.1y(q.18,q);q.1H=G;u(q.1M==\'3U\'){q.1H=M;q.z.3V=\'3W\'}2h(y(){f.1p(e)},1)}};1S{D.3X("3Y",G,M)}1T(1U){}K.2j();K.2n();K.2p();u(K.1d&&D.1s&&K.2l){D.1s(\'3Z\',y(){u(D.40==\'41\'){t d=K.1Q;t e=d.1Y;t f=y(a,b,c){2h(y(){K.1Z.2r(a,b)},c*2C)};H(t i=0;i<e;i++){t g=D.2m(d[i].2t);t h=g.1Y;H(t r=0;r<h;r++){u(g[r].1M!=\'42\'){f(g[r],d[i].2u,r)}}}}})}',62,251,'||||||||||||||||||||||||||this|||var|if|||vml|function|style|||Math|document|dim|px|false|for|case|vmlBg|DD_roundies||true|Top|Left|bW|border||none||Width|Height|currentStyle|||image||floor|styleSheet|break|runtimeStyle|ceil|ns|else|vmlBox|Right|Bottom|imgSize|zIndex|IE8|firstChild|max|radius|parseInt|in|filler|position|createElement|behavior|top|left|applyVML|backgroundColor|return|attachEvent|width|height|color|pseudoClass|documentElement|insertBefore|addRule|search|appendChild|webkit|padding|vmlStrokeWeight|vmlOffsets|backgroundImage|isImg|fillcolor|stroke|qy|qx|nodeName|IE6|IE7|namespaces|selectorsToProcess|default|try|catch|err|typeof|undefined|split|length|roundify|join|right|bottom|vmlStrokeColor|display|filter|vmlOpacity|cssText|vmlPath|lastIndexOf|src|absolute|margin|path|b1|b2|repeat|setTimeout|reposition|IEversion|documentMode|querySelector|querySelectorAll|createVmlNameSpace|VML|createVmlStyleSheet|toString|call|createTextNode|selector|radii|readPropertyChanges|switch|borderColor|backgroundPosition|backgroundRepeat|vmlFill|nixBorder|100|transparent|10000px|removeAttribute|body|filled|slice|DD_radii|clipImage|add|urn|schemas|microsoft|com|writeln|import|namespace|implementation|url|null|constructor|Array|replace|expression|moz|push|event|propertyName|borderWidth|block|lpha|substring|opacity|substr|img|onload|offsetWidth|offsetHeight|className|_sizeFinder|offset|coordsize|1px|min|reverse|center|01|toUpperCase|clip|rect|addClass|DD_roundy|BODY|TABLE|TR|TD|SELECT|OPTION|TEXTAREA|resize|move|mouseleave|mouseenter|focus|blur|on|onpropertychange|zoom|static|relative|offsetParent|ignore|background|shape|fill|stroked|coordorigin|type|tile|parentNode|IMG|visibility|hidden|execCommand|BackgroundImageCache|onreadystatechange|readyState|complete|INPUT'.split('|'),0,{}))

//SETUP DEFAULT MIND ROUNDIE CLASSES
DD_roundies.addRule('.roundies', '18px', true);
DD_roundies.addRule('.bottom_radius30', '0 0 30px 30px', true);
DD_roundies.addRule('.radius15', '15px', true);
DD_roundies.addRule('.radius5', '5px', true);

