(function(a){a.fn.extend({shrinkUrls:function(b){b=a.extend({whitespace:false,trunc:"tail"},b||{});return this.each(function(){var i=a(this).text();var c=i.length;if((c>b.size)&&(!b.include||i.match(b.include))&&(!b.exclude||!i.match(b.exclude))&&(b.whitespace||!i.match(/\s/))){var f="";var e="";var d="";switch(b.trunc){case"head":e=i.substring(c-b.size+1,c);break;case"middle":f=i.substring(0,b.size/2);e=i.substring(c-b.size/2+1,c);break;default:case"tail":f=i.substring(0,b.size-1);break}var h=i;i=f+"&hellip;"+e;var g=a(this).attr("title");if(!g){g=h}a(this).html(i).attr("title",g)}})}})})(jQuery);