$(function() {
    $(".expandable").each(function() {
        var currentObj = $(this);
        if (currentObj.height() < this.scrollHeight) {
            currentObj.css("overflow","hidden");
            currentObj.after('<a class="showMore strong">' + dylg.dic.section_profile_expandable.more + '</a>');
        } else {
            currentObj.removeClass("limited");
        } //if
    });
        
    $(".showMore").click(function (obj){
        if ($(this).prev().hasClass("limited")) {
            $(this).html(dylg.dic.section_profile_expandable.less);
            $(this).prev().removeClass("limited");
        } else {
            $(this).html(dylg.dic.section_profile_expandable.more);
            $(this).prev().addClass("limited");            
        }
    });
    
});

