Keep the 'accordion' menu open

Keep the 'accordion' menu open

Hay,

I've got an question about a 'accordion menu',
When I add a 'current' class to my list item,
  1. <ul id="TEST">
  2. <li><a href="#">Example 1</a>
  3. <ul>
  4.     <li><a href="#">Example 1.1</a></li>
  5.     <li><a href="#">Example 1.2</a></li>
  6.     </ul></li>
  7. <li><a href="#">Example 2</a>
  8. <ul>
  9.     <li><a href="#">Example 2.1</a></li>
  10.     <li class="current"><a href="#">Example 2.2</a></li>
  11.     </ul></li>
  12. </ul>
I'd like the the 'current' menu item stays open on the new page.
What line of code do I have to add in the Jquery code?
  1. $(document).ready(function(){
  2.   $('#TEST ul > li ul')
  3.     .click(function(e){
  4.       e.stopPropagation();
  5.     })
  6.     .hide();
  7.     
  8.   $('#TEST ul > li').click(function(){
  9.     var selfClick = $(this).find('ul:first').is(':visible');
  10.     if(!selfClick) {
  11.       $(this)
  12.         .parent()
  13.         .find('> li ul:visible')
  14.         .slideToggle();
  15.     }
  16.     
  17.     $(this)
  18.       .find('ul:first')
  19.       .stop(true, true)
  20.       .slideToggle();
  21.   });
  22. });
I'm looking forward to your response.

YB