var zslideMenu=function(){var F,C,D,G,A,I,B,E,H;return{build:function(K,O,P,N,M,L){F=N;C=O;D=P;G=document.getElementById(K);A=G.getElementsByTagName("li");I=A.length;B=G.offsetWidth;E=B/I;H=Math.floor((B-C)/(I-1));var J=0;for(J;J<I;J++){N=A[J];N.style.width=E+"px";this.timer(N)}if(M!=null){G.timer=setInterval(function(){zslideMenu.slide(A[M-1])},D)}},timer:function(J){J.onmouseover=function(){clearInterval(G.htimer);clearInterval(G.timer);G.timer=setInterval(function(){zslideMenu.slide(J)},D)};J.onmouseout=function(){clearInterval(G.timer);clearInterval(G.htimer);G.htimer=setInterval(function(){zslideMenu.slide(J,true)},D)}},slide:function(O,K){var P=parseInt(O.style.width);if((P<C&&!K)||(P>E&&K)){var M=0;var N=0;for(N;N<I;N++){if(A[N]!=O){var J,Q;var L=0;J=A[N];Q=parseInt(J.style.width);if(Q<E&&K){L=Math.floor((E-Q)/F);L=(L>0)?L:1;J.style.width=(Q+L)+"px"}else{if(Q>H&&!K){L=Math.floor((Q-H)/F);L=(L>0)?L:1;J.style.width=(Q-L)+"px"}}if(K){M=M+(Q+L)}else{M=M+(Q-L)}}}O.style.width=(B-M)+"px"}else{clearInterval(G.timer);clearInterval(G.htimer)}}}}();var slideMenu=function(){var A,H,G,B,E,C,F,I,D;return{build:function(P,K,L,O,J,N){A=O;H=K;G=L;B=document.getElementById(P);E=B.getElementsByTagName("li");C=E.length;F=B.offsetWidth;I=F/C;D=Math.floor((F-H)/(C-1));var M=0;for(M;M<C;M++){O=E[M];O.style.width=I+"px";this.timer(O)}if(J!=null){B.timer=setInterval(function(){slideMenu.slide(E[J-1])},G)}},timer:function(J){J.onmouseover=function(){clearInterval(B.htimer);clearInterval(B.timer);B.timer=setInterval(function(){slideMenu.slide(J)},G)};J.onmouseout=function(){clearInterval(B.timer);clearInterval(B.htimer);B.htimer=setInterval(function(){slideMenu.slide(J,true)},G)}},slide:function(M,Q){var J=parseInt(M.style.width);if((J<H&&!Q)||(J>I&&Q)){var O=0;var L=0;for(L;L<C;L++){if(E[L]!=M){var P,K;var N=0;P=E[L];K=parseInt(P.style.width);if(K<I&&Q){N=Math.floor((I-K)/A);N=(N>0)?N:1;P.style.width=(K+N)+"px"}else{if(K>D&&!Q){N=Math.floor((K-D)/A);N=(N>0)?N:1;P.style.width=(K-N)+"px"}}if(Q){O=O+(K+N)}else{O=O+(K-N)}}}M.style.width=(F-O)+"px"}else{clearInterval(B.timer);clearInterval(B.htimer)}}}}();