﻿function showSub(tab) {
    hideSubs();

    $('#subNavContainer' + tab).show();
    $('#subNav' + tab).animate({ top: 0, queue: false, duration: 200 });

    if (tab == 'Education')
        $('.rotating-text').cycle({
            fx: 'fade',
            speed: 1000,
            timeout: 4000
        });
}

function hideSubs() {
    $('.subNavContainer').hide();
    $('.subNav').animate({ top: -282 }, { queue: false, duration: 200 });

    $('.rotating-text').cycle('stop');
}