function Floatbox(){this.defaultOptions={theme:"auto",padding:12,panelPadding:8,outerBorder:4,innerBorder:1,overlayOpacity:55,controlOpacity:60,autoSizeImages:true,autoSizeOther:false,resizeImages:true,resizeOther:false,resizeTool:"cursor",infoPos:"bl",controlPos:"br",boxLeft:"auto",boxTop:"auto",shadowType:"drop",shadowSize:12,enableDrag:true,showCaption:true,showItemNumber:true,showClose:true,hideFlash:true,hideJava:true,disableScroll:false,autoGallery:false,preloadAll:true,enableCookies:false,
cookieScope:"site",language:"auto",graphicsType:"auto",urlGraphics:"/floatbox/graphics/",urlLanguages:"/floatbox/languages/",navType:"both",navOverlayWidth:35,navOverlayPos:30,showNavOverlay:"never",showHints:"once",enableWrap:true,enableKeyboardNav:true,outsideClickCloses:true,numIndexLinks:0,indexLinksPanel:"control",showIndexThumbs:true,doAnimations:true,resizeDuration:3.5,imageFadeDuration:3.5,overlayFadeDuration:4,splitResize:"no",startAtClick:true,zoomImageStart:true,liveImageResize:false,slideInterval:4.5,
endTask:"exit",showPlayPause:true,startPaused:false,pauseOnResize:true,pauseOnPrev:true,pauseOnNext:false};this.childOptions={overlayOpacity:45,resizeDuration:3,imageFadeDuration:3,overlayFadeDuration:0};this.init()}
Floatbox.prototype={panelGap:22,infoLinkGap:16,showHintsTime:1600,zoomPopBorder:1,controlSpacing:8,minInfoWidth:80,minIndexWidth:120,ctrlJump:5,slowLoadDelay:750,loaderDelay:200,autoSizeSpace:4,initialSize:120,defaultWidth:"85%",defaultHeight:"82%",init:function(){this.setOptions(this.defaultOptions);typeof fbPageOptions==="object"&&this.setOptions(fbPageOptions);this.setOptions(this.parseOptionString(location.search.substring(1)));this.items=[];this.nodeNames=[];this.hiddenEls=[];this.timeouts={};
this.pos={};var a=this.urlGraphics;this.slowZoomImg=a+"loading_white.gif";this.slowLoadImg=a+"loading_black.gif";this.iframeSrc=a+"loading_iframe.html";this.resizeUpCursor=a+"magnify_plus.cur";this.resizeDownCursor=a+"magnify_minus.cur";this.notFoundImg=a+"404.jpg";a=navigator.userAgent;var b=navigator.appVersion;this.mac=b.indexOf("Macintosh")!==-1;if(window.opera){this.opera=true;this.operaOld=parseFloat(b)<9.5;this.operaMac=this.mac}else if(document.all){this.ie=true;this.ieOld=parseInt(b.substr(b.indexOf("MSIE")+
5),10)<7;this.ie8b2=b.indexOf("MSIE 8.0")!==-1&&navigator.appMinorVersion==="beta 2";this.ieXP=parseInt(b.substr(b.indexOf("Windows NT")+11),10)<6}else if(a.indexOf("Firefox")!==-1){this.ff=true;this.ffOld=parseInt(a.substr(a.indexOf("Firefox")+8),10)<3;this.ffNew=!this.ffOld;this.ffMac=this.mac}else if(b.indexOf("WebKit")!==-1){this.webkit=true;this.webkitNew=parseInt(b.substr(b.indexOf("WebKit")+7),10)>=500;this.webkitOld=!this.webkitNew;this.webkitMac=this.mac}if(this.isChild=!!(self.fb&&self.fb.fbBox)){this.fbParent=
fb.lastChild;fb.lastChild=this;fb.children.push(this);this.fbParent.isSlideshow&&this.fbParent.setPause(true);this.anchors=fb.anchors;this.children=fb.children;this.html=fb.html;this.bod=fb.bod;this.rtl=fb.rtl;this.xhr=fb.xhr;this.strings=fb.strings}else{this.fbParent=this.lastChild=this;this.anchors=[];this.children=[];this.preloads={};this.preloads.count=0;this.html=document.documentElement;this.bod=document.body||document.getElementsByTagName("body")[0];this.rtl=this.getStyle(this.bod,"direction")===
"rtl"||this.getStyle(this.html,"direction")==="rtl";this.xhr=this.getXMLHttpRequest();this.strings={hintClose:"Exit (key: Esc)",hintPrev:"Previous (key: <--)",hintNext:"Next (key: --\>)",hintPlay:"Play (key: spacebar)",hintPause:"Pause (key: spacebar)",hintResize:"Resize (key: Tab)",imgCount:"Image %1 of %2",nonImgCount:"Page %1 of %2",mixedCount:"(%1 of %2)",infoText:"Info...",printText:"Print..."}}this.browserLanguage=(navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.browserLanguage||
"en").substring(0,2);if(!this.isChild){a=this.language==="auto"?this.browserLanguage:this.language;if(this.xhr){var c=this;this.xhr.getResponse(this.urlLanguages+a+".json",function(e){if((e.status===200||e.status===203||e.status===304)&&e.responseText){var d=String.fromCharCode(8592),g=String.fromCharCode(8594);e=e.responseText;if(c.ieXP)e=e.replace(d,"<--").replace(g,"--\>");try{var h=eval("("+e+")");if(h&&h.hintClose)c.strings=h}catch(f){}}if(c.rtl){if(!/^(ar|he)$/.test(c.language)){c.strings.infoText=
c.strings.infoText.replace("...","");c.strings.printText=c.strings.printText.replace("...","")}c.strings.hintPrev=c.strings.hintPrev.replace(d,g).replace("--\>","<--");c.strings.hintNext=c.strings.hintNext.replace(g,d).replace("<--","--\>");d=c.strings.hintPrev;c.strings.hintPrev=c.strings.hintNext;c.strings.hintNext=d}})}}if(!this.rtl&&(this.graphicsType.toLowerCase()==="english"||this.graphicsType==="auto"&&this.browserLanguage==="en")){this.offPos="top left";this.onPos="bottom left"}else{this.offPos=
"top right";this.onPos="bottom right";this.controlSpacing=0}this.zIndex={base:90000+10*this.children.length,fbOverlay:1,fbBox:2,fbCanvas:3,fbMainDiv:4,fbLeftNav:5,fbRightNav:5,fbOverlayPrev:6,fbOverlayNext:6,fbResizer:7,fbZoomDiv:8,fbInfoPanel:8,fbControlPanel:8};this.autoHref=(a=/\bautoStart=(.+?)(?:&|$)/i.exec(location.search))?a[1]:false},tagAnchors:function(a){var b=fb.lastChild,c=this.ieOld&&/^fb/.test(a.id);function e(d){d=a.getElementsByTagName(d);for(var g=0,h=d.length;g<h;g++){var f=d[g],
i=b.parseOptionString(f.getAttribute("rev")),k=i.href||f.getAttribute("href");if(b.autoGallery&&b.fileType(k)==="img"&&f.getAttribute("rel")!=="nofloatbox"){f.setAttribute("rel","floatbox.autoGallery");b.autoTitle&&!f.getAttribute("title")&&f.setAttribute("title",b.autoTitle)}c&&f.setAttribute("hideFocus","true");b.tagOneAnchor(f,i)}}e("a");e("area")},tagOneAnchor:function(a,b){var c=this,e=!!a.getAttribute;if(e){var d={rel:a.getAttribute("rel"),rev:a.getAttribute("rev"),title:a.getAttribute("title"),
anchor:a,thumb:this.getThumb(a)},g;if(d.thumb&&(g=/(?:^|\s)fbPop(up|down)(?:\s|$)/i.exec(a.className))){var h=g[1]==="up";d.popup=true;d.thumb.style.borderWidth=this.zoomPopBorder+"px";a.onmouseover=function(){d.thumb.style.display="none";var f=c.getLeftTop(this,true),i=f.left,k=f.top;f=c.getLayout(this);d.thumb.style.display="";var l=(f.width-d.thumb.offsetWidth)/2,m=h?2-d.thumb.offsetHeight:f.height,j=c.getScroll(),o=j.left+c.getDisplayWidth();o=f.left+l+d.thumb.offsetWidth-o;if(o>0)l-=o;o=f.left+
l-j.left;if(o<0)l-=o;if(h){if(f.top+m<j.top)m=f.height}else if(f.top+m+d.thumb.offsetHeight>j.top+c.getDisplayHeight())m=2-d.thumb.offsetHeight;d.thumb.style.left=i+l+"px";d.thumb.style.top=k+m+"px"};a.onmouseout=function(){d.thumb.style.left="0";d.thumb.style.top="-9999px"};if(!a.onclick)a.onclick=a.onmouseout}}else d=a;if(/^(floatbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(d.rel)){d.revOptions=b||this.parseOptionString(d.rev);d.href=d.revOptions.href||a.href||a.getAttribute("href");
d.level=this.children.length+(fb.lastChild.fbBox&&!d.revOptions.sameBox?1:0);for(b=this.anchors.length;b--;){g=this.anchors[b];if(g.href===d.href&&g.rel===d.rel&&g.rev===d.rev&&g.title===d.title&&g.level===d.level){g.anchor=a;break}}if(b===-1){d.type=d.revOptions.type||this.fileType(d.href);if(d.type==="html"){d.type="iframe";if(g=/#(\w+)/.exec(d.href)){b=document;if(d.anchor)b=d.anchor.ownerDocument||d.anchor.document||b;if(b===document&&this.currentItem&&this.currentItem.anchor)b=this.currentItem.anchor.ownerDocument||
this.currentItem.anchor.document||b;if(g=b.getElementById(g[1])){d.type="inline";d.sourceEl=g}}}this.anchors.push(d);if(this.autoHref){if(d.revOptions.showThis!==false&&this.autoHref===d.href.substr(d.href.length-this.autoHref.length))this.autoStart=d}else if(d.revOptions.autoStart===true)this.autoStart=d;else if(d.revOptions.autoStart==="once"){g=(g=/fbAutoShown=(.+?)(?:;|$)/.exec(document.cookie))?g[1]:"";b=escape(d.href);if(g.indexOf(b)===-1){this.autoStart=d;document.cookie="fbAutoShown="+g+b+
"; path=/"}}}if(e)a.onclick=function(f){f=f||window.event;if(this.ie&&!f)for(var i=self.frames,k=i.length;k--&&!f;)try{if(typeof i[k].window==="object")f=i[k].window.event}catch(l){}if(!(f&&(f.ctrlKey||f.metaKey||f.shiftKey))||d.revOptions.showThis===false||!/img|iframe/.test(d.type)){fb.start(this);if(this.ie&&f)f.returnValue=false;return false}}}return d},fileType:function(a){var b=a.toLowerCase(),c=b.indexOf("?");if(c!==-1)b=b.substr(0,c);b=b.substr(b.lastIndexOf(".")+1);if(/^(jpe?g|png|gif|bmp)$/.test(b))return"img";
if(b==="swf"||/^(http:)?\/\/(www.)?youtube.com\/v\//i.test(a))return"flash";if(/^(mov|mpe?g|movie)$/.test(b))return"quicktime";return"html"},preloadImages:function(a,b){if(this!==fb)return fb.preloadImages(a,b);if(typeof b!=="undefined")arguments.callee.chain=b;if(!a&&arguments.callee.chain&&(this.preloadAll||!this.preloads.count))for(var c=0,e=this.anchors.length;c<e;c++){var d=this.anchors[c];if(d.type==="img"&&!this.preloads[d.href]){a=d.href;break}}if(a)if(this.preloads[a])this.preloadImages();
else{c=this.preloads[a]=new Image;c.onerror=function(){setTimeout(function(){fb.preloadImages()},50);fb.preloads[a]=true};c.onload=function(){fb.preloads.count++;this.onerror()};c.src=a}},start:function(a){if(this!==fb.lastChild)return fb.lastChild.start(a);var b=this;this.preloadImages("",false);if(a.getAttribute){var c={rel:a.getAttribute("rel"),rev:a.getAttribute("rev"),title:a.getAttribute("title")};c.revOptions=this.parseOptionString(c.rev);c.href=c.revOptions.href||a.href||a.getAttribute("href");
a.blur()}else c=a;if(this.isRestart=!!this.fbBox){if(!c.revOptions.sameBox)return(new Floatbox).start(a);this.setOptions(c.revOptions)}else this.clickedAnchor=a.getAttribute?a:false;c.level=this.children.length+(fb.lastChild.fbBox&&!c.revOptions.sameBox?1:0);this.itemsShown=0;fb.previousAnchor=this.currentItem;this.buildItemArray(c);if(this.itemCount){if(this.itemCount===1&&this.fbNavControls)this.fbNavControls.style.display="none";self.focus();this.revOptions=c.revOptions;if(!this.isRestart){this.getOptions();
this.buildDOM();this.addEventHandlers();this.initState()}this.collapse();this.updatePanels();var e=function(){b.fetchContent(function(){b.clearTimeout("slowLoad");b.calcSize()})};if(this.fbBox.style.visibility||this.isRestart)e();else{a=this.initialSize/2;var d={id:"fbBox",left:b.pos.fbBox.left-a,top:b.pos.fbBox.top-a,width:b.initialSize,height:b.initialSize,borderWidth:b.outerBorder};if(this.splitResize)a=function(){b.setSize(e,d)};else{this.timeouts.slowLoad=setTimeout(function(){b.setSize(d)},
this.slowLoadDelay);a=e}this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,a)}}},buildItemArray:function(a){this.itemCount=this.items.length=this.currentIndex=0;this.justImages=true;this.hasImages=false;for(var b=/^(floatbox|gallery|iframe|lytebox|lyteframe|lightbox)$/i.test(a.rel),c=0,e=this.anchors.length;c<e;c++){var d=this.anchors[c];if(d.rel===a.rel&&d.level===a.level)if(d.revOptions.showThis!==false){var g=d.rev===a.rev&&d.title===a.title&&d.href===a.href.substr(a.href.length-
d.href.length);if(g||!b){d.seen=false;this.items.push(d);if(d.type==="img")this.hasImages=true;else this.justImages=false;if(g)this.currentIndex=this.items.length-1}}}if(a.revOptions.showThis===false&&a.href)for(c=this.items.length;c--;){b=this.items[c].href;if(b===a.href.substr(a.href.length-b.length))this.currentIndex=c}this.itemCount=this.items.length;this.currentItem=this.items[this.currentIndex]},getOptions:function(){if(this.isChild){for(var a in this.defaultOptions)if(this.defaultOptions.hasOwnProperty(a))this[a]=
this.fbParent[a];this.setOptions(this.childOptions)}else this.setOptions(this.defaultOptions);this.doSlideshow=this.loadPageOnClose=this.sameBox=false;if(!(this.isChild||this.fbBox)){typeof setFloatboxOptions==="function"&&setFloatboxOptions();typeof fbPageOptions==="object"&&this.setOptions(fbPageOptions);if(this.enableCookies){var b=/fbOptions=(.+?)(;|$)/.exec(document.cookie);b&&this.setOptions(this.parseOptionString(b[1]));b="";for(a in this.defaultOptions)if(this.defaultOptions.hasOwnProperty(a))b+=
" "+a+":"+this[a];a="/";if(this.cookieScope==="folder"){a=location.pathname;a=a.substring(0,a.lastIndexOf("/")+1)}document.cookie="fbOptions="+b+"; path="+a}}this.setOptions(this.revOptions);this.setOptions(this.parseOptionString(location.search.substring(1)));if(this.theme==="grey")this.theme="white";if(this.endTask==="cont")this.endTask="loop";if(this.navType==="upper")this.navType="overlay";if(this.navType==="lower")this.navType="button";if(this.upperOpacity)this.controlOpacity=this.upperOpacity;
if(this.upperNavWidth)this.navOverlayWidth=this.upperNavWidth;if(this.upperNavPos)this.navOverlayPos=this.upperNavPos;if(this.showUpperNav)this.showNavOverlay=this.showUpperNav;if(this.dropShadow)this.shadowType="drop";if(!/^(auto|black|white|blue|yellow|red|custom)$/.test(this.theme))this.theme="auto";if(!/^(overlay|button|both|none)$/i.test(this.navType))this.navType="button";if(!/^(auto|wh|hw)$/.test(this.splitResize))this.splitResize=false;if(this.webkitOld&&(this.navType==="overlay"||this.navType===
"both"))this.navType="button";if(this.itemCount>1){this.isSlideshow=this.doSlideshow||/^(slideshow|lyteshow)/i.test(this.currentItem.rel);a=/overlay|both/i.test(this.navType);b=/button|both/i.test(this.navType);this.navOverlay=this.justImages&&a;this.navButton=b||!this.justImages&&a;this.lclShowItemNumber=this.showItemNumber;this.lclNumIndexLinks=this.numIndexLinks}else this.isSlideshow=this.navOverlay=this.navButton=this.lclShowItemNumber=this.lclNumIndexLinks=false;this.isPaused=this.startPaused;
if((this.lclTheme=this.theme)==="auto")this.lclTheme=this.currentItem.type==="img"?"black":/flash|quicktime/.test(this.currentItem.type)?"blue":"white";if(!this.doAnimations)this.resizeDuration=this.imageFadeDuration=this.overlayFadeDuration=0;if(!this.resizeDuration)this.zoomImageStart=false;if(!/[tb][lr]/.test(this.controlPos))this.controlPos="";if(!/[tb][lcr]/.test(this.infoPos))this.infoPos="";this.controlTop=this.controlPos.charAt(0)==="t";this.controlLeft=this.controlPos.charAt(1)==="l";this.infoTop=
this.infoPos.charAt(0)==="t";this.infoCenter=this.infoPos.charAt(1)==="c";this.infoLeft=this.infoPos.charAt(1)==="l"||this.infoCenter&&this.controlTop===this.infoTop&&!this.controlLeft;if(this.infoLeft===this.controlLeft&&this.infoTop===this.controlTop){this.infoLeft=true;this.controlLeft=false}if(this.indexLinksPanel==="info"){this.indexCenter=this.infoCenter;this.indexLeft=this.infoLeft;this.indexTop=this.infoTop}else{this.indexLeft=this.controlLeft;this.indexTop=this.controlTop}if(!/^(drop|halo|none)$/.test(this.shadowType))this.shadowType=
"drop";if(!/^(8|12|16|24)$/.test(this.shadowSize+""))this.shadowSize=8;this.shadowSize=+this.shadowSize;if(this.opera||this.mac&&!this.webkitNew)this.resizeTool="topleft";else{this.resizeTool=this.resizeTool.toLowerCase();if(!/topleft|cursor|both/.test(this.resizeTool))this.resizeTool="cursor"}if(this.ieOld)this.shadowType="none";if(this.padding+this.outerBorder===0)this.zoomPopBorder=0;if(this.overlayOpacity>1)this.overlayOpacity/=100;if(this.controlOpacity>1)this.controlOpacity/=100},parseOptionString:function(a){if(!a)return{};
for(var b=[],c,e=/`([^`]*?)`/g;c=e.exec(a);)b.push(c[1]);if(b.length)a=a.replace(e,"``");a=a.replace(/\s*[:=]\s*/g,":");a=a.replace(/\s*[;&]\s*/g," ");a=a.replace(/^\s+|\s+$/g,"");c={};a=a.split(" ");for(e=a.length;e--;){var d=a[e].split(":"),g=d[0];d=d[1];if(typeof d==="string")if(isNaN(d))if(d==="true")d=true;else{if(d==="false")d=false}else d=+d;if(d==="``")d=b.pop()||"";c[g]=d}return c},setOptions:function(a){for(var b in a)if(a.hasOwnProperty(b))this[b]=a[b]},buildDOM:function(){this.fbOverlay=
this.newNode("div","fbOverlay",this.bod);this.fbZoomDiv=this.newNode("div","fbZoomDiv",this.bod);this.fbZoomImg=this.newNode("img","fbZoomImg",this.fbZoomDiv);this.fbBox=this.newNode("div","fbBox");this.fbShadowTop=this.newNode("div","fbShadowTop",this.fbBox);this.fbShadowRight=this.newNode("div","fbShadowRight",this.fbBox);this.fbShadowBottom=this.newNode("div","fbShadowBottom",this.fbBox);this.fbShadowLeft=this.newNode("div","fbShadowLeft",this.fbBox);this.fbShadowCorner=this.newNode("div","fbShadowCorner",
this.fbBox);this.fbLoader=this.newNode("div","fbLoader",this.fbBox);this.fbCanvas=this.newNode("div","fbCanvas",this.fbBox);this.fbMainDiv=this.newNode("div","fbMainDiv",this.fbCanvas);this.fbLeftNav=this.newNode("a","fbLeftNav",this.fbMainDiv);this.fbRightNav=this.newNode("a","fbRightNav",this.fbMainDiv);this.fbOverlayPrev=this.newNode("a","fbOverlayPrev",this.fbMainDiv,this.strings.hintPrev);this.fbOverlayNext=this.newNode("a","fbOverlayNext",this.fbMainDiv,this.strings.hintNext);this.fbResizer=
this.newNode("a","fbResizer",this.fbMainDiv,this.strings.hintResize);this.fbInfoPanel=this.newNode("div","fbInfoPanel",this.fbCanvas);this.fbCaptionDiv=this.newNode("div","fbCaptionDiv",this.fbInfoPanel);this.fbCaption=this.newNode("span","fbCaption",this.fbCaptionDiv);this.fbInfoDiv=this.newNode("div","fbInfoDiv",this.fbInfoPanel);if(this.infoLeft||this.infoCenter){this.fbInfoLink=this.newNode("span","fbInfoLink",this.fbInfoDiv);this.fbPrintLink=this.newNode("span","fbPrintLink",this.fbInfoDiv);
this.fbItemNumber=this.newNode("span","fbItemNumber",this.fbInfoDiv)}else{this.fbItemNumber=this.newNode("span","fbItemNumber",this.fbInfoDiv);this.fbPrintLink=this.newNode("span","fbPrintLink",this.fbInfoDiv);this.fbInfoLink=this.newNode("span","fbInfoLink",this.fbInfoDiv)}this.fbControlPanel=this.newNode("div","fbControlPanel",this.fbCanvas);this.fbControls=this.newNode("div","fbControls",this.fbControlPanel);this.fbNavControls=this.newNode("div","fbNavControls",this.fbControls);this.fbPrev=this.newNode("a",
"fbPrev",this.fbNavControls,this.strings.hintPrev);this.fbNext=this.newNode("a","fbNext",this.fbNavControls,this.strings.hintNext);this.fbSubControls=this.newNode("div","fbSubControls",this.fbControls);this.fbPlayPause=this.newNode("div","fbPlayPause",this.fbSubControls);this.fbPlay=this.newNode("a","fbPlay",this.fbPlayPause,this.strings.hintPlay);this.fbPause=this.newNode("a","fbPause",this.fbPlayPause,this.strings.hintPause);this.fbClose=this.newNode("a","fbClose",this.fbSubControls,this.strings.hintClose);
this.fbIndexLinks=this.newNode("span","fbIndexLinks",this.indexLinksPanel==="info"?this.fbInfoPanel:this.fbControlPanel);this.bod.appendChild(this.fbBox)},newNode:function(a,b,c,e){this[b]&&this[b].parentNode&&this[b].parentNode.removeChild(this[b]);var d=document.createElement(a);d.id=b;d.className=b+"_"+(b.indexOf("fbShadow")===-1?this.lclTheme:this.shadowType+this.shadowSize);if(a==="a"){this.operaOld||d.setAttribute("href","");this.ieOld&&d.setAttribute("hideFocus","true");d.style.outline="none"}else if(a===
"iframe"){d.setAttribute("scrolling",this.itemScroll);d.setAttribute("frameBorder","0");d.setAttribute("align","middle");d.src=this.iframeSrc}if(this.isChild&&this.fbParent[b])e=this.fbParent[b].getAttribute("title");e&&this.showHints!=="never"&&d.setAttribute("title",e);if(this.zIndex[b])d.style.zIndex=this.zIndex.base+this.zIndex[b];d.style.display="none";c&&c.appendChild(d);this.nodeNames.push(b);return d},addEventHandlers:function(){var a=this,b=this.fbLeftNav.style,c=this.fbRightNav.style,e=
this.fbOverlayPrev.style,d=this.fbOverlayNext.style,g=this.fbPrev.style,h=this.fbNext.style;this.hideHint=this.showHints==="once"?function(f){if(a[f].title)a.timeouts[f]=setTimeout(function(){var i=a[f].title=a.fbParent[f].title="";if(/fbOverlay(Prev|Next)/.test(f))i=f.replace("Overlay","");else if(/fb(Prev|Next)/.test(f))i=f.replace("fb","fbOverlay");if(i)a[i].title=a.fbParent[i].title=""},a.showHintsTime)}:function(){};this.fbPlay.onclick=function(){a.setPause(false);if(window.event)event.returnValue=
false;return false};this.fbPause.onclick=function(){a.setPause(true);if(window.event)event.returnValue=false;return false};this.fbClose.onclick=function(){a.end();if(window.event)event.returnValue=false;return false};if(this.outsideClickCloses)this.fbOverlay.onclick=this.fbShadowTop.onclick=this.fbShadowRight.onclick=this.fbShadowBottom.onclick=this.fbShadowLeft.onclick=this.fbShadowCorner.onclick=this.fbClose.onclick;this[this.rtl?"fbNext":"fbPrev"].onclick=function(f){if(typeof f!=="number")f=1;
f=(a.currentIndex-f)%a.itemCount;if(f<0)f+=a.itemCount;if(a.enableWrap||f<a.currentIndex){a.newContent(f);a.isSlideshow&&a.pauseOnPrev&&!a.isPaused&&a.setPause(true)}if(window.event)event.returnValue=false;return false};this[this.rtl?"fbPrev":"fbNext"].onclick=function(f){if(typeof f!=="number")f=1;f=(a.currentIndex+f)%a.itemCount;if(a.enableWrap||f>a.currentIndex){a.newContent(f);a.isSlideshow&&a.pauseOnNext&&!a.isPaused&&a.setPause(true)}if(window.event)event.returnValue=false;return false};this.fbLeftNav.onclick=
this.fbOverlayPrev.onclick=this.fbPrev.onclick;this.fbRightNav.onclick=this.fbOverlayNext.onclick=this.fbNext.onclick;this.fbLeftNav.onmouseover=this.fbLeftNav.onmousemove=this.fbOverlayPrev.onmousemove=function(){if(!a.timeouts.fbCanvas)e.visibility="";if(a.navButton)g.backgroundPosition=a.onPos;return true};this.fbRightNav.onmouseover=this.fbRightNav.onmousemove=this.fbOverlayNext.onmousemove=function(){if(!a.timeouts.fbCanvas)d.visibility="";if(a.navButton)h.backgroundPosition=a.onPos;return true};
this.fbOverlayPrev.onmouseover=this.fbOverlayNext.onmouseover=function(){this.onmousemove();a.hideHint(this.id);return true};this.fbLeftNav.onmouseout=function(){e.visibility="hidden";if(a.navButton)g.backgroundPosition=a.offPos};this.fbRightNav.onmouseout=function(){d.visibility="hidden";if(a.navButton)h.backgroundPosition=a.offPos};this.fbOverlayPrev.onmouseout=this.fbOverlayNext.onmouseout=function(){this.style.visibility="hidden";a.clearTimeout(this.id)};this.fbLeftNav.onmousedown=this.fbRightNav.onmousedown=
function(f){f=f||window.event;if(f.button===2){b.visibility=c.visibility="hidden";a.timeouts.hideNavOverlay=setTimeout(function(){b.visibility=c.visibility=""},600)}};this.fbPlay.onmouseover=this.fbPause.onmouseover=this.fbClose.onmouseover=this.fbPrev.onmouseover=this.fbNext.onmouseover=function(){this.style.backgroundPosition=a.onPos;a.hideHint(this.id);return true};this.fbResizer.onmouseover=function(){a.hideHint(this.id);return true};this.fbPlay.onmouseout=this.fbPause.onmouseout=this.fbClose.onmouseout=
this.fbPrev.onmouseout=this.fbNext.onmouseout=function(){this.style.backgroundPosition=a.offPos;a.clearTimeout(this.id)};this.fbResizer.onmouseout=function(){a.clearTimeout(this.id)};if(this.enableKeyboardNav){if(!document.keydownSet){this.priorOnkeydown=document.onkeydown;document.onkeydown=this.keydownHandler;document.keydownSet=true}}else if(document.keydownSet){document.onkeydown=this.priorOnkeydown;document.keydownSet=false}if(this.opera&&!document.keypressSet){this.priorOnkeypress=document.onkeypress;
document.onkeypress=function(){return false};document.keypressSet=true}if(this.enableDrag)this.fbBox.onmousedown=this.dragonDrop()},keydownHandler:function(a){a=a||window.event;var b=fb.lastChild,c=a.keyCode||a.which;switch(c){case 37:case 39:if(b.itemCount>1){b[c===37?"fbPrev":"fbNext"].onclick(a.ctrlKey||a.metaKey?b.ctrlJump:1);if(b.showHints==="once")b.fbPrev.title=b.fbNext.title=b.fbOverlayPrev.title=b.fbOverlayNext.title=""}return false;case 32:if(b.isSlideshow){b.setPause(!b.isPaused);if(b.showHints===
"once")b.fbPlay.title=b.fbPause.title=""}return false;case 9:if(b.fbResizer.onclick){b.fbResizer.onclick();if(b.showHints==="once")b.fbResizer.title=""}return false;case 27:if(b.showHints==="once")b.fbClose.title="";b.end();return false;case 13:return false}},dragonDrop:function(){var a=this,b=this.fbBox;return function(c){c=c||window.event;if(/fb(Box|Canvas|Info|Caption|Item|Control|Index)/.test((c.target||c.srcElement).id)){var e=c.clientX,d=c.clientY,g=a.fbBox.style,h=a.fbContent.style,f=a.pos.fbBox,
i=f.left,k=f.top;f.dx=f.dy=0;var l=function(j){if(a.currentItem.type==="iframe"&&!(a.ie||a.opera)&&!h.visibility)h.visibility="hidden";a.isSlideshow&&!a.isPaused&&a.setPause(true);j=j||window.event;f.dx=j.clientX-e;f.dy=j.clientY-d;g.left=i+f.dx+"px";g.top=k+f.dy+"px";j.stopPropagation&&j.stopPropagation()||(j.cancelBubble=true);a.clearTimeout("dragonDrop");a.timeouts.dragonDrop=setTimeout(m,1500);return false},m=function(j){a.clearTimeout("dragonDrop");j=j||window.event;if(document.removeEventListener){document.removeEventListener("mouseup",
m,true);document.removeEventListener("mousemove",l,true)}else if(b.detachEvent){b.detachEvent("onlosecapture",m);b.detachEvent("onmouseup",m);b.detachEvent("onmousemove",l);b.releaseCapture()}if(j)j.stopPropagation&&j.stopPropagation()||(j.cancelBubble=true);f.left+=f.dx;f.top+=f.dy;h.visibility="";return false};if(document.addEventListener){document.addEventListener("mousemove",l,true);document.addEventListener("mouseup",m,true)}else if(b.attachEvent){b.setCapture();b.attachEvent("onmousemove",l);
b.attachEvent("onmouseup",m);b.attachEvent("onlosecapture",m)}return false}}},initState:function(){var a=this,b=this.fbBox.style,c=this.fbMainDiv.style,e=this.fbCanvas.style,d=this.fbZoomDiv.style,g=this.fbZoomImg.style;this.currentItem.popup&&this.currentItem.anchor.onmouseover();var h=this.getAnchorPos(this.clickedAnchor,this.currentItem.anchor===this.clickedAnchor&&this.currentItem.type==="img");if(h.width){this.pos.fbZoomDiv=h;d.borderWidth=this.zoomPopBorder+"px";d.left=h.left-this.zoomPopBorder+
"px";d.top=h.top-this.zoomPopBorder+"px";d.width=(this.fbZoomImg.width=h.width)+"px";d.height=(this.fbZoomImg.height=h.height)+"px";this.fbZoomImg.src=h.src;b.visibility="hidden";this.timeouts.slowLoad=setTimeout(function(){a.fbOverlay.style.display&&a.fadeOpacity(a.fbOverlay,a.overlayOpacity,a.overlayFadeDuration);a.fbZoomImg.src=a.slowZoomImg;d.display=g.display=""},this.slowLoadDelay)}else{this.pos.fbBox=h;this.pos.fbBox.borderWidth=0;this.pos.fbMainDiv={width:0,height:0}}b.position="absolute";
b.left=b.top=b.width=b.height=b.borderWidth="0";c.borderWidth=this.innerBorder+"px";c.left=this.padding+"px";this.fbControlPanel.style[this.controlLeft?"left":"right"]=this.fbInfoPanel.style[this.infoLeft?"left":"right"]=Math.max(this.padding,this.panelPadding)+"px";e.visibility="hidden";b.display=e.display="";if(this.shadowType==="none")this.shadowSize=0;else{b=this.fbShadowTop.style;c=this.fbShadowRight.style;e=this.fbShadowBottom.style;h=this.fbShadowLeft.style;var f=this.fbShadowCorner.style;
c.top=e.left=h.top=-this.outerBorder+"px";c.paddingRight=e.paddingBottom=f.paddingRight=f.paddingBottom=this.outerBorder+this.shadowSize+"px";if(this.shadowType==="halo"){b.paddingRight=c.paddingBottom=e.paddingRight=h.paddingBottom=this.outerBorder*2+this.shadowSize+"px";b.top=b.left=c.top=h.left=-(this.outerBorder+this.shadowSize)+"px"}else{e.backgroundPosition="bottom left";c.paddingBottom=e.paddingRight=this.outerBorder*2+"px"}}if(this.navOverlay)if(fb.showNavOverlay==="never"||fb.showNavOverlay===
"once"&&fb.navOverlayShown)fb.showNavOverlay=false;else{this.fbOverlayPrev.style.backgroundPosition=this.fbOverlayNext.style.backgroundPosition=this.onPos;this.fadeOpacity(this.fbOverlayPrev,this.controlOpacity);this.fadeOpacity(this.fbOverlayNext,this.controlOpacity)}this.initPanels();this.lastShown=false;this.hideFlash&&this.hideElements("flash");this.hideJava&&this.hideElements("applet");if(this.ieOld){this.hideElements("select");this.fbOverlay.style.position="absolute";this.stretchOverlay()();
attachEvent("onresize",this.stretchOverlay());attachEvent("onscroll",this.stretchOverlay())}},hideElements:function(a,b){if(b){var c,e=a==="flash"?["object","embed"]:[a];try{for(;c=e.pop();)for(var d=b.document.getElementsByTagName(c),g=d.length;g--;){var h=d[g];if(h.style.visibility!=="hidden"&&(c!=="object"||h.getAttribute("type")&&h.getAttribute("type").toLowerCase()==="application/x-shockwave-flash"||h.getAttribute("classid")&&h.getAttribute("classid").toLowerCase()==="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"||
/data\s*=\s*"?[^>"]+\.swf\b/i.test(h.innerHTML)||/param\s+name\s*=\s*"?(movie|src)("|\s)[^>]+\.swf\b/i.test(h.innerHTML))){this.hiddenEls.push(h);h.style.visibility="hidden"}}}catch(f){}b=b.frames;for(g=b.length;g--;)try{typeof b[g].window==="object"&&this.hideElements(a,b[g].window)}catch(i){}}else this.hideElements(a,self)},getAnchorPos:function(a,b){var c=this.getDisplaySize(),e=this.getScroll(),d={left:c.width/2+e.left,top:c.height/3+e.top,width:0,height:0};if((b=b?this.getThumb(a):false)&&this.zoomImageStart){a=
this.getLeftTop(b);var g=(b.offsetWidth-b.width)/2;a.left+=g;a.top+=g;a.width=b.width;a.height=b.height;a.src=b.src}else if(this.startAtClick&&a&&a.offsetWidth&&a.tagName.toLowerCase()==="a")a=this.getLayout(b||a);else return d;g={left:a.left+a.width/2,top:a.top+a.height/2,width:0,height:0};if(g.left<e.left||g.left>e.left+c.width||g.top<e.top||g.top>e.top+c.height)return d;return b&&this.zoomImageStart?a:g},getThumb:function(a){for(var b=(a=a&&a.childNodes)&&a.length||0;b--;)if((a[b].tagName||"").toLowerCase()===
"img")return a[b];return false},initPanels:function(){var a=this.fbInfoPanel.style,b=this.fbInfoLink.style,c=this.fbPrintLink.style,e=this.fbItemNumber.style;if(this.infoCenter){var d=" posCenter";a.textAlign="center";b.paddingLeft=c.paddingLeft=e.paddingLeft=b.paddingRight=c.paddingRight=e.paddingRight=this.infoLinkGap/2+"px"}else if(this.infoLeft){d=" posLeft";a.textAlign="left";b.paddingRight=c.paddingRight=this.infoLinkGap+"px"}else{d=" posRight";a.textAlign="right";b.paddingLeft=c.paddingLeft=
this.infoLinkGap+"px"}this.fbInfoPanel.className+=d;this.fbInfoDiv.className+=d;a.width="400px";b=this.fbControlPanel.style;e=this.fbControls.style;var g=this.fbSubControls.style;if(this.controlLeft){c=" posLeft";b.textAlign="left"}else{c=" posRight";b.textAlign="right";e.right="0"}this.fbControlPanel.className+=c;this.fbSubControls.className+=c;this.ieOld||(this.fbControls.className+=c);if(this.navButton){var h=this.fbPrev.style,f=this.fbNext.style,i=this.fbNavControls.style;h.backgroundPosition=
f.backgroundPosition=this.offPos;i["padding"+(this.controlLeft?"Left":"Right")]=this.controlSpacing+"px";this.fbNavControls.className+=c;b.display=i.display=h.display=f.display=""}h=0;if(this.showClose){h=this.fbClose.style;h.backgroundPosition=this.offPos;this.fbClose.className+=c;b.display=e.display=g.display=h.display="";h=this.fbClose.offsetWidth}if(this.showPlayPause&&this.isSlideshow){f=this.fbPlay.style;i=this.fbPause.style;var k=this.fbPlayPause.style;f.backgroundPosition=i.backgroundPosition=
this.offPos;k["padding"+(this.controlLeft?"Left":"Right")]=this.controlSpacing+"px";this.fbPlayPause.className+=c;b.display=e.display=g.display=k.display=f.display=i.display="";f.top=this.isPaused?"":"-9999px";i.top=this.isPaused?"-9999px":"";h+=this.fbPlayPause.offsetWidth}g.width=h+"px";b.width=e.width=h+this.fbNavControls.offsetWidth+"px";if(this.lclNumIndexLinks){e=this.fbIndexLinks.style;if(this.indexLinksPanel==="info"){this.fbIndexLinks.className+=d;a.display="";if(this.showIndexThumbs)a.overflow=
"visible"}else{this.fbIndexLinks.className+=c;b.display="";if(this.showIndexThumbs)b.overflow="visible";e["padding"+(this.indexLeft?"Left":"Right")]="2px"}e.width="250px";e.display=""}},fetchContent:function(a,b){var c=this;if(!b)if(this.fbContent){this.fbMainDiv.removeChild(this.fbContent);delete this.fbContent;return this.timeouts.fetch=setTimeout(function(){c.fetchContent(a,1)},10)}var e=this.currentItem;e.nativeWidth=e.revOptions.width;e.nativeHeight=e.revOptions.height;if(e.type!=="img"){e.nativeWidth=
e.nativeWidth||fb.previousAnchor&&fb.previousAnchor.nativeWidth||this.defaultWidth;e.nativeHeight=e.nativeHeight||fb.previousAnchor&&fb.previousAnchor.nativeHeight||this.defaultHeight}if(this.ieOld)this.fbMainDiv.style.backgroundColor=e.type==="img"?"#000":"";this.itemScroll=e.revOptions.scrolling||e.revOptions.scroll||"auto";if(/img|iframe/.test(e.type)){this.fbContent=this.newNode(e.type,"fbContent",this.fbMainDiv);if(e.type==="img"){var d=new Image;d.onload=function(){e.nativeWidth=e.nativeWidth||
d.width;e.nativeHeight=e.nativeHeight||d.height;c.fbContent.src=d.src;a&&a()};d.onerror=function(){if(this.src!==c.notFoundImg)this.src=c.notFoundImg};d.src=e.href}}else{this.fbContent=this.newNode("div","fbContent",this.fbMainDiv);this.fbContent.style.overflow=this.itemScroll==="yes"?"scroll":this.itemScroll==="no"?"hidden":"auto";if(e.type==="inline"){b=e.sourceEl.cloneNode(true);b.style.display=b.style.visibility="";try{this.fbContent.appendChild(b)}catch(g){this.setInnerHTML(this.fbContent,b.innerHTML)}this.tagAnchors(this.fbContent)}else e.type===
"ajax"&&this.xhr.getResponse(e.href,function(h){if((h.status===200||h.status===203||h.status===304)&&h.responseText){c.setInnerHTML(c.fbContent,h.responseText);c.tagAnchors(c.fbContent)}else c.setInnerHTML(c.fbContent,'<p style="color:#000; background:#fff; margin:1em; padding:1em;">Unable to fetch content from '+e.href+"</p>")})}this.fbContent.style.border="0";this.fbContent.style.display="";e.type!=="img"&&a&&a()},updatePanels:function(){var a=this.fbInfoPanel.style,b=this.fbCaptionDiv.style,c=
this.fbCaption.style,e=this.fbInfoDiv.style,d=this.fbInfoLink.style,g=this.fbPrintLink.style,h=this.fbItemNumber.style,f=this.currentItem,i;a.display=b.display=c.display=e.display=d.display=g.display=h.display="none";if(this.showCaption){i=f.revOptions.caption||f.title||"";i=i==="href"?this.encodeHTML(this.currentItem.href):this.decodeHTML(i).replace(/&/g,"&amp;");if(this.setInnerHTML(this.fbCaption,i)&&i)a.display=b.display=c.display=""}if(f.revOptions.info){i=this.encodeHTML(this.decodeHTML(f.revOptions.info));
if(b=f.revOptions.infoOptions||"")b=this.encodeHTML(this.decodeHTML(b));i='<a href="'+i+'" rel="floatbox" rev="'+b+'"><b>'+(f.revOptions.infoText||this.strings.infoText)+"</b></a>";if(this.setInnerHTML(this.fbInfoLink,i))a.display=e.display=d.display=""}if(f.revOptions.showPrint){i=f.revOptions.printCSS||"";i='<a href="'+this.encodeHTML(this.currentItem.href)+'" onclick="fb.printContents(null, \''+i+"'); if (window.event) event.returnValue = false; return false;\"><b>"+(f.revOptions.printText||this.strings.printText)+
"</b></a>";if(this.setInnerHTML(this.fbPrintLink,i))a.display=e.display=g.display=""}if(this.lclShowItemNumber){i=this.justImages?this.strings.imgCount:this.hasImages?this.strings.mixedCount:this.strings.nonImgCount;i=i.replace("%1",this.currentIndex+1);i=i.replace("%2",this.itemCount);if(this.setInnerHTML(this.fbItemNumber,i))a.display=e.display=h.display=""}f=this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth;if(this.ie){if(this.fbInfoLink.offsetWidth)f+=this.infoLinkGap;
if(this.fbPrintLink.offsetWidth)f+=this.infoLinkGap;if(this.fbItemNumber.offsetWidth)f+=this.infoLinkGap}e.width=f+"px";if(this.lclNumIndexLinks){i="";e=this.itemCount-1;if(this.lclNumIndexLinks===-1){g=0;h=e}else{f=Math.floor(this.lclNumIndexLinks/2)-1;g=this.currentIndex-f;h=this.currentIndex+f;if(g<=0)h+=Math.min(1-g,f);this.currentIndex===0&&h++;if(h-e>=0)g-=Math.min(1+h-e,f);this.currentIndex===e&&g--}d=this.indexTop?"down":"up";for(b=0;b<this.itemCount;)if(b!==0&&b<g){i+="... ";b=g}else if(b!==
e&&b>h){i+="... ";b=e}else if(b!==this.currentIndex){f=this.items[b];i+='<a class="fbPop'+d+'" rel="nofloatbox" href="'+f.href+'" onclick="fb.newContent('+b+'); if (window.event) event.returnValue = false; return false;">'+ ++b;try{if(this.showIndexThumbs&&f.thumb)i+='<img src="'+f.thumb.src+'" />'}catch(k){}i+="</a> "}else i+=++b+" ";if(this.setInnerHTML(this.fbIndexLinks,i))if(this.indexLinksPanel==="info")a.display="";else this.tagAnchors(this.fbIndexLinks)}a.display||this.tagAnchors(this.fbInfoPanel)},
calcSize:function(a,b){var c=this;if(this.fbBox){var e,d,g,h,f,i;if(typeof a==="undefined")a=this.currentItem.type==="img"?this.autoSizeImages:this.autoSizeOther;var k=this.fbBox.style,l=this.fbInfoPanel.style,m=this.fbControlPanel.style,j=this.fbIndexLinks.style,o=this.fbCaptionDiv.style,r=this.fbItemNumber.style;if(!b){this.displaySize=this.getDisplaySize();if(this.showCaption&&this.fbCaption.innerHTML)o.display="";if(this.lclShowItemNumber)r.display=""}this.upperSpace=Math.max(this.infoTop?this.fbInfoPanel.offsetHeight:
0,this.controlTop?this.fbControlPanel.offsetHeight:0);this.lowerSpace=Math.max(this.infoTop?0:this.fbInfoPanel.offsetHeight,this.controlTop?0:this.fbControlPanel.offsetHeight);if(this.upperSpace)this.upperSpace+=2*this.panelPadding;if(this.lowerSpace)this.lowerSpace+=2*this.panelPadding;this.upperSpace=Math.max(this.upperSpace,this.padding);this.lowerSpace=Math.max(this.lowerSpace,this.padding);var n;n=this.shadowType==="none"?2*this.autoSizeSpace:this.shadowType==="halo"?2*this.shadowSize+this.autoSizeSpace:
this.shadowSize+1.5*this.autoSizeSpace;var s=2*(this.outerBorder+this.innerBorder)+n,u=Math.floor(this.displaySize.width-s-2*this.padding);s=Math.floor(this.displaySize.height-s-this.upperSpace-this.lowerSpace);var q=false,v=false;f=this.currentItem.nativeWidth+"";if(f==="max")f=u;else if(f.substr(f.length-1)==="%")f=Math.floor(u*parseInt(f,10)/100);else{f=parseInt(f,10);q=true}i=this.currentItem.nativeHeight+"";if(i==="max")i=s;else if(i.substr(i.length-1)==="%")i=Math.floor(s*parseInt(i,10)/100);
else{i=parseInt(i,10);v=true}this.scaledBy=this.oversizedBy=0;if(a){var t=u/f,p=s/i,x=f,y=i;if(q&&v)t=p=Math.min(t,p);if(t<1)f=Math.round(f*t);if(p<1)i=Math.round(i*p);if((this.scaledBy=Math.max(x-f,y-i))&&this.scaledBy<this.outerBorder+n+this.panelPadding){f=x;i=y;this.scaledBy=0}}g=f+2*(this.innerBorder+this.padding);h=i+2*this.innerBorder+this.upperSpace+this.lowerSpace;v=this.fbInfoPanel.offsetHeight;t=this.fbControlPanel.offsetHeight;q=g-2*Math.max(this.padding,this.panelPadding);if(this.infoTop===
this.controlTop&&this.fbControls.offsetWidth)q-=this.fbControls.offsetWidth+this.panelGap;if(q<0)q=0;l.width=q+"px";if(this.lclNumIndexLinks)if(this.indexLinksPanel==="info"||this.infoTop!==this.controlTop)p=q;else if(this.indexLinksPanel!=="info"&&this.infoTop===this.controlTop&&this.infoCenter)p=Math.max(this.minIndexWidth,this.fbControls.offsetWidth);else{l=Math.max(this.fbCaption.offsetWidth,this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth);p=Math.max(this.minIndexWidth,
this.fbControls.offsetWidth,g-l-2*Math.max(this.padding,this.panelPadding));if(l)p-=this.panelGap}else p=0;if(p)j.width=p-(this.indexLinksPanel!=="info"?2:0)+"px";m.width=Math.max(p,this.fbControls.offsetWidth)+"px";m=this.fbInfoPanel.offsetHeight!==v||this.fbControlPanel.offsetHeight!==t;if(this.showCaption)if(this.minInfoWidth>q&&!o.display){o.display="none";m=true}if(this.lclShowItemNumber)if(this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth>q&&!r.display){r.display=
"none";m=true}if(m&&b!==3)return this.calcSize(a,(b||0)+1);if(!a)this.oversizedBy=Math.max(g-this.displaySize.width,h-this.displaySize.height)+2*this.outerBorder+n;if(this.oversizedBy<0)this.oversizedBy=0;n=this.shadowType==="halo"?this.shadowSize+this.autoSizeSpace/2:this.autoSizeSpace;if(typeof this.boxLeft==="number")e=this.boxLeft;else if(f===u)e=n;else{a=this.displaySize.width-g-2*this.outerBorder;e=Math.floor(a/2);if(e<this.autoSizeSpace)e=this.autoSizeSpace;else if(typeof this.boxLeft==="string"&&
this.boxLeft.substr(this.boxLeft.length-1)==="%")e+=parseInt(this.boxLeft,10)/100*e}if(typeof this.boxTop==="number")d=this.boxTop;else if(i===s)d=n;else{a=this.displaySize.height-h-2*this.outerBorder;n=a/this.displaySize.height;n=n<=0.15?2:n>=0.3?3:1+n/0.15;d=Math.floor(a/n);if(d<this.autoSizeSpace)d=this.autoSizeSpace;else if(typeof this.boxTop==="string"&&this.boxTop.substr(this.boxTop.length-1)==="%")d+=parseInt(this.boxTop,10)/100*d}a=k.position;if(this.ieOld){k.display="none";this.stretchOverlay()()}else this.setPosition(this.fbBox,
"fixed");n=this.getScroll();this.setPosition(this.fbBox,a);k.display="";e+=n.left;d+=n.top;if(this.isChild){a=/max|%/i;b=this.fbParent.pos.fbBox;k=a.test(this.currentItem.nativeWidth)?99999:(b.left+e)/2;a=a.test(this.currentItem.nativeHeight)?99999:(b.top+d)/2;if(n.left<k&&n.top<a){e=Math.min(e,k);d=Math.min(d,a)}}var w=(b=this.pos.fbBox)&&!this.liveResize&&this.splitResize;if(w==="auto")w=g-b.width<=h-b.height?"wh":"hw";var z=function(){c.fbBox.style.visibility?c.zoomIn():c.showContent()};k=function(){c.setSize(w,
{id:"fbBox",left:e,top:d,width:g,height:h,borderWidth:c.outerBorder},{id:"fbMainDiv",width:f,height:i,top:c.upperSpace},function(){c.timeouts.showContent=setTimeout(z,10)})};this.timeouts.setSize=setTimeout(k,10)}},setPosition:function(a,b){if(a.style.position!==b){var c=this.getScroll();if(b==="fixed"){c.left=-c.left;c.top=-c.top}if(this.pos[a.id]){this.pos[a.id].left+=c.left;this.pos[a.id].top+=c.top}a.style.left=a.offsetLeft+c.left+"px";a.style.top=a.offsetTop+c.top+"px";a.style.position=b}},collapse:function(a,
b){var c=this;if(!b){this.setPosition(this.fbBox,"absolute");this.fbResizer.onclick=null;this.fbResizer.style.display="none";if(this.fbContent){this.fbContent.onclick=null;this.fbContent.style.cursor=""}if(this.navOverlay)this.fbLeftNav.style.display=this.fbRightNav.style.display=this.fbOverlayPrev.style.display=this.fbOverlayNext.style.display="none";var e=b=0;if(this.currentItem.type==="img"&&!this.fbCanvas.style.visibility){if(this.currentItem===this.lastShown&&this.liveImageResize)b=1;e=this.imageFadeDuration}this.liveResize=
b===1;var d=function(){c.collapse(a,1)};return this.fadeOpacity(this.fbCanvas,b,e,d)}if(!this.liveResize){this.fbMainDiv.style.display="none";if(this.fbContent)this.fbContent.style.display="none";this.clearTimeout("loader");this.timeouts.loader=setTimeout(function(){c.fbLoader.style.display=""},this.loaderDelay)}b=this.fbInfoPanel.style;e=this.fbControlPanel.style;b.visibility=e.visibility="hidden";b.left=e.left="0";b.top=e.top="-9999px";a&&a()},restore:function(a,b){var c=this;if(!b){if(this.fbShadowRight.style.display&&
this.shadowType!=="none"){this.fbShadowRight.style.display=this.fbShadowBottom.style.display="";if(this.shadowType==="halo")this.fbShadowTop.style.display=this.fbShadowLeft.style.display="";else this.fbShadowCorner.style.display=""}b=this.fbInfoPanel.style;var e=this.fbControlPanel.style,d=this.upperSpace+this.pos.fbMainDiv.height+2*this.innerBorder;b.top=((this.infoTop?this.upperSpace:this.lowerSpace)-this.fbInfoPanel.offsetHeight)/2-1+(this.infoTop?0:d)+"px";e.top=((this.controlTop?this.upperSpace:
this.lowerSpace)-this.fbControlPanel.offsetHeight)/2+(this.controlTop?0:d)+"px";d=Math.max(this.padding,this.panelPadding)+"px";b.left=[this.infoLeft?d:""];e.left=[this.controlLeft?d:""];b.visibility=e.visibility="";this.clearTimeout("loader");this.fbLoader.style.display="none";this.fbMainDiv.style.display=this.fbContent.style.display="";b=this.currentItem.type==="img"&&!this.fbCanvas.style.visibility?this.imageFadeDuration:0;e=function(){c.restore(a,1)};return this.fadeOpacity(this.fbCanvas,1,b,
e)}if(this.currentItem.type==="img"?this.resizeImages:this.resizeOther){var g=0;if(this.scaledBy>35)g=1;else if(this.oversizedBy>28)g=-1;if(g){this.fbResizer.onclick=function(){c.isSlideshow&&c.pauseOnResize&&!c.isPaused&&c.setPause(true);c.collapse(function(){c.calcSize(g===-1)});if(window.event)event.returnValue=false;return false};if(this.currentItem.type==="img"&&/cursor|both/.test(this.resizeTool)){this.fbContent.style.cursor="url("+(g===-1?this.resizeDownCursor:this.resizeUpCursor)+"), default";
this.fbContent.onclick=this.fbResizer.onclick}if(this.currentItem.type!=="img"||/topleft|both/.test(this.resizeTool)){this.fbResizer.style.backgroundPosition=g===-1?"bottom":"top";this.fadeOpacity(this.fbResizer,this.controlOpacity)}}}if(this.navOverlay){b=this.fbLeftNav.style;e=this.fbRightNav.style;d=this.fbOverlayPrev.style;var h=this.fbOverlayNext.style;b.width=e.width=Math.max(this.navOverlayWidth/100*this.pos.fbMainDiv.width,this.fbOverlayPrev.offsetWidth)+"px";b.display=e.display="";if(fb.showNavOverlay){d.visibility=
h.visibility="hidden";d.display=h.display="";d.top=h.top=(this.pos.fbMainDiv.height-this.fbOverlayPrev.offsetHeight)*this.navOverlayPos/100+"px"}}a&&a()},setSize:function(a){var b=this;function c(){}var e=[[],[]],d={},g,h=arguments.length;if(a==="wh"){d.top=1;d.height=1}else if(a==="hw"){d.left=1;d.width=1}for(;h--;)if(typeof arguments[h]==="object"&&(g=this[arguments[h].id])){var f=arguments[h];this.pos[f.id]||(this.pos[f.id]={});for(var i in f)if(f.hasOwnProperty(i)&&i!=="id"){var k=d[i]||0,l=this.pos[f.id][i];
if(typeof l!=="number"||g.style.display||g.style.visibility)l=f[i];e[k].push({node:g,property:i,start:l,finish:f[i]});f.id==="fbMainDiv"&&e[k].push({node:this.fbContent,property:i,start:l,finish:f[i]});f.id==="fbZoomDiv"&&/\b(width|height)\b/i.test(i)&&e[k].push({node:this.fbZoomImg,property:i,start:l,finish:f[i]});this.pos[f.id][i]=f[i]}}else if(typeof arguments[h]==="function")c=arguments[h];this.resizeGroup(e[0],function(){b.resizeGroup(e[1],c)})},showContent:function(a){var b=this;if(!a){a=this.getDisplaySize();
if(!this.resized){var c=a.width!==this.displaySize.width,e=a.height!==this.displaySize.height;if(c&&Math.abs(this.pos.fbBox.width-a.width)<50||e&&Math.abs(this.pos.fbBox.height-a.height)<50){this.resized=true;return this.calcSize(this.scaledBy)}}this.resized=false;self.focus();this.ieOld&&this.stretchOverlay()();if((this.disableScroll||this.ffOld&&/iframe|quicktime/i.test(this.currentItem.type))&&!(this.ieOld||this.webkitOld||this.ie8b2))this.pos.fbBox.width<=a.width&&this.pos.fbBox.height<=a.height&&
this.setPosition(this.fbBox,"fixed");if(this.currentItem.type==="iframe")this.fbContent.src=this.currentItem.href;else/flash|quicktime/.test(this.currentItem.type)&&this.setInnerHTML(this.fbContent,this.objectHTML(this.currentItem.href,this.currentItem.type,this.pos.fbMainDiv.width,this.pos.fbMainDiv.height));this.prevIndex=this.currentIndex?this.currentIndex-1:this.itemCount-1;this.nextIndex=this.currentIndex<this.itemCount-1?this.currentIndex+1:0;var d=this.enableWrap||this.currentIndex!==0?this.items[this.prevIndex].href:
"",g=this.enableWrap||this.currentIndex!==this.itemCount-1?this.items[this.nextIndex].href:"";if(this.navButton){if(d){if(!this.operaOld)this.fbPrev.href=d;this.fbPrev.title=this.fbOverlayPrev.title}else{this.fbPrev.removeAttribute("href");this.fbPrev.title=""}if(g){if(!this.operaOld)this.fbNext.href=g;this.fbNext.title=this.fbOverlayNext.title}else{this.fbNext.removeAttribute("href");this.fbNext.title=""}a=this.fbPrev.className.replace("_off","");c=this.fbNext.className.replace("_off","");this.fbPrev.className=
a+(d?"":"_off");this.fbNext.className=c+(g?"":"_off")}if(this.navOverlay){if(!this.operaOld){this.fbLeftNav.href=this.fbOverlayPrev.href=d;this.fbRightNav.href=this.fbOverlayNext.href=g}this.fbLeftNav.style.visibility=d?"":"hidden";this.fbRightNav.style.visibility=g?"":"hidden";fb.navOverlayShown=true}this.fbCanvas.style.visibility="";return this.restore(function(){b.timeouts.showContent=setTimeout(function(){b.showContent(1)},10)})}this.lastShown=this.currentItem;if(!this.currentItem.seen){this.currentItem.seen=
true;this.itemsShown++}if(this.isSlideshow&&!this.isPaused)this.timeouts.slideshow=setTimeout(function(){if(b.endTask==="loop"||b.itemsShown<b.itemCount)b.newContent(b.nextIndex);else if(b.endTask==="exit")b.end();else{b.setPause(true);for(var h=b.itemCount;h--;)b.items[h].seen=false;b.itemsShown=0}},this.slideInterval*1000);this.timeouts.preload=setTimeout(function(){b.preloadImages(g||d||"",true)},10)},objectHTML:function(a,b,c,e){if(b==="flash"){var d='classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',
g='type="application/x-shockwave-flash"',h="http://get.adobe.com/flashplayer/",f=/\bwmode=(\w+?)\b/i.exec(a),i=f?f[1]:"window",k=(f=/\bbgcolor=(#\w+?)\b/i.exec(a))?f[1]:"";f=(f=/\bscale=(\w+?)\b/i.exec(a))?f[1]:"exactfit";i={wmode:i,bgcolor:k,scale:f,quality:"high",flashvars:"autoplay=1&amp;ap=true&amp;border=0&amp;rel=0"};if(this.ffOld)i.wmode=this.ffMac?"window":"opaque";if(this.ffNew&&a.indexOf("YV_YEP.swf")!==-1)i.wmode="window"}else{d='classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"';g=
'type="video/quicktime"';h="http://www.apple.com/quicktime/download/";i={autoplay:"true",controller:"true",showlogo:"false",scale:"tofit"}}k='<object id="fbObject" name="fbObject" width="'+c+'" height="'+e+'" ';if(this.ie){k+=d+">";i[b==="flash"?"movie":"src"]=this.encodeHTML(a)}else k+=g+' data="'+this.encodeHTML(a)+'">';for(var l in i)if(i.hasOwnProperty(l))k+='<param name="'+l+'" value="'+i[l]+'" />';k+=b==="quicktime"&&this.webkitMac?'<embed src="'+this.encodeHTML(a)+'" width="'+c+'" height="'+
e+'" autoplay="true" controller="true" showlogo="false" scale="tofit" pluginspage="'+h+'"></embed></object>':'<p style="color:#000; background:#fff; margin:1em; padding:1em;">'+(b==="flash"?"Flash":"QuickTime")+' player is required to view this content.<br /><a href="'+h+'">download player</a></p></object>';return k},newContent:function(a){var b=this;this.clearTimeout("slideshow");this.clearTimeout("resize");this.currentIndex=a;fb.previousAnchor=this.currentItem;this.currentItem=this.items[a];if(this.showNavOverlay==
"once"&&this.navOverlayShown)this.showNavOverlay=false;function c(){b.updatePanels();b.fetchContent(function(){b.calcSize()})}this.collapse(function(){b.timeouts.fetch=setTimeout(c,10)})},end:function(a){if(this!==fb.lastChild)return fb.lastChild.end(a);var b=this;this.endAll=this.endAll||a;this.fbOverlay.onclick=null;if(this.isChild){if(this.endAll)this.imageFadeDuration=this.overlayFadeDuration=this.resizeDuration=0}else{if(document.keydownSet){document.onkeydown=this.priorOnkeydown;document.keydownSet=
false}if(document.keypressSet){document.onkeypress=this.priorOnkeypress;document.keypressSet=false}parent.focus()}if(this.ieOld){detachEvent("onresize",this.stretchOverlay());detachEvent("onscroll",this.stretchOverlay())}for(var c in this.timeouts)this.timeouts.hasOwnProperty(c)&&this.clearTimeout(c);if(this.fbBox.style.visibility){if(!this.lastShown)this.fbZoomDiv.style.display="none"}else if(this.currentItem.type==="img"&&this.zoomImageStart){this.currentItem.popup&&this.currentItem.anchor.onmouseover();
a=this.getAnchorPos(this.currentItem.anchor,true);this.currentItem.popup&&this.currentItem.anchor.onmouseout();if(a.width){this.fbZoomDiv.style.borderWidth=this.zoomPopBorder+"px";a.left-=this.zoomPopBorder;a.top-=this.zoomPopBorder;this.pos.thumb=a;return this.zoomOut()}}if(!this.fbBox.style.visibility){a=this.getAnchorPos(this.currentItem.anchor,!this.currentItem.popup);c=this.initialSize/2;var e={id:"fbBox",left:a.left-c,top:a.top-c,width:this.initialSize,height:this.initialSize},d={id:"fbBox",
left:a.left,top:a.top,width:0,height:0,borderWidth:0},g=this.splitResize;if(g==="wh")g="hw";else if(g==="hw")g="wh";else if(g==="auto")g=this.pos.fbBox.width<=this.pos.fbBox.height?"hw":"wh";var h=function(){setTimeout(function(){b.fbBox.style.visibility="hidden";b.end()},10)},f=g?function(){b.setSize(g,e,function(){b.setSize(d,h)})}:function(){b.setSize(d,h)};a=function(){setTimeout(function(){if(b.fbContent){b.fbMainDiv.removeChild(b.fbContent);delete b.fbContent}},20);b.fbLoader.style.display=
"";b.fbCanvas.style.display=b.fbShadowTop.style.display=b.fbShadowRight.style.display=b.fbShadowBottom.style.display=b.fbShadowLeft.style.display=b.fbShadowCorner.style.display="none";f()};return this.collapse(a)}this.fbBox.style.display="none";a=this.children.length+1;for(c=this.anchors.length;c&&this.anchors[c-1].level>=a;)c--;this.anchors.length=c;this.isChild&&this.children.length--;fb.lastChild=this.children[this.children.length-1]||fb;f=function(){setTimeout(function(){for(;b.nodeNames.length;){var i=
b.nodeNames.pop();if(b[i]&&b[i].parentNode){b[i].parentNode.removeChild(b[i]);delete b[i]}}if(b.endAll&&b.isChild)return fb.end(true);else if(b.loadPageOnClose)if(b.loadPageOnClose==="self"||b.loadPageOnClose==="this")location.reload(true);else b.loadPageOnClose==="back"?history.back():location.replace(b.loadPageOnClose)},10)};a=function(){for(;b.hiddenEls.length;){var i=b.hiddenEls.pop();i.style.visibility="visible";if(this.ffOld&&this.ffMac){i.focus();i.blur()}}i=b.fbOverlay.style;i.display="none";
i.width=i.height="0";i=b.currentItem.popup?6.5:0;b.fbZoomDiv.style.opacity="1";b.fadeOpacity(b.fbZoomDiv,0,i,f);b.currentItem=fb.previousAnchor=null};this.fadeOpacity(this.fbOverlay,0,this.overlayFadeDuration,a)},zoomIn:function(a){var b=this,c=this.fbZoomDiv.style;if(!a){this.clearTimeout("slowLoad");c.display=this.fbZoomImg.style.display="";this.currentItem.popup&&this.currentItem.anchor.onmouseout();var e=this.outerBorder+this.innerBorder-this.zoomPopBorder;a=function(){b.fbZoomImg.src=b.currentItem.href;
b.setSize({id:"fbZoomDiv",width:b.pos.fbMainDiv.width,height:b.pos.fbMainDiv.height,left:b.pos.fbBox.left+e+b.padding,top:b.pos.fbBox.top+e+b.upperSpace},function(){b.zoomIn(1)})};return this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,a)}if(a===1){var d={left:this.pos.fbBox.left,top:this.pos.fbBox.top,width:this.pos.fbBox.width,height:this.pos.fbBox.height};e=2*(this.zoomPopBorder-this.outerBorder);this.pos.fbBox={left:this.pos.fbZoomDiv.left,top:this.pos.fbZoomDiv.top,
width:this.pos.fbZoomDiv.width+e,height:this.pos.fbZoomDiv.height+e};this.fbBox.style.visibility="";a=function(){b.restore(function(){b.zoomIn(2)})};return this.setSize({id:"fbBox",left:d.left,top:d.top,width:d.width,height:d.height},a)}function g(){c.display="none";b.fbZoomImg.src="";c.left=c.top=c.width=c.height=b.fbZoomImg.width=b.fbZoomImg.height="0";b.showContent()}this.timeouts.showContent=setTimeout(g,10)},zoomOut:function(a){var b=this;if(!a){this.fbZoomImg.src=this.currentItem.href;var c=
this.outerBorder+this.innerBorder-this.zoomPopBorder;this.setSize({id:"fbZoomDiv",width:this.pos.fbMainDiv.width,height:this.pos.fbMainDiv.height,left:this.pos.fbBox.left+c+this.padding,top:this.pos.fbBox.top+c+this.upperSpace},function(){b.zoomOut(1)})}if(a===1){this.fbZoomDiv.style.display=this.fbZoomImg.style.display="";this.fbCanvas.style.visibility="hidden";return this.collapse(function(){b.zoomOut(2)})}if(a===2){c=2*(this.zoomPopBorder-this.outerBorder);return this.setSize({id:"fbBox",left:this.pos.fbZoomDiv.left,
top:this.pos.fbZoomDiv.top,width:this.pos.fbZoomDiv.width+c,height:this.pos.fbZoomDiv.height+c},function(){b.zoomOut(3)})}this.fbBox.style.visibility="hidden";function e(){b.fbZoomImg.src=b.pos.thumb.src;b.end()}this.setSize({id:"fbZoomDiv",left:this.pos.thumb.left,top:this.pos.thumb.top,width:this.pos.thumb.width,height:this.pos.thumb.height},e)},setPause:function(a){(this.isPaused=a)?this.clearTimeout("slideshow"):this.newContent(this.nextIndex);if(this.showPlayPause){this.fbPlay.style.top=a?"":
"-9999px";this.fbPause.style.top=a?"-9999px":""}},fadeOpacity:function(a,b,c,e){var d=+(a.style.opacity||0);c=c||0;var g=d<=b&&b>0;if(c>10)c=10;if(c<0)c=0;if(c===0){d=b;var h=1}else{h=Math.pow(100,0.1);c=c+(10-c)/9*(Math.log(2)/Math.log(h)-1);h=1/Math.pow(h,c)}if(g)a.style.display=a.style.visibility="";else h=-h;this.stepFade(a,d,b,h,g,e)},stepFade:function(a,b,c,e,d,g){if(a){var h=this;if(d&&b>=c||!d&&b<=c)b=c;if(this.ie)a.style.filter="alpha(opacity="+b*100+")";a.style.opacity=b+"";if(b===c){this.ie&&
c>=1&&a.style.removeAttribute("filter");g&&g()}else this.timeouts["fade"+a.id]=setTimeout(function(){h.stepFade(a,b+e,c,e,d,g)},20)}},resizeGroup:function(a,b){var c=a.length;if(!c)return b?b():null;this.clearTimeout("resize");for(var e=0;c--;)e=Math.max(e,Math.abs(a[c].finish-a[c].start));c=this.resizeDuration*(this.liveResize?0.65:1);e=e&&c?Math.pow(Math.max(1,2.2-c/10),Math.log(e))/e:1;for(c=a.length;c--;)a[c].diff=a[c].finish-a[c].start;this.stepResize(e,e,a,b)},stepResize:function(a,b,c,e){var d=
this;if(a>1)a=1;for(var g=c.length;g--;){var h=c[g].node,f=c[g].property,i=Math.round(c[g].start+c[g].diff*a),k=h.tagName.toLowerCase();if(k==="img"||k==="iframe")h[f]=i;else h.style[f]=i+"px"}if(a>=1){delete this.timeouts.resize;e&&e()}else this.timeouts.resize=setTimeout(function(){d.stepResize(a+b,b,c,e)},20)},getDisplaySize:function(){return{width:this.getDisplayWidth(),height:this.getDisplayHeight()}},getDisplayWidth:function(){return this.html.clientWidth||this.bod.clientWidth},getDisplayHeight:function(){if(this.webkitOld)return window.innerHeight;
if(!this.html.clientHeight||this.operaOld||document.compatMode==="BackCompat")return this.bod.clientHeight;return this.html.clientHeight},getScroll:function(a){a&&a.document||(a=self);var b=a.document,c=b.documentElement,e=b.body||b.getElementsByTagName("body")[0],d=a.pageXOffset||e.scrollLeft||b.documentElement.scrollLeft||0;if(this.ie&&this.rtl)d-=c.scrollWidth-c.clientWidth;return{left:d,top:a.pageYOffset||e.scrollTop||b.documentElement.scrollTop||0}},getLeftTop:function(a,b){var c=a.offsetLeft||
0,e=a.offsetTop||0,d=a.ownerDocument||a.document,g=d.body||d.getElementsByTagName("body")[0],h=d.defaultView||d.parentWindow||d.contentWindow,f=this.getScroll(h),i=this.getStyle(a,"position",h),k=/absolute|fixed/,l=!k.test(i),m=l,j=a;if(i==="fixed"){c+=f.left;e+=f.top}for(;i!=="fixed"&&(j=j.offsetParent);){var o=0,r=0,n=true;i=this.getStyle(j,"position",h);n=!k.test(i);if(this.opera){if(b&&j!==g){c+=j.scrollLeft-j.clientLeft;e+=j.scrollTop-j.clientTop}}else if(this.ie){if(j.currentStyle.hasLayout&&
j!==d.documentElement){o=j.clientLeft;r=j.clientTop}}else{o=parseInt(this.getStyle(j,"border-left-width",h),10);r=parseInt(this.getStyle(j,"border-top-width",h),10);if(this.ff&&j===a.offsetParent&&!n&&(this.ffOld||!l)){c+=o;e+=r}}if(!n){if(b)return{left:c,top:e};m=false}if(j.offsetLeft>0)c+=j.offsetLeft;c+=o;e+=j.offsetTop+r;if(i==="fixed"){c+=f.left;e+=f.top}if(!(this.opera&&l)&&j!==g&&j!==d.documentElement){c-=j.scrollLeft;e-=j.scrollTop}}if(this.ff&&m){c+=parseInt(this.getStyle(g,"border-left-width",
h),10);e+=parseInt(this.getStyle(g,"border-top-width",h),10)}if(this.webkitOld){h=d.createElement("script");h.innerHTML="document.parentWindow=self";d.documentElement.appendChild(h);d.documentElement.removeChild(h);h=d.parentWindow}if(!b&&h!==self){b=h.parent.document.getElementsByTagName("iframe");for(a=b.length;a--;){j=b[a];g=false;try{g=j.contentDocument||j.contentWindow;g=g.document||g}catch(s){}if(g===d||typeof g!=="object"&&j.src===h.location.href.substr(h.location.href.length-j.src.length)){if(this.webkitOld)h=
d.defaultView;d=this.getLeftTop(j);c+=d.left-f.left;e+=d.top-f.top;if(this.ie||this.opera){d=f=0;if(!this.ie||l){f=parseInt(this.getStyle(j,"padding-left",h),10);d=parseInt(this.getStyle(j,"padding-top",h),10)}c+=j.clientLeft+f;e+=j.clientTop+d}else{c+=parseInt(this.getStyle(j,"border-left-width",h),10)+parseInt(this.getStyle(j,"padding-left",h),10);e+=parseInt(this.getStyle(j,"border-top-width",h),10)+parseInt(this.getStyle(j,"padding-top",h),10)}break}}}return{left:c,top:e}},getStyle:function(a,
b,c){if(!(a&&b))return"";if(!c){c=a.ownerDocument||a.document;c=c.defaultView||c.parentWindow||c.contentWindow}if(a.currentStyle)return a.currentStyle[b.replace(/-(\w)/g,function(e,d){return d.toUpperCase()})]||"";else{if(!c){c=a.ownerDocument||a.document;c=c.defaultView||c.parentWindow||c.contentWindow}return c.getComputedStyle&&c.getComputedStyle(a,"").getPropertyValue(b)||""}},getLayout:function(a){var b=this.getLeftTop(a);b.width=a.offsetWidth;b.height=a.offsetHeight;return b},clearTimeout:function(a){if(this.timeouts[a]){clearTimeout(this.timeouts[a]);
delete this.timeouts[a]}},stretchOverlay:function(){var a=this;return function(){if(arguments.length===1){a.clearTimeout("stretch");a.timeouts.stretch=setTimeout(function(){a.stretchOverlay()()},25)}else{delete a.timeouts.stretch;if(a.fbBox){var b=a.fbBox.offsetLeft+a.fbBox.offsetWidth,c=a.fbBox.offsetTop+a.fbBox.offsetHeight,e=a.getDisplaySize(),d=a.getScroll(),g=a.fbOverlay.style;g.width=g.height="0";var h=a.rtl&&d.left?a.html.clientWidth-a.html.scrollWidth:0;g.left=h+"px";g.width=Math.max(b,a.bod.scrollWidth,
a.bod.clientWidth,a.html.clientWidth,e.width+d.left)+"px";g.height=Math.max(c,a.bod.scrollHeight,a.bod.clientHeight,a.html.clientHeight,e.height+d.top)+"px"}}}},encodeHTML:function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},decodeHTML:function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#39;/g,"'")},getXMLHttpRequest:function(){var a,b=this;if(window.XMLHttpRequest){if(!(a=
new XMLHttpRequest))return false}else try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return false}}return{getResponse:function(d,g){try{a.open("GET",d,true);a.setRequestHeader("If-Modified-Since","Thu, 1 Jan 1970 00:00:00 GMT");a.setRequestHeader("Cache-Control","no-cache");a.onreadystatechange=function(){if(a.readyState===4){a.onreadystatechange=function(){};g(a)}};a.send(null)}catch(h){}}}},setInnerHTML:function(a,b){try{var c=document.createRange();
c.selectNodeContents(a);c.deleteContents();if(b){var e=(new DOMParser).parseFromString('<div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div>","application/xhtml+xml"),d=e.documentElement.childNodes;c=0;for(var g=d.length;c<g;c++)a.appendChild(document.importNode(d[c],true))}return true}catch(h){}try{a.innerHTML=b;return true}catch(f){}return false},printContents:function(a,b){if(a&&a.offsetWidth)var c=a.offsetWidth,e=a.offsetHeight;else{a=fb.lastChild.fbContent;e=fb.lastChild.pos.fbMainDiv;c=e.width;
e=e.height}var d=window.open("","","width="+c+", height="+e);c=d&&d.document;if(!c){alert("Popup windows are being blocked by your browser.\nUnable to print.");return false}b=/\.css$/i.test(b)?'<link rel="stylesheet" type="text/css" href="'+b+'" />':'<style type="text/css"> html,body{border:0;margin:0;padding:0;}'+(b||"")+"</style>";e=document.createElement("div");e.appendChild(a.cloneNode(true));c.open("text/html");c.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>'+
b+"</head><body><div>"+e.innerHTML+"</div></body></html>");c.close();setTimeout(function(){d&&d.print();d&&d.close()},200);return true},loadAnchor:function(a,b,c){if(a.setAttribute){a=a;a.getAttribute("rel")||a.setAttribute("rel","floatbox");fb.lastChild.start(this.tagOneAnchor(a))}else fb.lastChild.start(this.tagOneAnchor({href:a,rev:b,title:c,rel:"floatbox"}))},goBack:function(){var a=fb.previousAnchor;a&&this.loadAnchor(a.href,a.rev+" sameBox:true",a.title)},resize:function(a,b){var c=false;if(a&&
fb.lastChild.currentItem&&fb.lastChild.currentItem.nativeWidth!=a){fb.lastChild.currentItem.nativeWidth=a;c=true}if(b&&fb.lastChild.currentItem&&fb.lastChild.currentItem.nativeHeight!=b){fb.lastChild.currentItem.nativeHeight=b;c=true}c&&fb.lastChild.calcSize(false)}};
function initfb(){if(!arguments.callee.done){var a="self";if(self!==parent){try{if(self.location.host===parent.location.host&&self.location.protocol===parent.location.protocol)a="parent"}catch(b){}if(a==="parent"&&!parent.fb)return setTimeout(initfb,50)}arguments.callee.done=true;if(document.compatMode==="BackCompat")alert("Floatbox does not support quirks mode.\nPage needs to have a valid a doc type.");else{fb=a==="self"?new Floatbox:parent.fb;fb.tagAnchors(self.document.body||self.document.getElementsByTagName("body")[0]);
if(fb.autoStart){fb.start(fb.autoStart);typeof fb!=="undefined"&&delete fb.autoStart}else fb.preloadImages("",true)}}}document.addEventListener&&document.addEventListener("DOMContentLoaded",initfb,false);(function(){if(/loaded|complete/.test(document.readyState))return initfb();initfb.done||setTimeout(arguments.callee,50)})();fb_prevOnload=window.onload;window.onload=function(){if(!arguments.callee.done){arguments.callee.done=true;typeof fb_prevOnload==="function"&&fb_prevOnload();initfb()}};