var Dom = YAHOO.util.Dom; var Event = YAHOO.util.Event; var $ = function(id) { return document.getElementById(id); } //++++++++++++++++++++++++++++++++++++ // YUI ACCORDION // 1/22/2008 - Edwart Visser // // accordion // // REQUIRES: yahoo-dom-event.js, animation-min.js // // TODO: build hover script for highlighting header in IE // TODO: attach behaviour based on rel attribute //++++++++++++++++++++++++++++++++++++ YAHOO.namespace("lutsr"); YAHOO.lutsr.accordion = { properties : { animation : true, animationDuration : 10, multipleOpen : false }, init : function(animation,animationDuration,multipleOpen) { if(animation) { this.animation = animation; } if(animationDuration) { this.animationDuration = animationDuration; } if(multipleOpen) { this.multipleOpen = multipleOpen; } var accordionObjects = Dom.getElementsByClassName("accordion"); if(accordionObjects.length > 0) { for(var i=0; i