$(function() {
  if ($("#tab-wrapper").length) {
    $("#tab-wrapper div").hide();
    $("#overview").show();
    $(".bgrLightOrange li a").click(function() {
      $("#tab-wrapper div").hide();
      $($(this).attr("href")).show();
      return false;
    });
$(".bgrBlue li a").click(function() {
      $("#tab-wrapper div").hide();
      $($(this).attr("href")).show();
      return false;
    });
  }
  if ($("#profile-tabs").length) {
    $("#profile-tabs div").hide();
    $("#profile").show();
    $("ul#profile-tab-links li a").click(function() {
      $("#profile-tabs div").hide();
      $("#profile-tab-links li").removeClass("active");
      $(this).parent("li").addClass("active");
      $($(this).attr("href")).show();
      return false;
    });
  }
});
