g.alpha&&"transitionCanvas"!=a.id&&-1==a.id.indexOf("oversizeDisplay")&&(b.globalAlpha=g.alpha),b.drawImage(g.image,f,c),Z.alphaSupported&&1>g.alpha&&"transitionCanvas"!=a.id&&-1==a.id.indexOf("oversizeDisplay")&&(b.globalAlpha=1));a==F?(k.traceDebugValues("z507",g.name),Cb==Gb&&k.setStatus("displayDrawnViewport",
!0)):(k.traceDebugValues("displayBackfillTile",g.name),Eb<=dc&&k.setStatus("backfillDrawnViewport",!0))}}function va(a,b){var g=da(b,1),f=Math.floor(a.l*g/ya),c=Math.floor(a.r*g/ya),d=Math.floor(a.t*g/za),g=Math.floor(a.b*g/za);0>f&&(f=0);c>ia[b]-1&&(c=ia[b]-1);0>d&&(d=0);g>oa[b]-1&&(g=oa[b]-1);this.l=f;this.r=c;this.t=d;this.b=g}function uc(a,b,g,f,c,d,e,k,m){"undefined"===typeof k||null===k?(this.l=a+g/e,this.r=a+f/e,this.t=b+c/e,this.b=b+d/e):(e=C/na[k],k=A/Aa[k],this.l=a+g*e,this.r=a+f*e,this.t=
b+c*k,this.b=b+d*k);m&&(this.l-=256-this.l%256,this.r+=256-this.r%256,this.t-=256-this.t%256,this.b+=256-this.b%256)}function da(a,b){return na[a]/Z.imageW*b}function pa(a,b){return b/(na[a]/Z.imageW)}function Na(a,b,g,f,c){if(Z.z744){g="undefined"!==typeof g&&null!==g?g:Z.imageZ;f="undefined"!==typeof f&&null!==f?Math.round(f):Math.round(Z.imageR);0>f&&(f+=360);var d=a,e=b;"image"==c&&(b=k.convertImageCoordsToViewportEdgeCoords(a,b,g,f),a=b.x,b=b.y);var m=Math.round(Z.imageW*g),h=Math.round(Z.imageH*
g),n=C,l=A,p=Math.round(.5*C),u=Math.round(.5*A),q,H;q=p-O+(Z.imageCtrX-Z.imageX)*g+a;H=u-P+(Z.imageCtrY-Z.imageY)*g+b;var K=q-m/2;q+=m/2;var t=H-h/2;H+=h/2;a=q-K>n||!Z.z744Strict?K>p?a-(K-p):qp-m/2?a-(K-(p-m/2)):q
l||!Z.z744Strict?t>u?b-(t-u):Hu-h/2?b-(t-(u-h/2)):HZ.maxZ?(a=Z.maxZ,Z.Utils.validateCallback("zoomConstrainedMax")):a=Ib;0C/2||Math.abs(f)>A/2)&&m(x,qa,V,"simple",!1,"Updating backfill oversize display");gc++;Ha=window.setTimeout(Kb,Mb)}}function hc(a,b,g,f,c,d,e){tb++;var h=c/d,p=tb*h,u=Z.Utils.easing(Z.imageX,a,p,c),l=Z.Utils.easing(Z.imageY,b,p,c),p=Z.Utils.easing(Z.imageZ,g,p,c),l=k.convertImageCoordsToViewportEdgeCoords(u,l,p),u=l.x,l=l.y;syncOversize=!1;if(parseFloat(n.left)!=u||parseFloat(n.top)!=l)n.left=u+"px",n.top=l+"px",x&&M&&(syncOversize=!0);p!=Z.imageZ&&
(Lb(p,!1),x&&M&&(Q.restore(),Q.save(),Q.scale(aa,aa),syncOversize=!0));syncOversize&&m(x,qa,V,"simple",!1,"Updating backfill oversize display");tbZ.scaleThreshold||d>Z.scaleThreshold))Q.restore(),Q.save(),Q.scale(aa,aa),Q.rotate(Z.imageR*Math.PI/180),m(x,qa,V,"simple",!1,"Updating backfill oversize display");Ba=g=pa(L,a);c=g/tierBackfillScalePrior;g=wa*c;c*=xa;d=ga+(wa-g)/2;f=ha+(xa-c)/2;w.width=g+"px";w.height=
c+"px";w.left=d+"px";w.top=f+"px"}else x&&Z.Utils.clearDisplay(x),c=wa*g,d=xa*g,e=ga+Z.imageX*(1-g)*Z.imageZ,h=ha+Z.imageY*(1-g)*Z.imageZ,w.width=c+"px",w.height=d+"px",w.left=e+"px",w.top=h+"px";else m(F,v,W,"centerOut",!1,"Scaling: non-canvas zoom"),M?(g=jc,wa=G*g,xa=I*g,ga=-(G/g),ha=-(I/g),Nb=Ca*g,Ob=Da*g,B.width=wa,B.height=xa,w.width=B.width+"px",w.height=B.height+"px"):(g=Aa[L],B.width=na[L],B.height=g,g=Z.imageY*a,ga=Ca-Z.imageX*a,ha=Da-g),w.left=ga+"px",w.top=ha+"px",m(B,L,V,"simple",!1,"Scaling: non-canvas zoom - backfill");
g=!0}return g}function ja(a){a=Z.Utils.event(a);var b=a.type;if(a&&b){var g=Z.Utils.isRightMouseButton(a),f=a.altKey;if(!("mouseover"!=b&&"mouseout"!=b&&!Z.interactive||"mousedown"==b&&(!Z.interactive||Z.coordinatesVisible&&f)||g)){("mousedown"==b||"touchstart"==b||Z.tourPlaying&&Z.tourStop)&&k.zoomAndPanAllStop();Z.touchSupport&&"touchmove"!=b&&"gesturechange"!=b&&a.preventDefault();if("mousedown"==b)window.setTimeout(function(){k.zoomAndPanAllStop(!1,!0)},1);else if("touchstart"==b||"gesturestart"==
b)touch=Z.Utils.getFirstTouch(a),k.zoomAndPanAllStop(!1,!0);switch(b){case "mouseover":Z.Viewer.initializeViewerKeyDefaultListeners(!0);break;case "mousedown":Z.Viewer.initializeViewerKeyEventListeners(!0);Z.Utils.addEventListener(document,"mousemove",ja);Z.Utils.addEventListener(document,"mouseup",ja);break;case "mouseup":Z.Utils.removeEventListener(document,"mousemove",ja),Z.Utils.removeEventListener(document,"mouseup",ja)}wc(a);if("mousedown"==b||"mousemove"==b)return!1}}}function wc(a){a=Z.Utils.event(a);
var b=a.type;if(a&&b){var g,f;if("touchstart"==b||"touchmove"==b||"touchend"==b||"touchcancel"==b)g=Z.Utils.getFirstTouch(a),"undefined"!==typeof g&&(f=new Z.Utils.Point(g.pageX,g.pageY));else{Z.Utils.target(a);Z.Utils.relatedTarget(a);Z.Utils.isRightMouseButton(a);var c=a.altKey;"resize"!=b&&(f=Z.Utils.getMousePosition(a));Z.smoothPan&&(Wa=f)}"DOMMouseScroll"==b&&(b="mousewheel");var d=k.getZoom(),e;"undefined"!==typeof f&&null!==f&&(e=k.getClickCoordsInImage(a,d,f));switch(b){case "mousedown":Z.mouseIsDown=
!0;ba=new Z.Utils.Point(f.x,f.y);jb=(new Date).getTime();y.mouseXPrior=f.x;y.mouseYPrior=f.y;Z.smoothPan&&!c&&Z.mousePan&&1y.mouseXPrior?Z.Viewer.viewportNext():f.xC/2||Math.abs(c)>A/2)&&m(x,qa,V,"simple",!1,"Updating backfill oversize display"))));break;case "mouseup":Z.mouseIsDown=!1;document.mousemove=null;document.mouseup=null;b=(new Date).getTime();Z.mouseOutDownPoint?
(f=Z.mouseOutDownPoint,e=k.getClickCoordsInImage(a,d,Z.mouseOutDownPoint)):f=new Z.Utils.Point(f.x,f.y);f=Z.Utils.calculatePointsDistance(ba.x,ba.y,f.x,f.y);d=b-jb;if(fC/2||Math.abs(c)>A/2)&&m(x,qa,V,"simple",!1,"Updating backfill oversize display")))));break;case "touchend":if(!Ia&&!lb){Z.mouseIsDown=!1;document.mousemove=null;document.mouseup=null;b=(new Date).getTime();Z.mouseOutDownPoint?(f=Z.mouseOutDownPoint,e=k.getClickCoordsInImage(a,d,Z.mouseOutDownPoint)):f="undefined"!==typeof f&&null!==f?new Z.Utils.Point(f.x,
f.y):"undefined"!==typeof Ra&&null!==Ra?Ra:ba;f=Z.Utils.calculatePointsDistance(ba.x,ba.y,f.x,f.y);d=b-jb;if(fMath.abs(Sa)&&(Ja=Sa),Math.abs(Ka)>Math.abs(Ta)&&(Ka=Ta));a+=Ja;b+=Ka;g=Na(a,b,Z.imageZ,Z.imageR,"container");n.left=g.x+"px";n.top=g.y+"px";Ja-=a-g.x;Ka-=b-g.y;x&&M&&m(x,qa,V,"simple",!1,"Updating backfill oversize display");la&&0==Math.round(Ja*p)/p&&0==Math.round(Ka*p)/p&&(la=!1)}}else if(Z.mouseIsDown||null!==la||0==Ja||0==Ka)Pb(!0),k.updateView();else if(g=Na(a+Sa,b+Ta,Z.imageZ,Z.imageR,"container"),Sa=g.x-a,Ta=g.y-b,0!=
Sa||0!=Ta)Sb=Wa.x+Sa,Tb=Wa.y+Ta,la=!0}function Ac(a){a=Z.Utils.event(a);a.preventDefault();Rb=Math.round(100*a.scale)/100}function Bc(a){if(Z.mousePan){a=da(v,Ma*Rb);var b=eb(a);a!=Z.imageZ&&k.z633(b)}}var wb=null,xb=null,mc=0;"undefined"!==typeof a&&null!==a&&(mc=a);var nc=Z.imagePath,k=this,Xa=[],vb=0,ya=parseInt(Z.Utils.getResource("z221"),10),za=parseInt(Z.Utils.getResource("z219"),10),Dc=parseFloat(Z.Utils.getResource("z218")),$a=parseInt(Z.Utils.getResource("z220"),10),yc=parseInt(Z.Utils.getResource("z716"),
10),zc=parseInt(Z.Utils.getResource("z715"),10),kc=parseInt(Z.Utils.getResource("z723"),10),lc=parseInt(Z.Utils.getResource("z722"),10),Ub,x,Za,Q,cb,y,n,Vb,B,w,La,mb,F,S,R,Wb,ca,db,Ya;(function(a){if("undefined"===typeof a||null===a)a=0;a=a.toString();Z.useCanvas&&!x&&(Ub=Z.Utils.createContainerElement("canvas","oversizeDisplay"+a,"inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","normal"),Z.ViewerDisplay.appendChild(Ub),x=Ub,Za=x.style);y||(cb=
Z.Utils.createContainerElement("div","viewportContainer"+a,"inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","normal"),Z.ViewerDisplay.appendChild(cb),y=cb,n=y.style);B||(Vb=Z.Utils.createContainerElement(Z.useCanvas?"canvas":"div","viewportBackfillDisplay"+a,"inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","normal"),cb.appendChild(Vb),B=Vb,w=B.style);F||(mb=Z.Utils.createContainerElement(Z.useCanvas?
"canvas":"div","viewportDisplay"+a,"inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","normal"),cb.appendChild(mb),F=mb,S=F.style);Z.useCanvas&&!ca&&(Wb=Z.Utils.createContainerElement("canvas","transitionCanvas","none","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","normal"),cb.appendChild(Wb),ca=Wb,db=ca.style)})(mc);var ma=1,v=0,L=0,M=!1,qa=0,Bb=!1,D,Ma,Ba,aa,na=[],Aa=[],ia=[],oa=[],Ua=[],Ea=[],V=[],T=
[],ra=[],Oa=[],qb=0,ac=0,bc=0,Eb=0,cc=0,dc=0,Cb=0,Db=0,Ib=0,ab=0,Gb=0,ib=0,hb=0,Hb=0,Fa=[],J=[],W=[],ua=[],Ga=[],sa=[],bb=null,Jb=0,vc=parseInt(Z.Utils.getResource("z725"),10),fc=parseInt(Z.Utils.getResource("z724"),10),sc=new Z.NetConnector,Zb=parseInt(Z.Utils.getResource("z81"),10),Ec=parseInt(Z.Utils.getResource("z78"),10),oc=parseInt(Z.Utils.getResource("z80"),10),fb=parseInt(Z.Utils.getResource("z77"),10),qa=fb,pc=parseInt(Z.Utils.getResource("z79"),10),pb=parseInt(Z.Utils.getResource("z76"),
10),ob=parseInt(Z.Utils.getResource("z75"),10),Ab=null,zb=null,yb=null,$b=parseFloat(Z.Utils.getResource("z173"),10),jc=parseFloat(Z.Utils.getResource("z74"),10),rc=parseFloat(Z.Utils.getResource("DEFAULT_z310SIZEMAXBROWSER"),10),C,A,Xb,Yb,G,I,Ca,Da,O,P,wa,xa,Nb,Ob,ga,ha;C=Z.viewerW;A=Z.viewerH;Xb=Yb=0;A-=0;var E=null,ba,Ra,jb,Ia=null,Rb=null,lb=!1,Cc=parseInt(Z.Utils.getResource("z122"),10),ub=Math.round(parseFloat(Z.Utils.getResource("z176"))*Z.panSpeed),ea=0,fa=0,Qa=null,Qb=null,kb=null,Wa=null,
Ja=0,Ka=0,Sa=0,Ta=0,la=null,Sb=null,Tb=null,nb=parseFloat(Z.Utils.getResource("z242"))*Z.zoomSpeed;Z.mobileDevice&&(nb/=2);var ka=0,Ha=null,gc=0,Mb=parseInt(Z.Utils.getResource("z238"),10),Fb=parseFloat(Z.Utils.getResource("z112"))*Z.fadeInSpeed,sb=null,Fc=parseFloat(Z.Utils.getResource("z239")),qc=parseFloat(Z.Utils.getResource("z240"));Z.mobileDevice&&(qc/=2);var Pa=null,tb=0;if(null!==Z.imagePath&&"null"!=Z.imagePath)if(1==Z.localUse&&(Z.browser==Z.browsers.CHROME||Z.browser==Z.browsers.OPERA||
Z.browser==Z.browsers.IE&&11==Z.browserVersion||Z.browser==Z.browsers.SAFARI&&7<=Z.browserVersion))Z.Utils.showMessage(Z.Utils.getResource("z288"),!1,Z.messageDurationStandard,"center");else if(-1!=Z.imagePath.indexOf("zComparisonPath")&&-1!=Z.imagePath.indexOf("zSlidePath")&&-1!=Z.imagePath.indexOf("zOverlayPath")&&-1!=Z.imagePath.indexOf("zAnimationPath")&&-1!=Z.imagePath.indexOf("zSlidestackPath"))Z.Utils.showMessage(Z.Utils.getResource("DEFAULT_MULTIIMAGESUPPORTDISABLEDALERT"),!1,Z.messageDurationStandard,
"center");else{var Gc=new Z.NetConnector;u(nc,Gc,null)}this.clearAll=function(a,b,c,d){a&&(qb=0,"undefined"!==typeof V&&Z.Utils.arrayClear(V),"undefined"!==typeof T&&Z.Utils.arrayClear(T),"undefined"!==typeof Ea&&Z.Utils.arrayClear(Ea),"undefined"!==typeof Fa&&Z.Utils.arrayClear(Fa),"undefined"!==typeof J&&Z.Utils.arrayClear(J),"undefined"!==typeof W&&Z.Utils.arrayClear(W),"undefined"!==typeof ua&&Z.Utils.arrayClear(ua),"undefined"!==typeof Ga&&Z.Utils.arrayClear(Ga),"undefined"!==typeof sa&&Z.Utils.arrayClear(sa),
"undefined"!==typeof ra&&Z.Utils.arrayClear(ra),"undefined"!==typeof Oa&&Z.Utils.arrayClear(Oa));b&&q();d&&(x&&Z.Utils.clearDisplay(x),B&&Z.Utils.clearDisplay(B),F&&Z.Utils.clearDisplay(F),ca&&Z.Utils.clearDisplay(ca))};this.z759=function(a,b,c,d){z(a,b,c,d)};this.z752=function(a,b,c){u(a,b,c)};this.z602=function(a,b){N(a,b)};this.validateXYZDefaults=function(){var a=parseFloat(Z.Utils.getResource("z143")),b=parseFloat(Z.Utils.getResource("z144")),c=parseFloat(Z.Utils.getResource("z145")),d=parseFloat(Z.Utils.getResource("DEFAULT_INITIALR")),
e=parseFloat(Z.Utils.getResource("z163")),h=parseFloat(Z.Utils.getResource("z153")),a=isNaN(a)?null:a,b=isNaN(b)?null:b,c=isNaN(c)?null:c,d=isNaN(d)?null:d,e=isNaN(e)?null:e,h=isNaN(h)?null:h;Z.initialX=a;Z.initialY=b;Z.initialZ=c;Z.initialR=d;Z.minZ=e;Z.maxZ=h;null===Z.initialX&&(Z.initialX=Z.imageW/2);null===Z.initialY&&(Z.initialY=Z.imageH/2);Z.fitZ=k.z468(null,null,0);Z.fillZ=k.calculateZoomToFill(null,null,0);h=k.z468(null,null,0);a=k.calculateZoomToFill(null,null,0);1Z.maxZ&&(Z.fitZ=Z.maxZ);1Z.maxZ&&(Z.fillZ=Z.maxZ);null===Z.minZ||-1==Z.minZ?Z.minZ=Z.fitZ:0==Z.minZ&&(Z.minZ=Z.fillZ);if(null===Z.maxZ||-1==Z.maxZ)Z.maxZ=1;null===Z.initialZ||-1==Z.initialZ?Z.initialZ=h:0==Z.initialZ&&(Z.initialZ=a);Z.initialZZ.maxZ&&(Z.initialZ=Z.maxZ)};this.getTierScale=function(){return D};this.getX=function(a){var b=parseFloat(n.left)-O;a=k.getZoom(a);return wb-b/a};this.getY=function(a){var b=parseFloat(n.top)-
P;a=k.getZoom(a);return xb-b/a};this.getZoom=function(a){var b=D;a&&(b=D*parseFloat(S.width)/G);return da(v,b)};this.z619=function(b){b||(l(ob,T),Ab=!0);(!Z.imageSet||a==Z.imageSetStart||b)&&ma>pc&&(l(pb,T),zb=!0,ma>oc&&(l(fb,T),yb=!0),k.setStatus("backfillPrecachedViewport",!0));T.sort();T=Z.Utils.arrayUnique(T);Ea=T.slice(0);k.traceDebugValues("tilesBackfillToPrecache",null,Ea.length);K(T,Va,"simple","image-backfill")};this.updateView=function(b,c){if("undefined"===typeof a||null===a)a=0;var g=
Z.mouseIsDown||Z.buttonIsDown||Z.keyIsDown||Z.mouseWheelIsDown,d=D!=Ma||k.getZoom()!=Z.imageZ||Z.imageZ!=Z.priorZ,e=parseFloat(n.left)!=O||parseFloat(n.top)!=P||k.getX()!=Z.imageX||k.getY()!=Z.imageY;if(d||e||"undefined"!==typeof b&&b&&!g){if(!Z.Viewer.getStatus("readyViewer")||a==Z.viewportCurrentID){var h=!1;if(b||parseFloat(S.width)!=F.width){if(Z.useCanvas){S.width=F.width+"px";S.height=F.height+"px";S.left="0px";S.top="0px";R.restore();R.save();try{R.scale(D,D)}catch(p){console.log("In function z630 scaling canvas: "+
p)}B&&(M?(w.width=B.width+"px",w.height=B.height+"px",w.left=ga+"px",w.top=ha+"px",La.restore(),La.save(),La.scale(Ba,Ba)):(w.width=wa+"px",w.height=xa+"px",w.left=ga+"px",w.top=ha+"px"))}h=!0}if(b||parseFloat(n.left)!=O||parseFloat(n.top)!=P){h=parseFloat(n.left)-O;g=parseFloat(n.top)-P;0!=Z.imageR&&(g=Z.Utils.rotatePoint(h,g,Z.imageR),h=g.x,g=g.y);n.left=O+"px";n.top=P+"px";M||(ga=parseFloat(w.left)+h,ha=parseFloat(w.top)+g,w.left=ga+"px",w.top=ha+"px");var l=k.getZoom();Z.imageX=wb=Z.imageX-h/
l;Z.imageY=xb=Z.imageY-g/l;h=!0}h&&(m(F,v,W,"centerOut",!1,"1a. Updating view: resetting display positions"),M&&m(B,L,V,"simple",!1,"1b. Updating view: resetting backfill positions"));h=!1;if("undefined"!==typeof b&&b||D!=Ma||k.getZoom()!=Z.imageZ||!k.getStatus("initializedViewport")||c){D!=Ma&&(Z.imageZ=k.getZoom());Z.imageZZ.maxZ&&(Z.imageZ=Z.maxZ);l=Dc;for(g=ma;0=Z.imageZ;)g--,l/=2;g=0>g-1?0:g-1;l=pa(g,Z.imageZ);if(g!=v||l!=D)Z.useCanvas&&(R.restore(),
R.save(),R.scale(l,l)),v!=g&&(Bb=!0),v=g,D=l;Ma=D;M=!1;v>Zb?(L=v-Ec,M=!0):L=v>oc?fb:v>pc?pb:ob;tierBackfillScalePrior=Ba=pa(L,Z.imageZ);var g=na[L],l=Aa[L],u=Z.imageX*Z.imageZ,q=Z.imageY*Z.imageZ;M?(g=jc,wa=G*g,xa=I*g,ga=-(G/g),ha=-(I/g),Nb=Ca*g,Ob=Da*g,B.width=wa,B.height=xa,w.width=B.width+"px",w.height=B.height+"px",w.left=ga+"px",w.top=ha+"px",Z.useCanvas&&(x&&(aa=pa(qa,Z.imageZ),Q.restore(),Q.save(),Q.scale(aa,aa),0!=Z.imageR&&Q.rotate(Z.imageR*Math.PI/180)),La.restore(),La.translate(Nb,Ob),
La.save(),La.scale(Ba,Ba))):(wa=g*Ba,xa=l*Ba,ga=Ca-u,ha=Da-q,B.width=g,B.height=l,Z.useCanvas&&(w.width=wa+"px",w.height=xa+"px"),w.left=ga+"px",w.top=ha+"px");m(B,L,V,"simple",!1,"2. Updating view: changing tier - backfill");!b&&0<$a&&(h=!0)}else k.traceDebugValues("updateView-noChange");M?t(!0):x&&Z.Utils.clearDisplay(x)}a==Z.viewportCurrentID&&(t(),m(F,v,null,"centerOut",h,"3. Updating view: prior to loading of any new tiles"),0Z.browserVersion||0==$a)a=
Z.Utils.cacheProofPath(a);return a};this.getClickCoordsAtZoom=function(a,b){var c=this.getClickCoordsInImage(a,b);return new Z.Utils.Point(c.x*b,c.y*b)};this.getClickCoordsInImage=function(a,b,c){a=Z.Utils.event(a);var d=null;if(a){var e=a.type;if("undefined"===typeof b||null==b)b=k.getZoom();if("undefined"===typeof c||null===c)"touchstart"==e||"touchend"==e||"touchcancel"==e?(touch=Z.Utils.getFirstTouch(a),"undefined"!==typeof touch&&(target=touch.target,c=new Z.Utils.Point(touch.pageX,touch.pageY))):
(target=Z.Utils.target(a),relatedTarget=Z.Utils.relatedTarget(a),c=Z.Utils.getMousePosition(a));"undefined"!==typeof c&&null!==c&&(a=k.z479(c.x,c.y),d=k.z485(a.x,a.y,b))}return d};this.getClickZoomCoords3D=function(a,b,c,d,e){var h=parseFloat(Z.Utils.getResource("z93TIERSKIPTHRESHOLD"));b=k.z479(b.x,b.y);b=k.z485(b.x,b.y,Z.imageZ);var m=da(c,d);a=a.altKey;e?a?m=Z.fitZ:(e=pa(c,Z.fitZ),d-e1+h?m=da(c,1):0d&&(d+=360);var e=parseFloat(n.left)+Ca,h=parseFloat(n.top)+Da;a-=e;b-=h;0!=Z.imageR&&(viewportClickPt=Z.Utils.rotatePoint(a,b,d),a=viewportClickPt.x,b=viewportClickPt.y);return new Z.Utils.Point(a/c+Z.imageX,b/c+Z.imageY)};this.convertImageCoordsToViewportEdgeCoords=function(a,b,c,
d){if("undefined"===typeof c||null===c)c=Z.imageZ;if("undefined"===typeof d||null===d)d=Z.imageR;0>d&&(d+=360);a=(Z.imageX-a)*c;b=(Z.imageY-b)*c;0!=Z.imageR&&(viewportClickPt=Z.Utils.rotatePoint(a,b,-d),a=viewportClickPt.x,b=viewportClickPt.y);return new Z.Utils.Point(O+a,P+b)};this.convertViewportEdgeCoordsToImageCoords=function(a,b,c,d){if("undefined"===typeof c||null===c)c=Z.imageZ;if("undefined"===typeof d||null===d)d=Z.imageR;0>d&&(d+=360);a-=O;b-=P;0!=Z.imageR&&(viewportClickPt=Z.Utils.rotatePoint(a,
b,-d),a=viewportClickPt.x,b=viewportClickPt.y);return new Z.Utils.Point(Z.imageX-a/c,Z.imageY-b/c)};this.z468=function(a,b,c){if("undefined"===typeof a||null===a)a=Z.imageW;if("undefined"===typeof b||null===b)b=Z.imageH;var d=a/b>C/A?C/a:A/b;if(90==c||270==c)d=a/b>C/A?C/b:A/a;return d};this.calculateZoomToFill=function(a,b,c){if("undefined"===typeof a||null===a)a=Z.imageW;if("undefined"===typeof b||null===b)b=Z.imageH;var d=a/b>C/A?A/b:C/a;if(90==c||270==c)d=a/b>C/A?A/a:C/b;return d};this.z482=function(a,
b){return da(a,b)};this.getStatus=function(a){a=Z.Utils.arrayIndexOfObjectValue(Xa,"state",a);return-1==a?!1:Xa[a].status};this.setStatus=function(a,b){var c=!1,d=Z.Utils.arrayIndexOfObjectValue(Xa,"state",a);-1==d?(c=b,Xa[Xa.length]={state:a,status:b}):(!Xa[d].status&&b&&(c=!0),Xa[d].status=b);c&&(Z.Utils.validateCallback(a),Z.Viewer.validateViewerStatus(a))};this.traceDebugValues=function(a,b,c,d){c="undefined"!==typeof c&&null!==c?c:null;b=null!==b?b:"";switch(a){case "tilesToDisplay":Cb=c;Gb=
ab=Ib=Db=0;ib=c;hb=0;tilesTimeStart=(new Date).getTime();Hb=0;window.clearTimeout(bb);bb=null;bb=window.setTimeout(ec,fc);break;case "tilesInCache":Db=c;break;case "z581-image-display":Ib+=1;break;case "z755":ab+=1;hb=((new Date).getTime()-c)/1E3;Hb=ab/hb;break;case "z507":a=Z.Utils.arrayIndexOf(Fa,b);-1!=a&&(Fa.splice(a,1),Gb+=1,--ib);break;case "tilesBackfillToPrecache":ac=c;break;case "onTileBackfillPrecache":bc+=1;break;case "tilesBackfillToDisplay":Eb=c;break;case "z599":cc+=1;break;case "displayBackfillTile":a=
Z.Utils.arrayIndexOf(Ea,b),-1!=a&&(Ea.splice(a,1),dc+=1)}};this.zoom=function(a){if("stop"!=a||"stop"!=Z.zooming){switch(a){case "out":0<=ka&&(ka-=nb);break;case "in":0>=ka&&(ka+=nb);break;case "stop":ka=0}Z.zooming=0==ka?"stop":0=ea&&(ea+=ub);break;case "up":0>=fa&&(fa+=ub);break;
case "down":0<=fa&&(fa-=ub);break;case "right":0<=ea&&(ea-=ub);break;case "horizontalStop":ea=0;break;case "verticalStop":fa=0;break;case "stop":fa=ea=0}Z.panningX=0==ea?"stop":0Z.maxZ?c=Z.maxZ:cZ.maxZ-.01&&(c=Z.maxZ);b=Na(a,b,c,d,"image");a=b.x;b=b.y;c=eb(c);if(Math.round(a)!=Math.round(Z.imageX)||Math.round(b)!=Math.round(Z.imageY)||Math.round(1E5*c)!=Math.round(1E5*Z.imageZ)||Math.round(d)!=Math.round(Z.imageR))Z.interactive=!1,tb=0,hc(a,b,c,d,e,h,m)};this.zoomAndPanAllStop=function(a,b){Z.interactive&&(Pa&&Pa&&(window.clearTimeout(Pa),Pa=null),Z.smoothPan&&null!==Qa&&(Z.mouseIsDown||Pb(!0),a=!0),a||k.updateView())};this.z633=function(a,b){Lb(a,b)};this.reset=
function(){k.zoomAndPanToView(Z.initialX,Z.initialY,Z.initialZ,Z.initialR)};this.getSmoothPanGliding=function(){return la};this.setSmoothPanGliding=function(a){la=a};this.mouseWheelHandler=function(a,b){Z.mouseWheelIsDown=!0;Z.mouseWheelCompleteTimer&&window.clearTimeout(Z.mouseWheelCompleteTimer);Z.mouseWheelCompleteTimer=window.setTimeout(Z.Viewer.z586,Z.mouseWheelCompleteDuration);var c=k.z482(v,D*(1+(0a?"out":"stop",
k.z633(constrainedZ))}};
Z.ZoomifyToolbar=function(a){function b(b){if(b=Z.Utils.event(b)){var d=b.type,l=Z.Utils.target(b);if(l){c.background=z;e.background=z;h.background=z;var t=l.id;b=b.altKey;switch(d){case "mouseover":l.style.background=r;break;case "mousedown":l.style.background=q;"buttonZoomInInternal"==t?b||a.zoom("in"):"buttonZoomOutInternal"==t&&(b||a.zoom("out"));break;case "mouseup":l.style.background=r,a.zoom("stop"),"buttonResetInternal"==t&&a.reset()}}}}var d=!1,c,e,h,r=Z.Utils.getResource("z731"),q=Z.Utils.getResource("z730"),
z=Z.Utils.getResource("z733");(function(){var a=parseFloat(Z.Utils.getResource("z728")),q=Z.Utils.getResource("z729"),l=Z.Utils.getResource("z733"),t=Math.round(25),m=Math.round(25/1.5),H=(100-3*t)/4,K=(25-m)/2;Z.ToolbarDisplay=Z.Utils.createContainerElement("div","ToolbarDisplay","inline-block","absolute","visible","100px","25px",Z.viewerW/2-50+"px",Z.viewerH-25-10+"px","none","0px","transparent none","0px","0px","normal");tbS=Z.ToolbarDisplay.style;var p=Z.Utils.createContainerElement("div","toolbarBackgroundInternal",
"inline-block","absolute","visible","100px","25px","0px","0px","solid","1px",q,"0px","0px","normal");Z.Utils.setOpacity(p,a,q);Z.ToolbarDisplay.appendChild(p);a=Z.Utils.createContainerElement("div","buttonZoomOutInternal","inline-block","absolute","visible",t+"px",m+"px",H+1+"px",K+1+"px","none","0px",l,"0px","0px","normal");Z.Utils.setOpacity(a,.4,q);a.setAttribute("title",Z.Utils.getResource("z400"));p=document.createTextNode(Z.Utils.getResource("z735"));a.appendChild(p);Z.ToolbarDisplay.appendChild(a);
h=a.style;Z.Utils.setTextNodeStyle(p,"black","verdana","15px","none","normal","normal","normal","bold","1em","center","none");Z.Utils.disableTextInteraction(p);p=Z.Utils.createContainerElement("div","buttonResetInternal","inline-block","absolute","visible",t+"px",m+"px",2*H+t+1+"px",K+1+"px","none","0px",l,"0px","0px","normal");Z.Utils.setOpacity(p,.4,q);p.setAttribute("title",Z.Utils.getResource("z378"));var r=document.createTextNode(Z.Utils.getResource("z732"));p.appendChild(r);Z.ToolbarDisplay.appendChild(p);
e=p.style;Z.Utils.setTextNodeStyle(r,"blue","verdana","15px","none","normal","normal","normal","bold","1em","center","none");Z.Utils.disableTextInteraction(r);l=Z.Utils.createContainerElement("div","buttonZoomInInternal","inline-block","absolute","visible",t+"px",m+"px",3*H+2*t+1+"px",K+1+"px","none","0px",l,"0px","0px","normal");Z.Utils.setOpacity(l,.4,q);l.setAttribute("title",Z.Utils.getResource("z399"));q=document.createTextNode(Z.Utils.getResource("z734"));l.appendChild(q);Z.ToolbarDisplay.appendChild(l);
c=l.style;Z.Utils.setTextNodeStyle(q,"black","verdana","15px","none","normal","normal","normal","bold","1em","center","none");Z.Utils.disableTextInteraction(q);Z.Utils.addEventListener(a,"mouseover",b);Z.Utils.addEventListener(a,"mousedown",b);Z.Utils.addEventListener(a,"mouseup",b);Z.Utils.addEventListener(a,"mouseout",b);Z.Utils.addEventListener(p,"mouseover",b);Z.Utils.addEventListener(p,"mousedown",b);Z.Utils.addEventListener(p,"mouseup",b);Z.Utils.addEventListener(p,"mouseout",b);Z.Utils.addEventListener(l,
"mouseover",b);Z.Utils.addEventListener(l,"mousedown",b);Z.Utils.addEventListener(l,"mouseup",b);Z.Utils.addEventListener(l,"mouseout",b);tbS.zIndex=(Z.baseZIndex+2).toString();Z.ViewerDisplay.appendChild(Z.ToolbarDisplay);Z.Utils.addEventListener(Z.ToolbarDisplay,"mouseover",Z.Utils.stopPropagation);d||(d=!0,Z.Utils.validateCallback("toolbarInitialized"),Z.Viewer.validateViewerReady("toolbarInitialized"))})();this.z747=function(){return d};this.show=function(a){tbS&&(tbS.display=a?"inline-block":
"none")}};
Z.NetConnector=function(){function a(a,c,e,h,l,q,t){var r=b();if(null===r)Z.Utils.showMessage(Z.Utils.getResource("z295"));else{if(e="function"===typeof c){var u=c;c=function(){window.setTimeout(Z.Utils.createCallback(null,u,r),1)};r.onreadystatechange=function(){4==r.readyState&&(r.onreadystatechange=new Function,c())}}try{r.open("GET",a,e),r.send(null)}catch(z){d(z,a,h),r=null,console.log(z)}}}function b(){var a=null;switch(Z.xmlHttpRequestSupport){case "XMLHttpRequest":a=new XMLHttpRequest;break;
case "Msxml2.XMLHTTP.6.0":a=new ActiveXObject("Msxml2.XMLHTTP.6.0");break;case "Msxml2.XMLHTTP.3.0":a=new ActiveXObject("Msxml2.XMLHTTP.3.0");break;case "Microsoft.XMLHTTP":a=new ActiveXObject("Microsoft.XMLHTTP")}return a}function d(a,b,c){1==Z.localUse&&(Z.browser==Z.browsers.CHROME||Z.browser==Z.browsers.OPERA||Z.browser==Z.browsers.IE&&11==Z.browserVersion||Z.browser==Z.browsers.SAFARI&&7<=Z.browserVersion)?Z.Utils.showMessage(Z.Utils.getResource("z288"),!1,Z.messageDurationStandard,"center"):
-1!=b.indexOf("ImageProperties.xml")?Z.Utils.showMessage(Z.Utils.getResource("z256-IMAGEXML"),!0,null,"left"):-1!=b.toLowerCase().indexOf("reply_data")?Z.Utils.showMessage(Z.Utils.getResource("z256-IMAGEOFFSET"),!1,Z.messageDurationShort,"center"):Z.Utils.showMessage(Z.Utils.getResource("z256"),!1,Z.messageDurationShort,"center")}function c(a,b){if(a)if(200!==a.status&&0!==a.status&&206!==a.status){var c=a.status,d=404==c?"Not Found":a.statusText;Z.Utils.showMessage(Z.Utils.getResource("z273")+c+
" - "+d,!1,Z.messageDurationShort,"center")}else a.responseXML&&a.responseXML.documentElement&&((c=a.responseXML)&&c.documentElement?"IMAGE_PROPERTIES"==c.documentElement.tagName?Z.Viewport.z602(c):Z.Utils.showMessage(Z.Utils.getResource("z296"),!0):Z.Utils.showMessage(Z.Utils.getResource("z293"),!0));else Z.Utils.showMessage(Z.Utils.getResource("z272"),!1,Z.messageDurationShort,"center")}function e(a,b,c,d){if(qb||a==Z.browsers.CHROME&&2>b),c=c&&e,e=!(a==Z.browsers.CHROME&&
2>b),r=h||r?"high":null,N=(document.documentElement||{}).style||{},h=!1,l=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t;z=l.shift();)if("undefined"!==typeof N[z]){h=!0;t=/webkit/i.test(z);break}var N="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||0';c[c.length]='';d.innerHTML=c.join("");for(var c=d=d.firstChild,e=d.getElementsByTagName("div");0Z.browserVersion?(b=a.screenX,d=a.screenY):"number"===typeof a.pageX?(b=a.pageX,d=a.pageY):"number"===typeof a.clientX?(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,d=a.clientY+document.body.scrollTop+document.documentElement.scrollTop):console.log(this.getResource("z284"));return new this.Point(b,d)},getMouseScroll:function(a){var b=0;"number"===typeof a.wheelDelta?b=a.wheelDelta:"number"===typeof a.detail?b=-1*a.detail:this.showMessage(this.getResource("z285"));
return b?b/Math.abs(b):0},getPageScroll:function(){var a=0,b=0,d=document.documentElement||{},c=document.body||{};if("number"===typeof window.pageXOffset)a=window.pageXOffset,b=window.pageYOffset;else if(c.scrollLeft||c.scrollTop)a=c.scrollLeft,b=c.scrollTop;else if(d.scrollLeft||d.scrollTop)a=d.scrollLeft,b=d.scrollTop;return new this.Point(a,b)},getWindowSize:function(){var a=0,b=0,d=document.documentElement||{},c=document.body||{};"number"===typeof window.innerWidth?(a=window.innerWidth,b=window.innerHeight):
d.clientWidth||d.clientHeight?(a=d.clientWidth,b=d.clientHeight):c.clientWidth||c.clientHeight?(a=c.clientWidth,b=c.clientHeight):this.showMessage(this.getResource("z286"));return new this.Point(a,b)},Button:function(a,b,d,c,e,h,r,q,z,u,N,l,t,m,H,K,p,X,rb,gb){a=Z.Utils.createContainerElement("span",a,"inline-block","absolute","hidden",r,q,z,u,m,H,K,p,X,rb,gb);if(Z.Utils.stringValidate(b)){var Va=document.createTextNode(b);a.appendChild(Z.Utils.createCenteredElement(Va));Z.Utils.setTextNodeStyle(Va,
"black","verdana","13px","none","normal","normal","normal","normal","1em","center","none")}else{d=Z.Utils.stringRemoveTrailingSlashCharacters(d);var ta=Z.Utils.createGraphicElement(d+"/"+c),Y=Z.Utils.createGraphicElement(d+"/"+e),va=Z.Utils.createGraphicElement(d+"/"+h);ta.style.width=Y.style.width=va.style.width=r;ta.style.height=Y.style.height=va.style.height=q;ta.style.position=Y.style.position=va.style.position="absolute";Z.browser==Z.browsers.FIREFOX&&3>Z.browserVersion&&(ta.style.top=Y.style.top=
va.style.top="");Y.style.visibility=va.style.visibility="hidden";ta.alt=Y.alt=va.alt="";"undefined"!==typeof t&&Z.Utils.stringValidate(t)&&(ta.alt=Z.Utils.getResource(t));a.appendChild(ta);a.appendChild(Y);a.appendChild(va)}Z.Utils.addEventListener(a,"mousedown",Z.Utils.preventDefault);Z.Utils.addEventListener(a,"mouseover",Z.Utils.stopPropagation);Z.Utils.addEventListener(a,"mousedown",Z.Utils.stopPropagation);Z.Utils.addEventListener(a,"mouseup",Z.Utils.stopPropagation);Z.Utils.addEventListener(a,
"mouseout",Z.Utils.stopPropagation);"undefined"!==typeof imageUp&&(Z.Utils.addEventListener(ta,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(Y,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(va,"contextmenu",Z.Utils.preventDefault));Z.Utils.addEventListener(a,"touchstart",Z.Utils.preventDefault);Z.Utils.addEventListener(a,"touchend",Z.Utils.preventDefault);Z.Utils.addEventListener(a,"touchcancel",Z.Utils.preventDefault);Z.Utils.stringValidate(b)||(Z.Utils.disableTextInteraction(Va),
Z.Utils.addEventListener(a,"contextmenu",Z.Utils.preventDefault));Z.tooltipsVisible&&Z.Utils.stringValidate(t)&&(a.title=Z.Utils.getResource(t));Z.Utils.setButtonHandler(a,N,l);this.elmt=a},buttonSize:function(a,b,d){var c=a.style;c.width=b+"px";c.height=d+"px";d=a.firstChild;c=a.childNodes[1];a=a.childNodes[2];d&&c&&a&&(d.style.width=c.style.width=a.style.width=b+"px",d.style.height=c.style.height=a.style.height=b+"px")},setButtonDefaults:function(a){Z.Utils.clearButtonSettings(a);Z.Utils.setButtonState(a,
"up");Z.Utils.setButtonHandler(a,"mouseover",Z.Toolbar.z457)},clearButtonSettings:function(a){var b=a.firstChild,d=a.childNodes[1],c=a.childNodes[2];b&&d&&c&&(b.style.visibility=d.style.visibility=c.style.visibility="hidden",Z.Utils.removeEventListener(b,"mouseover",Z.Toolbar.z457),Z.Utils.removeEventListener(d,"mousedown",Z.Toolbar.z457),Z.Utils.removeEventListener(d,"mouseout",Z.Toolbar.z457),Z.Utils.removeEventListener(c,"mouseup",Z.Toolbar.z457),Z.Utils.removeEventListener(a,"touchstart",Z.Toolbar.z457),
Z.Utils.removeEventListener(a,"touchend",Z.Toolbar.z457),Z.Utils.removeEventListener(a,"touchcancel",Z.Toolbar.z457));Z.Utils.removeEventListener(a,"mouseover",Z.Toolbar.z457);Z.Utils.removeEventListener(a,"mousedown",Z.Toolbar.z457);Z.Utils.removeEventListener(a,"mouseout",Z.Toolbar.z457);Z.Utils.removeEventListener(a,"mouseup",Z.Toolbar.z457)},setButtonState:function(a,b){var d="up"==b?a.firstChild:"down"==b?a.childNodes[1]:a.childNodes[2];d&&(d.style.visibility="visible")},setButtonHandler:function(a,
b,d){d="undefined"!==d?d:Z.Toolbar.z457;var c="undefined"!==b?b:"mouseover";if("mouseover"==b&&"undefined"!==typeof a.firstChild)a=a.firstChild;else if("mousedown"!=b||"undefined"===typeof a.childNodes[1])"mouseup"==b&&"undefined"!==typeof a.childNodes[2]?a=a.childNodes[2]:"mouseout"==b&&"undefined"!==typeof a.childNodes[1]&&(a=a.childNodes[1]);Z.Utils.addEventListener(a,"mousedown"==b?"touchstart":"touchend",d);Z.Utils.addEventListener(a,c,d)},createGraphicElement:function(a){var b=this.createContainerElement("img"),
d=null;Z.browser==Z.browsers.IE&&7>Z.browserVersion?(d=this.createContainerElement("span",null,"inline-block"),b.onload=function(){d.style.width=d.style.width||b.width+"px";d.style.height=d.style.height||b.height+"px";b=b.onload=null},d.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+a+'", sizingMethod="scale")'):(d=b,d.src=a);return d},Point:function(a,b){this.x="number"===typeof a?a:0;this.y="number"===typeof b?b:0},Point3D:function(a,b,d){this.x="number"===typeof a?a:0;
this.y="number"===typeof b?b:0;this.z="number"===typeof d?d:0},stringValidate:function(a){return"undefined"!==typeof a&&null!==a&&""!==a&&"null"!==a},stringRemoveTrailingSlashCharacters:function(a){return"/"==a.slice(-1,a.length)?a.slice(0,a.length-1):a},setTextNodeStyle:function(a,b,d,c,e,h,r,q,z,u,N,l){a=a.parentNode.style;a.color=b;a.fontFamily=d;a.fontSize=c;a.fontSizeAdjust=e;a.fontStyle=h;a.fontStretch=r;a.fontVariant=q;a.fontWeight=z;a.lineHeight=u;a.textAlign=N;a.textDecoration=l},arrayClear:function(a){if(a)for(;0<
a.length;)a.pop()},arrayIndexOf:function(a,b,d){d?0>d&&(d=Math.max(0,a.length+d)):d=0;for(var c=a.length;dc&&(c=Math.max(0,a.length+c)):c=0;for(var e=a.length;cc&&(c=Math.max(0,a.length+c)):c=0;for(var r=a.length;cd&&(d=0);var h=[];if(3b&&(b=0);if(!d||d>
a.length)d=a.length;if(b==d)return[];for(var c=[];b=a.length||d&&0>=d)return[];0>b&&(b=Math.abs(b)>a.length?0:a.length+b);if(!d||d+b>a.length)d=a.length-b;for(var c=[],e=b;ed?0:d);return a=Math.round(a*d)/d},configureMessageDisplay:function(){var a=parseInt(this.getResource("z437"),10),b=parseInt(this.getResource("z436"),10),d=Z.Utils.getMessageDisplayCoords("6",a,Z.viewerW,Z.viewerH),c=this.getResource("z159"),e=this.getResource("z158");Z.MessageDisplay=this.createContainerElement("div","MessageDisplay","inline-block","absolute","auto",a+"px",b+"px",d.x+"px",d.y+"px","solid","1px",c,"0px","0px","normal",null,!0);Z.ViewerDisplay.appendChild(Z.MessageDisplay);
Z.MessageDisplay.style.zIndex=(Z.baseZIndex+30).toString();d=Z.Utils.createTextElement("messageBox","",a-18+"px",b-40+"px","4px","4px","4px","solid","1px",!0,"verdana","12px","none",null,1,"auto","auto",null);Z.MessageDisplay.appendChild(d);Z.messages=document.getElementById("messageBox");b=b-18-5;a-=66;d=this.getResource("z438");e=new Z.Utils.Button("buttonMessageOk",d,null,null,null,null,"56px","18px",a+"px",b+"px","mousedown",this.messageOkButtonHandler,"z362","solid","1px",e,"0px","0px");Z.MessageDisplay.appendChild(e.elmt)},
getMessageDisplayCoords:function(a,b,d,c){return new Z.Utils.Point(40,c-120)},messageOkButtonHandler:function(a){Z.Utils.hideMessage();return!0},messageCancelButtonHandler:function(a){Z.Utils.hideMessage();return!1},showMessage:function(a,b,d,c,e,h){if(Z.messagesVisible){Z.MessageDisplay||Z.Utils.configureMessageDisplay();if("undefined"===typeof h||null===h)h="6";var r=parseInt(this.getResource("z437"),10);h=Z.Utils.getMessageDisplayCoords(h,r,Z.viewerW,Z.viewerH);Z.MessageDisplay.style.left=h.x+
"px";Z.MessageDisplay.style.top=h.y+"px";Z.MessageDisplay.messageTimer&&window.clearTimeout(MessageDisplay.messageTimer);h=!0;e&&(-1!=Z.Utils.arrayIndexOf(Z.messageDisplayList,a)?h=!1:Z.messageDisplayList[Z.messageDisplayList.length]=a);if(h&&(Z.messages&&(Z.messages.value=a),Z.MessageDisplay.style.display="inline-block","undefined"!==typeof c&&null!==c&&(a=document.getElementById("textBoxFor-messageBox"))&&(a.firstChild.style.textAlign=c),c=document.getElementById("buttonMessageOk"),a=parseInt(this.getResource("z436"),
10),"undefined"!==typeof b&&null!==b&&b?(c.style.display="inline-block",Z.MessageDisplay.style.height=a+"px"):(c.style.display="none",Z.MessageDisplay.style.height=a-22+"px"),"undefined"!==typeof d&&null!==d&&!isNaN(d))){"undefined"!==typeof Z.MessageDisplay.messageTimer&&null!==Z.MessageDisplay.messageTimer&&window.clearTimeout(Z.MessageDisplay.messageTimer);if("undefined"===typeof d||null===d)d=3E3;Z.MessageDisplay.messageTimer=window.setTimeout(Z.Utils.hideMessageTimerHandler,d)}}},getMessage:function(){var a=
"";Z.messages&&Z.Utils.stringValidate(Z.messages.value)&&(a=Z.messages.value);return a},hideMessage:function(){Z.MessageDisplay&&(Z.MessageDisplay.style.display="none")},hideMessageTimerHandler:function(){Z.MessageDisplay.messageTimer&&(window.clearTimeout(Z.MessageDisplay.messageTimer),Z.MessageDisplay.messageTimer=null);Z.Utils.hideMessage()}};