$(document).ready(function(){
    $('#headline_widget .lead_photo').hide();
    $('#headline_widget .lead_photo:first').show();
    $('#headline_widget .headline:first').addClass('active');

    $('#headline_widget .headline').click(function(){ 
        $('#headline_widget .headline').removeClass('active');
        $(this).addClass('active');
        var currentTab = $(this).attr('href');
        $('#headline_widget .lead_photo').hide();
        $(currentTab).show();
        return false;
    });
    
    $('#featured_widget .featured_photo').hide();
    $('#featured_widget .featured_photo:first').show();
    $('#featured_widget .featured_name:first').addClass('active');

    $('#featured_widget .featured_name').click(function(){
        $('#featured_widget .featured_name').removeClass('active');
        $(this).addClass('active');
        var currentTab = $(this).attr('href');
        $('#featured_widget .featured_photo').hide();
        $(currentTab).show();
        return false;
    });
/*
    $('#photos')
        .before('<div class="slidenav">')
        .cycle({
            fx: 'fade',
            timeout: 6000,
            speed: 450,
            pager: '.slidenav'
        });
        $('#rotatorWidget a.pause').show();
        $('#rotatorWidget a.pause').click(function(){
            $('#photos').cycle('pause');
            $('#rotatorWidget a.pause').hide();
            $('#rotatorWidget a.play').show();
        });
        $('#rotatorWidget a.play').click(function(){
            $('#photos').cycle('resume');
            $('#rotatorWidget a.play').hide();
            $('#rotatorWidget a.pause').show();
        });
*/

}); 
