$(document).ready(function(){
  $('ul[id]').hide();
  $("a.subfolder").prepend('<span>+ </span>')
  
  $("a.subfolder").click(function(){
    $('ul[id=' + this.id + ']').toggle();
    state = $(this).children('span').text();
    if (state == '+ ')
      $(this).children('span').text('- ');
    else
      $(this).children('span').text('+ ');
  });
});
