
  jQuery(function($) {
    var _this = this;
    $('.showhide').click(function(e) {
      var hideme;
      e.preventDefault();
      hideme = $('.hideme');
      if (hideme.is(":visible")) {
        $(hideme).slideUp({
          duration: 1000,
          'swing': 'swing'
        });
        return $(_this).removeClass('down').addClass('up');
      } else {
        $(hideme).slideDown({
          duration: 1000,
          'swing': 'swing'
        });
        return $(_this).removeClass('up').addClass('down');
      }
    });
    $('.video-modal').click(function(event) {
      return $('#modal iframe').attr('src', $(this).attr('href'));
    });
    $('#modal').bind('hidden', function() {
      return $('iframe', this).attr('src', '');
    });
    return $.fn.tabit = function(activeTab) {
      $('li', this).each(function() {});
      if ($(this).text() === activeTab) return $(this).addClass('active');
    };
  });

