// JavaScript Document

function getProfileImg(){

    // config for the carousel
    $(".carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 5,
        circular: false
    });

    // hide all of the child divs
    $('div#ourPeopleWrapper:eq(0)> div').hide();

    // show the first profile
    $('div#Donohue').show();

    //$('ul.corpmenu li a').click(
    $('div#imgCarousel ul li a').click(
        function() {
            var getTheName = $(this).attr("name");
            //alert(getTheName);
            selectProfile(getTheName);
        });
        
    
};


$(document).ready(function() { getProfileImg(); });

function selectProfile(x) {
    //$('#ourPeopleWrapper:eq(0)> div').hide();
    $('div.profileWrapper').hide();
    //alert(x);
    //show the specific div
    $('#' + x).show();
};

