DD_roundies.addRule('.round', 5, true);

$(document).ready(function(){
    $('.featured-quotes-container').after('<div id="nav">').cycle({
        fx:     'scrollLeft',
        speed:  'slow',
        timeout: 0,
        pager:  '#nav'
    });

    var $ul = $('.footer-widgets > .widget');
    var el = $ul.eq($ul.length-1);
    $(el).addClass('nobg');

    $('.tab1-bg').show();
    $('.tab3-bg').hide();
    $('#tab2-content').hide();
    $('#tab3-content').hide();

    $('#tab1').addClass('tab-active');

    $('#tab1').click(function(){
       $(this).addClass('tab-active');
       $('.tab1-bg').show();
       $('#tab1-content').fadeIn('slow');
       $('#tab2').removeClass('tab-active');
       $('#tab3').removeClass('tab-active');
       $('.tab3-bg').hide();
       $('#tab2-content').hide();
       $('#tab3-content').hide();
       return false;
    });

    $('#tab2').click(function(){
       $(this) .addClass('tab-active');
       $('#tab2-content').fadeIn('slow');
       $('#tab1').removeClass('tab-active');
       $('#tab3').removeClass('tab-active');
       $('.tab1-bg').hide();
       $('.tab3-bg').hide();
       $('#tab1-content').hide();
       $('#tab3-content').hide();
       return false;
    });
    
    $('#tab3').click(function(){
       $(this) .addClass('tab-active');
       $('#tab3-content').fadeIn('slow');
       $('.tab3-bg').show();
       $('#tab1').removeClass('tab-active');
       $('#tab2').removeClass('tab-active');
       $('.tab1-bg').hide();
       $('#tab1-content').hide();
       $('#tab2-content').hide();
       return false;
    });
    
});
