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