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 with the event name
accord = new dhtmlXAccordion({ parent:"accord_container", onActive:function(){ alert("I'm active"); } });