function hide(elm){
     var e=$(elm).next().next();
     if(e.css("display")=='none'){ $(e).animate({height: 'toggle'}, "slow"); $(elm).attr("class",'dn');$(elm).attr("title",'Свернуть');}
     else { $(e).animate({height: 'toggle'}, "slow"); $(elm).attr("class",'up');$(elm).attr("title",'Раскрыть');}
}