var q=!0,t=null,z=!1; window.keyshotXR=function(W,v,G,X,pa,D,qa,ra,sa,ta,ua,K,L,Y,Z,va,$,wa,aa,xa,ba,ya,za,Aa,Ba,r){function P(a,d,b){a.removeEventListener?a.removeEventListener(d,b,z):a.detachEvent&&(a.detachEvent("on"+d,a["e"+d+b]),a["e"+d+b]=t)}function m(a,d,b){a.addEventListener?a.addEventListener(d,b,z):a.attachEvent&&(a["e"+d+b]=b,a.attachEvent("on"+d,function(){a["e"+d+b]()}))}function ca(){var a=z;-1!=navigator.platform.toString().indexOf("Win")&&-1!=navigator.appVersion.indexOf("MSIE")&&(a=q);return a}function Ca(){var a= document.getElementById(W),d=a.requestFullScreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||a.msRequestFullScreen;"undefined"!=typeof d&&d&&d.call(a)}function Da(f){a.na=z;f.pointerId in a.F&&delete a.F[f.pointerId];da(f)}function Ea(f){a.na&&(a.F[f.pointerId]=[f.pageX,f.pageY],ea(f))}function Fa(f){a.na=q;a.F[f.pointerId]=[f.pageX,f.pageY];fa(f)}function ga(){a.l?(setTimeout(function(){a.u(z)},20),setTimeout(function(){a.u(q)},120)):(setTimeout(function(){a.u(q)},20),setTimeout(function(){a.u(z)}, 120))}function H(){var a={x:0,y:0},d=s;if(d.offsetParent){do a.x+=d.offsetLeft,a.y+=d.offsetTop;while(d=d.offsetParent)}return a}function ha(){var f=c.g;c.g=1;f!=c.g&&a.T(a.v()*f/c.g);p.setAttribute("width",B.width);a.l?(p.removeAttribute("height"),p.style.width="100%",p.style[M]="scale("+c.n+")",p.style.height="auto",s.style["background-color"]=a.backgroundColor,document.body.style["background-color"]=a.backgroundColor):(p.setAttribute("height",B.height),p.style[M]="translate("+-B.width/2+"px,"+ -B.height/2+"px) scale("+c.g+") translate("+0.5*C.width/c.g+"px,"+0.5*C.height/c.g+"px) translate("+c.j+"px,"+c.k+"px) scale("+c.n+")",p.style["max-width"]="",p.style.width="",p.style.height="",s.style["background-color"]=a.backgroundColor)}function N(){a.Ta(a.h.offsetWidth,a.h.offsetHeight)}function ia(a,d){l.start.x=a;l.start.y=d;l.a.x=a;l.a.y=d;i.a.x=a;i.a.y=d}function ja(a,d){l.b.x=a-l.a.x;l.b.y=d-l.a.y;l.n.x=a;l.n.y=d;l.a.x=a;l.a.y=d}function F(f){f||(f=window.event);var d=0;f.keyCode?d=f.keyCode: f.which&&(d=f.which);1==d?j.d|=1:1e&&0i.b.x*i.b.x+i.b.y*i.b.y&&(i.b.x=0,i.b.y=0,l.b.x=0,l.b.y=0,l.a.x=i.a.x,l.a.y=i.a.y),(0!=i.b.x||0!=i.b.y)&& a.ma(i.b.x,i.b.y)));a.Ca();var f=0;if(-1==a.ga){for(var b=1,b=0;be.q&&(h=e.q);if(h-=f)for(var g=0;g=c)if(n=0,0==j)j=1,k=0;else if(1==j&&(b+=h,k++,k>=c/2)){c*=2;b=e.ra;d=e.sa;h=parseFloat(e.c/c);g=parseFloat(e.i/c);if(1>h&&1>g){for(b=0;bh&&(h+=2*Math.PI);h+=Math.PI/8;h=parseInt(h/(Math.PI/4));0>h&&(h+=8);h%=8;if(0!=w[h]){if(Aa)var g=e.I,g=g-c*w[h];else g=e.I,g+=c*w[h];if(e.Da){for(;0>g;)g+=e.c;for(;g>=e.c;)g-=e.c}else g>=e.c&&(g=e.c-1),0>g&&(g=0);e.I!=g&&(e.I=g,e.J=q)}if(0!=x[h]){Ba?(g=e.K,g-=c* x[h]):(g=e.K,g+=c*x[h]);if(e.Fa){for(;0>g;)g+=e.i;for(;g>=e.i;)g-=e.i}else g>=e.i&&(g=e.i-1),0>g&&(g=0);e.K!=g&&(e.K=g,e.J=q)}}};this.Va=function(){a.u(!a.l);a.l?a.H.setAttribute("src",A+a.s+"/files/GoFullScreenIcon.png"):a.H.setAttribute("src",A+a.s+"/files/GoFixedSizeIcon.png")};this.u=function(b){a.l=b;a.l?(u.style.position="relative",u.style.left="0px",u.style.top="0px",document.body.style.overflow=""):(u.style.position="absolute",b=H(),u.style.left=window.pageXOffset-b.x+k.left+"px",u.style.top= window.pageYOffset-b.y+k.top+"px",document.body.style.overflow="hidden");document.body.style.margin="0";document.body.style.padding="0";N()};this.Ka=function(){var b=new Image;b.src=a.O.src;a.G[a.Y]=b;b=a.B[a.Y];a.D[b]=a.w[b];a.w[b]=-1;a.Y++;e.J=q;a.Y==e.q&&(a.ga=0,a.La())};var S,R=t;this.wa=function(b){var d=H();a.cursor.x=b.pageX-d.x+k.left;a.cursor.y=b.pageY-d.y+k.top;1==j.d?ia(b.pageX,b.pageY):2==j.d?(E.start.x=a.cursor.x,E.start.y=a.cursor.y,c.t=a.v(),a.e=a.cursor.x-0.5*C.width,a.f=a.cursor.y- 0.5*C.height,a.e*=a.R,a.f*=a.R,a.e-=c.j,a.f-=c.k,a.e/=c.t,a.f/=c.t):3==j.d&&(E.start.x=a.cursor.x,E.start.y=a.cursor.y,c.m.x=0,c.m.y=0)};this.Ha=function(b){a.T(c.n*Math.exp(-b/50))};this.v=function(){return c.n};this.T=function(a){a>c.ka/c.g&&(a=c.ka/c.g);a';a.p.appendChild(a.o);a.p.appendChild(a.Q);n.appendChild(a.p);a.u(a.l);setTimeout(function(){a.u(a.l)},10)};this.Sa=function(b){if(a.p){a.Q.innerHTML="
"+parseInt(100*b)+"
";a.o.$.ja+=2.1;b="";if(a.o.$)var d=a.o.$,b=b+("translate("+d.Na+"px,"+d.Oa+"px) rotate("+d.ja+"deg) scale("+d.Pa+","+d.Qa+") ");a.o.style[M]=b+"scale(1.0,1.0)"}};this.ta=function(){U=q;T()};this.za=function(){m(window, "resize",N);za&&m(n,"dblclick",Ca);if(ca())if(m(window,"mousewheel",Q),m(window,"keydown",ma),/Tablet PC/i.test(navigator.userAgent)&&window.ab){var b=new MSGesture;b.target=a.h;a.h.Ja=b;a.h.Ja.pointerType=t;a.h.hb=[];m(a.h,"MSPointerDown",Fa);m(a.h,"MSPointerMove",Ea);m(a.h,"MSPointerUp",Da)}else m(n,"mousedown",F),m(p,"mousedown",F),m(n,"mousemove",I),m(p,"mousemove",I),m(document,"mouseup",O);else n.addEventListener&&(m(document,"mouseup",O),m(n,"mousewheel",Q),m(document,"keydown",ma),m(n,"mousedown", F),m(p,"mousedown",F),m(n,"mousemove",I),m(n,"touchstart",fa),m(n,"touchmove",ea),m(n,"touchcancel",Ga),m(n,"touchend",da),m(n,"DOMMouseScroll",Q),m(window,"orientationchange",ga))};if(document.createElement("canvas").getContext){var a=this,u=a.h=t,s=t,V=t,n=t,p=t;a.l=$;a.s=v;a.eb=z;a.Z=z;a.W=aa;a.ib=0;a.P=0;a.Wa=parseFloat(ta);a.Xa=parseFloat(ua);a.Aa=1;a.Y=0;a.ga=-1;var k={left:0,top:0,right:0,bottom:0},e={I:0,K:0,c:1,i:1,ra:0,sa:0,z:0,da:0,ea:0,J:z,q:0,Da:q,Fa:z};K||(K=0);L||(L=0);e.ra=K;e.sa= L;e.I=K;e.K=L;e.c=D;e.i=qa;e.Da=ra;e.Fa=sa;e.q=e.c*e.i;var B={width:0,height:0};B.width=G;B.height=X;var y="",M="transform",C={x:640,y:480},c={n:1,t:1,a:-1,j:0,k:0,xa:-1,ya:-1,g:1,la:1,ka:1,m:{x:0,y:0},pa:z};c.la=parseFloat(Y);c.ka=parseFloat(Z);var l={start:{x:0,y:0},a:{x:0,y:0},Ma:{x:0,y:0},n:{x:0,y:0},b:{x:0,y:0}},E={start:{x:0,y:0}},j={d:0,start:{x:0,y:0},a:{x:0,y:0},Ma:{x:0,y:0},n:{x:0,y:0},b:{x:0,y:0},ba:{x:0,y:0},ca:{x:0,y:0}},i={a:{x:0,y:0},b:{x:0,y:0},L:0.96};i.L=va;a.cursor={x:0,y:0};var w= [],x=[];w[0]=0;x[0]=1;w[1]=1;x[1]=1;w[2]=1;x[2]=0;w[3]=1;x[3]=-1;w[4]=0;x[4]=-1;w[5]=-1;x[5]=-1;w[6]=-1;x[6]=0;w[7]=-1;x[7]=1;a.e=0;a.f=0;a.oa=0;a.G=[];a.B=[];a.w=[];a.D=[];a.Ea=[];for(v=0;v