(function($){var _1=$(window),_2,_3,_4=-1,_5,_6,_7,_8,_9,_a,_b,_c=!window.XMLHttpRequest,_d=window.opera&&(document.compatMode=="CSS1Compat")&&($.browser.version>=9.3),_e=document.documentElement,_f={},_10=new Image(),_11=new Image(),_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c;$(function(){$("body").append($([_12=$("<div id=\"lbOverlay\" />")[0],_13=$("<div id=\"lbCenter\" />")[0],_19=$("<div id=\"lbBottomContainer\" />")[0]]).css("display","none"));_14=$("<div id=\"lbTop\" />").appendTo(_13).append($("<a id=\"lbCloseLink\" href=\"#\" />").click(_1d));_15=$("<div id=\"lbImage\" />").appendTo(_13).append(_16=$("<div style=\"position: relative;\" />").append([_17=$("<a id=\"lbPrevLink\" href=\"#\" />").click(_1e)[0],_18=$("<a id=\"lbNextLink\" href=\"#\" />").click(_1f)[0]])[0])[0];_1a=$("<div id=\"lbBottom\" />").appendTo(_19).append([$("<a id=\"lbCloseLink\" href=\"#\" />").add(_12).click(_1d)[0],_1b=$("<div id=\"lbCaption\" />")[0],_1c=$("<div id=\"lbNumber\" />")[0],$("<div style=\"clear: both;\" />")[0]])[0];});$.slimbox=function(_20,_21,_22){_2=$.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},_22);if(typeof _20=="string"){_20=[[_20,_21]];_21=0;}_9=_1.scrollTop()+((_d?_e.clientHeight:_1.height())/2);_a=_2.initialWidth;_b=_2.initialHeight;$(_13).css({top:Math.max(0,_9-(_b/2)),width:_a,height:_b,marginLeft:-_a/2}).show();_8=_c||(_12.currentStyle&&(_12.currentStyle.position!="fixed"));if(_8){_12.style.position="absolute";}$(_12).css("opacity",_2.overlayOpacity).fadeIn(_2.overlayFadeDuration);_23();_24(1);_3=_20;_2.loop=_2.loop&&(_3.length>1);return _25(_21);};$.fn.slimbox=function(_26,_27,_28){_27=_27||function(el){return [el.href,el.title];};_28=_28||function(){return true;};var _29=this;return _29.unbind("click").click(function(){var _2a=this,_2b=0,_2c,i=0,_2d;_2c=$.grep(_29,function(el,i){return _28.call(_2a,el,i);});for(_2d=_2c.length;i<_2d;++i){if(_2c[i]==_2a){_2b=i;}_2c[i]=_27(_2c[i],i);}return $.slimbox(_2c,_2b,_26);});};function _23(){var l=_1.scrollLeft(),w=_d?_e.clientWidth:_1.width();$([_13,_19]).css("left",l+(w/2));if(_8){$(_12).css({left:l,top:_1.scrollTop(),width:w,height:_1.height()});}};function _24(_2e){$("object").add(_c?"select":"embed").each(function(_2f,el){if(_2e){$.data(el,"slimbox",el.style.visibility);}el.style.visibility=_2e?"hidden":$.data(el,"slimbox");});var fn=_2e?"bind":"unbind";_1[fn]("scroll resize",_23);$(document)[fn]("keydown",_30);};function _30(_31){var _32=_31.keyCode,fn=$.inArray;return (fn(_32,_2.closeKeys)>=0)?_1d():(fn(_32,_2.nextKeys)>=0)?_1f():(fn(_32,_2.previousKeys)>=0)?_1e():false;};function _1e(){return _25(_6);};function _1f(){return _25(_7);};function _25(_33){if(_33>=0){_4=_33;_5=_3[_4][0];_6=(_4||(_2.loop?_3.length:0))-1;_7=((_4+1)%_3.length)||(_2.loop?0:-1);_34();_13.className="lbLoading";_f=new Image();_f.onload=_35;_f.src=_5;}return false;};function _35(){_13.className="";$(_15).css({backgroundImage:"url("+_5+")",visibility:"hidden",display:""});$(_16).width(_f.width);$([_16,_17,_18]).height(_f.height);$(_1b).html(_3[_4][1]||"");$(_1c).html((((_3.length>1)&&_2.counterText)||"").replace(/{x}/,_4+1).replace(/{y}/,_3.length));if(_6>=0){_10.src=_3[_6][0];}if(_7>=0){_11.src=_3[_7][0];}_a=_15.offsetWidth;_b=_15.offsetHeight+29;var top=Math.max(0,_9-(_b/2));if(_13.offsetHeight!=_b){$(_13).animate({height:_b,top:top},_2.resizeDuration,_2.resizeEasing);}if(_13.offsetWidth!=_a){$(_13).animate({width:_a,marginLeft:-_a/2},_2.resizeDuration,_2.resizeEasing);}$(_13).queue(function(){$(_15).css({display:"none",visibility:"",opacity:""}).fadeIn(_2.imageFadeDuration,function(){$("#lbCloseLink").fadeIn();});});};function _34(){_f.onload=null;_f.src=_10.src=_11.src=_5;$([_13,_15,_1a]).stop(true);$([_17,_18,_15,_19]).hide();};function _1d(){if(_4>=0){_34();_4=_6=_7=-1;$(_13).hide();$("#lbCloseLink").hide();$(_12).stop().fadeOut(_2.overlayFadeDuration,_24);}return false;};})(jQuery);

// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
jQuery(function($) {
	$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
		return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
	});
});
