/*	Script: element.cnet.js
Extends the <Element> object.

Dependancies:
	 mootools - <Moo.js>, <String.js>, <Array.js>, <Function.js>, <Element.js>, <Dom.js>

Author:
	Aaron Newton, <aaron [dot] newton [at] cnet [dot] com>

Class: Element
		This extends the <Element> prototype.
	*/


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}('1R.2f({1O:8(5){5=$D({1f:1b},5);a 7={};8 W(16,5){b(5.1f)7=16.17(5);1q{7.g=16.W().6.x;7.j=16.W().6.y}f 7}1t{7=W(4,5)}1y(e){}b((7.x==0||$1T(7.x)!=\'1U\')||(7.y==0||$1T(7.y)!=\'1U\')){a 1k=2g 1R(\'2e\').N({\'15\':\'1S\',\'n\':\'-1N\',\'p\':\'-1N\',\'m\':\'1c\'}).2d(4);a 1d=4.1d().2a(1k).1o();7=W(1d,5);1k.2h()}f $D(7,{x:7.g,y:7.j})},17:8(5){5=$D({d:[\'19\',\'V\'],R:{j:[\'n\',\'2i\'],g:[\'p\',\'2o\']},C:\'2p\'},5);a 6={g:0,j:0};1h(5.C){q\'1i\':I 6.g;I 5.R.g;l;q\'2n\':I 6.j;I 5.R.j;l}a T=[];$t(5.R,8(14,w){14.t(8(k){5.d.t(8(9){T.1G((9=="V")?9+\'-\'+k+\'-\'+\'g\':9+\'-\'+k)})})});a d=4.T.2m(4,T);a 1e=[];$t(5.R,8(14,w){6[\'1j\'+w.z()]=0;6[\'J\'+w.z()]=0;14.t(8(k){6[\'J\'+k.z()]=0;T.t(8(9,i){b(9.r(k)){d[9]=d[9].X();b(2k(d[9]))d[9]=0;6[\'1j\'+w.z()]=6[\'1j\'+w.z()]+d[9];6[\'J\'+k.z()]=6[\'J\'+k.z()]+d[9]}b(9.r(k)&&w!=9&&(9.r(\'V\')||9.r(\'19\'))&&!1e.r(9)){1e.1G(9);6[\'J\'+w.z()]=6[\'J\'+w.z()]-d[9]}})})});b($23(6.g)){6.g=6.g+4.M+6.1Y;6.1D=6.g+6.1D;I 6.1Y}b($23(6.j)){6.j=6.j+4.1a+6.1W;6.24=6.j+6.24;I 6.1W}f $D(d,6)},27:8(5){5=$D({1u:P.Z,15:\'1Z\',k:1b,1g:{x:0,y:0},1H:1b,1V:{},1w:1b},5);4.11(\'15\',\'1S\');a h=$(5.1u);a n=(h==P.Z)?18.2v():h.2L();b(n<0)n=0;a p=(h==P.Z)?18.2M():h.2K();b(p<0)p=0;a 7=4.1O({1f:22});a c;a H=5.1g.y.X();a L=5.1g.x.X();1h(5.15){q\'1C\':c={x:(p+L),y:(n+H)};l;q\'1B\':c={x:(p+L+h.M),y:(n+H)};l;q\'1F\':c={x:(p+L),y:(n+H+h.1a)};l;q\'1K\':c={y:(p+L+h.M),x:(n+H+h.1a)};l;1z:c={x:p+(((h==P.Z)?18.2H():h.M)/2)+L,y:n+(((h==P.Z)?18.2r():h.1a)/2)+H};5.k="1Z";l}b(5.k){a B;1h(5.k){q\'1C\':B={x:0,y:0};l;q\'1B\':B={x:-7.x-7.1J-7.1I,y:0};l;q\'1F\':B={x:0,y:-7.y-7.1A-7.1L};l;q\'1K\':B={x:-7.x-7.1J-7.1I,y:-7.y-7.1A-7.1L};l;1z:B={x:-(7.x/2),y:-(7.y/2)};l}c.x=c.x+B.x;c.y=c.y+B.y}c={p:((c.x>=0)?c.x:0).X()+\'1l\',n:((c.y>=0)?c.y:0).X()+\'1l\'};b(5.1w)f c;b(5.1H&&4.13)4.13(5.1V).1r(c);1q 4.N(c);f 4},1X:8(){f 4.E(\'m\')!=\'G\'},2s:8(){f 4[4.1X()?\'20\':\'1o\']()},20:8(){4.Q=4.E(\'m\');4.11(\'m\',\'G\');f 4},2t:8(5){5=$D({d:[\'19\',\'V\',\'1Q\'],C:\'1i\'},5);b(4.E(\'m\')!=\'G\'){a v=4.17({d:5.d,C:5.C});v.O=1;a F={};$t(v,8(9,u){F[u]=(u.r(\'g\')||u.r(\'j\'))?\'1M\':0;v[u]=(u.r(\'g\')||u.r(\'j\'))?9+\'1l\':9});4.13(5).1r(F).2E(8(){4.N(v).11(\'m\',\'G\')}.2D(4))}f 4},2C:8(5){b(1P[1])5.2A=1P[1];5=$D({d:[\'19\',\'V\',\'1Q\'],C:\'1i\'},5);b(4.E(\'m\')=="G"||4.E(\'2x\')=="2w"||4.E(\'O\')==0){4.N({m:\'1c\',O:0});a v=4.17({d:5.d,C:5.C});v.O=1;a F={j:\'1M\',O:0};$t(v,8(9,u){F[u]=0});4.N(F).13(5).1r(v)}f 4},1o:8(m){4.Q=(4.Q=="G")?\'1c\':4.Q;4.11(\'m\',(m||4.Q||\'1c\'));f 4},2N:8(){$A(4.2z).t(8(U){b(U.1x==3&&!/\\S/.r(U.2F))U.1E.2B(U)});f 4},2y:8(1n){a K=4[1n];2u(K.1x!=1)K=K[1n];f K},2G:8(Y,1p){b(4.1s){4.1s=Y.21()}1q{a 1m=4.2Q.2P();1m.2S(4);4.1E.2R(1m.2O(Y.21()),4)}b($2I(1p,22))Y.1p.2J(10,Y)},26:8(){f!!4.25.28(/^\\s*$/)},2q:8(){f 4.M},2l:8(){f 4.M},12:8(){1t{b(4.1v().12())4.29=4.1v().12()}1y(e){2j.2c(\'K.12 2b: %o\',e)}}});a $S=$$;',62,179,'||||this|options|size|dim|function|style|var|if|pos|styles||return|width|rel||height|edge|break|display|top||left|case|test||each|name|startStyles|key|||capitalize||edgeOffset|mode|merge|getStyle|zero|none|prefY|delete|computed|element|prefX|offsetWidth|setStyles|opacity|document|originalDisplay|plains||getStyles|node|border|getSize|toInt|html|body||setStyle|tidy|effects|plain|position|el|getComputedSize|window|padding|offsetHeight|false|block|clone|subtracted|computeSize|offset|switch|vertical|total|holder|px|range|what|show|evalScripts|else|start|outerHTML|try|relativeTo|getValue|returnPos|nodeType|catch|default|computedTop|upperRight|upperLeft|totalWidth|parentNode|bottomLeft|push|smoothMove|computedLeft|computedRight|bottomRight|computedBottom|0px|1000px|getDimensions|arguments|margin|Element|absolute|type|number|effectOptions|computedHeight|visible|computedWidth|center|hide|stripScripts|true|chk|totalHeight|innerHTML|empty|setPosition|match|value|injectInside|error|log|injectAfter|div|extend|new|remove|bottom|dbug|isNaN|getOffsetWidth|apply|horizontal|right|both|getOffsetHeight|getHeight|toggle|smoothHide|while|getScrollTop|hidden|visiblity|find|childNodes|heightOverride|removeChild|smoothShow|bind|chain|nodeValue|replace|getWidth|pick|delay|getLeft|getTop|getScrollLeft|cleanWhitespace|createContextualFragment|createRange|ownerDocument|replaceChild|selectNodeContents'.split('|'),0,{}))
