function addClass(B,A){if(!hasClass(B,A)){B.className=(B.className+" "+A)}}function replaceClass(B,C,A){B.className=B.className.replace(C,A)}function replaceClasses(D,E,A){var C=false;for(var B=0;B<E.length;B++){removeClass(D,E[B])}addClass(D,A)}function hasClass(A,B){return A.className&&A.className.search(B)>=0}function removeClass(A,B){A.className=A.className.replace(B,"")}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")};function getElementsByClassName(A){allElems=document.all||document.getElementsByTagName("*");var B=new Array();for(i=0;i<allElems.length;i++){if(hasClass(allElems[i],A)){B[B.length]=allElems[i]}}return B}function ClassTweener(B,C,A){this.name=B;this.classes=C;this.delay=A;this.resetOnFinish=true;this.tweenAttributeId=this.name+"_tweenIds";if(arguments.length>3){this.resetOnFinish=arguments[3]}if(arguments.length>4){this.endFunction=arguments[4]}}ClassTweener.prototype.tween=function(E){if(document.getElementById){var A=document.getElementById(E);if(A){var B=0;var C=A.getAttribute(this.tweenAttributeId);if(arguments.length==2){B=arguments[1]}else{this.clearTweens(C)}if(B<this.classes.length){replaceClasses(A,this.classes,this.classes[B]);var D=setTimeout(this.name+".tween('"+E+"', "+(B+1)+")",this.delay);A.setAttribute(this.tweenAttributeId,C+D+";")}else{if(this.resetOnFinish){removeClass(A,this.classes[this.classes.length-1])}A.setAttribute(this.tweenAttributeId,"");if(this.endFunction){this.endFunction()}}}}};ClassTweener.prototype.clearTweens=function(C){if(C!=null){var B=C.split(";");for(var A=0;A<B.length;A++){clearTimeout(B[A])}}};ClassTweener.prototype.stop=function(B){if(document.getElementById){var A=document.getElementById(B);this.clearTweens(A.getAttribute(this.tweenAttributeId));A.setAttribute(this.tweenAttributeId,"")}};var seIfMenuAnim={moveUp:null,movDown:null,events:new Array(),init:function(){var B=new Array("animUp1","animUp2","animUp3","animUp4","animUp5","animUp6","animUp7");var C=new Array("animDown1","animDown2","animDown3","animDown4","animDown5","animDown6","animDown7");var A=1000;seIfMenuAnim.moveUp=new ClassTweener("seIfMenuAnim.moveUp",B,65,false);seIfMenuAnim.moveDown=new ClassTweener("seIfMenuAnim.moveDown",C,65,false);Event.observe("tabMenu-global","mouseover",seIfMenuAnim.stop);$("img-small-comp").className="";$("img-big-comp").className="";seIfMenuAnim.events[0]=setTimeout("seIfMenuAnim.moveUp.tween('img-small-comp')",0.4*A);seIfMenuAnim.events[1]=setTimeout("seIfMenuAnim.moveUp.tween('img-big-comp')",0.7*A);seIfMenuAnim.events[2]=setTimeout("seIfMenuAnim.moveDown.tween('img-small-comp')",1.7*A);seIfMenuAnim.events[3]=setTimeout("seIfMenuAnim.moveDown.tween('img-big-comp')",2*A);seIfMenuAnim.events[4]=setTimeout("seIfMenuAnim.stop()",3*A)},stop:function(A){Event.stopObserving("tabMenu-global","mouseover",seIfMenuAnim.stop);seIfMenuAnim.moveDown.stop("img-small-comp");seIfMenuAnim.moveUp.stop("img-small-comp");seIfMenuAnim.moveDown.stop("img-big-comp");seIfMenuAnim.moveUp.stop("img-big-comp");clearTimeout(seIfMenuAnim.events[0]);clearTimeout(seIfMenuAnim.events[1]);clearTimeout(seIfMenuAnim.events[2]);clearTimeout(seIfMenuAnim.events[3]);clearTimeout(seIfMenuAnim.events[4]);$("img-small-comp").className="default";$("img-big-comp").className="default"}};Event.observe(window,"load",seIfMenuAnim.init);