(function(b){b.expr[":"].Contains=function(p,c,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf(q[3].toLowerCase())>=0};b.fn.tablesorter=function(p){var c=b.extend(true,{css:{asc:"tablesorter-asc",desc:"tablesorter-desc",even:"tablesorter-even",odd:"tablesorter-odd",hover:"tablesorter-hover",sorted:"tablesorter-sorted",clickable:"tablesorter-clickable","filter-fail":"tablesorter-filter-fail",hidden:"tablesorter-hidden"},actions:{before:function(){},after:function(){}},plugins:{colorize:function(a,
d){b("tbody tr",a).removeClass([d.css.even,d.css.odd].join(" "));b("tbody tr:visible:even",a).addClass(d.css.even);b("tbody tr:visible:odd",a).addClass(d.css.odd)},filter:{"filter-input":function(a,d,f){var e=a[0].cellIndex,i=d.attr("id")+"-cell-"+e;b(['<input type="text" id="',i,'" />'].join("")).keyup(function(){var g=b(this).val(),k=b("tbody tr td:nth-child("+(e+1)+")",d);g==""?k.each(function(){b(this).removeClass(f.css["filter-fail"])}):k.each(function(){var m=b(this);m.text().toLowerCase().indexOf(g.toLowerCase())<
0?m.addClass(f.css["filter-fail"]):m.removeClass(f.css["filter-fail"])});d.trigger("filter")}).appendTo(a)},"filter-select":function(a,d,f){var e=a[0].cellIndex,i=d.attr("id")+"-cell-"+e,g=[],k=function(j,h){h=h||[];j=b.trim(j);if(j!=""&&b.inArray(j,h)<0)h[h.length]=j;return h},m=function(j,h){if(j&&h){$options=j.children("[value!=all]");$options.removeAttr("disabled");for(var n,r=0;r<$options.length;r++){n=b($options[r]);b.inArray(n.val(),h)<0&&n.attr("disabled","disabled")}}};b("tbody tr td:nth-child("+
(e+1)+")",d).each(function(j,h){g=k(b(h).text(),g)});if(g.length>1){g.sort();for(var o=['<option value="all">ausw&auml;hlen</option>'],l=0;l<g.length;l++)o[o.length]=['<option value="',g[l],'">',g[l],"</option>"].join("");b(['<select id="',i,'">',o.join("\n"),"</select>"].join("")).change(function(){var j=b("#"+i).val(),h=b("tbody tr td:nth-child("+(e+1)+")",d);j=="all"?h.each(function(){b(this).removeClass(f.css["filter-fail"])}):h.each(function(){var n=b(this);b.trim(n.text())!=j?n.addClass(f.css["filter-fail"]):
n.removeClass(f.css["filter-fail"])});d.trigger("filter")}).bind("update-filter",function(){var j=[],h=b(this),n=h.val();b("tbody tr:visible td:nth-child("+(e+1)+")",d).each(function(r,s){j=k(b(s).text(),j)});m(h,j,n)}).appendTo(a)}}},sorter:{"sort-alpha":function(a){return a.find(".sort-key").text().toUpperCase()+" "+a.text().toUpperCase()},"sort-numeric":function(a){a=parseFloat(a.text().replace(/^[^d.]*/,""));return isNaN(a)?0:a},"sort-date":function(a){a=b.trim(a.text());a=Date.parse(a.replace(/(\d{2})\.(\d{2})\.(\d{4})/,
"$3-$2-$1"));if(isNaN(a))a=Date.parse(Date());return a}}}},p),q=function(a,d,f){var e=a.data("tablesorter"),i=a[0].cellIndex;if(f.plugins.sorter&&f.plugins.sorter[e.sorter]){var g=d.find("tbody > tr").get(),k=a.is("."+f.css.asc)?-1:1,m=f.plugins.sorter[e.sorter];d.trigger("before-sort");b.each(g,function(o,l){l.sortKey=m(b(l).children("td").eq(i),k)});g.sort(function(o,l){if(o.sortKey<l.sortKey)return k;if(o.sortKey>l.sortKey)return-k;return 0});b.each(g,function(o,l){d.children("tbody").append(l);
l.sortKey=null});b(g).show();b("thead th",d).removeClass([f.css.asc,f.css.desc].join(" "));a.addClass(k==-1?f.css.asc:f.css.desc);d.trigger("after-sort");d.trigger("filter")}};b(this).each(function(){var a=b(this);a.trigger("before");c.actions.before&&c.actions.before();a.bind("filter",function(){a.trigger("before-filter");b("tbody tr:hidden",a).show();b("tbody tr",a).filter(function(){return b("td."+c.css["filter-fail"],this).length}).hide();b("thead select",a).trigger("update-filter");b("tbody",
a).trigger("change");a.trigger("after-filter")});b("tbody",a).bind("change",function(){c.plugins.colorize&&c.plugins.colorize(a,c)});a.find("th").each(function(d){var f=undefined,e=b(this);if(c&&c.plugins&&c.plugins.sorter)for(var i in c.plugins.sorter)if(c.plugins.sorter.hasOwnProperty(i))if(e.is("."+i)){e.data("tablesorter",{sorter:i});f=c.plugins.sorter[i];d=["#",i,"-cell-",d+1].join("");var g=c.css.history?[c.css.clickable,c.css.history].join(" "):c.css.clickable,k=b("span",e);k.length>0?k.wrap(['<a class="',
g,'" href="',d,'" rel="nofollow"></a>'].join("")):e.wrapInner(['<a class="',g,'" href="',d,'" rel="nofollow"></a>'].join(""));break}if(f){e.bind("sort",function(){q(e,a,c)});b("."+c.css.clickable,e).click(function(){var m=e.is("."+c.css.asc)?-1:1;b("thead th",a).removeClass([c.css.asc,c.css.desc].join(" "));e.addClass(m==1?c.css.asc:c.css.desc);q(e,a,c);return false});e.is(["."+c.css.asc,"."+c.css.desc].join(","))&&e.trigger("sort")}if(c&&c.plugins&&c.plugins.filter)for(i in c.plugins.filter)c.plugins.filter.hasOwnProperty(i)&&
e.is("."+i)&&c.plugins.filter[i](e,a,c);a.trigger("filter")});c.actions.after&&c.actions.after()});return b(this)}})(jQuery,window);

