$(document).ready(function() {
    $('.opener').each(function(){
        //  если нет класса opened - можно закрыть
        if (!$(this).hasClass('opened')) {
            // закрываем и присваиваем класс closed
            $(this).addClass('closed').next().hide();
        }
        $(this).click(function() {
            // если пункт закрыт
            if ($(this).hasClass('closed')) {
                // открываем его и добавляем класс opened
            	$('.opened').addClass('closed').removeClass('opened').next().slideUp(); 
                $(this).addClass('opened').removeClass('closed').next().slideDown(); 
            } else {
                // иначе закрываем и добавляем класс closed
                $(this).addClass('closed').removeClass('opened').next().slideUp(); 
            }
            if ($(this).attr('href').indexOf('#')>-1) return false;
        });
    });	
    /*if ($('#hint_rt').length) {
        $('#hint_rt_cont').hide()
        $('#hint_rt').hover(function() {$('#hint_rt_cont').show();}, function() {$('#hint_rt_cont').hide();})
    }*/
});
