var currentTab = 0; // Set to a different number to start on a different tab.

function openTab(clickedTab) {
  var thisTab = $(".box .tabs a").index(clickedTab);
  $(".box .tabs li a").removeClass("active");
  $(".box .tabs li a:eq("+thisTab+")").addClass("active");
  $(".box .tabbed-content").hide();
  $(".box .tabbed-content:eq("+thisTab+")").show();
  currentTab = thisTab;
}

$(document).ready(function() {
  $(".tabs li:eq(0) a").css("border-left", "none");
   
  $(".box .tabs li a").click(function() { 
    openTab($(this)); return false; 
  });
   
  $(".box .tabs li a:eq("+currentTab+")").click()
    });

