$(document).ready(function(){
	$('.tree > li > ul').hide();
	$('.tree > li > .trigger').click(function(){
		if($(this).parent().hasClass('opend')){
			$(this).parent().find('> ul').slideUp(300);
			$(this).parent().removeClass('opend');
		}else{
			$(this).parent().siblings('.opend').removeClass('opend').find('> ul').slideUp(300);
			$(this).parent().find('> ul').slideDown(300);
			$(this).parent().addClass('opend');
		}
	});
	$('.tree > li a.current').parents('.tree > li').addClass('opend').find('> ul').show();
});
