
EVERYZING.playerMod_title_trunc = function(maxLen){
    maxLen = parseInt(maxLen);
    if (isNaN(maxLen) || maxLen <= 0){ return; }
    
    var titles = jQuery('.ez-playerMod-title');
    
    titles.each(function(){
		var title = jQuery(this);
        title.attr('title', title.text()).children().slice(0,1).truncate(maxLen, {
            chars: / /,
            leave: false,
            trail: [true, '...','']
        });
    });
}
