
$('.experience tbody tr td:nth-child(4n)').addClass('align-numbers');
$('.experience tbody tr td:nth-child(3n)').addClass('align-numbers');

$('.team .member div p:nth-child(3n-1)').addClass('role');
$('.team .member div p:nth-child(3n)').addClass('education');
$('.team .member div p:nth-child(3n+1)').addClass('experience');
$('.team .member div p:nth-child(5n)').addClass('contact-info').removeClass('role');

$('.projects #project-list li:nth-child(3n)').addClass('remove-pad');

$('.projects #project-list li p a:first-child').addClass('stack-one');
$('.projects #project-list li p a:nth-child(2n)').addClass('stack-two');
$('.projects #project-list li p a:last-child').addClass('stack-three');

$('.projects #project-list li p a').click(function(){
	$(this).addClass('selected');
});


function slideSwitch() {
    var $active = $('#exp-slideshow li IMG.active');

    if ( $active.length == 0 ) $active = $('#exp-slideshow li IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#exp-slideshow li IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

$(function(){

	$('#testimonial-ticker').list_ticker({
		speed: 8000,
        effect:'slide'
	})

	$('#award-ticker,#home-award').list_ticker({
		speed: 4000,
        effect:'fade'
	})		
})
