Open a menu in accordion based on value passed to it

Open a menu in accordion based on value passed to it

Hi All,

I am using JQuery accordion to create a menu box , my problem is that say if I have 4 containers (Divs/menu ) and at runtime I want to open one of them depending upon the variable passed.

I know using the option "active:2" will open the 2nd container but can anyone please tell me what is the syntax to set it dynamically...

thanks in advance