// разварачивает список
function toggleTree(id) {
	e = $('#id_'+id);
	if ($(e).css('display') == 'none') {
		$("ul.list:visible").animate({height: 'hide'}, {duration:400, specialEasing: {
			  height: 'swing'
			}});
		$(e).animate({height: 'show'}, {duration:400, specialEasing: {
			  height: 'swing'
			}});
	}
	else {
		$(e).animate({height: 'hide'}, {duration:400, specialEasing: {
			  height: 'swing'
			}});
	}
}
