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