Accordion's cells can be defined through items collection
accord = new dhtmlXAccordion({ parent:"accord_container", items:[ {id:"save", text:"First item", open:true}, {id:"delete", text:"Second item" } ] });
Each cell can have the next attributes:
any event can be assigned by using property equal to event name
accord = new dhtmlXAccordion({ parent:"accord_container", onActive:function(){ alert("I'm active"); } });