Active accordion problem..

Active accordion problem..

I use jQuery accordion, and I want set accordions expanded or collapsed dinamically.

I do this:

<script type="text/javascript"> $(function() { $( "#_title_${sec_id}_id" ).accordion({ active: ${open}, collapsible: true, heightStyle: "content" }); }); </script>

But if ${actived} is true accordions are collapsed, and if ${active} is false they are collapsed again.

Is this a bug?? Or is there a solution??

Thank you very much