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