window.addEvent('load', function() { // accordion var accordion = new Accordion('h2.atStart', 'div.atStart', { opacity: true, show: true, alwaysHide: true, onActive: function(toggler, element) { //var bullet_id = 'bullet_' + toggler.getProperty('id'); //toggler.setStyle('color', '#000'); /* if(toggler.nextSibling.childNodes[0].id) { //alert(toggler.nextSibling.childNodes[0].firstChild.className); toggler.nextSibling.childNodes[0].firstChild.setStyle('height', 'auto'); } */ /* toggler.setStyle('backgroundImage', '../../skins/default/images/gen/arrow6.gif');*/ }, onBackground: function(toggler, element) { //var bullet_id = 'bullet_' + toggler.getProperty('id'); //toggler.setStyle('color', '#222222'); /* if(toggler.nextSibling.childNodes[0].id) { //alert(toggler.nextSibling.childNodes[0].firstChild.className); toggler.nextSibling.childNodes[0].firstChild.setStyle('height', 'auto'); } */ /* toggler.setStyle('backgroundImage', '../../skins/default/images/gen/arrow5.gif');*/ } }, $('accordion') ); });