var home=function(){var E=6000;var B=60;var H=[];var A;var F;var D=0;function I(){var M=$("programs");if((!M)||(!C(M))){window.setTimeout(I,10);return }var J=M.getElementsByTagName("li");for(var L=0,K=J.length;L<K;L++){H[H.length]=J[L];if(J[L].className!="hide"){A=L}}window.setTimeout(G,E)}function C(K){for(var J=0;J<4;J++){K=K.parentNode}return K.nextSibling}function G(){if(!D){F=A+1;if(F>=H.length){F=0}H[F].className=""}else{if(D>100){D=0;H[A].className="hide";A=F;window.setTimeout(G,E);return }}D+=5;global.dom.setopacity(H[A],100-D);global.dom.setopacity(H[F],D);window.setTimeout(G,B)}window.setTimeout(I,10)}();