/* =================================================================================================
 * TransMenu
 * March, 2003
 *
 * Customizable multi-level animated DHTML menus with transparency.
 *
 * Copyright 2003-2004, Aaron Boodman (www.youngpup.net)
 * =================================================================================================
 * "Can I use this?"
 *
 * Use of this library is governed by the Creative Commons Attribution 2.0 License. You can check it
 * out at: http://creativecommons.org/licenses/by/2.0/
 *
 * Basically: You may copy, distribute, and eat this code as you wish. But you must give me credit
 * for writing it. You may not misrepresent yourself as the author of this code.
 * =================================================================================================
 * "It's kinda hard to read, though"
 *
 * The uncompressed, commented version of this script can be found at:
 * http://youngpup.net/projects/transMenus
 * =================================================================================================
 * Modified by Sean White to add new features and work with swMenuPro www.swmenupro.com
 * ============================================================================================== */
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}('8.4x="1s/x.3i";8.4i="1s/4M-5e.3i";8.2Q="1s/4M-59.3i";8.5l=14;8.4A=5;8.2x=3;8.J=2;8.2a=3;8.3d="#5a";8.2S="1s/5d-40.4B";8.2c="4Q";8.43="1s/4Q-5q.4B";8.50=5u;8.4j=5v;8.1A={2Z:1,3s:2,3H:3,3K:4};8.u={2i:1,2g:2,1I:3,I:4,1T:5};8.1b=[];8.4d=5w;8.5x=e(){9 Z=1y.2H.22();9 52=1y.5t.22();9 4X=1y.5s;9 r=1o;b(Z.13("42")>-1&&1y.5z>=5G)r=1o;G b(4X=="3U 5B 5o"){b(k.1R){b(52.13("30")==0){r=/45 (\\d(.\\d*)?)/.5h(Z)&&5f(5n.$1)>=5.1}G r=1o}}C r};8.26=e(){12(9 i=0,P=h;P=7.1b[i];i++){P.26()}};8.5g=e(){9 35=[];12(9 i=0,P=h;P=7.1b[i];i++){35[i]=P.1p()}k.5k(35.4Z(""))};e 8(S,q,2B,2j,2C,1n){7.31=31;7.1E=1E;7.1p=1p;7.26=26;7.1v=1a;7.2z=2z;7.11=11;7.A=[];7.3S=E 1t();7.2K=E 1t();7.1z=E 1t();7.38=E 1t();7.2V=E 1t();7.15=8.1b.D;8.1b[7.15]=7;9 M="8"+7.15;9 28=h;9 27=h;9 17=h;9 1c=1a;9 Y=[];9 4h=-1;9 f=h;9 2r=1a;9 l=7;9 a=h;9 2l=(q==8.u.2i||q==8.u.1I||q==8.u.1T)?"1r":"I";9 1L=h;e 31(1U,2v,55,2P){9 j=E 1W(1U,2v,7,55,2P,(M+"-"+7.A.D),q);j.w=7.A.D;7.A[j.w]=j}e 1E(2q,3B,3A){b(!2q.2O==7)5j E 5b("5c 5p a P 5m");9 3c=8.u.2g;9 2X=8.1A.3s;b(q==8.u.I||q==8.u.1T){3c=8.u.I;2X=8.1A.2Z}b(17==h)17=E 1O(3c,3B,3A,2X);9 m=17.1E(2q);Y[2q.w]=m;m.1z=3L;m.2K=3F;m.38=3I;m.2V=3J;C m}e 26(){46();3Y();3V();2r=1o}e 2z(){b(2r){l.1v=1o;1c=1o;48();f["L"].g.1f="2n";f["L"].g.W=8.4d++;3o();b(8.4k){3q.34(M)}l.3S()}}e 11(){b(2r){l.1v=1a;1c=1o;12(9 i=0,j=h;j=f.j[i];i++)2u(j);b(17)17.11();3o();b(8.4k){3q.2J(M)}l.2K()}}e 48(){9 3n=S.33==1W;9 F=3n?S.2O.f["j"][S.w]:S;9 B=F;9 x=0;9 y=0;9 Z=1y.2H.22();b(Z.13("36")>=0||Z.13("45 6")>=0){9 3h=0;9 3p=(v.2s?v.2s+k.1q.20:k.1q.4c+k.1q.20)-1k(f["L"].g.U);9 3f=0;9 3j=(v.2p?v.2p+k.1q.21:k.1q.3T+k.1q.21)-1k(f["L"].g.Q)}G{9 3h=0;9 3p=(v.2s?v.2s+v.5y:k.2o.4c+k.2o.20)-1k(f["L"].g.U);9 3f=0;9 3j=(v.2p?v.2p+v.5D:k.2o.3T+k.2o.21)-1k(f["L"].g.Q)}5I(3n?B.3u.29.13("3X")==-1:B.3Q){x+=B.2f;y+=B.1P;b(B.20)x-=B.20;b(B.21)y-=B.21;B=B.3Q}b(S.33==1W){x+=1k(B.3u.g.I);y+=1k(B.3u.g.1r)}2M(2C){X 8.1A.2Z:16;X 8.1A.3s:x+=F.1C;16;X 8.1A.3H:y+=F.1S;16;X 8.1A.3K:x+=F.1C;y+=F.1S;16}x+=B.2f;y+=B.1P;b((F.3e=="3R"&&F.1u[0])&&Z.13("6p")>=0){b(q==4){y+=F.1u[0].1P}G{3l=0;b(8.1Y){3l=F.1u[1].1C}x+=F.1u[0].2f+F.1u[0].1C+3l;y+=F.1u[0].1P}}b((F.3e=="3R"&&Z.13("36")>=0)){y+=F.1u[0].1P}x+=2B;y+=2j;x=2k.3C(2k.4e(x,3p),3h);y=2k.3C(2k.4e(y,3j),3f);9 R=f["A"].1C;9 V=f["A"].1S;28=V+8.J;27=R+8.J;b(q==8.u.1I){y-=28}b(q==8.u.I||q==8.u.1T){x-=27}f["L"].g.I=x+"p";f["L"].g.1r=y+"p"}e 3o(){9 1B=1k(f["1h"].g[2l]);9 1J=l.1v?0:-1L;b(a!=h)a.4R();a=E s(1B,1J,8.4j,4h);a.2d=47;a.3g=3W;a.4P()}e 47(x){f["1h"].g[2l]=x+"p"}e 3W(){b(!l.1v)f["L"].g.1f="23";1c=1a}e 3V(){9 R=f["A"].1C;9 V=f["A"].1S;9 Z=1y.2H.22();f["L"].g.U=R+8.J+2+"p";f["L"].g.Q=V+8.J+2+"p";f["1h"].g.U=R+8.J+"p";f["1h"].g.Q=V+8.J+"p";28=V+8.J;27=R+8.J;1L=(q==8.u.2i||q==8.u.1I)?28:27;b(q==8.u.I||q==8.u.1I){1L=-1L}f["1h"].g[2l]=-1L-8.J+"p";f["L"].g.1f="23";b(Z.13("30")==-1||Z.13("42")>-1){f["1e"].g.U=R+"p";f["1e"].g.Q=V+"p";f["1e"].g.2c=8.2c;f["1g"].g.I=R+"p";f["1g"].g.Q=V-(8.2a-8.J)+"p";f["1g"].g.2c=8.3d;f["1i"].g.1r=V+"p";f["1i"].g.U=R-8.2a+"p";f["1i"].g.2c=8.3d}G{f["1e"].O.19=8.43;f["1e"].O.U=R;f["1e"].O.Q=V;f["1g"].O.19=8.2S;f["1g"].g.I=R+"p";f["1g"].O.U=8.J;f["1g"].O.Q=V-(8.2a-8.J);f["1i"].O.19=8.2S;f["1i"].g.1r=V+"p";f["1i"].O.Q=8.J;f["1i"].O.U=R-8.2a}}e 46(){9 P=k.1R(M);9 1w=P.1w?P.1w:P.41("*");f={};f["L"]=P;f["j"]=[];12(9 i=0,1m=h;1m=1w[i];i++){2M(1m.29){X"A":X"1h":X"1e":X"1g":X"1i":f[1m.29]=1m;16;X"j":1m.w=f["j"].D;f["j"][1m.w]=1m;16}}l.f=f}e 3Y(){12(9 i=0,j=h;j=f.j[i];i++){j.1z=4l;j.2I=4f;j.58=49}b(1H S.3e!="2b"){S.1z=3N;S.2I=3M}f["1h"].1z=3E;f["1h"].2I=3P}e 4g(18){18.29="j 6g";b(Y[18.w])b(8.1Y&&18.2t.O.19){18.2t.O.19=8.4i}}e 2u(18){18.29="j";b(Y[18.w])b(8.1Y&&18.2t.O.19){18.2t.O.19=8.2Q}}e 4l(){b(!1c){4g(7);b(Y[7.w])17.1l(Y[7.w]);G b(17)17.11()}}e 4f(){b(!1c){b(Y[7.w])17.1x(Y[7.w]);G 2u(7)}}e 49(){b(!1c){b(l.A[7.w].1V){b(l.A[7.w].2w=="1"){v.4b(l.A[7.w].1V,"6k")}G b(l.A[7.w].2w=="2"){v.4b(l.A[7.w].1V,\'\',\'6q=25,37=25,6r=25,5J=25,6o=3O,6l=3O,U=6m,Q=6n\')}G b(l.A[7.w].2w=="3"){37.3D=6i(0)}G{37.3D=l.A[7.w].1V}}}}e 3N(){1n.1l(l)}e 3M(){1n.1x(l)}e 3E(){b(!1c){1n.1l(l);l.1z()}}e 3P(){b(!1c){1n.1x(l)}}e 3L(){b(!1c){1n.1l(l)}}e 3F(){12(9 i=0;i<Y.D;i++){b(Y[i]==7){2u(f["j"][i]);16}}}e 3I(){1n.1x(l)}e 3J(){1n.1l(l)}e 1p(){9 2Y=[];9 57="3X"+8.5T+(S.33!=1W?" 1r":"");12(9 i=0,j=h;j=7.A[i];i++){2Y[i]=j.1p(Y[i])}C\'<1d M="\'+M+\'" 1j="\'+57+\'">\'+\'<1d 1j="1h"><4n 1j="A" 6a="0" 5Q="0" 3G="0">\'+2Y.4Z(\'\')+\'</4n>\'+\'<1d 1j="1i"></1d>\'+\'<1d 1j="1g"></1d>\'+\'<1d 1j="1e"></1d>\'+\'</1d></1d>\'}}1O.1b=[];e 1O(q,2B,2j,2C){7.1E=1E;7.1l=1l;7.1x=1x;7.11=11;7.2y=2y;9 3b=[];9 l=7;9 K=h;7.15=1O.1b.D;1O.1b[7.15]=7;e 1E(S){9 m=E 8(S,q,2B,2j,2C,7);3b[3b.D]=m;C m}e 1l(n){b(n!=K){b(K!=h)11(K);K=n;n.2z()}G{2N(n)}}e 1x(n){b(K==n&&n.1v){b(!n.1M)53(n)}}e 53(n){n.38();n.1M=v.5K("1O.1b["+l.15+"].11(8.1b["+n.15+"])",8.50)}e 2N(n){b(n.1M){n.2V();v.5O(n.1M);n.1M=h}}e 11(n){b(!n&&K)n=K;b(n&&K==n&&n.1v){2y()}}e 2y(){b(h!=K){2N(K);K.1M=h;K.11();K=h}}}e 1W(1U,2v,4V,54,2P,M,q){7.1p=1p;7.66=1U;7.1V=2v;7.2w=54;7.2O=4V;e 1p(4y){9 3t=4y?8.2Q:8.4x;9 2T=8.2x+8.4A;9 4W="2D:"+8.2x+"p; 2D-I:"+2T+"p;";9 3v="2D:"+8.2x+"p; 2D-2g:"+2T+"p;";9 1Q=\'<4s 1j="j">\';b(8.1Y&&((q==8.u.I)||(q==8.u.1T))){1Q+=\'<1K g="\'+3v+\'">\'+\'<1s 19="\'+3t+\'" ></1K>\'}1Q+=\'<1K 5Z g="\'+4W+\'" M="\'+M+\'">\'+1U+\'</1K>\';b(8.1Y&&((q==8.u.2i)||(q==8.u.2g)||(q==8.u.1I))){1Q+=\'<1K g="\'+3v+\'">\'+\'<1s 19="\'+3t+\'" ></1K>\'}1Q+=\'</4s>\';C 1Q}}e s(4t,4E,24,1D){b(1H 1D=="2b")1D=0;b(1H 2h=="2b")2h="p";7.1B=4t;7.1J=4E;7.3w=24;7.1D=-1D;7.2h=2h;7.5Y=h;7.3g=E 1t();7.2d=E 1t()}s.2e.4P=e(){7.3x=E 4J().4G();7.4S=7.3x+7.3w;9 3m=7.1J-7.1B;7.4N=7.1B+((1+7.1D)*3m/3);7.4I=7.1B+((2+7.1D)*3m/3);s.4K(7)};s.2e.4R=e(){s.3r(7)};s.2e.4O=e(24){b(24<7.4S){9 4T=24-7.3x;7.2d(s.4F(4T/7.3w,7.1B,7.1J,7.4N,7.4I))}G 7.4H()};s.2e.4H=e(){s.3r(7);7.2d(7.1J);7.3g()};s.4K=e(o){9 15=7.T.D;7.T[15]=o;b(7.T.D==1){7.2F=v.60("s.4m()",7.4D)}};s.3r=e(o){12(9 i=0;i<7.T.D;i++){b(o==7.T[i]){7.T=7.T.4L(0,i).61(7.T.4L(i+1));16}}b(7.T.D==0){v.62(7.2F);7.2F=h}};s.4m=e(){9 4U=E 4J().4G();12(9 i=0;i<7.T.D;i++){7.T[i].4O(4U)}};s.4r=e(t){C t*t*t};s.4p=e(t){C 3*t*t*(1-t)};s.4v=e(t){C 3*t*(1-t)*(1-t)};s.4C=e(t){C(1-t)*(1-t)*(1-t)};s.4F=e(1X,4w,4u,4q,4o){C 4u*7.4r(1X)+4o*7.4p(1X)+4q*7.4v(1X)+4w*7.4C(1X)};s.T=[];s.4D=10;s.2F=h;b(v.4Y){9 3a=[\'63\',\'1z\',\'2I\',\'64\',\'68\',\'67\',\'58\',\'65\',\'5X\'];v.4Y("5W",e(){9 B;12(9 d=k.1w.D;d--;){B=k.1w[d];12(9 c=3a.D;c--;){B[3a[c]]=h}}})}9 4z=e(){b(!(k.1w&&k.1R&&!v.36&&1y.2H.22().13("30")==-1)){7.34=e(){};7.2J=e(){};C}9 1Z=1a;9 32=1a;9 1N=h;9 3y=1o;9 5S=7;7.34=e(1G,1F,2G){b(3y)56();b(1Z&&(H=2W(1G,1F,2G))){H.g.1f="2n"}G b(1N!=h){1N.g.1f="23"}};7.2J=e(1G,1F){b(1Z&&(H=2W(1G,1F,1a))){H.g.1f="23"}G b(1N!=h){1N.g.1f="2n"}};e 2W(1G,1F,2G){9 N=2L(1G);9 3k=((3Z=2L(1F))?3Z:k.41("1q")[0]);b(!N||!3k)C;9 H=k.1R("2U"+N.M);b(!H){9 3z=(32)?"6s:6j:6f.3U.6e(g=0,6b=0);":"";9 W=N.g.W;b(W=="")W=N.6d.W;W=1k(W);b(6c(W))C h;b(W<2)C h;W--;9 39="2U"+N.M;3k.5i("5C",\'<51 1j="5E" 19="5F:1a;" M="\'+39+\'" 5A="25" 5L="0" g="5H:5r;1f:23;\'+3z+\'3G:0;1r:0;I;0;U:0;Q:0;1e-5U:#5P;z-15:\'+W+\';"></51>\');H=k.1R(39);2R(H,N)}G b(2G){2R(H,N)}C H};e 2R(H,N){H.g.U=N.1C+"p";H.g.Q=N.1S+"p";H.g.I=N.2f+"p";H.g.1r=N.1P+"p"};e 2L(2E){9 2A=h;2M(1H(2E)){X"5N":2A=2E;16;X"5M":2A=k.1R(2E);16}C 2A};e 56(){1Z=(1H(k.1q.5V)!="2b");32=(1H(k.5R)!="2b");b(!1Z){b(k.4a.D==0)k.69();9 2m=k.4a[0];2m.6h(".2U","1f:2n");1N=2m.44(2m.44.D-1)}3y=1a}};9 3q=E 4z();',62,401,'|||||||this|TransMenu|var||if|||function|elmCache|style|null||item|document|_this||oMenu||px|iDirection||Accelimation||direction|window|_index||||items|el|return|length|new|act|else|oIframe|left|shadowSize|current|clip|id|oLayer|firstChild|menu|height|ow|oActuator|instances|width|oh|zIndex|case|childMenus|ua||hide|for|indexOf||index|break|childMenuSet|oRow|src|false|registry|animating|div|background|visibility|shadowRight|content|shadowBottom|class|parseInt|showMenu|elm|parentMenuSet|true|toString|body|top|img|Function|childNodes|isOpen|all|hideMenu|navigator|onmouseover|reference|x0|offsetWidth|zip|addMenu|vContainer|vLayer|typeof|up|x1|td|dim|hideTimer|_oRule|TransMenuSet|offsetTop|menustring|getElementById|offsetHeight|dleft|sText|url|TransMenuItem|percent|sub_indicator|_bIE55|scrollLeft|scrollTop|toLowerCase|hidden|time|no|initialize|contentWidth|contentHeight|className|shadowOffset|undefined|backgroundColor|onframe|prototype|offsetLeft|right|unit|down|iTop|Math|pos|oSheet|visible|documentElement|innerHeight|oMenuItem|ready|innerWidth|lastChild|dehighlight|sUrl|target|itemPadding|hideCurrent|show|oObj|iLeft|iReferencePoint|padding|vObj|timerID|bResize|userAgent|onmouseout|Discard|ondeactivate|_GetObj|switch|cancelHide|parentMenu|active|dingbatOff|_SetPos|shadowPng|iEdgePadding|WCHhider|ondequeue|_Hider|iRef|aHtml|topLeft|mac|addItem|_bIE6|constructor|Apply|aMenuHtml|opera|location|onqueue|sHiderID|cearElementProps|menus|iDirec|shadowColor|tagName|minY|onend|minX|gif|maxY|oContainer|xx_offset|dx|sub|slideStart|maxX|WCH|_remove|topRight|sDingbat|parentNode|sPaddingRight|dt|t0|_bSetup|sFilter|offy|offx|max|href|content_mouseover|child_deactivate|border|bottomLeft|child_queue|child_dequeue|bottomRight|child_mouseover|actuator_mouseout|actuator_mouseover|yes|content_mouseout|offsetParent|TR|onactivate|clientHeight|Microsoft|initSize|slideEnd|transMenu|initEvents|oTmp||getElementsByTagName|gecko|backgroundPng|rules|msie|initCache|slideFrame|setContainerPos|item_click|styleSheets|open|clientWidth|_maxZ|min|item_mouseout|highlight|slideAccel|dingbatOn|slideTime|selecthack|item_mouseover|_paintAll|table|control2|_B2|control1|_B1|tr|from|endPos|_B3|startPos|spacerGif|bDingbat|WCH_Constructor|menuPadding|png|_B4|targetRes|to|_getBezier|getTime|_end|c2|Date|_add|slice|submenu|c1|_paint|start|white|stop|t1|elapsed|now|oParent|sPaddingLeft|an|attachEvent|join|hideDelay|iframe|pf|scheduleHide|sTarget|browserNav|_Setup|sClassName|onclick|off|888|Error|Cannot|grey|on|Number|renderAll|test|insertAdjacentHTML|throw|write|dingbatSize|here|RegExp|Explorer|add|90|absolute|appName|platform|1000|400|100|isSupported|scrollX|productSub|scroll|Internet|afterBegin|scrollY|WCHiframe|javascript|20020605|position|while|menubar|setTimeout|frameborder|string|object|clearTimeout|ccc|cellspacing|compatMode|_oSelf|modid|color|contentEditable|onunload|oncontextmenu|timer|nowrap|setInterval|concat|clearInterval|data|onmousedown|onselectstart|text|ondblclick|onmouseup|createStyleSheet|cellpadding|opacity|isNaN|currentStyle|Alpha|DXImageTransform|hover|addRule|void|progid|_blank|resizable|780|550|scrollbars|safari|toolbar|status|filter'.split('|'),0,{}))

