$(document).ready(function() {
  $(".tab").click(function() {
    $(".tab").removeClass("active");
    $(this).addClass("active");
    
    var tabNum = this.getAttribute("rel");
    $(".tabContent").each(function(){
      $(this).css("display", "none");
    });
    $("#tabBody").find("." + tabNum).css("display", "block");
    
    return false;
  });
});