$(document).ready(function() {
    $('ul.comment-type li > a').click(function(){
        var comment = '#comment-' + $(this).attr('name');
        
        if($(comment).is(":hidden")){
            var comments = '.comments #comment-site, .comments #comment-vk, .comments #comment-fb';
            comments = comments.replace('.comments ' + comment, '');
            $(this).parent().parent().find('li').removeClass('active');
            $(this).parent().addClass('active');
            $(comment).fadeIn('slow').slideDown();
            $(comments).fadeOut('slow').slideUp();
        }
        return false;
    });
});
