$(document).ready(function(){

$('#tabs div.foo').hide();
$('#tabs div.foo:first').show();
$('#tabs ul.tabs li:first').addClass('active');
$("div.right[name~=Select an issue to track]").css('color','red');

$("#tabs ul.tabs li").click(function() {
$("#tabs ul.tabs li").removeClass('active'); //Remove any "active" class
$(this).addClass('active'); //Add "active" class to selected tab
$('#tabs div.foo').hide();
var activeTab = $(this).find('a').attr('href'); //Find the href attribute value to identify the active tab + content
$(activeTab).show();
return false;
});

});
