/* Floatbox v3.52.2 */
Floatbox.prototype.resizeHandler=function(F){var E=fb;if(!(E&&E.fbBox&&E.currentItem)){return }var C=E.getDisplaySize(),A=E.getScroll();function B(I){if(!I.currentItem||I.itemToShow!==I.currentItem){return }var K=I.fbBox.offsetLeft-I.cornerRadius-A.left,L=E.displaySize.width-I.fbBox.offsetWidth-2*I.cornerRadius-K,G=I.fbBox.offsetTop-I.cornerRadius-A.top,H=E.displaySize.height-I.fbBox.offsetHeight-2*I.cornerRadius-G;if(I.leftRatio===false){var J=I.fbBox.offsetWidth+2*I.cornerRadius,M=I.fbBox.offsetHeight+2*I.cornerRadius;I.leftRatio=I.topRatio=0.5;if(K>=0&&L>=0&&J<=C.width&&J<=E.displaySize.width&&!(K===I.autoFitSpace&&L===(I.shadowSize||I.autoFitSpace))){I.leftRatio=K/(K+L)}if(G>=0&&H>=0&&M<=C.height&&M<=E.displaySize.height&&!(G===I.autoFitSpace&&H===(I.shadowSize||I.autoFitSpace))){I.topRatio=G/(G+H)}}var O=C.width-E.displaySize.width,N=C.height-E.displaySize.height;if(K>=0&&L<0&&O>0){O=0}if(G>=0&&H<0&&N>0){N=0}if(O){I.fbBox.style.left=(I.pos.fbBox.left=Math.round(I.fbBox.offsetLeft+O*I.leftRatio))+"px"}if(N){I.fbBox.style.top=(I.pos.fbBox.top=Math.round(I.fbBox.offsetTop+N*I.topRatio))+"px"}}B(fb);for(var D=0;D<E.children.length;D++){B(E.children[D])}E.displaySize.width=C.width;E.displaySize.height=C.height};if(fb.centerOnResize&&fb.fbBox&&!fb.resizeHandlerSet){fb.addEvent(window,"resize",fb.resizeHandler);fb.resizeHandlerSet=true};

