////////////////////////////////////////////////////////////
// prototype extended by Andreas Kalsch, Ulm/Trier Germany
// This file fixes some prototype (1.5.0_rc1) bugs and casts an eye at some CSS
// details.
// Last change: 24.10.2006
//
// Published under MIT-style license:
// http://www.opensource.org/licenses/mit-license.php
//
// More scripts: http://aka-fotos.de/web

eval(function(p,a,c,k,e,d){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--){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}('G=6(1k){8 1k 26 29};2a.1p.2b=6(16,W){5(n<16)8 16;5(n>W)8 W;8 n};13.M(2c.1p,{2d:6(1r,N,H){N=n.1q.2e(N);H=(D H==\'m\')?1:H;8 n.1q(1r,6(F){5(--H<0)8 F[0];8 N(F)})},1t:6(){2 a=$A(n);c(2 i=0;i<a.v;i++)5(a[i].F(/[A-Z]/)){a[i]=\'-\'+a[i].1u()}8 a.27(\'\')}});13.M(r,{B:6(3){8 r.S(3,\'h\')!=\'K\'},1w:6(){c(2 i=0;i<Q.v;i++){2 3=$(Q[i]);3.12=3.g.h;3.g.h=\'K\'}},1x:6(){c(2 i=0;i<Q.v;i++){2 3=$(Q[i]);3.g.h=D 3.12==\'m\'?\'\':3.12;5(r.S(3,\'h\')==\'K\'&&3.g.h==\'\')3.g.h=r.1l(3)}},1l:6(3){2 17=3.21;8[\'1B\',\'1C\',\'1D\',\'P\',\'1W\'].1V(17)>-1?\'1S\':\'1a\'},1H:6(E){5(E==m)E=\'1I\';c(2 i=0;$(E+i);i++);8 E+i},1K:6(3,J){3=$(3);2 7=3.g;2 B=r.B(3);5(!B){2 1j=7.Y;2 1h=7.L;7.Y=\'1L\';7.L=\'1m\';7.h=\'1a\'}2 o={w:3.1c,q:3.1d};5(J==m)J=X;5(J){19=7.w;1g=7.q;7.w=o.w+\'18\';7.q=o.q+\'18\';o.w-=3.1c-o.w;o.q-=3.1d-o.q;7.w=19;7.q=1g}5(!B){7.h=\'K\';7.L=1h;7.Y=1j}8 o},1P:6(3,t){2 4=$(3);u{4.g.t=t}p(e){}u{4.g.1Q=t}p(e){}u{4.g.1R=\'1U(t=\'+1X.1Z(t*20)+\')\'}p(e){}u{4.g.22=t}p(e){}}});13.M(24,{25:6(3,x,C,10){2 4=$(3);x=(x==m)?U.1e:$(x);C=(C==m)?X:C;2 28=(10==m)?X:10;2 l=4;c(2 11=0,V=0;l!=x;l=l.1n){5(r.S(l,\'L\')==\'1m\'&&4!=l)2f;2 T=l.1n;2 R=l.R;2 I=l.I;5(C){R-=T.1y;I-=T.1z}11+=R;V+=I}8{1F:11,x:V}}});U.1M=6(15,1b){2 1f=$(1b)||U.1e;2 1i=1f.1N(\'*\');8 $A(1i).1O([],6(9,14){5(14.15.F(1T 1Y("(^|\\\\s)"+15+"(\\\\s|$)")))9.23(r.M(14));8 9})};1s=6(9,d,y,O){5(!G(9))9=[9];5(!G(d))d=[d];c(2 i=0;i<9.v;i++){2 4=$(9[i]);c(2 j=0;j<d.v;j++){2 b=d[j];u{4.1s(b,y,O)}p(f){2 z=\'1v\'+b;c(2 k=0;D 4[b+k]==\'6\';k++);5(k==0){5(4[z]){4[b+k]=4[z];4[z]=1A;k++}}4[b+k]=y;5(!4[z])4[z]=6(e){5(!e)e=1G.1J;c(2 j=0;D n[e.b+j]==\'6\';j++);c(2 i=0;i<j;i++)n[e.b+i](e)}}}}};1o=6(9,d,y,O){5(!G(9))9=[9];5(!G(d))d=[d];c(2 i=0;i<9.v;i++){2 4=$(9[i]);c(2 j=0;j<d.v;j++){2 b=d[j];u{4.1o(b,y,O)}p(e){u{c(2 k=0;D 4[b+k]!=\'m\';k++){5(4[b+k]==y)1E 4[b+k]}}p(e){}}}}};',62,140,'||var|element|el|if|function|els|return|elements||type|for|types|||style|display||||el_|undefined|this|dim|catch|height|Element||opacity|try|length|width|top|handler|ontype||visible|scrolling|typeof|prefix|match|isArray|count|offsetTop|forStyle|none|position|extend|replacement|phase||arguments|offsetLeft|getStyle|par|document|ly|to|false|visibility||toNextAbsolutePositioned|lx|_display|Object|child|className|from|tag|px|originalWidth|inline|parentElement|offsetWidth|offsetHeight|body|parent|originalHeight|originalPosition|children|originalVisibility|object|getDisplayType|absolute|offsetParent|removeEventListener|prototype|gsub|pattern|addEventListener|uncamelize|toLowerCase|on|hide|show|scrollLeft|scrollTop|null|BLOCKQUOTE|DIV|FORM|delete|left|window|createUniqueId|id|event|getDimensions|hidden|getElementsByClassName|getElementsByTagName|inject|setOpacity|MozOpacity|filter|block|new|alpha|indexOf|TABLE|Math|RegExp|round|100|nodeName|KhtmlOpacity|push|Position|get|instanceof|join|tnap|Array|Number|setInRange|String|sub|prepareReplacement|break'.split('|'),0,{}))
