"use strict";!function(t){t.fn.extend({shrinkUrls:function(e){return e=t.extend({size:25,whitespace:!1,trunc:"tail"},e||{}),this.each((function(){var i=t(this).text(),s=i.length;if(s>e.size&&(!e.include||i.match(e.include))&&(!e.exclude||!i.match(e.exclude))&&(e.whitespace||!i.match(/\s/))){var n="",r="";switch(e.trunc){case"head":r=i.substring(s-e.size+1,s);break;case"middle":n=i.substring(0,e.size/2),r=i.substring(s-e.size/2+1,s);break;default:n=i.substring(0,e.size-1)}var a=i;i=n+"&hellip;"+r;var c=t(this).attr("title");c||(c=a),t(this).html(i).attr("title",c)}}))}}),t((function(){t(".jqShrinkUrls").livequery((function(){var e=t(this),i=t.extend({},e.data());e.find("a:not(.jqInitedShrinkUrl)").addClass("jqInitedShrinkUrl").shrinkUrls(i)}))}))}(jQuery);
