(function(n){var i={useSeeMore:!0,seeMoreText:"see more",seeMoreClassName:"see-more",seeMoreHandle:function(){},callback:function(){}},t={init:function(t){this.each(function(){var r=n.extend({},i,t,n(this).data()),e=n("<span  class='"+r.seeMoreClassName+"'>"+r.seeMoreText+"<\/span>"),u,f;for(n(this).data(r),u=n(this).text().split(" "),f=n(this).get(0);f.offsetHeight<f.scrollHeight;)if(u.length>1)u.length-=1,n(this).text(u.join(" ")+" ... "),r.useSeeMore&&n(this).append(e);else break;r.useSeeMore&&e.bind("click",r.seeMoreHandle);r.callback()})}};n.fn.textBoxOverflow=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):typeof i!="object"&&i?n(this).modal.apply(this,arguments):t.init.apply(this,arguments)}})(jQuery,document)