I'm wondering if it wouldn't be a lot easier to use the class="" attribute on the <div> element if you get something like XBLDivElement.className which represents a DOMTokenString http://www.whatwg.org/specs/web-apps/current-work/#domtokenstring ...
-- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
