//http://www.jennyandlih.com/resolved-logging-firebug-console-breaks-ie
//a handy log function which checks first that firebug is in use before trying to log to the console.
log_debug = function() {
  if(window.console && window.console.firebug) console.log.apply(this, arguments)
};

jQuery(document).ready(function(){

  jQuery("li.liste").hide();
  jQuery(".all_act").children("li.liste").show();

  jQuery(".opener").click(function () {
    //jQuery(".liste").slideDown("slow");
    //log_debug("THIS: ", jQuery(this));
    
    //jQuery(this).next(".liste").slideToggle(600);
    
    //log_debug("THIS.next: ", jQuery(this).parents(".all").children(".liste"));
    jQuery(".all_act").children("li.liste").removeClass("liste").addClass("liste_act").show();
    jQuery("li.liste").slideUp();
    //jQuery(".act").children("li.liste").slideDown("600");
    //jQuery(".act").children(".hackhack, .liste").show();
    jQuery(this).parents(".all").children(".liste").filter(":hidden").slideDown("600");

	});
	
	//jQuery(".opener_sub").click(function () {
		//jQuery(this).slideUp(".liste_sub");
	//	jQuery(this).removeClass("opener_sub").addClass("back");
	//	jQuery(this).parents(".all_sub").children(".liste_sub").filter(":hidden").slideDown("600");
		
	//});
	
	//jQuery(".back").click(function () {
	//	jQuery(this).parents(".all_sub").children(".liste_sub").slideUp();
	//)};
		

});