- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 
                        $(function(){
    var m_small = $('.met_small');
    var met_small = $('.metka_small');
    m_small.on('click', function(){
        var text = $(this).text();
        $('#tmet2').find('h2').html(text);
        m_small.each(function(){
            $(this).children('p').css({
                'color' : '#08579E'
            });
        });
        var e = $(this);
        e.children('p').css({
            'color' : '#000'
        });
        met_small.each(function(){
            $(this).removeClass('metka_small_active');
        })
        e.children('.metka_small').addClass('metka_small_active');
    });
});
$(function(){
    $('.met').not('.cont').on('click',function(){
        var text = $(this).text();
        $('#tmet2').find('h2').html(text);
        $('.met').each(function(){
            $(this).children('p').css({
                'color' : '#08579E'
            });
        });
        var e = $(this);
        e.children('p').css({
            'color' : '#000  '
        });
        $('.metka').each(function(){
            $(this).removeClass('metka_active');
        })
        e.children('.metka').addClass('metka_active');
    });
});
                                     
        
            Я в js не давно. Возможно ли эти две функции объединить в одну ?
Они делают одно и тоже, просто для двух разных элементов.