$(function() {

$('span.capYear').hide();

$('.tabHeader').each(function(){
tabHd = 0; 
tabCt = 0;
$(this).children('span').each(function(){
$(this).addClass('tab'+ tabHd);
tabHd ++;
});
});

$('#tabContWrap .tabCont').each(function(){
$(this).addClass('tab'+ tabCt);
if( tabCt == 0 ){
$(this).show();
}
tabCt ++;
});

$('.tabHeader').each(function(){
$(this).children('span:first').children('a').addClass('selected');
});
$('.tabHeader span').click(function(){
tabNum = $(this).attr('class');
$('.tabHeader span a').removeClass();
$('#tabContWrap .tabCont').hide();
$('#tabContWrap .' + tabNum ).show();
$('.tabHeader .'+tabNum).children('a').addClass('selected');
});
});

$('.tabHeader').show();
$('#tabContWrap .tabCont').hide();

