﻿

this.scrollClientLogos = function() {

    // CSS class manipulation - optimize needed! 
    
    $('#clientScroll').addClass('clientScroll_js');
    $('#clientScroll ul').addClass('clientScroll_ul_js');
    $('#preSlide').addClass('jsShow');
    $('#nextSlide').addClass('jsShow');

    $('#clientScroll').serialScroll({
        target: '#scrollContent',
        items: 'li',
        prev: 'a#preSlide',
        next: 'a#nextSlide',
        axis: 'x',
        duration: 400,
        cycle: false,
        force: true
    });
}


this.teamBubleDiv = function() {

    if($(".teamlist").length > 0)
    {
        // Make the bubble always visible.
        $(".content").css("overflow", "visible");
    }
    $(".teamMember").css("z-index", "2");
    $(".teamMember a").hover(
        function(e) {
            $(this).parent().css("z-index", "200");
            $(this).prev(".teamDetails").fadeIn();
        },
	    function() {
	        $(this).parent().css("z-index", "2");
	        $(this).prev(".teamDetails").hide();
	    }
	);
};


$(document).ready(function() {
    scrollClientLogos();
    teamBubleDiv();
});

