(function(){var a=function(){return this}.call();a.Z={}})(),Z.showImage=function(a,b,c){Z.Utils.z128(),Z.Utils.z127(),Z.Utils.z126(),Z.Utils.z163(),Z.pageContainerID=a,Z.imagePath=Z.Utils.z243(b),Z.parameters=Z.Utils.z233(c),Z.Utils.addEventListener(document,"DOMContentLoaded",Z.initialize),Z.Utils.addEventListener(window,"load",Z.initialize)},Z.initialize=function(){arguments.callee.done||(arguments.callee.done=!0,Z.Utils.z164(),Z.Utils.z249(Z.parameters),Z.Viewer=new Z.z122,Z.Utils.isStrVal(Z.copyrightPath)?Z.Utils.enforceCopyright():Z.Viewer.z149(),Z.debug&&Z.Utils.trace(Z.Utils.z185("z67")))},Z.z122=function(){Z.ViewerDisplay=Z.Utils.createContainerElement("div","ViewerDisplay","inline-block","relative","hidden","100%","100%","0px","0px","none","0px","transparent none","0px","0px","pointer"),Z.pageContainer=document.getElementById(Z.pageContainerID);var a=Z.Utils.z176(Z.pageContainer);Z.viewerW=parseFloat(a.width),Z.viewerH=parseFloat(a.height),isNaN(Z.viewerW)&&(Z.viewerW=Z.ViewerDisplay.clientWidth),isNaN(Z.viewerH)&&(Z.viewerH=Z.ViewerDisplay.clientHeight),Z.pageContainer.innerHTML="",Z.pageContainer.appendChild(Z.ViewerDisplay),this.z149=function(){Z.Viewport=new Z.z125},this.z148=function(){Z.toolbarVisible>0&&(Z.Toolbar=new Z.z124(Z.Viewport)),Z.navigatorVisible>0&&(Z.Navigator=new Z.z123(Z.Viewport)),Z.Navigator&&Z.Navigator.z277()},this.setSizeAndPosition=function(a,b,c,d,e){Z.viewerW=a,Z.viewerH=b,Z.ViewerDisplay.style.width=a+"px",Z.ViewerDisplay.style.height=b+"px",Z.Viewport&&Z.Viewport.z180()&&Z.Viewport.setSizeAndPosition(a,b,c,d);var f=Z.toolbarPosition==1?b-Z.toolbarH:0;Z.ToolbarDisplay&&Z.Toolbar.z180()&&(Z.Toolbar.setSizeAndPosition(a,null,null,f),Z.toolbarVisible>1&&Z.Toolbar.show(!0)),Z.NavigatorDisplay&&Z.Navigator.z180()&&(Z.Navigator.setSizeAndPosition(null,null,c,d,Z.navigatorFit),Z.navigatorVisible>1&&Z.Navigator.setVisibility(!0)),e&&Z.Viewport.z274(!0)},this.setImagePath=function(a){Z.Viewport.z293AllStop(!0),Z.imagePath=Z.Utils.z243(a);var b=new Z.z101,c=Z.Utils.z140(Z.imagePath+"/"+"ImageProperties.xml");b.loadXML(c)}},Z.z125=function(){function cd(){z=1,A=0,B=0,F=[],G=[],H=[],I=[],J=[],K=[],L=[],M=[],N=[],O=[],P=[],Q=[],R=0}function ce(){return b}function cf(a){b=a}function cg(){h=Z.Utils.createContainerElement("div","viewportContainer","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px"),Z.ViewerDisplay.appendChild(h),i=h,k=i.style,l=Z.Utils.createContainerElement(Z.useCanvas?"canvas":"div","viewportBackfillDisplay","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px"),h.appendChild(l),m=l,n=m.style,p=Z.Utils.createContainerElement(Z.useCanvas?"canvas":"div","viewportDisplay","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px"),h.appendChild(p),q=p,r=q.style,Z.Utils.isStrVal(Z.watermarkPath)&&(t=Z.Utils.createContainerElement("div","watermarkDisplay","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px"),h.appendChild(t),u=t,v=u.style),Z.Utils.isStrVal(Z.hotspotPath)&&(w=Z.Utils.createContainerElement("div","hotspotsDisplay","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px"),h.appendChild(w),x=w,y=x.style),Z.useCanvas?(o=m.getContext("2d"),s=q.getContext("2d")):(m.innerHTML="",q.innerHTML=""),u&&(u.innerHTML=""),x&&(x.innerHTML="")}function ch(a,b,c,d){c||(c=0),d||(d=0),Y=a,$=b,bb=Y*X,bc=$*X,bd=bb/2,be=bc/2,bf=-((bb-Y)/2)+c,bg=(bb-Y)/2+c,bh=-((bc-$)/2)+d,bi=(bc-$)/2+d,i.width=bb,i.height=bc,k.width=bb+"px",k.height=bc+"px",k.left=bf+"px",k.top=bh+"px",q.width=bb,q.height=bc,u&&(u.width=bb,u.height=bc,v.width=bb+"px",v.height=bc+"px"),Z.useCanvas&&(s.translate(bd,be),s.save())}function ci(){var a=Z.imageW,b=Z.imageH;while(a>c||b>c)a=a/2,b=b/2,z++;a=Z.imageW,b=Z.imageH;for(var d=z-1;d>=0;d--)H[d]=a,I[d]=b,J[d]=Math.ceil(H[d]/c),K[d]=Math.ceil(I[d]/c),L[d]=J[d]*K[d],a=a/2,b=b/2}function cj(){Z.initialX||(Z.initialX=Z.imageW/2),Z.initialY||(Z.initialY=Z.imageH/2);var a=cR();Z.fitZ&&Z.fitZ!=a&&(Z.initialZ==Z.fitZ&&(Z.initialZ=null),Z.minZ==Z.fitZ&&(Z.minZ=null),Z.maxZ==Z.fitZ&&(Z.maxZ=null),Z.fitZ=null),Z.fitZ||(Z.fitZ=a),Z.initialZ||(Z.initialZ=Z.fitZ),Z.minZ||(Z.minZ=Z.fitZ),Z.maxZ||(Z.maxZ=Z.fitZ),Z.initialZ<Z.minZ&&(Z.initialZ=Z.minZ),Z.initialZ>Z.maxZ&&(Z.initialZ=Z.maxZ)}function ck(){cl(W),z>T&&(cl(V),z>S&&cl(U)),G.sort(),G=Z.Utils.z242(G),cs(G,cJ,0)}function cl(a){var b=J[a]-1,c=K[a]-1;for(var d=0;d<=c;d++)for(var e=0;e<=b;e++)G.push(a+"-"+e+"-"+d)}function cm(a,b){var c=(new Date).getTime(),d=bf-parseFloat(k.left),e=bh-parseFloat(k.top);k.left=bf+"px",k.top=bh+"px",Z.imageX=Z.imageX+d/Z.imageZ,Z.imageY=Z.imageY+e/Z.imageZ,cr(m,B,F,!1,!1),cr(q,A,O,!1,!1),cY();var f=cw();a>0?f.right=f.left:a<0&&(f.left=f.right),b>0?f.bottom=f.top:b<0&&(f.top=f.bottom);for(var g=f.top;g<=f.bottom;g++)for(var h=f.left;h<=f.right;h++)Q.push(A+"-"+h+"-"+g);var i=Q.length;for(var j=0;j<i;j++){var l=Q[j];if(l){var n=new cG(l);cI(n,c,cK)}}i>30&&Q.splice(i-30,30)}function cn(){var a=!1;parseFloat(r.width)!=q.width&&(Z.useCanvas&&(r.width=q.width+"px",r.height=q.height+"px",r.left="0px",r.top="0px",s.restore(),s.save(),s.scale(C,C)),a=!0);if(parseFloat(k.left)!=bf||parseFloat(k.top)!=bh){var b=parseFloat(k.left)-bf,c=parseFloat(k.top)-bh;k.left=bf+"px",k.top=bh+"px",bl=parseFloat(n.left)+b,bm=parseFloat(n.top)+c,n.left=bl+"px",n.top=bm+"px";var d=cB(A,C);Z.imageX=Z.imageX-b/d,Z.imageY=Z.imageY-c/d,a=!0}a&&(cr(q,A,O,!0,!1),cY())}function co(){C!=D&&(Z.imageZ=bz),Z.imageZ<Z.minZ&&(Z.imageZ=Z.minZ);var a=d,b=z;while(a/2>=Z.imageZ)b--,a/=2;b=b-1<0?0:b-1;var c=cC(b,Z.imageZ);if(b!=A||c!=C)Z.useCanvas&&(s.restore(),s.save(),s.scale(c,c)),A=b,C=c;D=C}function cp(){B=A>S?U:A>T?V:W,E=cC(B,Z.imageZ),tierBackfillW=H[B],tierBackfillH=I[B],m.width=tierBackfillW,m.height=tierBackfillH;var a=tierBackfillW*E,b=tierBackfillH*E,c=Z.imageX*Z.imageZ,d=Z.imageY*Z.imageZ;bj=a,bk=b,bl=bd-c,bm=be-d,Z.useCanvas&&(n.width=bj+"px",n.height=bk+"px"),n.left=bl+"px",n.top=bm+"px"}function cq(){var a=cw();for(var b=a.top,c=a.bottom;b<=c;b++)for(var d=a.left,e=a.right;d<=e;d++)N.push(A+"-"+d+"-"+b);P.sort(),N.sort(),P=Z.Utils.z242(P),N=Z.Utils.z242(N);var f=Z.Utils.intersect(N,P);N=Z.Utils.subtract(N,P),R=tilesLoadingNamesLength=N.length,Z.ToolbarDisplay&&Z.Toolbar.z180()&&Z.Toolbar.showProgress(R,tilesLoadingNamesLength),P=Z.Utils.subtract(P,f),P=P.concat(f),tilesLoadingNamesLength!=0&&(M=[])}function cr(a,b,c,d,e){e||ct(a);if(d){var f=Math.floor(c.length/2);for(var g=f,h=c.length;g<h;g++){var i=c[g];i&&i.t==b&&cM(a,b,i);if(c.length-g-1!=g){var i=c[c.length-g-1];i&&i.t==b&&cM(a,b,i)}}}else for(var g=0,h=c.length;g<h;g++){var i=c[g];i&&i.t==b&&cM(a,b,i)}}function cs(a,b,c){if(a.length>0){var d=(new Date).getTime();if(c){var e=Math.floor(a.length/2);for(var f=e,g=a.length;f<g;f++){var h=a[f];if(h){var i=new cG(h);cI(i,d,b)}if(a.length-f-1!=f){var h=a[a.length-f-1];if(h){var i=new cG(h);cI(i,d,b)}}}}else for(var f=0,g=a.length;f<g;f++){var h=a[f];if(h){var i=new cG(h);cI(i,d,b)}}}}function ct(a){if(a)if(Z.useCanvas&&a.tagName=="CANVAS"){var b=a.getContext("2d");b.save(),b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,b.canvas.width,b.canvas.height),b.restore()}else if(a.hasChildNodes())while(a.childNodes.length>=1)a.removeChild(a.firstChild)}function cu(){if(Z.ToolbarDisplay&&Z.Toolbar.z180()){var a=cB(A,C);Z.Toolbar.z266(a)}}function cv(){Z.Navigator&&Z.Navigator.z180()&&Z.Navigator.z268()}function cw(){return new cz(cx(),A)}function cx(){var a=parseFloat(k.left)-bf,b=parseFloat(k.top)-bh;if(Z.useCanvas){var c=parseFloat(k.width)/i.width;a/=c,b/=c}var d=cB(A,C);return a!=0&&(a/=d),b!=0&&(b/=d),new cA(Z.imageX-a,Z.imageY-b,-(Y/2),Y/2,-($/2),$/2,d)}function cy(){var a=parseFloat(k.left)-bf,b=parseFloat(k.top)-bh;if(Z.useCanvas){var c=parseFloat(k.width)/i.width;a/=c,b/=c}var d=cB(A,C);return a!=0&&(a/=d),b!=0&&(b/=d),new cA(Z.imageX-a,Z.imageY-b,-(bb/2),bb/2,-(bc/2),bc/2,d)}function cz(a,b){var d=cB(b,1),e=Math.floor(a.left*d/c),f=Math.floor(a.right*d/c),g=Math.floor(a.top*d/c),h=Math.floor(a.bottom*d/c);e<0&&(e=0),f>J[A]-1&&(f=J[A]-1),g<0&&(g=0),h>K[A]-1&&(h=K[A]-1),this.left=e,this.right=f,this.top=g,this.bottom=h}function cA(a,b,c,d,e,f,g){this.left=a+c/g,this.right=a+d/g,this.top=b+e/g,this.bottom=b+f/g}function cB(a,b){var c=b*(H[a]/Z.imageW);return c}function cC(a,b){var c=b/(H[a]/Z.imageW);return c}function cD(a,b){var c=a-Z.Utils.z174(Z.ViewerDisplay).x,d=b-Z.Utils.z174(Z.ViewerDisplay).y;return new Z.Utils.Point(c,d)}function cE(a,b){var c=parseFloat(k.left)+bd,d=parseFloat(k.top)+be,e=a-c,f=b-d,g=e/Z.imageZ,h=f/Z.imageZ,i=Z.imageX+g,j=Z.imageY+h;return new Z.Utils.Point(i,j)}function cF(a,b){var c=Z.imageX-a,d=Z.imageY-b,e=c*Z.imageZ,f=d*Z.imageZ,g=parseFloat(k.left)+bd,h=parseFloat(k.top)+be,i=g-e,j=h-f;return new Z.Utils.Point(i,j)}function cG(a){this.name=a,this.t=parseInt(a.substring(0,a.indexOf("-")),10),this.c=parseInt(a.substring(a.indexOf("-")+1,a.lastIndexOf("-")),10),this.r=parseInt(a.substring(a.lastIndexOf("-")+1),10),this.x=Math.floor(this.c*c),this.y=Math.floor(this.r*c),this.image=null,this.alpha=0,this.url=Z.Utils.z140(cH(this.t,this.c,this.r,this.name)),this.elmt=null,this.style=null}function cH(a,b,d,e){var f=d*J[a]+b;for(var g=0;g<a;g++)f+=L[g];var h=Math.floor(f/c),i=Z.imagePath+"/"+"TileGroup"+h+"/"+e+".jpg";return i}function cI(a,b,c){a.loading=cb.z212Image(a.url,Z.Utils.createCallback(null,c,a,b))}function cJ(a,b,c){if(a&&b&&c){a.image=c;var d=a.name;F.push(a);var e=G.indexOf(d);e!=-1&&G.splice(e,1),a.alpha=1,a.t==B&&cM(m,B,a)}}function cK(a,b,c){if(a&&b&&c){a.image=c;var d=a.name;cM(q,A,a)}}function cL(a,b,c){if(a&&b&&c){a.image=c;var d=a.name;O.push(a),P.push(d);var e=N.indexOf(d);e!=-1&&N.splice(e,1),M.push(a),bF||(bF=window.setInterval(cP,50));var g=N.length;g==0&&(Z.useCanvas&&cr(q,A,O,!0,!1),P.length>f&&cQ(),R=0),Z.ToolbarDisplay&&Z.Toolbar.z180()&&Z.Toolbar.showProgress(R,g)}}function cM(a,b,c){var d=c.x,e=c.y,f=cB(b,1);if(Z.useCanvas)a==q&&(d-=Z.imageX*f,e-=Z.imageY*f),cN(a,c,d,e);else{var g;a==q?(d-=Z.imageX*f-bd/C,e-=Z.imageY*f-be/C,g=C):g=E,cO(a,c,d,e,g)}}function cN(a,b,c,d){var e=a.getContext("2d");Z.alphaSupported&&b.alpha<1?(e.globalAlpha=b.alpha,e.drawImage(b.image,c,d),e.globalAlpha=1):e.drawImage(b.image,c,d)}function cO(a,b,c,d,e){b.elmt||(b.elmt=Z.Utils.createContainerElement("img"),b.elmt.onmousedown=Z.Utils.preventDefault,Z.Utils.addEventListener(b.elmt,"contextmenu",Z.Utils.preventDefault),b.elmt.src=b.url,b.style=b.elmt.style,b.style.position="absolute",Z.Utils.renderQuality(b,Z.renderQuality),Z.cssTransformsSupported&&(b.style[Z.cssTransformProperty+"Origin"]="0px 0px")),b.elmt.parentNode!=a&&a.appendChild(b.elmt);var f=b.style;f.display="none",Z.cssTransformsSupported?f[Z.cssTransformProperty]=["matrix(",(b.image.width/b.elmt.width*e).toFixed(8),",0,0,",(b.image.height/b.elmt.height*e).toFixed(8),",",(c*e).toFixed(8),Z.cssTransformNoUnits?",":"px,",(d*e).toFixed(8),Z.cssTransformNoUnits?")":"px)"].join(""):(f.width=b.image.width*e+"px",f.height=b.image.height*e+"px",f.left=c*e+"px",f.top=d*e+"px"),f.display="inline-block",Z.Utils.setOpacity(b,b.alpha)}function cP(a){var b=M.length,c=0;for(var d=0;d<b;d++){var e=M[d];e.t==A&&(e.alpha<1?(e.alpha+=bE,e.alpha>1&&(e.alpha=1),cM(q,A,e)):(c++,c>=b&&(window.clearInterval(bF),bF=null)))}}function cQ(){var a=P.length-f;for(var b=0;b<a;b++)j=P.indexOf(O[b].name),j!=-1&&P.splice(j,1),O.splice(b,1)}function cR(){return Z.imageW/Z.imageH>Y/$?Y/Z.imageW:$/Z.imageH}function cS(a,b){if(Z.constrainPan){var c=new cA(a,b,-(Y/2),Y/2,-($/2),$/2,Z.imageZ),d=c.left,e=c.right,f=c.top,g=c.bottom;Z.imageW*Z.imageZ>Y?d<0?a=Y/2/Z.imageZ:e>Z.imageW&&(a=Z.imageW-Y/2/Z.imageZ):a=Z.imageW/2,Z.imageH*Z.imageZ>$?f<0?b=$/2/Z.imageZ:g>Z.imageH&&(b=Z.imageH-$/2/Z.imageZ):b=Z.imageH/2}return new Z.Utils.Point(a,b)}function cT(a,b){if(Z.constrainPan){var c=cB(A,C),d=Z.imageX,e=Z.imageY,f=new cA(d,e,-(Y/2),Y/2,-($/2),$/2,c),g=f.left,h=f.right,i=f.top,j=f.bottom;Z.imageW*c>Y?g<0?a+=g*c:h>Z.imageW&&(a-=(Z.imageW-h)*c):a+=(d-Z.imageW/2)*c,Z.imageH*c>$?i<0?b+=i*c:j>Z.imageH&&(b-=(Z.imageH-j)*c):b+=(e-Z.imageH/2)*c}return new Z.Utils.Point(a,b)}function cU(a,b){if(Z.constrainPan){var c=Z.imageX-(a-bf)/Z.imageZ,d=Z.imageY-(b-bh)/Z.imageZ,e=new cA(c,d,-(Y/2),Y/2,-($/2),$/2,Z.imageZ),f=e.left,g=e.right,h=e.top,i=e.bottom;Z.imageW*Z.imageZ>Y?f<0?a+=f*Z.imageZ:g>Z.imageW&&(a-=(Z.imageW-g)*Z.imageZ):a+=(c-Z.imageW/2)*Z.imageZ,Z.imageH*Z.imageZ>$?h<0?b+=h*Z.imageZ:i>Z.imageH&&(b-=(Z.imageH-i)*Z.imageZ):b+=(d-Z.imageH/2)*Z.imageZ}return new Z.Utils.Point(a,b)}function cV(a){return a>Z.maxZ?a=Z.maxZ:a<Z.minZ&&(a=Z.minZ),a}function cW(){bZ=new Image,b$=parseFloat(Z.Utils.z185("z73")),bZ.url=Z.watermarkPath,bZ.onload=cX,bZ.onerror=cZ,bZ.src=Z.watermarkPath}function cX(){if(u){var a=parseFloat(Z.Utils.z185("z74")),b=parseFloat(Z.Utils.z185("z76")),c=parseFloat(Z.Utils.z185("z75")),d=cB(A,C),e=(Z.imageW*d-u.width)/2,f=(Z.imageH*d-u.height)/2,g=(Z.imageW/2-Z.imageX)*d,h=(Z.imageH/2-Z.imageY)*d,i=d<a?a:d,j=Math.round(Z.imageW/b),k=Math.round(Z.imageH/c),l=cy();wiScaledW=bZ.width*i,wiScaledH=bZ.height*i;var m=0,n=0;for(var o=1;o<=j;o++)for(var p=1;p<=k;p++){var q=Math.round(Z.imageW/(j+1)*o),r=Math.round(Z.imageH/(k+1)*p);if(q>l.left&&q<l.right&&r>l.top&&r<l.bottom){var s=Math.round(q*d-wiScaledW/2-e+g),t=Math.round(r*d-wiScaledH/2-f+h);if(Z.imageW>4e3){var v=m+100,w=n+100;if(s<v&&t<w)continue;m=s,n=t}var x=bZ.cloneNode(!0);Z.Utils.setOpacity(x,b$),x.width=wiScaledW,x.height=wiScaledH;var y=Z.Utils.createContainerElement("div","wiC","inline-block","absolute","hidden",wiScaledW+"px",wiScaledH+"px",s+"px",t+"px","none","0px","transparent none","0px","0px");y.appendChild(x),u.appendChild(y),Z.Utils.addEventListener(x,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(x,"mousedown",Z.Utils.preventDefault)}}}}function cY(){u&&(ct(u),cX())}function cZ(){Z.Utils.z255(Z.Utils.z185("z97")+this.url)}function c$(b,c,d){a.z293AllStop(),Z.imageZ=cV(d);var e=cS(b,c);Z.imageX=e.x,Z.imageY=e.y,a.z274(!0)}function c_(){if(bB){db(bv,bw,bx,!1);if(bv!==0||bw!==0||bx!==0)bB=window.setTimeout(c_,bA)}}function da(){bO<bI?(db(bJ,bK,bL,!0),bO++,bN=window.setTimeout(da,bH)):(C=bO*bL+cC(A,Z.imageZ),a.z293AllStop(),a.z273(!0))}function db(a,b,d,e){var f,g,h,i=!1,j=!1,l=!1;if(d!=0){var m=C*(1+d);e&&(m=C+d);var n=cB(A,m);h=cV(n);if(h!=Z.imageZ){var o=de(h);o&&(!e,j=!0,l=!0)}}if(a!=0||b!=0){var p=parseFloat(k.left)+a,s=parseFloat(k.top)+b,t=cU(p,s);f=t.x,g=t.y,k.left=f+"px",k.top=g+"px",i=!0,l=!0}var u=by%2==0;u&&(cY(),j&&cu(),l&&cv());if(i)var v=Z.useCanvas?parseFloat(r.width)/q.width:1,w=Math.round(c/bu*C*v),x=by%w==0&&by!=0}function dc(){bB&&(window.clearTimeout(bB),bB=null),bv=0,bw=0,bx=0,by=0}function dd(){bN&&(window.clearTimeout(bN),bN=null)}function de(a){var b=!1,c=cC(A,a);if(c!=C){C=c,E=cC(B,a);var d=c/D,e=bb*d,f=bc*d,g=(bb-e)/2,h=(bc-f)/2;if(c<D){var i=cT(g,h);k.left=bf+i.x-g+"px",k.top=bh+i.y-h+"px"}if(Z.useCanvas)r.width=e+"px",r.height=f+"px",r.left=g+"px",r.top=h+"px",e=bj*d,f=bk*d,g=bl+Z.imageX*(1-d)*Z.imageZ,h=bm+Z.imageY*(1-d)*Z.imageZ,n.width=e+"px",n.height=f+"px",n.left=g+"px",n.top=h+"px";else{cr(q,A,O,!0,!1),tierBackfillW=H[B],tierBackfillH=I[B],m.width=tierBackfillW,m.height=tierBackfillH;var j=tierBackfillW*E,l=tierBackfillH*E,o=Z.imageX*a,p=Z.imageY*a;bl=bd-o,bm=be-p,n.left=bl+"px",n.top=bm+"px",cr(m,B,F,!1,!1)}b=!0}return b}function df(a){a?(bX||dg(),bX.elmt.style.display="inline-block"):bX&&(bX.elmt.style.display="none")}function dg(){var a=Z.Utils.z185("z21"),b=34,c=34,d=20,e=parseFloat(Z.viewerW)-(b+d),f=parseFloat(Z.viewerH)-(c+d),g=Z.Utils.z185("z20");bX=new Z.Utils.Button("buttonFPCancel",a,null,null,null,null,b+"px",c+"px",e+"px",f+"px","mousedown",dh,"z102","solid","1px",g,"0px","0px"),Z.ViewerDisplay.appendChild(bX.elmt)}function dh(){a.toggleFullPageView(!1)}function di(){Z.Utils.addEventListener(document,"keydown",dz),Z.Utils.addEventListener(document,"keyup",dA),Z.mobileDevice?(Z.Utils.addEventListener(i,"touchstart",dp),Z.Utils.addEventListener(i,"touchmove",dq),Z.Utils.addEventListener(i,"touchend",dr),Z.Utils.addEventListener(i,"touchcancel",ds),Z.Utils.addEventListener(i,"gesturestart",dt),Z.Utils.addEventListener(i,"gesturechange",du),Z.Utils.addEventListener(i,"gestureend",dv),document.getElementsByTagName("body")[0].onorientationchange=dy):(Z.Utils.addEventListener(Z.ViewerDisplay,"mouseover",dj),Z.Utils.addEventListener(Z.ViewerDisplay,"mouseout",dn),Z.Utils.addEventListener(Z.ViewerDisplay,"mousemove",Z.Utils.preventDefault),Z.Utils.addEventListener(i,"mousedown",dk),Z.Utils.addEventListener(i,"mousemove",Z.Utils.preventDefault)),Z.Utils.addEventListener(m,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(q,"contextmenu",Z.Utils.preventDefault),u&&Z.Utils.addEventListener(u,"contextmenu",Z.Utils.preventDefault),x&&Z.Utils.addEventListener(x,"contextmenu",Z.Utils.preventDefault)}function dj(a){var b=Z.Utils.z225(Z.Utils.target(Z.Utils.event(a))),c=Z.Utils.z225(Z.Utils.relatedTarget(a));if(!b||!c)Z.ToolbarDisplay&&Z.toolbarVisible>1&&Z.Toolbar.show(!0),Z.NavigatorDisplay&&Z.navigatorVisible>1&&Z.Navigator.setVisibility(!0),bo=null}function dk(a){if(Z.Utils.isRightMouseButton(a))return;bn=!0;var b=Z.Utils.z181(a);return bP=new Z.Utils.Point(b.x,b.y),i.mouseXPrior=b.x,i.mouseYPrior=b.y,Z.Utils.addEventListener(document,"mousemove",dl),Z.Utils.addEventListener(i,"mouseup",dm),Z.Utils.addEventListener(document,"mouseup",dm),!1}function dl(b){if(!Z.mousePan)return;var b=Z.Utils.event(b),c=Z.Utils.z181(b),d=c.x-i.mouseXPrior,e=c.y-i.mouseYPrior;if(!isNaN(d)&&!isNaN(e)){var f=parseFloat(k.left)+d,g=parseFloat(k.top)+e,h=cU(f,g);k.left=h.x+"px",k.top=h.y+"px",i.mouseXPrior=c.x,i.mouseYPrior=c.y;if(Z.Navigator){var j=a.z141(h);Z.Navigator.z263RectanglePosition(j)}}return!1}function dm(b){bn=!1,document.mousemove=null,document.mouseup=null,Z.Utils.removeEventListener(document,"mousemove",dl),Z.Utils.removeEventListener(i,"mouseup",dm),Z.Utils.removeEventListener(document,"mouseup",dm);var b=Z.Utils.event(b),c=Z.Utils.z181(b),d;bo?d=bo:d=new Z.Utils.Point(c.x,c.y);var e=Math.sqrt(Math.pow(bP.x-d.x,2)+Math.pow(bP.y-d.y,2));if(e<4){var f=a.z173(b,d,A,C);Z.clickZoom?a.z293ToView(f.x,f.y,f.z):Z.clickPan&&a.z293ToView(f.x,f.y,Z.imageZ)}else Z.mousePan&&a.z274();bo&&(Z.ToolbarDisplay&&Z.toolbarVisible>1&&Z.Toolbar.show(!1),Z.NavigatorDisplay&&Z.navigatorVisible>1&&Z.Navigator.setVisibility(!1))}function dn(a){var b=Z.Utils.z225(Z.Utils.target(a)),c=Z.Utils.z225(Z.Utils.relatedTarget(Z.Utils.event(a)));if(!b||!c)if(!bn)Z.ToolbarDisplay&&Z.toolbarVisible>1&&Z.Toolbar.show(!1),Z.NavigatorDisplay&&Z.navigatorVisible>1&&Z.Navigator.setVisibility(!1);else{var d=Z.Utils.z181(a);bo=new Z.Utils.Point(d.x,d.y)}}function dp(a){var b=Z.Utils.z178(a);if(b&&!bp){br=!1;var c=b.target,d=new Z.Utils.Point(b.pageX,b.pageY);bP=new Z.Utils.Point(d.x,d.y),i.mouseXPrior=d.x,i.mouseYPrior=d.y}}function dq(b){b.preventDefault();if(!Z.mousePan)return;var c=Z.Utils.z178(b);if(c&&!bp&&!br){var d=c.target,e=new Z.Utils.Point(c.pageX,c.pageY),f=e.x-i.mouseXPrior,g=e.y-i.mouseYPrior;if(!isNaN(f)&&!isNaN(g)){var h=parseFloat(k.left)+f,j=parseFloat(k.top)+g,l=cU(h,j);k.left=l.x+"px",k.top=l.y+"px",i.mouseXPrior=e.x,i.mouseYPrior=e.y;if(Z.Navigator){var m=a.z141(l);Z.Navigator.z263RectanglePosition(m)}}}return!1}function dr(b){if(!bp&&!br){var c=!1,d=Z.Utils.z178(b);if(d){var e=d.target,f=new Z.Utils.Point(d.pageX,d.pageY),g=new Z.Utils.Point(f.x,f.y),h=Math.sqrt(Math.pow(bP.x-g.x,2)+Math.pow(bP.y-g.y,2));if(h<4){var i=a.z173(b,g,A,C);Z.clickZoom?a.z293ToView(i.x,i.y,i.z):Z.clickPan&&a.z293ToView(i.x,i.y,Z.imageZ)}else c=!0}else c=!0;c&&Z.mousePan&&a.z274()}}function ds(b){if(!bp&&!br){var c=!1,d=Z.Utils.z178(b);if(d){var e=d.target,f=new Z.Utils.Point(d.pageX,d.pageY),g=new Z.Utils.Point(f.x,f.y),h=Math.sqrt(Math.pow(bP.x-g.x,2)+Math.pow(bP.y-g.y,2));if(h<4){var i=a.z173(b,g,A,C);Z.clickZoom?a.z293ToView(i.x,i.y,i.z):Z.clickPan&&a.z293ToView(i.x,i.y,Z.imageZ)}else c=!0}else c=!0;c&&Z.mousePan&&a.z274()}}function dt(a){var a=Z.Utils.event(a);du(a),bp||(bp=window.setInterval(dw,bs))}function du(a){var a=Z.Utils.event(a);a.preventDefault(),bq=Math.round(a.scale*100)/100}function dv(b){bp&&(window.clearInterval(bp),br=!0,bp=null),Z.mousePan&&a.z274()}function dw(a){if(!Z.mousePan)return;var b=dx(A,D,bq),c=cV(b);b!=Z.imageZ&&de(c)}function dx(a,b,c){var d=b*c,e=cB(a,d);return e}function dy(b){Z.fullPage&&(Z.ToolbarDisplay&&Z.toolbarVisible>1&&Z.Toolbar.show(!1),Z.NavigatorDisplay&&Z.navigatorVisible>1&&Z.Navigator.setVisibility(!1),a.toggleFullPageView(!1),a.toggleFullPageView(!0),Z.ToolbarDisplay&&Z.toolbarVisible>1&&Z.Toolbar.show(!0),Z.NavigatorDisplay&&Z.navigatorVisible>1&&Z.Navigator.setVisibility(!0))}function dz(b){if(!Z.keys)return;var b=Z.Utils.event(b);switch(b.keyCode){case 90:a.zoom("out");break;case 17:a.zoom("out");break;case 65:a.zoom("in");break;case 16:a.zoom("in");break;case 37:a.pan("left");break;case 38:a.pan("up");break;case 40:a.pan("down");break;case 39:a.pan("right");break;case 27:Z.fullPage?a.toggleFullPageView(!1):a.reset()}}function dA(b){if(!Z.keys)return;var b=Z.Utils.event(b),c=b.keyCode;c==90||c==17||c==65||c==16?a.zoom("stop"):c==37||c==39?a.pan("horizontalStop"):(c==38||c==40)&&a.pan("verticalStop")}var a=this,b=!1,c=parseInt(Z.Utils.z185("z61"),10),d=parseFloat(Z.Utils.z185("z59")),e=d/2,f=parseInt(Z.Utils.z185("z62"),10),g=Z.toolbarVisible==1?Z.toolbarH:0,h,i,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;cg();var z=1,A=0,B=0,C,D,E,F=[],G=[],H=[],I=[],J=[],K=[],L=[],M=[],N=[],O=[],P=[],Q=[],R=0,S=parseInt(Z.Utils.z185("z7"),10),T=parseInt(Z.Utils.z185("z6"),10),U=parseInt(Z.Utils.z185("z5"),10),V=parseInt(Z.Utils.z185("z4"),10),W=parseInt(Z.Utils.z185("z3"),10),X=parseInt(Z.Utils.z185("z45"),10),Y,$,_,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm;Y=Z.viewerW,$=Z.viewerH,_=ba=0,$-=g,Z.toolbarPosition==0&&(ba+=g);var bn=!1,bo=null,bp=null,bq=null,br=!1,bs=parseInt(Z.Utils.z185("z24"),10),bt=parseFloat(Z.Utils.z185("z81"))*Z.zoomSpeed;Z.mobileDevice&&(bt/=2);var bu=Math.round(parseFloat(Z.Utils.z185("z47"))*Z.panSpeed),bv=0,bw=0,bx=0,by=0,bz=0,bA=parseInt(Z.Utils.z185("z77"),10),bB,bC,bD,bE=parseFloat(Z.Utils.z185("z19"))*Z.fadeInSpeed,bF,bG=parseInt(Z.Utils.z185("z78"),10),bH=parseInt(Z.Utils.z185("z79"),10),bI=bG/bH,bJ,bK,bL,bM,bN,bO,bP,bQ,bR,bS,bT,bU,bV,bW,bX,bY;if(Z.Utils.isStrVal(Z.watermarkPath))var bZ,b$,b_=[],ca=[];ch(Y,$,_,ba);var cb=new Z.z101,cc=Z.Utils.z140(Z.imagePath+"/"+"ImageProperties.xml");cb.loadXML(cc),this.z206=function(a,b){Z.imageW=a,Z.imageH=b,ci(),cj(),E=cC(B,Z.initialZ),C=cC(A,Z.initialZ),D=C,Z.useCanvas&&s.scale(C,C),u&&cW(),ck(),c$(Z.initialX,Z.initialY,Z.initialZ),di(),cf(!0),Z.Viewer.z148()},this.rez206=function(a,b){cf(!1),cd(),Z.imageW=a,Z.imageH=b,ci(),cj(),E=cC(B,Z.initialZ),C=cC(A,Z.initialZ),D=C,Z.useCanvas&&(s.restore(),s.scale(C,C)),ck(),ch(Y,$,_,ba),m&&ct(m),q&&ct(q),u&&ct(u),c$(Z.initialX,Z.initialY,Z.initialZ),cf(!0),Z.navigatorVisible>0&&Z.Navigator.setImagePath(Z.imagePath)},this.z180=function(){return ce()},this.z201=function(){return bb},this.z179=function(){return bc},this.z186=function(){return z},this.z195=function(){return c},this.z187=function(){return A},this.z189=function(){return C},this.z189AsZoom=function(){var a=cB(A,C);return a},this.z194=function(){return d},this.z193=function(){return e},this.z197=function(){return f},this.z192=function(){return H.join(",")},this.z188=function(){return I.join(", ")},this.z191=function(){return L.join(", ")},this.z196=function(){var a=N.join(", ")==""?"Current view loading complete":N.join(", ");return a},this.setSizeAndPosition=function(a,b,c,d){ch(a,b,c,d)},this.z274=function(a){if(C!=D||Z.imageZ!=bz||parseFloat(k.left)!=bf||parseFloat(k.top)!=bh||a){cn(),bz=cB(A,C);var c=!1;if(C!=D||Z.imageZ!=bz||!b||a)Z.imageZ<bz&&!a&&(c=!0),co(),cp(),cr(m,B,F,!1,!1);cq(),cr(q,A,O,!0,c),cs(N,cL,0),cu(),cv()}},this.setView=function(a,b,c){if(a==undefined||a==null)a=Z.imageW/2;if(b==undefined||b==null)b=Z.imageH/2;c==undefined||c==null?c=Z.fitZ:c>1&&(c=c/100),c$(a,b,c)},this.zoom=function(b){switch(b){case"out":bx>=0&&(bx-=bt);break;case"in":bx<=0&&(bx+=bt);break;case"stop":bx=0}Z.zooming=bx==0?"stop":bx>0?"in":"out",bx!=0?bB||((bx<0&&Z.imageZ>Z.minZ||bx>0&&Z.imageZ<Z.maxZ)&&a.z273(!1),Z.useCanvas||ct(u),bB=window.setTimeout(c_,bA)):(a.z293AllStop(),a.z273(!0))},this.pan=function(b){switch(b){case"left":bv<=0&&(bv+=bu);break;case"up":bw<=0&&(bw+=bu);break;case"down":bw>=0&&(bw-=bu);break;case"right":bv>=0&&(bv-=bu);break;case"horizontalStop":bv=0;break;case"verticalStop":bw=0;break;case"stop":bv=0,bw=0}Z.panningX=bv==0?"stop":bv>0?"left":"right",Z.panningY=bw==0?"stop":bw>0?"up":"down",bC=Z.imageX*cB(A,1),bD=Z.imageY*cB(A,1),bv!=0||bw!=0?bB||(a.z273(!0),Z.useCanvas||ct(u),bB=window.setTimeout(c_,bA)):(a.z293AllStop(),a.z273(!0))},this.z293ToView=function(b,c,d){a.z293AllStop();var e=cF(b,c),f=bd-e.x,g=be-e.y,h=cC(A,d),i=cC(B,d),j=parseFloat(k.left)+f,l=parseFloat(k.top)+g,m=h-C,n=i-E;bJ=j/bI,bK=l/bI,bL=m/bI,bM=n/bI,a.z273(!1),bO=0,bN=window.setTimeout(da,bH)},this.z293AllStop=function(b){dc(),dd(),b||a.z274()},this.z245=function(a){var b=de(a);b&&(cY(),cv())},this.reset=function(){a.z293ToView(Z.initialX,Z.initialY,Z.initialZ)},this.toggleFullPageViewExternal=function(){bY=!0,a.toggleFullPageView()},this.toggleFullPageView=function(b){a.z293AllStop(),Z.fullPage=b?b:!Z.fullPage;var c=document.body,d=c.style,e=document.documentElement.style,f=Z.ViewerDisplay.style,g=null,h=null;if(Z.fullPage){bQ=d.width,bR=d.height,bS=d.overflow,bT=e.overflow,bU=f.backgroundColor,bV=f.position,bW=f.zIndex;var i;Z.mobileDevice?(i=Z.Utils.z201indowSize(),d.width=i.x,d.height=i.y):(d.width="100%",d.height="100%"),d.overflow="hidden",e.overflow="hidden",f.backgroundColor=Z.Utils.z185("z22"),f.position="fixed",f.zIndex="99999999",i=Z.Utils.z201indowSize(),g=i.x,h=i.y}else{d.width=bQ,d.height=bR,d.overflow=bS,e.overflow=bT,f.backgroundColor=bU,f.position="relative",f.zIndex=bW;var j=Z.Utils.z176(Z.pageContainer);g=parseFloat(j.width),h=parseFloat(j.height),isNaN(g)&&(g=Z.ViewerDisplay.clientWidth),isNaN(h)&&(h=Z.ViewerDisplay.clientHeight),bY=!1}Z.viewerW=g,Z.viewerH=h,ch(g,h),df(bY);if(Z.ToolbarDisplay&&Z.Toolbar.z180()){Z.toolbarCurrentW=Z.toolbarW==-1?g:Z.toolbarW;var l=Z.toolbarPosition==1?Z.viewerH-Z.toolbarH:0;Z.Toolbar.setSizeAndPosition(Z.toolbarCurrentW,null,null,l)}Z.NavigatorDisplay&&Z.Navigator.z180()&&Z.Navigator.setSizeAndPosition(Z.navigatorW,Z.navigatorH,Z.navigatorL-1,Z.navigatorT-1),cj(),Z.imageZ=cV(Z.imageZ);if(Z.constrainPan){var m=parseFloat(k.left),n=parseFloat(k.top),o=cU(m,n);k.left=o.x+"px",k.top=o.y+"px"}a.z274(!0)},this.z271=function(){var a=Z.ViewerDisplay.firstChild.childNodes[0].style;a.display=a.display=="none"?"inline-block":"none"},this.z272=function(){var a=Z.ViewerDisplay.firstChild.childNodes[1].style;a.display=a.display=="none"?"inline-block":"none"},this.z273=function(a){if(v){var b=a?a:v.display!="inline-block";v.display=b?"inline-block":"none"}},this.toggleConstrainPan=function(){Z.constrainPan=!Z.constrainPan;if(Z.constrainPan){var b=parseFloat(r.left),c=parseFloat(r.top),d=cU(b,c);k.left=d.x+"px",k.top=d.y+"px",a.z274()}},this.z173=function(a,b,c,d){var e=parseFloat(Z.Utils.z185("z10TIERSKIPTHRESHOLD")),f=cD(b.x,b.y),g=cE(f.x,f.y),h=cB(c,d);return a.altKey?(d>1+e?h=cB(c,1):c>0&&(h=cB(c-1,1)),h-Z.fitZ<e&&(h=Z.fitZ)):d<1-e?h=cB(c,1):c<z-1&&(h=cB(c+1,1)),new Z.Utils.Point3D(g.x,g.y,h)},this.z267=function(a,b){var c=-(a-Z.imageX),d=-(b-Z.imageY),e=c*Z.imageZ,f=d*Z.imageZ,g=e+bf,h=f+bh,i=cU(g,h);k.left=i.x+"px",k.top=i.y+"px"},this.z141=function(a){if(!a)var a=new Z.Utils.Point(parseFloat(k.left),parseFloat(k.top));var b=a.x-bf,c=a.y-bh,d=b/Z.imageZ,e=c/Z.imageZ,f=Z.imageX-d,g=Z.imageY-e;return new Z.Utils.Point(f,g)}},Z.z124=function(a){function u(){window.clearInterval(q),q=null;var a=document.getElementById("progressTextBox").firstChild.firstChild.firstChild.firstChild;a&&(a.nodeValue="")}function v(){return c}function w(a){c=a}function x(a,b,c,d){a||(a=Z.toolbarVisible>0?Z.toolbarCurrentW:0),b||(b=Z.toolbarVisible>0?f:0),c||(c=0),d||(d=Z.toolbarPosition==1?Z.viewerH-f:0);var e=Z.ToolbarDisplay.style;e.width=a+"px",e.height=b+"px",e.left=c+"px",e.top=d+"px",y(a,b)}function y(a,b){var c=a,d=b,e=toolbarSkinSizes[2],f=toolbarSkinSizes[3],g=toolbarSkinSizes[4],h=toolbarSkinSizes[5],i=toolbarSkinSizes[6],j=toolbarSkinSizes[7],k=toolbarSkinSizes[8],l=toolbarSkinSizes[9],m=toolbarSkinSizes[10],n=toolbarSkinSizes[11],o=toolbarSkinSizes[12],p=toolbarSkinSizes[13],q=toolbarSkinSizes[14],u=toolbarSkinSizes[15],v=0,w=(d-f)/2+1,x=(d-h)/2,y=(d-j)/2,z=y*1.3,A=y+4,B=y+2,C=Z.logoVisible==1?0:k/2,D=Z.logoVisible==1?0:k/2,E=k-(i-g),F=Z.fullPageVisible?8:7,G=20,H=F*k+2*E;Z.sliderVisible&&(H+=p),r=s=t=!1;var I=Z.logoVisible==1?e+2:0,J=Z.toolbarVisible!=0&&Z.toolbarVisible!=1?k:0,K=I+J,L=K+G+H+G+q;L>c&&(r=!0,L-p>c&&(s=!0,L-p-q>c&&(t=!0,K=0),q=0),H-=p);var M=K+(c-q-K-H)/2,N=document.getElementById("background");N.style.width=c+"px",N.firstChild.style.width=c+400+"px",N.style.height=d+"px",N.firstChild.style.height=d+"px";var O=document.getElementById("buttonContainer");O.style.width=H+G*2+"px",O.style.height=d+"px",O.style.left=M-G+"px";var P=document.getElementById("buttonBackground");Z.Utils.z203(P,parseFloat(O.style.width),parseFloat(O.style.height)),P.style.left="0px";var Q=document.getElementById("toolbarLogo");if(Q){var R=Q.style;if(R)if(!t){R.display="inline-block",Z.Utils.z203(Q,e,f),R.left=v+"px",R.top=w+"px",v+=e+2;var S=document.getElementById("logoDivider");if(S){Z.Utils.z203(S,g,h);var T=S.style;T.left=v+"px",T.top=x+"px"}}else R.display="none"}if(Z.toolbarVisible!=0&&Z.toolbarVisible!=1){var U=document.getElementById("buttonMinimize"),V=document.getElementById("buttonExpand");if(U&&V){var W=U.style,X=V.style;W&&X&&(t?(W.display="none",X.display="none"):(W.display="inline-block",X.display="inline-block",Z.Utils.z138(U,i,j),Z.Utils.z138(V,i,j),W.left=v+C+"px",W.top=z+"px",X.left=v+D+"px",X.top=z+"px"))}}v=G;var Y=document.getElementById("buttonZoomOut");Z.Utils.z138(Y,i,j);var $=Y.style;$.left=v+"px",$.top=y+"px",v+=k;var _=document.getElementById("trackSlider"),ba=document.getElementById("buttonSlider");if(_&&ba){var bb=_.style,bc=ba.style;bb&&bc&&(r?(bb.display="none",bc.display="none"):(bb.display="inline-block",bc.display="inline-block",Z.Utils.z203(_,n,o),bb.left=v-2+"px",bb.top=A+"px",Z.Utils.z138(ba,l,m),bc.left=parseFloat(bb.left)+"px",bc.top=B+"px",v+=p))}var bd=document.getElementById("buttonZoomIn");Z.Utils.z138(bd,i,j);var be=bd.style;be.left=v+"px",be.top=y+"px",v+=k+1;var bf=document.getElementById("panDivider");Z.Utils.z203(bf,g,h);var bg=bf.style;bg.left=v+"px",bg.top=x+"px",v+=E;var bh=document.getElementById("buttonPanLeft");Z.Utils.z138(bh,i,j);var bi=bh.style;bi.left=v+"px",bi.top=y+"px",v+=k;var bj=document.getElementById("buttonPanUp");Z.Utils.z138(bj,i,j);var bk=bj.style;bk.left=v+"px",bk.top=y+"px",v+=k;var bl=document.getElementById("buttonPanDown");Z.Utils.z138(bl,i,j);var bm=bl.style;bm.left=v+"px",bm.top=y+"px",v+=k;var bn=document.getElementById("buttonPanRight");Z.Utils.z138(bn,i,j);var bo=bn.style;bo.left=v+"px",bo.top=y+"px",v+=k;var bp=document.getElementById("buttonReset");Z.Utils.z138(bp,i,j);var bq=bp.style;bq.left=v+"px",bq.top=y+"px",v+=k+1;var br=document.getElementById("fullPageDivider");if(br){Z.Utils.z203(br,g,h);var bs=br.style;bs.left=v+"px",bs.top=x+"px",v+=E;var bt=document.getElementById("buttonFullPage");Z.Utils.z138(bt,i,j);var bu=bt.style;bu.left=v+"px",bu.top=y+"px"}var bv=document.getElementById("progressTextBox");if(bv){var bw=bv.style;bw&&(s?bw.display="none":(bw.display="inline-block",bw.width=q+"px",bw.height=u+"px",bw.left=c-parseFloat(O.style.left)-parseFloat(bw.width)+"px",bw.top=(d-parseFloat(bw.height))/2+"px"))}}function z(a){Z.toolbarVisible<4&&!Z.mobileDevice?A(a):B(!a)}function A(a){g&&(a?g.display="inline-block":g.display="none")}function B(a){if(g){var b=document.getElementById("buttonContainer"),c=document.getElementById("background"),d=document.getElementById("buttonMinimize"),e=document.getElementById("buttonExpand"),f=document.getElementById("logoDivider"),h=0;t||(h=parseFloat(e.style.left)+parseFloat(e.style.width)+4);var i=Z.toolbarCurrentW;a?(b.style.display="none",t||(f&&(f.style.display="none"),d.style.display="none",e.style.display="inline-block"),g.width=h+"px",c.style.width=h+"px"):(b.style.display="inline-block",t||(f&&(f.style.display="inline-block"),d.style.display="inline-block",e.style.display="none"),g.width=i+"px",c.style.width=i+"px")}}function C(a){if(Z.sliderVisible){h||(h=document.getElementById("trackSlider")),i||(i=h.style),j||(j=document.getElementById("buttonSlider")),k||(k=j.style);if(i&&k){var b=Z.maxZ-Z.minZ,c=(a-Z.minZ)/b;trackL=parseFloat(i.left),trackR=parseFloat(i.left)+parseFloat(i.width)-parseFloat(k.width);var d=trackR-trackL,e=c*d+trackL;k.left=e+"px"}}}function D(b){h||(h=document.getElementById("trackSlider")),i||(i=h.style);if(h&&i){var c,d=Z.Utils.z174(h);Z.mobileDevice?c=Z.Utils.z181(b).x-d.x:c=b.clientX-d.x;var e=H(c,0,parseFloat(i.width));e<Z.minZ+.1&&(e=Z.minZ),e>Z.maxZ-.1&&(e=Z.maxZ),a.z245(e),a.z274()}}function E(a){n=!0,j||(j=document.getElementById("buttonSlider"));if(j){var b=Z.Utils.z181(a);j.mouseXPrior=b.x,j.mouseYPrior=b.y}}function F(b){h||(h=document.getElementById("trackSlider")),i||(i=h.style),j||(j=document.getElementById("buttonSlider")),k||(k=j.style);if(i&&j&&k){trackL=parseFloat(i.left),trackR=parseFloat(i.left)+parseFloat(i.width)-parseFloat(k.width);var c=parseFloat(k.left)+(p.x-j.mouseXPrior);c<trackL?c=trackL:c>trackR?c=trackR:j.mouseXPrior=p.x,k.left=c+"px";var d=H(c,trackL,trackR);a.z245(d)}}function G(){n=!1,a.z274()}function H(a,b,c){var d=c-b,e=(a-b)/d,f=Z.maxZ-Z.minZ,g=Z.minZ+f*e;return g}function I(a){var a=Z.Utils.event(a),b=Z.Utils.relatedTarget(Z.Utils.event(a));if(!n&&b){var c=b.parentNode;K(c)}}function J(a){Z.mobileDevice&&a.preventDefault();var a=Z.Utils.event(a),b=Z.Utils.target(a),c=Z.Utils.relatedTarget(a);if(b){var d=b.parentNode;d&&(targetParentID=d.id)}if(c){var e=c.parentNode;e&&(relatedTargetParentID=e.id)}if(!n||a.type=="mouseup"||a.type=="touchend"||a.type=="touchcancel")N(),b&&!Z.Utils.isRightMouseButton(a)&&(targetParentID&&targetParentID!="trackSlider"&&a.type!="mousemove"&&(O(a),P(a)),Q(a))}function K(b){a&&a.z293AllStop(),b.id&&b.id.indexOf("button")!=-1?(L(b),M(b)):b.id&&b.id.indexOf("background")!=-1&&N()}function L(a){Z.Utils.removeEventListener(a,"mousedown",J),Z.Utils.removeEventListener(a,"mouseup",J),Z.Utils.removeEventListener(a,"mouseout",J),Z.Utils.addEventListener(a,"mouseover",J)}function M(a){var b=document.getElementById(a._imgUpID),c=document.getElementById(a._imgOverID),d=document.getElementById(a._imgDownID);b&&(b.style.visibility="visible"),c&&(c.style.visibility="hidden"),d&&(d.style.visibility="hidden")}function N(){var a=Z.ToolbarDisplay.childNodes,b=null;for(var c=0,d=a.length;c<d;c++){b=a[c];if(b.id&&b.id.indexOf("button")!=-1)if(b.id!="buttonContainer")L(b),M(b);else{var e=b.childNodes,f=null;for(var g=0,h=e.length;g<h;g++)f=e[g],f.id&&f.id.indexOf("button")!=-1&&(L(f),M(f))}}}function O(a){var b=Z.Utils.target(a);if(b){var c=b.parentNode;c&&(Z.mobileDevice?(Z.Utils.removeEventListener(c,"touchstart",J),Z.Utils.removeEventListener(c,"touchend",J),Z.Utils.removeEventListener(c,"touchcancel",J)):(Z.Utils.removeEventListener(c,"mouseover",J),Z.Utils.removeEventListener(c,"mousedown",J),Z.Utils.removeEventListener(c,"mouseup",J),Z.Utils.removeEventListener(c,"mouseout",J)))}}function P(a){var b=Z.Utils.target(a);if(b){var c=Z.Utils.target(a).parentNode;if(c)if(!c._imgUpID)K(c);else{var d=document.getElementById(c._imgUpID),e=document.getElementById(c._imgOverID),f=document.getElementById(c._imgDownID);if(d&&e&&f){var g=d.style,h=e.style,i=f.style;g.visibility="hidden",h.visibility="hidden",i.visibility="hidden";switch(a.type){case"mouseover":h.visibility="visible";break;case"mousedown":i.visibility="visible";break;case"mousemove":i.visibility="visible";break;case"mouseup":h.visibility="visible";break;case"mouseout":g.visibility="visible";break;case"touchstart":i.visibility="visible";break;case"touchend":g.visibility="visible";break;case"touchcancel":g.visibility="visible"}}}}}function Q(c){var d=Z.Utils.target(c).parentNode;if(d){var e=d.id;switch(c.type){case"mouseover":Z.Utils.addEventListener(d,"mousedown",J);break;case"mousedown":Z.Utils.addEventListener(d,"mouseup",J);if(a)switch(e){case"buttonMinimize":b.z215(!0),Z.Navigator.setVisibility(!1);break;case"buttonExpand":b.z215(!1),Z.Navigator.setVisibility(!0);break;case"buttonZoomOut":a.zoom("out");break;case"buttonSlider":E(c),R(c),Z.Utils.addEventListener(document,"mousemove",R),o||(o=window.setInterval(F,m)),Z.Utils.addEventListener(document,"mouseup",J);break;case"trackSlider":D(c);break;case"buttonZoomIn":a.zoom("in");break;case"buttonPanLeft":a.pan("left");break;case"buttonPanUp":a.pan("up");break;case"buttonPanDown":a.pan("down");break;case"buttonPanRight":a.pan("right");break;case"buttonReset":a.reset()}break;case"mouseup":Z.Utils.addEventListener(d,"mousedown",J),a&&(e=="buttonSlider"||n?(o&&(window.clearInterval(o),o=null),G(),Z.Utils.removeEventListener(document,"mousemove",R),Z.Utils.removeEventListener(document,"mouseup",J),N()):e=="buttonZoomOut"||e=="buttonZoomIn"?a.zoom("stop"):e=="buttonPanLeft"||e=="buttonPanRight"?a.pan("horizontalStop"):e=="buttonPanUp"||e=="buttonPanDown"?a.pan("verticalStop"):e=="buttonFullPage"&&a.toggleFullPageView());break;case"mouseout":Z.Utils.addEventListener(d,"mouseover",J),a&&(e=="buttonZoomOut"||e=="buttonZoomIn"?a.zoom("stop"):e=="buttonPanLeft"||e=="buttonPanRight"?a.pan("horizontalStop"):(e=="buttonPanUp"||e=="buttonPanDown")&&a.pan("verticalStop"));break;case"touchstart":Z.Utils.addEventListener(d,"touchend",J),Z.Utils.addEventListener(d,"touchcancel",J);if(a)switch(e){case"buttonMinimize":b.z215(!0),Z.Navigator.setVisibility(!1);break;case"buttonExpand":b.z215(!1),Z.Navigator.setVisibility(!0);break;case"buttonZoomOut":a.zoom("out");break;case"buttonSlider":E(c),S(c),Z.Utils.addEventListener(document,"touchmove",S),o||(o=window.setInterval(F,m)),Z.Utils.addEventListener(d,"touchend",J),Z.Utils.addEventListener(d,"touchcancel",J);break;case"trackSlider":D(c);break;case"buttonZoomIn":a.zoom("in");break;case"buttonPanLeft":a.pan("left");break;case"buttonPanUp":a.pan("up");break;case"buttonPanDown":a.pan("down");break;case"buttonPanRight":a.pan("right");break;case"buttonReset":a.reset()}break;case"touchend":Z.Utils.addEventListener(d,"touchstart",J),a&&(e=="buttonZoomOut"||e=="buttonZoomIn"?(a.zoom("stop"),Z.debug&&e=="buttonZoomOut"&&c.altKey&&Z.Utils.z253()):e=="buttonSlider"?(o&&(window.clearInterval(o),o=null),G(),Z.Utils.removeEventListener(document,"touchmove",S)):e=="buttonPanLeft"||e=="buttonPanRight"?a.pan("horizontalStop"):e=="buttonPanUp"||e=="buttonPanDown"?a.pan("verticalStop"):e=="buttonFullPage"&&a.toggleFullPageView());break;case"touchcancel":Z.Utils.addEventListener(d,"touchstart",J),a&&(e=="buttonZoomOut"||e=="buttonZoomIn"?(a.zoom("stop"),Z.debug&&e=="buttonZoomOut"&&c.altKey&&Z.Utils.z253()):e=="buttonSlider"?(o&&(window.clearInterval(o),o=null),G(),Z.Utils.removeEventListener(document,"touchmove",S)):e=="buttonPanLeft"||e=="buttonPanRight"?a.pan("horizontalStop"):e=="buttonPanUp"||e=="buttonPanDown"?a.pan("verticalStop"):e=="buttonFullPage"&&a.toggleFullPageView())}}}function R(a){p=new Z.Utils.Point(a.clientX,a.clientY)}function S(a){var b=Z.Utils.z178(a);if(b){var c=b.target;p=new Z.Utils.Point(b.pageX,b.pageY)}}var b=this,c=!1,d=new Z.z101;Z.skinPath=Z.Utils.z243(Z.skinPath);var e=Z.skinPath+"/";d.loadXML(Z.skinPath+"/"+Z.Utils.z185("z55"));var f,g,h,i,j,k,l=[],m=parseInt(Z.Utils.z185("z57"),10),n=!1,o=null,p=null,q=null,r,s,t;this.z205=function(a,b){Z.ToolbarDisplay=Z.Utils.createContainerElement("div","ToolbarDisplay","inline-block","absolute","hidden","1px","1px","0px","1px","none","0px","transparent none","0px","0px","default"),g=Z.ToolbarDisplay.style;var c=new Z.Utils.Graphic("background",e,b[0],"1px","1px","0px","0px");Z.ToolbarDisplay.appendChild(c.elmt),toolbarSkinSizes=a;if(Z.logoVisible){var d;if(!Z.Utils.isStrVal(Z.logoCustomPath))d=new Z.Utils.Graphic("toolbarLogo",e,b[1],"1px","1px","1px","1px");else{var h=Z.Utils.z140(Z.logoCustomPath);d=new Z.Utils.Graphic("toolbarLogo",h,null,"1px","1px","1px","1px")}Z.ToolbarDisplay.appendChild(d.elmt);if(Z.toolbarVisible==0||Z.toolbarVisible==1){var i=new Z.Utils.Graphic("logoDivider",e,b[2],"1px","1px","1px","1px");Z.ToolbarDisplay.appendChild(i.elmt)}}var j=Z.Utils.createContainerElement("div","buttonContainer","inline-block","absolute","visible","1px","1px","0px","0px","none","0px","transparent none","0px","0px","default");Z.ToolbarDisplay.appendChild(j),Z.mobileDevice?Z.Utils.addEventListener(j,"touchstart",Z.Utils.preventDefault):(Z.Utils.addEventListener(j,"mousedown",Z.Utils.preventDefault),Z.Utils.addEventListener(j,"mouseover",I));var k=new Z.Utils.Graphic("buttonBackground",e,b[0],"1px","1px","0px","0px");j.appendChild(k.elmt);if(Z.toolbarVisible!=0&&Z.toolbarVisible!=1||Z.mobileDevice){var l=new Z.Utils.Button("buttonMinimize",null,e,b[3],b[4],b[5],"1px","1px","1px","1px","mouseover",J,"z107");Z.ToolbarDisplay.appendChild(l.elmt);var m=new Z.Utils.Button("buttonExpand",null,e,b[6],b[7],b[8],"1px","1px","1px","1px","mouseover",J,"z105");Z.ToolbarDisplay.appendChild(m.elmt)}var n=new Z.Utils.Button("buttonZoomOut",null,e,b[9],b[10],b[11],"1px","1px","1px","1px","mouseover",J,"z120");j.appendChild(n.elmt);if(Z.sliderVisible){var o=new Z.Utils.Graphic("trackSlider",e,b[12],"1px","1px","0px","0px");j.appendChild(o.elmt),Z.Utils.addEventListener(o.elmt,"mousedown",J),Z.Utils.addEventListener(o.elmt,"touchstart",J);var p=new Z.Utils.Button("buttonSlider",null,e,b[14],b[15],b[16],"1px","1px","1px","1px","mouseover",J,"z114");j.appendChild(p.elmt)}var q=new Z.Utils.Button("buttonZoomIn",null,e,b[17],b[18],b[19],"1px","1px","1px","1px","mouseover",J,"z119");j.appendChild(q.elmt);var r=new Z.Utils.Graphic("panDivider",e,b[20],"1px","1px","1px","1px");j.appendChild(r.elmt);var s=new Z.Utils.Button("buttonPanLeft",null,e,b[21],b[22],b[23],"1px","1px","1px","1px","mouseover",J,"z109");j.appendChild(s.elmt);var t=new Z.Utils.Button("buttonPanUp",null,e,b[24],b[25],b[26],"1px","1px","1px","1px","mouseover",J,"z111");j.appendChild(t.elmt);var u=new Z.Utils.Button("buttonPanDown",null,e,b[27],b[28],b[29],"1px","1px","1px","1px","mouseover",J,"z108");j.appendChild(u.elmt);var v=new Z.Utils.Button("buttonPanRight",null,e,b[30],b[31],b[32],"1px","1px","1px","1px","mouseover",J,"z110");j.appendChild(v.elmt);var y=new Z.Utils.Button("buttonReset",null,e,b[33],b[34],b[35],"1px","1px","1px","1px","mouseover",J,"z112");j.appendChild(y.elmt);if(Z.fullPageVisible){var A=new Z.Utils.Graphic("fullPageDivider",e,b[36],"1px","1px","1px","1px");j.appendChild(A.elmt);var B=new Z.Utils.Button("buttonFullPage",null,e,b[37],b[38],b[39],"1px","1px","1px","1px","mouseover",J,"z118");j.appendChild(B.elmt)}if(Z.progressVisible){var D=Z.Utils.createContainerElement("div","progressTextBox","inline-block","absolute","hidden","1px","1px","1px","1px","none","0px","transparent none","0px","0px"),E=toolbarSkinSizes[16]+"px";j.appendChild(D);var F=document.createTextNode(Z.Utils.z185("z52"));D.appendChild(Z.Utils.createCenteredElement(F)),Z.Utils.z251(F,"black","verdana",E,"none","normal","normal","normal","normal","1em","left","none"),Z.Utils.addEventListener(D,"contextmenu",Z.Utils.preventDefault),Z.Utils.disableTextInteraction(F)}Z.ViewerDisplay.appendChild(Z.ToolbarDisplay),Z.toolbarW=toolbarSkinSizes[0],Z.toolbarCurrentW=Z.toolbarW==-1?Z.viewerW:Z.toolbarW,Z.toolbarH=f=toolbarSkinSizes[1];var G=Z.toolbarPosition==1?Z.viewerH-f:0;x(Z.toolbarCurrentW,Z.toolbarH,0,G);if(Z.Viewport&&Z.Viewport.z180()){var H=Z.Viewport.z189AsZoom();C(H)}z(Z.toolbarVisible==1||Z.toolbarVisible==2||Z.toolbarVisible==4),Z.Utils.addEventListener(Z.ToolbarDisplay,"mouseover",Z.Utils.stopPropagation),w(!0)},this.z180=function(){return v()},this.setSizeAndPosition=function(a,b,c,d){x(a,b,c,d)},this.show=function(a){z(a)},this.setVisibility=function(a){A(a)},this.z215=function(a){B(a)},this.showProgress=function(a,b){if(Z.progressVisible){q&&window.clearInterval(q);var c,d=document.getElementById("progressTextBox").firstChild.firstChild.firstChild.firstChild;d&&(a==0||b==0?(d.nodeValue="llllllllll",q=window.setInterval(u,parseInt(Z.Utils.z185("z51")),10)):(c=Math.round(100-b/a*100),d.nodeValue="l".multiply(Math.round(c/10))))}},this.z266=function(a){C(a)}},Z.z123=function(a){function x(a){Z.NavigatorDisplay=Z.Utils.createContainerElement("div","NavigatorDisplay","inline-block","absolute","hidden",e+"px",f+"px",g+"px",h+"px","solid","1px","transparent none","0px","0px"),o=Z.NavigatorDisplay,p=o.style;var b=Z.Utils.z185("z36"),c=Z.Utils.z185("z36NOALPHA"),d=Z.Utils.createContainerElement("div","navigatorBackground","inline-block","absolute","hidden",e+"px",f+"px","0px","0px","none","0px",b,"0px","0px");Z.Utils.setOpacity(d,l,c),Z.NavigatorDisplay.appendChild(d),q=d,r=q.style;var j=Z.Utils.createContainerElement("div","navigatorImageContainer","inline-block","absolute","hidden",e+"px",f+"px","0px","0px","none","0px","transparent none","0px","0px");j.appendChild(n),Z.NavigatorDisplay.appendChild(j),s=j,t=s.style,u=n;var k=Z.Utils.createContainerElement("div","navigatorRectangle","inline-block","absolute","hidden",e+1+"px",f+1+"px",g+"px",h+"px","solid","1px","transparent none","0px","0px");k.style.borderColor=Z.Utils.z185("z41"),Z.NavigatorDisplay.appendChild(k),v=k,w=v.style,Z.ViewerDisplay.appendChild(Z.NavigatorDisplay),C(e,f,g,h,i),H(Z.navigatorVisible==1||Z.navigatorVisible==2),F(),Z.mobileDevice?(Z.Utils.addEventListener(o,"touchstart",P),Z.Utils.addEventListener(o,"touchmove",Q),Z.Utils.addEventListener(o,"touchend",R),Z.Utils.addEventListener(o,"touchcancel",S)):(Z.Utils.addEventListener(u,"mousedown",Z.Utils.preventDefault),Z.Utils.addEventListener(o,"mousedown",Z.Utils.preventDefault),Z.Utils.addEventListener(o,"mouseover",Z.Utils.stopPropagation),Z.Utils.addEventListener(o,"mousedown",M)),Z.Utils.addEventListener(n,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(d,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(k,"contextmenu",Z.Utils.preventDefault),B(!0),G()}function y(a){C(e,f,g,h,i),H(Z.navigatorVisible==1||Z.navigatorVisible==2),F()}function z(){if(A()){d&&(window.clearInterval(d),d=null);if(!o||!p||!q||!r||!s||!t||!u||!v||!w)o=Z.NavigatorDisplay,p=o.style,q=Z.NavigatorDisplay.childNodes[0],r=q.style,s=Z.NavigatorDisplay.childNodes[1],t=s.style,u=Z.NavigatorDisplay.childNodes[1].firstChild,v=Z.NavigatorDisplay.childNodes[2],w=v.style}}function A(){return c}function B(a){c=a}function C(a,b,c,d,e){a||(a=Z.navigatorW),b||(b=Z.navigatorH),c||(c=0),d||(d=0),o||(o=Z.NavigatorDisplay),p||(p=o.style),u=o.childNodes[1].firstChild;if(o&&p&&u){if(e){var f=1,g=1;e==0?g=Z.viewerW/Z.viewerH:g=u.width/u.height,f>1?(b=a,b/=g):(a=b,a*=g)}p.width=a+"px",p.height=b+"px",p.left=c-1+"px",p.top=d-1+"px",D(a,b)}}function D(a,b){r||(r=Z.NavigatorDisplay.firstChild.style),t||(t=Z.NavigatorDisplay.childNodes[1].style),u||(u=Z.NavigatorDisplay.childNodes[1].firstChild),r&&t&&u&&(r.width=a+"px",r.height=b+"px",E(a,b,u.width,u.height),t.width=u.width+"px",t.height=u.height+"px",t.left=(a-parseFloat(t.width))/2+"px",t.top=(b-parseFloat(t.height))/2+"px",G())}function E(a,b,c,d){u||(u=Z.NavigatorDisplay.childNodes[1].firstChild);if(u){var e=c/d,f=a/c,g=b/d,h=0,i=0;f<=g?(c=a,d=a/e,i=(b-d*(a/c))/2):g<f&&(d=b,c=b*e,h=(a-c*(b/d))/2),u.width=c,u.height=d}}function F(){p||(p=Z.NavigatorDisplay.style),p&&(p.zIndex=p.zIndex+100)}function G(){if(Z.Viewport&&Z.Viewport.z180()){I();var a=Z.Viewport.z141();J(a)}}function H(a){p||(p=Z.NavigatorDisplay.style),p&&(a?p.display="inline-block":p.display="none")}function I(){if(u&&w){var a=u.width/Z.imageW,b=u.height/Z.imageH,c=Z.Viewport.z189AsZoom(),d=Z.viewerW*a/c,e=Z.viewerH*b/c;w.width=d+"px",w.height=e+"px"}}function J(a){if(u&&w&&t){var b=u.width/Z.imageW,c=u.height/Z.imageH,d=a.x*b,e=a.y*c,f=d-parseFloat(w.width)/2,g=e-parseFloat(w.height)/2;w.left=f+parseFloat(t.left)+"px",w.top=g+parseFloat(t.top)+"px"}}function K(){if(w&&t&&u){var a=parseFloat(w.left)-parseFloat(t.left),b=parseFloat(w.top)-parseFloat(t.top),c=a+(parseFloat(w.width)-1)/2,d=b+(parseFloat(w.height)-1)/2,e=Z.imageW/u.width,f=Z.imageH/u.height,g=c*e,h=d*f;Z.Viewport.z267(g,h)}}function L(){Z.Utils.z255(Z.Utils.z185("z88"))}function M(a){if(o&&v&&w){var a=Z.Utils.event(a);v.mouseXPrior=a.clientX,v.mouseYPrior=a.clientY,zaptvDragPtStart=new Z.Utils.Point(a.clientX,a.clientY),Z.Utils.addEventListener(o,"mousemove",N),Z.Utils.addEventListener(o,"mouseup",O),Z.Utils.addEventListener(document,"mouseup",O)}}function N(a){if(v&&w){var b=parseFloat(w.left),c=parseFloat(w.top);return w.left=b+(a.clientX-v.mouseXPrior)+"px",w.top=c+(a.clientY-v.mouseYPrior)+"px",v.mouseXPrior=a.clientX,v.mouseYPrior=a.clientY,K(),!1}}function O(a){if(o&&v&&w){document.mousemove=null,document.mouseup=null,Z.Utils.removeEventListener(o,"mousemove",N),Z.Utils.removeEventListener(o,"mouseup",O),Z.Utils.removeEventListener(document,"mouseup",O);var a=Z.Utils.event(a),b=new Z.Utils.Point(a.clientX,a.clientY),c=Math.sqrt(Math.pow(zaptvDragPtStart.x-b.x,2)+Math.pow(zaptvDragPtStart.y-b.y,2));if(c<4){var d=Z.Utils.z174(Z.NavigatorDisplay);w.left=a.clientX-d.x-parseFloat(w.width)/2+"px",w.top=a.clientY-d.y-parseFloat(w.height)/2+"px"}K(),Z.Viewport.z274()}}function P(a){a.preventDefault();if(o&&v&&w){var b=Z.Utils.z178(a);if(b){var c=b.target,d=new Z.Utils.Point(b.pageX,b.pageY);zaptvDragPtStart=new Z.Utils.Point(d.x,d.y),v.mouseXPrior=d.x,v.mouseYPrior=d.y,zaptvDragPtStart=new Z.Utils.Point(d.x,d.y)}}}function Q(a){a.preventDefault();if(!Z.mousePan)return;if(v&&w){var b=Z.Utils.z178(a);if(b){var c=b.target,d=new Z.Utils.Point(b.pageX,b.pageY),e=parseFloat(w.left),f=parseFloat(w.top);return w.left=e+(d.x-v.mouseXPrior)+"px",w.top=f+(d.y-v.mouseYPrior)+"px",v.mouseXPrior=d.x,v.mouseYPrior=d.y,K(),!1}}return!1}function R(a){if(o&&v&&w){var b=Z.Utils.z178(a);if(b){var c=b.target,d=new Z.Utils.Point(b.pageX,b.pageY),e=new Z.Utils.Point(d.x,d.y),f=Math.sqrt(Math.pow(zaptvDragPtStart.x-e.x,2)+Math.pow(zaptvDragPtStart.y-e.y,2)),g=Z.mobileDevice?6:3;if(f<g){var h=Z.Utils.z174(Z.NavigatorDisplay);w.left=d.x-h.x-parseFloat(w.width)/2+"px",w.top=d.y-h.y-parseFloat(w.height)/2+"px"}}K(),Z.Viewport.z274()}}function S(a){if(o&&v&&w){var b=Z.Utils.z178(a);if(b){var c=b.target,d=new Z.Utils.Point(b.pageX,b.pageY),e=new Z.Utils.Point(d.x,d.y),f=Math.sqrt(Math.pow(zaptvDragPtStart.x-e.x,2)+Math.pow(zaptvDragPtStart.y-e.y,2)),g=Z.mobileDevice?6:3;if(f<g){var h=Z.Utils.z174(Z.NavigatorDisplay);w.left=d.x-h.x-parseFloat(w.width)/2+"px",w.top=d.y-h.y-parseFloat(w.height)/2+"px"}}K(),Z.Viewport.z274()}}var b=this,c=!1,d,e=Z.navigatorW,f=Z.navigatorH,g=Z.navigatorL-1,h=Z.navigatorT-1,i=Z.navigatorFit,j,k=null,l=parseFloat(Z.Utils.z185("z35")),m=Z.Utils.z140(Z.imagePath+"/TileGroup0/"+"0-0-0.jpg"),n=new Image;n.onload=x,n.onerror=L,n.src=m;var o,p,q,r,s,t,u,v,w;this.setImagePath=function(a){m=Z.Utils.z140(Z.imagePath+"/TileGroup0/"+"0-0-0.jpg"),s.removeChild(n),n=null,n=new Image,s.appendChild(n),n.onload=y,n.onerror=L,n.src=m},this.z180=function(){return A()},this.setSizeAndPosition=function(a,b,c,d,e){e||(e=i),C(a,b,c,d,e)},this.setVisibility=function(a){H(a)},this.z268=function(){G()},this.z263RectangleDimensions=function(){I()},this.z263RectanglePosition=function(a){J(a)},this.z277=function(){A()?z():d=window.setInterval(z,300)}},Z.z101=function(a){function c(a,b){var c=null,d=typeof b=="function";if(d)var e=b,b=function(){window.setTimeout(Z.Utils.createCallback(null,e,c),1)};if(window.ActiveXObject){var f=["Msxml2.XMLHTTP","Msxml3.XMLHTTP","Microsoft.XMLHTTP"];for(var g=0;g<f.length;g++)try{c=new ActiveXObject(f[g]);break}catch(h){continue}}else window.XMLHttpRequest&&(c=new XMLHttpRequest);c||Z.Utils.z255(Z.Utils.z185("z99")),d&&(c.onreadystatechange=function(){c.readyState==4&&(c.onreadystatechange=new Function,b())});try{c.open("GET",a,d),c.send(null)}catch(h){a.indexOf("ImageProperties.xml")!=-1?Z.Utils.z255(Z.Utils.z185("z87-IMAGEXML")):a.indexOf("skinFiles.xml")!=-1?Z.Utils.z255(Z.Utils.z185("z87-TOOLBARXML")):Z.Utils.z255(Z.Utils.z185("z87")),c.onreadystatechange=null,c=null}return d?null:c}function d(a){if(a){if(!a)Z.Utils.z255(Z.Utils.z185("z89"));else if(a.status!==200&&a.status!==0){var b=a.status,c=b==404?"Not Found":a.statusText;Z.Utils.z255(Z.Utils.z185("z90")+b+" - "+c)}var d=null;a.responseXML&&a.responseXML.documentElement?d=a.responseXML:a.responseText&&(d=Z.Utils.z158(a.responseText)),e(d)}else Z.Utils.z255(Z.Utils.z185("z84"))}function e(a){if(a&&a.documentElement){var b=a.documentElement.tagName;b=="COPYRIGHT"?f("copyright",a):b=="IMAGE_PROPERTIES"?f("image",a):b=="SKINDATA"?f("skin",a):Z.Utils.z255(Z.Utils.z185("z100"))}else Z.Utils.z255(Z.Utils.z185("z100"))}function f(a,b){if(a=="copyright"){var c=b.documentElement.getAttribute("STATEMENTTEXT"),d=b.documentElement.getAttribute("DECLINEDTEXT");Z.Utils.isStrVal(c)?Z.Utils.z252(!0,c,d):Z.Utils.z255(Z.Utils.z185("z86"))}else if(a=="image"){var e=parseInt(b.documentElement.getAttribute("WIDTH"),10),f=parseInt(b.documentElement.getAttribute("HEIGHT"),10);!isNaN(e)&&e>0&&!isNaN(f)&&f>0?Z.Viewport&&(Z.Viewport.z180()?Z.Viewport.rez206(e,f):Z.Viewport.z206(e,f)):Z.Utils.z255(Z.Utils.z185("z86"))}else if(a=="skin"){Z.skinMode=b.getElementsByTagName("SETUP")[0].attributes.getNamedItem("SKINMODE").nodeValue;var g,h;Z.skinMode==1||Z.skinMode==0&&!Z.mobileDevice?(g=b.getElementsByTagName("SETUP")[0].attributes.getNamedItem("FOLDERSTANDARD").nodeValue,h="SIZESSTANDARD"):(g=b.getElementsByTagName("SETUP")[0].attributes.getNamedItem("FOLDERLARGE").nodeValue,h="SIZESLARGE");var i=[];i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("TOOLBARW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("TOOLBARH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("LOGOW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("LOGOH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("DIVIDERW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("DIVIDERH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("BUTTONW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("BUTTONH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("BUTTONSPAN").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("SLIDERBUTTONW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("SLIDERBUTTONH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("SLIDERTRACKW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("SLIDERTRACKH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("SLIDERSPAN").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("PROGRESSW").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("PROGRESSH").nodeValue)),i.push(parseFloat(b.getElementsByTagName(h)[0].attributes.getNamedItem("PROGRESSFONTSIZE").nodeValue));var j=[],k=b.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN0").nodeValue,l=b.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN39").nodeValue;if(Z.Utils.isStrVal(k)&&Z.Utils.isStrVal(l)){var m=!1;for(var n=0;n<40;n++){var o=b.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN"+n).nodeValue;Z.Utils.isStrVal(o)?j[n]=g+"/"+o:(j[n]="null",m=!0)}m&&Z.Utils.z255(Z.Utils.z185("ERROR_SKINSXMLMISSINGNAMES")),Z.Toolbar&&Z.Toolbar.z205(i,j)}else Z.Utils.z255(Z.Utils.z185("z91"))}}function g(a,c,d){b--;if(typeof a=="function")try{a(d)}catch(e){Z.Utils.z255(e.name+Z.Utils.z185("z83")+c+" "+e.message)}}function h(a,b){function e(e){c.onload=null,c.onabort=null,c.onerror=null,d&&window.clearTimeout(d),window.setTimeout(function(){b(a,e?c:null)},1)}var c=null,d=null;this.start=function(){c=new Image;var b=function(){e(!0)},f=function(){e(!1)},g=function(){e(!1)};c.onload=b,c.onabort=f,c.onerror=f,d=window.setTimeout(g,parseFloat(Z.Utils.z185("z60"))),c.src=a}}var b=0;this.loadXML=function(a){c(a,d)},this.z212Image=function(a,c){if(b>=parseInt(Z.Utils.z185("z25"),10))return!1;var d=Z.Utils.createCallback(null,g,c),e=new h(a,d);return b++,e.start(),!0}},Z.Utils={z163:function(){Z.pageContainerID=null,Z.imagePath=null,Z.skinPath=null,Z.skinMode=null,Z.parameters=null,Z.browsers=null,Z.browser=null,Z.browserVersion=null,Z.canvasSupported=null,Z.cssTransformsSupported=null,Z.cssTransformProperty=null,Z.cssTransformNoUnits=null,Z.alphaSupported=null,Z.renderQuality=null,Z.mobileDevice=null,Z.initialX=null,Z.initialY=null,Z.initialZ=null,Z.minZ=null,Z.maxZ=null,Z.zoomSpeed=null,Z.panSpeed=null,Z.fadeInSpeed=null,Z.toolbarVisible=null,Z.toolbarW=null,Z.toolbarH=null,Z.toolbarPosition=null,Z.navigatorVisible=null,Z.navigatorW=null,Z.navigatorH=null,Z.navigatorL=null,Z.navigatorT=null,Z.navigatorFit=null,Z.clickZoom=null,Z.clickPan=null,Z.mousePan=null,Z.keys=null,Z.constrainPan=null,Z.tooltipsVisible=null,Z.copyrightPath=null,Z.watermarkPath=null,Z.sliderVisible=null,Z.fullPageVisible=null,Z.progressVisible=null,Z.logoVisible=null,Z.logoCustomPath=null,Z.canvas=null,Z.debug=null,Z.Viewer=null,Z.ViewerDisplay=null,Z.Viewport=null,Z.Toolbar=null,Z.ToolbarDisplay=null,Z.TooltipDisplay=null,Z.Navigator=null,Z.NavigatorDisplay=null,Z.CopyrightDisplay=null,Z.imageW=null,Z.imageH=null,Z.imageX=0,Z.imageY=0,Z.imageZ=0,Z.fitZ=null,Z.zooming="stop",Z.panningX="stop",Z.panningY="stop",Z.fullPage=!1,Z.useCanvas=!0,Z.TraceDisplay=null,Z.traces=null},enforceCopyright:function(){var a=this.z238("imageCopyright");a?Z.Viewer.z149():this.z210()},z210:function(){var a=new Z.z101;a.loadXML(Z.copyrightPath)},z252:function(a,b,c){var d=this.z185("z16"),e=this.z185("z14");if(a){Z.CopyrightDisplay=this.createContainerElement("div","CopyrightDisplay","inline-block","absolute","hidden",Z.viewerW-2+"px",Z.viewerH-2+"px","0px","0px","solid","1px",d,"0px","0px"),Z.ViewerDisplay.appendChild(Z.CopyrightDisplay);var f=440,g=200,h=parseFloat(Z.CopyrightDisplay.style.width)/2-f/2,i=parseFloat(Z.CopyrightDisplay.style.height)/2-g/2,j=this.createContainerElement("div","textBox","inline-block","absolute","hidden",f+"px",g+"px",h+"px",i+"px","none","0px","transparent none","0px","0px");j.id="textBox",Z.CopyrightDisplay.appendChild(j);var k=document.createTextNode(b);j.appendChild(this.createCenteredElement(k)),this.z251(k,"black","verdana","16px","none","normal","normal","normal","normal","1em","justify","none");var l=document.createTextNode(c);j.appendChild(l);var m=80,n=20,o=30,p=20,q=h+f/2-(m*2+o)/2,r=i+g+p,s=this.z185("z13"),t=new Z.Utils.Button("buttonAgree",s,null,null,null,null,m+"px",n+"px",q+"px",r+"px","mousedown",this.z160,"z103","solid","1px",e,"0px","0px");Z.CopyrightDisplay.appendChild(t.elmt),q+=m+o,s=this.z185("z15");var u=new Z.Utils.Button("buttonExit",s,null,null,null,null,m+"px",n+"px",q+"px",r+"px","mousedown",this.z161,"z104","solid","1px",e,"0px","0px");Z.CopyrightDisplay.appendChild(u.elmt)}else{var j=document.getElementById("textBox"),v=j.childNodes[1].textContent;j.firstChild.firstChild.firstChild.firstChild.textContent=v;var t=document.getElementById("buttonAgree");this.removeEventListener(t,"mousedown",this.z160),Z.CopyrightDisplay.removeChild(t);var u=document.getElementById("buttonExit");this.removeEventListener(u,"mousedown",this.z161),Z.CopyrightDisplay.removeChild(u)}},Button:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=Z.Utils.createContainerElement("span",a,"inline-block","absolute","hidden",g,h,i,j,n,o,p,q,r,s);if(!Z.Utils.isStrVal(b)){var u=Z.Utils.createGraphicElement(c+"/"+d),v=Z.Utils.createGraphicElement(c+"/"+e),w=Z.Utils.createGraphicElement(c+"/"+f);u.id=t.id+"-imgUp",v.id=t.id+"-imgOver",w.id=t.id+"-imgDown",t._imgUpID=u.id,t._imgOverID=v.id,t._imgDownID=w.id;var x=u.style,y=v.style,z=w.style;x.position=y.position=z.position="absolute",x.width=y.width=y.width=g,x.height=y.height=y.height=h,x.top=y.top=z.top="0px",x.left=y.left=z.left="0px",Z.browser==Z.browsers.FIREFOX&&Z.browserVersion<3&&(x.top=y.top=z.top=""),y.visibility="hidden",z.visibility="hidden",t.appendChild(u),t.appendChild(v),t.appendChild(w),Z.Utils.addEventListener(u,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(v,"contextmenu",Z.Utils.preventDefault),Z.Utils.addEventListener(w,"contextmenu",Z.Utils.preventDefault)}else{var A=document.createTextNode(b);t.appendChild(Z.Utils.createCenteredElement(A)),Z.Utils.z251(A,"black","verdana","13px","none","normal","normal","normal","normal","1em","center","none"),Z.Utils.disableTextInteraction(A),Z.Utils.addEventListener(t,"contextmenu",Z.Utils.preventDefault)}Z.tooltipsVisible&&Z.Utils.isStrVal(m)&&(t.title=Z.Utils.z185(m)),Z.mobileDevice?Z.Utils.addEventListener(t,"touchstart",l):(Z.Utils.addEventListener(t,"mousedown",Z.Utils.preventDefault),Z.Utils.addEventListener(t,"mouseover",Z.Utils.stopPropagation),Z.Utils.addEventListener(t,"mouseout",Z.Utils.stopPropagation),Z.Utils.addEventListener(t,k,l)),this.elmt=t},z138:function(a,b,c){var d=a.style;d.width=b+"px",d.height=c+"px";var e=document.getElementById(a._imgUpID),f=document.getElementById(a._imgOverID),g=document.getElementById(a._imgDownID);if(e&&f&&g){var h=e.style,i=f.style,j=g.style;h.width=b+"px",h.height=c+"px",i.width=b+"px",i.height=c+"px",j.width=b+"px",j.height=c+"px"}},Graphic:function(a,b,c,d,e,f,g){var h=c?b+"/"+c:b,i=Z.Utils.createGraphicElement(h),j=i.style;j.width=d,j.height=e;var c=Z.Utils.createContainerElement("span",a,"inline-block","absolute","hidden",d,e,f,g,"none","0px","transparent none","0px","0px");c.appendChild(i),this.elmt=c,Z.mobileDevice?Z.Utils.addEventListener(i,"touchstart",Z.Utils.preventDefault):Z.Utils.addEventListener(i,"mousedown",Z.Utils.preventDefault),Z.Utils.addEventListener(i,"contextmenu",Z.Utils.preventDefault)},z203:function(a,b,c){var d=a.style;d.width=b+"px",d.height=c+"px";var e=a.firstChild,f=e.style;f.width=b+"px",f.height=c+"px"},z160:function(a){Z.ViewerDisplay.removeChild(Z.CopyrightDisplay),document.cookie="imageCopyright=confirmed",Z.Viewer.z149()},z161:function(a){Z.Utils.z252(!1);return},z128:function(){String.prototype.multiply||(String.prototype.multiply=function(){var a=Array.prototype.join,b={};return function(c){return b.length=c+1,a.call(b,this)}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b?b<0&&(b=Math.max(0,this.length+b)):b=0;for(var c=b,d=this.length;c<d;c++)if(this[c]===a)return c;return-1}),Array.prototype.push||(Array.prototype.push=function(a){this[this.length]=a}),Array.prototype.splice||(Array.prototype.subarr=function(a,b){if(a>=this.length||b&&b<=0)return[];a<0&&(Math.abs(a)>this.length?a=0:a=this.length+a);if(!b||b+a>this.length)b=this.length-a;var c=[];for(var d=a;d<a+b;d++)c.push(this[d]);return c},Array.prototype.subarray=function(a,b){a<0&&(a=0);if(!b||b>this.length)b=this.length;if(a==b)return[];var c=[];for(var d=a;d<b;d++)c.push(this[d]);return c},Array.prototype.splice=function(a,b){b<0&&(b=0);var c=[];if(arguments.length>2)for(var d=2,e=arguments.length;d<e;d++)c.push(arguments[d]);var f=this.subarray(0,a),g=this.subarr(a,b),h=this.subarray(a+b),i=f.concat(c,h);this.length=0;for(var d=0,e=i.length;d<e;d++)this.push(i[d]);return g})},z127:function(){document.addEventListener?(this.disableTextInteraction=function(a){a&&(tnS=a.parentNode.style,tnS&&(a.parentNode.unselectable="on",tnS.userSelect="none",tnS.MozUserSelect="none",tnS.webkitUserSelect="none",tnS.webkitTouchCallout="none",tnS.webkitTapHighlightColor="transparent"))},this.renderQuality=function(a,b){if(b){var c=b=="high"?"optimizeQuality":"optimizeSpeed";a.style.setProperty("image-rendering",c,null)}},this.setOpacity=function(a,b,c){Z.alphaSupported?a.style.opacity=b:c&&(a.style.backgroundColor=c)}):document.attachEvent&&(this.disableTextInteraction=function(a){a&&(a.parentNode.unselectable="on",a.parentNode.onselectstart=function(){return!1})},this.renderQuality=function(a,b){if(b){var c=b=="high"?"bicubic":"nearest-neighbor";a.style.msInterpolationMode=c}},this.setOpacity=function(a,b,c){Z.alphaSupported?(a.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity=' + value + ')",a.style.filter="alpha(opacity="+b+")"):c&&(a.style.backgroundColor=c)})},z126:function(){document.addEventListener?(this.addEventListener=function(a,b,c){b=="mousewheel"&&elmt.addEventListener("DOMMouseScroll",c,!1),a.addEventListener(b,c,!1)},this.removeEventListener=function(a,b,c){b=="mousewheel"&&elmt.addEventListener("DOMMouseScroll",c,!1),a&&a.removeEventListener(b,c,!1)},this.event=function(a){return a},this.target=function(a){return a.target},this.relatedTarget=function(a){return a.relatedTarget},this.isRightMouseButton=function(a){var b=!1;if(a.which==2||a.which==3)b=!0;return b},this.preventDefault=function(a){a.preventDefault()},this.stopPropagation=function(a){a.stopPropagation()}):document.attachEvent&&(this.addEventListener=function(a,b,c){if(this._findListener(a,b,c)!=-1)return;var d=function(){var b=window.event;Function.prototype.call?c.call(a,b):(a._currentListener=c,a._currentListener(b),a._currentListener=null)};a.attachEvent("on"+b,d);var e={target:a,eventName:b,handler:c,handler2:d},f=a.document||a,g=f.parentWindow,h="l"+this._listenerCounter++;g._allListeners||(g._allListeners={}),g._allListeners[h]=e,a._listeners||(a._listeners=[]),a._listeners[a._listeners.length]=h,g._unloadListenerAdded||(g._unloadListenerAdded=!0,g.attachEvent("onunload",this._removeAllListeners))},this.removeEventListener=function(a,b,c){if(a){var d=this._findListener(a,b,c);if(d==-1)return;var e=a.document||a,f=e.parentWindow,g=a._listeners[d],h=f._allListeners[g];a.detachEvent("on"+b,h.handler2),a._listeners.splice(d,1),delete f._allListeners[g]}},this.event=function(a){return window.event},this.target=function(a){return a.srcElement},this.relatedTarget=function(a){var b=null;return a.type=="mouseover"?b=a.fromElement:a.type=="mouseout"&&(b=a.toElement),b},this.isRightMouseButton=function(a){var b=!1;return a.button==2&&(b=!0),b},this.preventDefault=function(a){a&&(a.returnValue=!1)},this.stopPropagation=function(a){a.cancelBubble=!0},this._findListener=function(a,b,c){var d=a._listeners;if(!d)return-1;var e=a.document||a,f=e.parentWindow;for(var g=d.length-1;g>=0;g--){var h=d[g],i=f._allListeners[h];if(i.eventName==b&&i.handler==c)return g}return-1},this._removeAllListeners=function(){var a=this;for(id in a._allListeners){var b=a._allListeners[id];b.target.detachEvent("on"+b.eventName,b.handler2),delete a._allListeners[id]}},this._listenerCounter=0)},z164:function(){Z.browsers={UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5};var a=Z.browsers.UNKNOWN,b=0,c=navigator.appName,d=navigator.appVersion,e=!1,f=!1,g=navigator.userAgent.toLowerCase();if(c!="Microsoft Internet Explorer"||!window.attachEvent||!window.ActiveXObject)if(c!="Netscape"||!window.addEventListener)c=="Opera"&&!!window.opera&&!!window.attachEvent&&(a=Z.browsers.OPERA,b=parseFloat(d));else{var i=g.indexOf("firefox"),j=g.indexOf("safari"),k=g.indexOf("chrome");if(i>=0)a=Z.browsers.FIREFOX,b=parseFloat(g.substring(i+8));else if(j>=0){var l=g.substring(0,j).lastIndexOf("/");a=k>=0?Z.browsers.CHROME:Z.browsers.SAFARI,b=parseFloat(g.substring(l+1,j))}var m=new Image;m.style.getPropertyValue&&(f=m.style.getPropertyValue("image-rendering"))}else{var h=g.indexOf("msie");a=Z.browsers.IE,b=parseFloat(g.substring(h+5,g.indexOf(";",h))),e=typeof document.documentMode!="undefined"}var n=document.documentElement||{},o=n.style||{},p=!1,q=["transform","WebkitTransform","MozTransform"],r,s;while(r=q.shift())if(typeof o[r]!="undefined"){p=!0,s=/webkit/i.test(r);break}var t=document.createElement("canvas").getContext&&document.createElement("canvas").getContext("2d"),u=!(a==Z.browsers.SAFARI&&b<4||a==Z.browsers.CHROME&&b<2),v=t&&u,w=!(a==Z.browsers.IE||a==Z.browsers.CHROME&&b<2),x=e||f?"high":null,y=g.indexOf("android")>-1||g.indexOf("iphone")>-1||g.indexOf("ipad")>-1||g.indexOf("ipod")>-1;Z.browser=a,Z.browserVersion=b,Z.canvasSupported=v,Z.useCanvas=Z.canvasSupported,Z.cssTransformsSupported=p,Z.cssTransformProperty=r,Z.cssTransformNoUnits=s,Z.alphaSupported=w,Z.renderQuality=x,Z.mobileDevice=y},isStrVal:function(a){return a!=null&&a!=""},z174:function(a){var b=0,c=0,d=this.z176(a).position=="fixed",e=this.z183(a,d);while(e){b+=a.offsetLeft,c+=a.offsetTop;if(d){var f=this.z184();b+=f.x,c+=f.y}a=e,d=this.z176(a).position=="fixed",e=this.z183(a,d)}return new this.Point(b,c)},z183:function(a,b){return b&&a!=document.body?document.body:a.offsetParent},z175:function(a){return new this.Point(a.clientWidth,a.clientHeight)},z176:function(a){if(a.currentStyle)return a.currentStyle;if(window.getComputedStyle)return window.getComputedStyle(a,"");this.z255(this.z185("z93"))},z177:function(a){return z174(Z.Utils.target(a))},z178:function(a){var b=null,c=a.touches,d=a.changedTouches;return c!==undefined?b=c[0]:d!==undefined&&(b=d[0]),b},z181:function(a){var b=0,c=0;return a.type=="DOMMouseScroll"&&browser==Browser.FIREFOX&&browserVersion<3?(b=a.screenX,c=a.screenY):typeof a.pageX=="number"?(b=a.pageX,c=a.pageY):typeof a.clientX=="number"?(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop):this.z255(this.z185("z94")),new this.Point(b,c)},z182:function(a){var b=0;return typeof a.wheelDelta=="number"?b=a.wheelDelta:typeof a.detail=="number"?b=a.detail*-1:this.z255(this.z185("z95")),b?b/Math.abs(b):0},z184:function(){var a=0,b=0,c=document.documentElement||{},d=document.body||{};if(typeof window.pageXOffset=="number")a=window.pageXOffset,b=window.pageYOffset;else if(d.scrollLeft||d.scrollTop)a=d.scrollLeft,b=d.scrollTop;else if(c.scrollLeft||c.scrollTop)a=c.scrollLeft,b=c.scrollTop;return new this.Point(a,b)},z201indowSize:function(){var a=0,b=0,c=document.documentElement||{},d=document.body||{};return typeof window.innerWidth=="number"?(a=window.innerWidth,b=window.innerHeight):c.clientWidth||c.clientHeight?(a=c.clientWidth,b=c.clientHeight):d.clientWidth||d.clientHeight?(a=d.clientWidth,b=d.clientHeight):this.z255(this.z185("z96")),new this.Point(a,b)},z225:function(a){var b=!1,c=a;while(b==!1)if(c)c.id?c.id=="ViewerDisplay"?b=!0:c=c.parentNode:c=c.parentNode;else break;return b},z238:function(a){var b=a+"=",c=document.cookie.split(";");for(var d=0;d<c.length;d++){var e=c[d];while(e.charAt(0)==" ")e=e.substring(1,e.length);if(e.indexOf(b)==0)return e.substring(b.length,e.length)}return null},z243:function(a){var b=a.slice(-1,a.length)=="/"?a.slice(0,a.length-1):a;return b=a.slice(0,1)=="/"?a.slice(1,a.length):a,b},z140:function(a){if(Z.browser==Z.browsers.IE){var b=(new Date).getTime().toString(),c=Math.random().toString(),d=c+b;a+="?suffixToBlockPathCaching="+d}return a},z170:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},z233:function(a){var b;return a&&(b=a.split("&")),b},z249:function(a){var b=this.z185("z50"),c=this.z185("z49"),d=this.z185("z48");Z.skinPath=this.z185("z56"),Z.skinMode=this.z185("z54"),isNaN(parseFloat(this.z185("z26")))||(Z.initialX=parseFloat(this.z185("z26"))),isNaN(parseFloat(this.z185("z27")))||(Z.initialY=parseFloat(this.z185("z27"))),isNaN(parseFloat(this.z185("z28")))||(Z.initialZ=parseFloat(this.z185("z28"))),isNaN(parseFloat(this.z185("z33")))||(Z.minZ=parseFloat(this.z185("z33"))),isNaN(parseFloat(this.z185("z32")))||(Z.maxZ=parseFloat(this.z185("z32"))),isNaN(parseFloat(this.z185("z80")))||(Z.zoomSpeed=parseFloat(this.z185("z80"))),isNaN(parseFloat(this.z185("z46")))||(Z.panSpeed=parseFloat(this.z185("z46"))),isNaN(parseFloat(this.z185("z18")))||(Z.fadeInSpeed=parseFloat(this.z185("z18"))),Z.toolbarVisible=parseInt(this.z185("z64"),10),Z.toolbarPosition=parseFloat(this.z185("z63")),Z.tooltipsVisible=this.z185("z65")!="0",Z.navigatorVisible=parseInt(this.z185("z43"),10),Z.navigatorW=parseInt(this.z185("z44"),10),Z.navigatorH=parseInt(this.z185("z39"),10),Z.navigatorL=parseInt(this.z185("z40"),10),Z.navigatorT=parseInt(this.z185("z42"),10),Z.navigatorFit=this.z185("z38"),Z.clickZoom=this.z185("z10")!="0",Z.clickPan=this.z185("z9")!="0",Z.mousePan=this.z185("z34")!="0",Z.keys=this.z185("z29")!="0",Z.constrainPan=this.z185("z12")!="0",Z.sliderVisible=this.z185("z58")!="0",Z.fullPageVisible=this.z185("z23")!="0",Z.progressVisible=this.z185("z53")!="0",Z.logoVisible=this.z185("z31")!="0",Z.logoCustomPath=this.z185("z30"),Z.canvas=this.z185("z8")!="0",Z.debug=this.z185("z17")!="0";if(this.isStrVal(a))for(var e=0,f=a.length;e<f;e++){var g=a[e],h=g.indexOf("=");if(h>0){var i=g.substring(0,h),j=g.substring(h+1);if(this.isStrVal(j))switch(i){case"zInitialX":isNaN(parseFloat(j))||(Z.initialX=parseFloat(j));break;case"zInitialY":isNaN(parseFloat(j))||(Z.initialY=parseFloat(j));break;case"zInitialZoom":isNaN(parseFloat(j))||(Z.initialZ=parseFloat(j),Z.initialZ&&(Z.initialZ/=100));break;case"zMinZoom":!isNaN(parseFloat(j))&&parseFloat(j)>.01&&(Z.minZ=parseFloat(j),Z.minZ&&(Z.minZ/=100));break;case"zMaxZoom":isNaN(parseFloat(j))||(Z.maxZ=parseFloat(j),Z.maxZ&&(Z.maxZ/=100));break;case"zNavigatorVisible":Z.navigatorVisible=parseInt(j,10);break;case"zToolbarVisible":Z.toolbarVisible=parseInt(j,10);break;case"zLogoVisible":j=="0"&&(Z.logoVisible=!1);break;case"zSliderVisible":j=="0"&&(Z.sliderVisible=!1);break;case"zFullPageVisible":j=="0"&&(Z.fullPageVisible=!1);break;case"zProgressVisible":j=="0"&&(Z.progressVisible=!1);break;case"zTooltipsVisible":j=="0"&&(Z.tooltipsVisible=!1);break;case"zSkinPath":Z.skinPath=j;break;default:if(b==c)alert(d+" "+i);else switch(i){case"zZoomSpeed":Z.zoomSpeed=parseInt(j,10);break;case"zPanSpeed":Z.panSpeed=parseInt(j,10);break;case"zFadeInSpeed":Z.fadeInSpeed=parseInt(j,10);break;case"zToolbarPosition":Z.toolbarPosition=parseInt(j,10);break;case"zNavigatorWidth":isNaN(parseFloat(j))||(Z.navigatorW=parseFloat(j));break;case"zNavigatorHeight":isNaN(parseFloat(j))||(Z.navigatorH=parseFloat(j));break;case"zNavigatorLeft":isNaN(parseFloat(j))||(Z.navigatorL=parseFloat(j));break;case"zNavigatorTop":isNaN(parseFloat(j))||(Z.navigatorT=parseFloat(j));break;case"zNavigatorFit":isNaN(parseFloat(j))||(Z.navigatorFit=parseInt(j,10));break;case"zClickZoom":j=="0"&&(Z.clickZoom=!1);break;case"zClickPan":j=="0"&&(Z.clickPan=!1);break;case"zMousePan":j=="0"&&(Z.mousePan=!1);break;case"zKeys":j=="0"&&(Z.keys=!1);break;case"zConstrainPan":j=="0"&&(Z.constrainPan=!1);break;case"zCopyrightPath":Z.copyrightPath=j;break;case"zWatermarkPath":Z.watermarkPath=j;break;case"zLogoCustomPath":Z.logoCustomPath=j;break;case"zCanvas":j=="0"&&(Z.canvas=!1);if(!Z.canvasSupported||!Z.canvas)Z.useCanvas=!1;break;case"zDebug":j=="1"&&(Z.debug=!0)}}}}},z242:function(a){for(var b=1;b<a.length;)a[b-1]==a[b]?a.splice(b,1):b++;return a},intersect:function(a,b){var c=[];for(var d=0;d<a.length;d++){var e=a[d],f=!1;for(var g=0;g<b.length&&e>=(elmt2=b[g]);g++)if(elmt2==e){f=!0;break}f&&c.push(a[d])}return c},subtract:function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=!1;for(var f=0;f<b.length&&d>=(elmt2=b[f]);f++)if(elmt2==d){e=!0;break}e&&a.splice(c--,1)}return a},createCallback:function(a,b){var c=[];for(var d=2,e=arguments.length;d<e;d++)c.push(arguments[d]);return function(){var d=c.concat([]);for(var e=0,f=arguments.length;e<f;e++)d.push(arguments[e]);return b.apply(a,d)}},z255:function(a){alert(a)},createContainerElement:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=document.createElement(a);this.isStrVal(b)&&(p.id=b);var q=p.style;return q.display=this.isStrVal(c)?c:"inline-block",q.position=this.isStrVal(d)?d:"static",q.overflow=this.isStrVal(e)?e:"hidden",a=="canvas"?(this.isStrVal(f)&&p.setAttribute("width",f),this.isStrVal(g)&&p.setAttribute("height",g)):(this.isStrVal(f)&&(q.width=f),this.isStrVal(g&&g)&&(q.height=g)),this.isStrVal(h)&&(q.left=h),this.isStrVal(i)&&(q.top=i),q.borderStyle=this.isStrVal(j)?j:"none",q.borderWidth=this.isStrVal(k)?k:"0px",q.background=this.isStrVal(l)?l:"transparent none",q.margin=this.isStrVal(m)?m:"0px",q.padding=this.isStrVal(n)?n:"0px",this.isStrVal(o)&&(q.cursor=o),p},createCenteredElement:function(a){var b=this.createContainerElement("div"),c=[];c.push('<div style="display:table; height:100%; width:100%;'),c.push("border:none; margin:0px; padding:0px;"),c.push('#position:relative; overflow:hidden; text-align:left;">'),c.push('<div style="#position:absolute; #top:50%; width:100%; '),c.push("border:none; margin:0px; padding:0px;"),c.push('display:table-cell; vertical-align:middle;">'),c.push('<div style="#position:relative; #top:-50%; width:100%; '),c.push("border:none; margin:0px; padding:0px;"),c.push('text-align:center;"></div></div></div>'),b.innerHTML=c.join(""),b=b.firstChild;var d=b,e=b.getElementsByTagName("div");while(e.length>0)d=e[0],e=d.getElementsByTagName("div");return d.appendChild(a),b},createGraphicElement:function(a){var b=this.createContainerElement("img"),c=null;return Z.browser==Z.browsers.IE&&Z.browserVersion<7?(c=this.createContainerElement("span",null,"inline-block"),b.onload=function(){c.style.width=c.style.width||b.width+"px",c.style.height=c.style.height||b.height+"px",b.onload=null,b=null},c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='scale')"):(c=b,c.src=a),c},z251:function(a,b,c,d,e,f,g,h,i,j,k,l){var m=a.parentNode.style;m.color=b,m.fontFamily=c,m.fontSize=d,m.fontSizeAdjust=e,m.fontStyle=f,m.fontStretch=g,m.fontVariant=h,m.fontWeight=i,m.lineHeight=j,m.textAlign=k,m.textDecoration=l},z158:function(a){var b=null;if(window.ActiveXObject)try{b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a)}catch(c){this.z255(c.name+this.z185("z82")+c.message)}else if(window.DOMParser)try{var d=new DOMParser;b=d.parseFromString(a,"text/xml")}catch(c){this.z255(c.name+this.z185("z82")+c.message)}else this.z255(this.z185("z98"));return b},Point:function(a,b){this.x=typeof a=="number"?a:0,this.y=typeof b=="number"?b:0},Point3D:function(a,b,c){this.x=typeof a=="number"?a:0,this.y=typeof b=="number"?b:0,this.z=typeof c=="number"?c:0},z185:function(a){var b="";switch(a){case"z50":b="Enable Developer parameters";break;case"z49":b="Changing This Violates License Agreement";break;case"z48":b="Support for this parameter is enabled only in the Zoomify Image Viewer included in the Zoomify HTML5 Developer edition: ";break;case"z25":b="100";break;case"z60":b="30000";break;case"z61":b="256";break;case"z59":b="1.15";break;case"z62":b="300";break;case"z7":b="6";break;case"z6":b="3";break;case"z5":b="3";break;case"z4":b="2";break;case"z3":b="0";break;case"z45":b="2";break;case"z46":b="5";break;case"z47":b="10";break;case"z80":b="5";break;case"z81":b="0.02";break;case"z77":b="30";break;case"z78":b="200";break;case"z79":b="10";break;case"z10TIERSKIPTHRESHOLD":b="01.";break;case"z24":b="10";break;case"z18":b="5";break;case"z19":b="0.067";break;case"z64":b="4";break;case"z63":b="1";break;case"z65":b="1";break;case"z43":b="2";break;case"z44":b="150";break;case"z39":b="100";break;case"z40":b="0";break;case"z42":b="0";break;case"z38":b=null;break;case"z36":b="#ffffff";break;case"z36NOALPHA":b="#fbfafa";break;case"z35":b="0.75";break;case"z41":b="blue";break;case"z55":b="skinFiles.xml";break;case"z56":b="Assets/Skins/Default";break;case"z54":b="0";break;case"z12":b="1";break;case"z58":b="1";break;case"z57":b="10";break;case"z23":b="1";break;case"z22":b="white";break;case"z21":b="X";break;case"z20":b="\t#F8F8F8";break;case"z53":b="1";break;case"z51":b="500";break;case"z52":b=" ";break;case"z31":b="1";break;case"z30":b=null;break;case"z8":b="1";break;case"z17":b="0";break;case"z16":b="lightgray";break;case"z14":b="white";break;case"z13":b="Agree";break;case"z15":b="Exit";break;case"z73":b="0.6";break;case"z74":b="0.33";break;case"z76":b="512";break;case"z75":b="384";break;case"z26":b=null;break;case"z27":b=null;break;case"z28":b=null;break;case"z33":b=null;break;case"z32":b="1";break;case"z10":b="1";break;case"z9":b="1";break;case"z34":b="1";break;case"z29":b="1";break;case"z67":b="This panel is enabled using the HTML parameter 'zDebug=1'. It can be called as follows:\n\n   Z.Utils.trace('value to display');  \n\nThe buttons below display or modify important state values.  Web designers new to JavaScript will also benefit from the console, trace, profiling, and other debugging features of leading browsers.";break;case"z68":b="lightgray";break;case"z66":b="white";break;case"z69":b="Show Globals";break;case"z72":b="Toggle Display";break;case"z70":b="Toggle Backfill";break;case"z71":b="Toggle Constrain Pan";break;case"z99":b="Browser does not support XMLHttpRequest.";break;case"z87-IMAGEXML":b="Error loading image: please make sure image path in web page matches image folder location on webserver.";break;case"z87-TOOLBARXML":b="Error loading toolbar: please verify skin files are on webserver in same folder as z122.js file and are in default folder structure 'Assets/Skins/Default', or add zSkinPath parameter to webpage.";break;case"z87":b="Error making network request: possible invalid path or network error.";break;case"z84":b="Image failed to load: possible invalid path, missing image, or network error.";break;case"z89":b="Error related to network security: ";break;case"z90":b="Error related to network status: ";break;case"z82":b=" converting XML text to XML doc (DOMParser): ";break;case"z98":b="Browser does not support XML DOM.";break;case"z100":b="XML invalid.";break;case"z86":b="Image XML invalid.";break;case"z83":b=" while executing callback: ";break;case"z85":b="Image timed out: ";break;case"z88":b="Navigator image failed to load: possible invalid path, missing image, or network error.";break;case"z91":b="Skin XML invalid.";break;case"z92":b="The skin XML file has one or more faulty name lines.";break;case"z97":b="Watermark image failed to load: ";break;case"z93":b="Unknown element style - no known method to identify.";break;case"z94":b="Unknown mouse position - no known method to calculate.";break;case"z95":b="Unknown mouse scroll - no known method to calculate.";break;case"z96":b="Unknown window size - no known method to calculate.";break;case"z106":b="Launch Zoomify Website";break;case"z107":b="Minimize Toolbar";break;case"z105":b="Expand Toolbar";break;case"z120":b="Zoom Out";break;case"z114":b="Zoom In And Out";break;case"z119":b="Zoom In";break;case"z109":b="Pan Left";break;case"z111":b="Pan Up";break;case"z108":b="Pan Down";break;case"z110":b="Pan Right";break;case"z112":b="Reset Initial View";break;case"z118":b="Toggle Full Page View";break;case"z102":b="Cancel Full Page View";break;case"z103":b="Agree to copyright and view images";break;case"z104":b="Exit and do not view images";break;case"z113":b="Toggle Full Page View";break;case"z117":b="Toggle Viewport Display";break;case"z115":b="Toggle Viewport Backfill";break;case"z116":b="Toggle Constrain Pan";break;default:b="Unexpected resource request"}return b},z253:function(){var a="";a+="\n",a+="                            ZOOMIFY IMAGE VIEWER - CURRENT VALUES\n",a+="\n",a+="IMAGE & SKIN:    ",a+="Z.imagePath="+Z.imagePath+",   ",a+="Z.skinPath="+Z.skinPath+",   ",a+="Z.skinMode="+Z.skinMode+",   ",a+="Z.imageW="+Z.imageW+",   ",a+="Z.imageH="+Z.imageH+",   ",a+="tierCount="+Z.Viewport.z186()+",   ",a+="TILE_SIZE="+Z.Viewport.z195()+"\n",a+="\n",a+="PAGE & BROWSER:    ",a+="Z.pageContainer="+Z.pageContainer+",   ",a+="Z.browser="+Z.browser+",   ",a+="Z.browserVersion="+Z.browserVersion+",   ",a+="Z.canvasSupported="+Z.canvasSupported+",   ",a+="Z.cssTransformsSupported="+Z.cssTransformsSupported+",   ",a+="Z.cssTransformProperty="+Z.cssTransformProperty+",   ",a+="Z.cssTransformNoUnits="+Z.cssTransformNoUnits+",   ",a+="Z.alphaSupported="+Z.alphaSupported+",   ",a+="Z.renderQuality="+Z.renderQuality+",   ",a+="Z.mobileDevice="+Z.mobileDevice+"\n",a+="\n",a+="VIEWER OPTIONS & DEFAULTS:    ",a+="Z.initialX="+Z.initialX+",   ",a+="Z.initialY="+Z.initialY+",   ",a+="Z.initialZ="+Z.initialZ+",   ",a+="Z.minZ="+Z.minZ+",   ",a+="Z.maxZ="+Z.maxZ+",   ",a+="Z.fitZ="+Z.fitZ+",   ",a+="Z.zoomSpeed="+Z.zoomSpeed+",   ",a+="Z.panSpeed="+Z.panSpeed+",   ",a+="Z.fadeInSpeed="+Z.fadeInSpeed+",   ",a+="Z.toolbarVisible="+Z.toolbarVisible+",   ",a+="Z.toolbarW="+Z.toolbarW+",   ",a+="Z.toolbarCurrentW="+Z.toolbarCurrentW+",   ",a+="Z.toolbarH="+Z.toolbarH+",   ",a+="Z.toolbarPosition="+Z.toolbarPosition+",   ",a+="Z.tooltipsVisible="+Z.tooltipsVisible+",   ",a+="Z.navigatorVisible="+Z.navigatorVisible+",   ",a+="Z.navigatorW="+Z.navigatorW+",   ",a+="Z.navigatorH="+Z.navigatorH+",   ",a+="Z.navigatorL="+Z.navigatorL+",   ",a+="Z.navigatorT="+Z.navigatorT+",   ",a+="Z.navigatorFit="+Z.navigatorFit+",   ",a+="Z.clickZoom="+Z.clickZoom+",   ",a+="Z.clickPan="+Z.clickPan+",   ",a+="Z.mousePan="+Z.mousePan+",   ",a+="Z.keys="+Z.keys+",   ",a+="Z.constrainPan="+Z.constrainPan+",   ",a+="Watermark alpha = "+Z.Utils.z185("z73")+",   ",a+="Z.watermarkPath="+Z.watermarkPath+",   ",a+="Z.copyrightPath="+Z.copyrightPath+",   ",a+="Z.sliderVisible="+Z.sliderVisible+",   ",a+="Z.fullPageVisible="+Z.fullPageVisible+",   ",a+="Z.progressVisible="+Z.progressVisible+",   ",a+="Z.logoVisible="+Z.logoVisible+",   ",a+="Z.logoCustomPath="+Z.logoCustomPath+",   ",a+="Z.canvas="+Z.canvas+"\n",a+="\n",a+="INTERNAL VALUES:    ",a+="\n",a+="displayW="+Z.Viewport.z201()+",   ",a+="displayH="+Z.Viewport.z179()+",   ",a+="tierCurrent="+Z.Viewport.z187()+",   ",a+="tierScale="+Z.Viewport.z189()+",   ",a+="TIERS_MAX_SCALE_UP="+Z.Viewport.z194()+",   ",a+="TIERS_MAX_SCALE_DOWN="+Z.Viewport.z193()+",   ",a+="TILES_MAX_CACHE="+Z.Viewport.z197()+",   ",a+="Z.useCanvas="+Z.useCanvas+"\n",a+="\n",a+="INTERNAL LISTS:    ",a+="tierWs="+Z.Viewport.z192()+",   ",a+="tierHs="+Z.Viewport.z188()+",   ",a+="tierTileCounts="+Z.Viewport.z191()+",   ",a+="tilesLoadingNames="+Z.Viewport.z196()+"\n",a+="\n",alert(a)},z256:function(){Z.TraceDisplay?Z.TraceDisplay.display=="inline-block"?Z.TraceDisplay.display="none":Z.TraceDisplay.display="inline-block":Z.Utils.configureTraceDisplay()},configureTraceDisplay:function(){var a=Z.viewerW/3,b=Z.viewerH/3+45,c=10,d=parseFloat(Z.viewerH)/3,e=this.z185("z68");Z.TraceDisplay=this.createContainerElement("div","TraceDisplay","inline-block","absolute","hidden",a+"px",b+"px",c+"px",d+"px","solid","1px",e,"0px","10px"),Z.ViewerDisplay.appendChild(Z.TraceDisplay),Z.traces=document.createElement("TEXTAREA");var f=Z.traces.style;f.width=a-15+"px",f.height=b-60+"px",f.fontFamily="verdana",f.fontSize="10px",f.border="solid",f.borderWidth="1px",f.padding="5px",f.resize="none",Z.traces.value="Trace Values\n",Z.TraceDisplay.appendChild(Z.traces);var g=58,h=42,i=20,j=b-h/2-10,k=10,l=this.z185("z66"),m=this.z185("z69"),n=new this.Button("buttonShowGlobals",m,null,null,null,null,g+"px",h+"px",i+"px",j+"px","mousedown",this.z253,"z113","solid","1px",l,"0px","0px");Z.TraceDisplay.appendChild(n.elmt),i+=g+k;var m=this.z185("z72"),o=new this.Button("buttonToggleDisplay",m,null,null,null,null,g+"px",h+"px",i+"px",j+"px","mousedown",Z.Viewport.z272,"z117","solid","1px",l,"0px","0px");Z.TraceDisplay.appendChild(o.elmt),i+=g+k;var m=this.z185("z70"),p=new this.Button("buttonToggleBackfill",m,null,null,null,null,g+"px",h+"px",i+"px",j+"px","mousedown",Z.Viewport.z271,"z115","solid","1px",l,"0px","0px");Z.TraceDisplay.appendChild(p.elmt),i+=g+k,g+=12;var m=this.z185("z71"),q=new this.Button("buttonToggleConstrainPan",m,null,null,null,null,g+"px",h+"px",i+"px",j+"px","mousedown",Z.Viewport.toggleConstrainPan,"z116","solid","1px",l,"0px","0px");Z.TraceDisplay.appendChild(q.elmt)},trace:function(a){Z.TraceDisplay||Z.Utils.configureTraceDisplay(),Z.traces&&(Z.traces.value+="\n"+a+"\n")}}
