All,

I have basic Accordion working but I need to change the titles dynamically for onload and onclick.
The Html code for Accordion titles contain :

+ Accordion Entry
+ Accordion Process

when page loads the titles should changes (onload)
+ Accordion Entry (3)
+ Accordion Process (7)

When I click first time the titles should change (onclick), here accordion expand and displays the content

- Accordion Entry (3)
- Accordion Process (7)

When I click second time the titles should change (onclick), here accordion collapses and no display of content occurs.
+ Accordion Entry (3)
+ Accordion Process (7)


I have included the code at http://jsfiddle.net/madasuk/u7eCn/4/

Can any one make this code to work as per the above requirements. In addition, in future I would like to include YUI2 data table in Accordion Details section, whether it is possible to do it? Any references for this please ...


Any help is very much appreciated. Thanks in advance.

Regards,
Madasuk