jQuery(function(a){var b={loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:300,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:300,captionAnimationDuration:200,counterText:"Image {x} of {y}",itemSelector:"a[href]",titleAttr:"title"};a(function(){var c=foswiki.getPreference("ImagePlugin.counterText");if(c){b.counterText=c}});a(".jqSlimbox:not(.jqInitedSlimbox)").livequery(function(){var d=a(this);d.addClass("jqInitedSlimbox");var c=a.extend({},b,d.metadata());var e="lightbox-"+Math.floor(Math.random()*100);d.find(c.itemSelector).attr("rel",e).slimbox(c,function(h){var g=a(h);var j=a.extend({},g.metadata());var f=j.origUrl||h.href;var i=j.title||g.attr(c.titleAttr)||"";i=i.replace(/\..*?$/,"").replace(/[\-_]/g," ");return[h.href,'<a href="'+f+'">'+i+"</a>"]},function(f){return(this==f)||((this.rel.length>8)&&(this.rel==f.rel))})})});