$(document).ready(function(){
    $('.calendar-event-holder').each(function(){
        var slideHeight = 50; // px
        var defHeight = $(this).height();

        if(defHeight >= slideHeight){
                $(this).after('<div class="calendar-show-more" style="text-align:right;">More</div>');
                $(this).css('height' , slideHeight + 'px');
                $(this).siblings('.calendar-show-more').click(function(){
                        var div = $(this).siblings('.calendar-event-holder');
                        var curHeight = div.height();
                        if(curHeight == slideHeight){
                                div.animate({
                                  height: defHeight
                                }, "normal");
                                $(this).html('Close');
                        }else{
                                div.animate({
                                  height: slideHeight
                                }, "normal");
                                $(this).html('More');
                        }
                        return false;
                });
        }
    });
});
