fbpx
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