Required library edition:
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js
attaches dhtmlxAccordion to a cell, returns an accordion object
Attaching to the layout's cell:
var dhxAcc = dhxLayout.cells("a").attachAccordion(); // returns accordion object
Attaching to the accordion's cell:
var dhxAcc2 = dhxAcc.cells(id).attachAccordion(); // returns accordion object