// -1) ? '': 'rect(auto, auto, auto, auto)') : 'rect(0, ' + ref.offsetWidth + 'px, '+(ref.offsetHeight*cP)+'px, 0)'); }; function animFade(ref, counter) { var f = ref.filters, done = (counter==100); if (f) { if (!done && ref.style.filter.indexOf("alpha") == -1) ref.style.filter += ' alpha(opacity=' + counter + ')'; else if (f.length && f.alpha) with (f.alpha) { if (done) enabled = false; else { opacity = counter; enabled=true } } } else ref.style.opacity = ref.style.MozOpacity = counter/100.1; }; // I'm applying them both to this menu and setting the speed to 20%. Delete this to disable. listMenu.animations[listMenu.animations.length] = animFade; listMenu.animations[listMenu.animations.length] = animClipDown; listMenu.animSpeed = 20; // Finally, on page load you have to activate the menu by calling its 'activateMenu()' method. // I've provided an "addEvent" method that lets you easily run page events across browsers. // You pass the activateMenu() function two parameters: // (1) The ID of the outermost