function changeTabs(id) {

        var tabContainers = jQuery(id).children('.tab_content'); // получаем массив контейнеров

        tabContainers.hide().filter(':first').show(); // прячем все, кроме первого 

        // далее обрабатывается клик по вкладке

        jQuery(id).children('ul.tab_nav').children('li').children('a').click(function () {

          tabContainers.hide(); // прячем все табы

          tabContainers.filter(this.hash).show(); // показываем содержимое текущего

          jQuery(id).children('ul.tab_nav').children('li').removeClass('active'); // у всех убираем класс 'selected'

          jQuery(this).parent('li').addClass('active'); // текушей вкладке добавляем класс 'selected'

          return false;

        }).filter(':first').click();

      };
