$(document).ready(function() {
        $('.all-project,.all-developer,.settings,.allplanning').hover(
                function(){
                        $(this).addClass('hover');
                },
                function(){
                        $(this).removeClass('hover');
                }
        );
        $('.planning .planning-arrow').click(function(){
                $(this).parents('.planning').find('.planning-box').slideToggle('normal');
        $(this).toggleClass('active');
                $(".cSelect").selectbox();
        });
        $('.user-plan .projects tr:last-child').addClass('last');
        /*user name*/
        $('.task-users span').addClass(function(){
                var userNameWidth = $(this).find('span').outerWidth();
                $(this).find('span').css('margin-left',-userNameWidth/2);
        });
        /*task type help*/
        $('.task-type span').addClass(function(){
                var userNameWidth = $(this).find('span').outerWidth();
                $(this).find('span').css('margin-left',-userNameWidth/2);
        });
        /*task table*/
        $('.task tr:last').addClass('last');
        /*task item user name*/
        $('.task-item-pic span').addClass(function(){
                var userNameWidth = $(this).find('span').outerWidth();
                $(this).find('span').css('margin-left',-userNameWidth/2);
        });
});
