Hello,
I have a specific need in javascript. Can I be guided in this context if its possible or not???
I am using virtuemart extension in joomla to make an ecommerce website. I will try to explain my requirement with the example.

Following is the sample category tree with number.
1.0
.....1.1
..........1.1.1
..........1.1.2
.....1.2
..........1.2.1
..........1.2.2
.....1.3
..........1.3.1
..........1.3.2
2.0
.....2.1
..........2.1.1
..........2.1.2
.....2.2
..........2.2.1
..........2.2.2
.....2.3
..........2.3.1
..........2.3.2

Now I have a drop down main menu as 1.0 and 2.0. I want that when i click on 1.0 all the nodes of 1.0 should be opened and 2.0 should be closed and similarly when i click on 2.0 all its child nodes should be opened and 1.0 should be closed. What happen with most extensions is that at a time only one child is opened. If i click on 1.0 then only 1.1 or 1.2 or 1.3 will remain open at a time.
Does this kind of customization can be done or is available in javascript ....

I hope i will be helped...
Thanks a lot for the time.