/* CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin */ (function(b){b.fn.lightBox=function(a){function m(){b("body").append('
');var c=j();b("#jquery-overlay").css({backgroundColor:a.overlayBgColor,opacity:a.overlayOpacity,width:c[0],height:c[1]}).fadeIn();var f=k();b("#jquery-lightbox").css({top:f[1]+c[3]/10-40,left:f[0]}).show();b("#jquery-overlay,#jquery-lightbox").click(function(){h()});b("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){h();return!1});b(window).resize(function(){var a=j();b("#jquery-overlay").css({width:a[0],height:a[1]});var c=k();b("#jquery-lightbox").css({top:c[1]+ a[3]/10-40,left:c[0]})})}function d(){b("#lightbox-loading").show();a.fixedNavigation?b("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide():b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();var c=new Image;c.onload=function(){b("#lightbox-image").attr("src",a.imageArray[a.activeImage][0]);n(c.width,c.height);c.onload=function(){}};c.src=a.imageArray[a.activeImage][0]} function n(c,f){if(null!=a.maxWidth&&null!=a.maxHeight&&(c>a.maxWidth||f>a.maxHeight))var e=c>f?a.maxWidth/c:a.maxHeight/f,c=c*e,f=f*e;b("#lightbox-image").height(f);b("#lightbox-image").width(c);var i=b("#lightbox-container-image-box").width(),d=b("#lightbox-container-image-box").height(),e=c+2*a.containerBorderSize,g=f+2*a.containerBorderSize,i=i-e,d=d-g;b("#lightbox-container-image-box").animate({width:e,height:g},a.containerResizeSpeed,function(){o()});0==i&&0==d&&(b.browser.msie?l(250):l(100)); b("#lightbox-container-image-data-box").css({width:c});b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:f+2*a.containerBorderSize})}function o(){b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(function(){b("#lightbox-container-image-data-box").slideDown("fast");b("#lightbox-image-details-caption").hide();a.imageArray[a.activeImage][1]&&b("#lightbox-image-details-caption").html(a.imageArray[a.activeImage][1]).show();1a.activeImage)objNext=new Image,objNext.src=a.imageArray[a.activeImage+1][0];if(0document.body.offsetHeight?(a=document.body.scrollWidth,b=document.body.scrollHeight):document.documentElement&&document.documentElement.scrollHeight>document.documentElement.offsetHeight?(a=document.documentElement.scrollWidth,b=document.documentElement.scrollHeight):(a=document.body.offsetWidth,b=document.body.offsetHeight);var e,d;if(self.innerHeight)e=self.innerWidth,d=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)e= document.documentElement.clientWidth,d=document.documentElement.clientHeight;else if(document.body)e=document.body.clientWidth,d=document.body.clientHeight;pageHeight=b