// FOLDERS
this.folders = function(){
  $("#folders li ul").hide();
  $("#folders li:has(ul) > a").toggle(function(){
      $(this).parent().addClass("open");
      var el = $(this).parent();
      $(">ul ",el).show("fast");
    },
    function(){
      $(this).parent().removeClass("open");
      var el = $(this).parent();
      $(">ul ",el).hide("fast");
  });
  $("#folders li.open ul").toggle();
};

// starting the script on page load
$(document).ready(function(){
  folders();

	$(".multi").multiSelect({
	  oneOrMoreSelected: '*',
	  selectAll: false,
	  noneSelected: ''
	});
});
