In prototype/scriptaculous there are currently two different approaches to munging the class attribute of HTML elements. Scriptaculous has Element.Class which recently moved from util.js into effects.js. Prototype has Element.ClassNames and several convenience functions around it. In the past I''ve grown fond of Element.Class, but I''m perfectly willing to use Element.ClassNames. What I''m concerned about is speed. Element.ClassNames is a piece of very nice code, but it looks like it pays with cycles for aethetics. Normally, I''m not concerned with performance when writing JavaScript code. This case is different as I''m often checking and changing the class attribute in handlers triggered by mouse movements. So, I''m wondering, has anyone done a benchmark of the two mentioned and possibly other approaches to accessing and changing the class attribute? Michael -- Michael Schuerig All good people read good books mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org Now your conscience is clear http://www.schuerig.de/michael/ --Tanita Tikaram, Twist In My Sobriety