$(document).ready(function() {  
  $("#leftnav .level1 .item.current>ul").slideToggle(100);   
  $("#leftnav .level1>.item.current img:first").attr("src", "arrowdown.png");   
  $("#leftnav .level1>.item").css("cursor","pointer");   
  $("#leftnav .level1>.item:not(:eq(2)):not(:eq(1)):has(.level2>.item)>div").each(function(){    
    $(this).find("a:first").attr("href","#");      
    $(this).toggle(function(){toggleNav($(this))},function(){toggleNav($(this))});   
  });   
  $("#leftnav  .level2>.item:has(.level3>.item)>div").each(function(){    
    //$(this).find("a:first").attr("href","#");       
    //$(this).toggle(function(){toggleNav($(this))},function(){toggleNav($(this))});   
  }); 
}); 
function toggleNav(div){  
  if (div.find("img:first").attr("src") == "arrowdown.png")     
    div.find("img:first").attr("src", "arrowleft.png");  
  else     
    div.find("img:first").attr("src", "arrowdown.png");  
  div.next().slideToggle(100); 
}