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