not able to remove nested lists in a jQuery variable

not able to remove nested lists in a jQuery variable

Hi
I have a nested oredered list which i m animating using this code...


      
  1. var $li = $("ol#update li");
  2.                 function animate_li(){
  3.                    $li.filter(':first')
  4.                       .animate({
  5.                          height:  'show',
  6.                          opacity: 'show'
  7.                       }, 500, function(){
  8.                         animate_li();
  9.                       });
  10.                   $li = $li.not(':first');
  11.                 }
  12.                 animate_li();

now i want not to show or animate the nested lists(ol s) or the li s in the ols

take a look at the example here

The structure of my ols are


      
  1. <ol>
  2.  <li class="bar248">
  3.         <div class="nli">
  4.         <div class="pic">
  5.             <img src="dir/anonymous-thumb.png"alt="image" />
  6.         </div>
  7.         <div align="left" class="text">
  8.         <span>
  9.                 <span class="delete_button"><a href="#" id="test" class="delete_update">R</a></span>
  10.                 test shouted <span class="timestamp"> 2010/02/24 18:34:26 </span> <br />
  11.         this
  12.         </span>
  13.         </div>
  14.         <div class="clear"></div>
  15.         </div>
  16.         <div class="padd">
  17.         </div>
  18.         <ol class="comment">
  19.             <li>                      
  20.                     <div>Testing </div>
  21.             </li>
  22.             <li>
  23.                     <div>Another Test </div>
  24.             </li>
  25.         </ol>
  26.     </li>
  27.   </ol>

I m able to hide the nested ols using this code...

       
  1. $("ol#update li ol").hide();


But still time is being consumed in animating them although they are hidden

I m not able to remove the nested li s using this code

  1. var $li = $("ol#update li").not("ol#update li ol");
  2. $li = $li.not("ol#update li ol");

Take a look at this here

Any help

thanks
Pradyut