////////////////////////////////////////////////////////////////////// // Pano2VR 5.2.5/15998 HTML5/CSS3 & WebGL Panorama Player // // License: Zedy Wiepandy Ng // // (c) 2018, Garden Gnome Software, http://ggnome.com // ////////////////////////////////////////////////////////////////////// function G(){var m="perspective",k=["Webkit","Moz","O","ms","Ms"],g;for(g=0;gf;)f+=360;for(;180h&&(h=a.f.c); this.Fb||(this.Fb=new m.ra,this.Fb.Oj(this.pan,this.j));0!=this.mode&&1!=this.mode||!c||this.Sc&&this.Sc.gain.setValueAtTime(this.level*a.W*this.ka,c.currentTime);if(2==this.mode&&c){var x=.5*Math.cos(f*Math.PI/180)+.5;this.Hc=Math.sqrt(x)*this.ka*this.level*a.W;this.Ic=Math.sqrt(x)*this.ka*this.level*a.W;this.vc=Math.sqrt(1-x)*this.ka*this.level*a.W;this.wc=Math.sqrt(1-x)*this.ka*this.level*a.W;this.ig()}if(3==this.mode){0>f?f<-this.Ab?f+=this.Ab:f=0:f=f>this.Ab?f-this.Ab:0;x=this.level;b=Math.abs(b); b=bh||0>A){var g=x*l*a.W;c?(this.Hc=g*this.ka,this.Ic=g*this.ka,this.wc=this.vc=0,this.ig()):this.a.volume=x*l*a.W}else if(g=1-Math.abs(f/h),c){var k=x*(l+(1-l)*A*g)*a.W,g=x*l*a.W;0<=f?(this.Hc=k*this.ka,this.Ic=g*this.ka):(this.Hc=g*this.ka,this.Ic=k*this.ka);2*Math.abs(f) f?f=f>-this.Ab?0:f+this.Ab:f=f no audio buffer -> playWhenReady"),this.Ri=!0)}; a.prototype.Yh=function(){var a=this.g.Ha.currentTime-this.og;this.Ce();this.me=a};a.prototype.Ce=function(){this.xb&&this.oe&&(this.Bh=!0,this.xb.disconnect(),this.xb.stop(0),this.xb=null);this.og=this.me=0;this.oe=!1};a.prototype.cm=function(){var a=this.g.Ha;return this.me?this.me:this.og?a.currentTime-this.og:0};a.prototype.dm=function(a){this.Ce();this.me=a;this.Lc()};a.prototype.addElement=function(){var a=-1,c=this,b=this.g,f=this.g.Ha;try{for(var l=!1,h=0;ha.loop&&(a.a.b="none"));a.a.volume=a.level*c.W;1<=a.loop&&(a.Oc=a.loop-1); (1==a.mode||2==a.mode||3==a.mode||5==a.mode)&&0<=a.loop&&(a.a.autoplay=!0,a.tk=!0,a.autoplay=!0);c.J.push(this);c.wg?c.U.appendChild(a.a):(a.a.style.position="absolute",a.Ac&&(a.a.width=a.Ac),a.Tc&&(a.a.height=a.Tc),c.C.appendChild(a.a),a.Rh());a.a.onclick=function(){a.Uc()};a.a.addEventListener("ended",function(){a.Vo()},!1)}catch(l){c.L(l)}};a.prototype.registerElement=function(a,c){this.$c=!0;this.a=c;this.id=a;this.level=1;this.g.J.push(this)};a.prototype.vd=function(){var a=this.g;a.wg&&(a.H.deleteTexture(this.hc), this.hc=0,a.U.removeChild(this.a));a.Cl&&a.C.removeChild(this.a);this.a=null};return a}(g);m.al=g;g=function(b){function a(a){b.call(this,a);this.url="";this.mb=this.Da=this.va=0;this.f=50;this.Sa=0;this.Hf=!1;this.Tc=this.Ac=100;this.ld=1}__extends(a,b);a.prototype.Db=function(a){b.prototype.Db.call(this,a);var c;if(c=a.getAttributeNode("url"))this.url=c.nodeValue.toString();if(c=a.getAttributeNode("rotx"))this.va=Number(c.nodeValue);if(c=a.getAttributeNode("roty"))this.Da=Number(c.nodeValue);if(c= a.getAttributeNode("rotz"))this.mb=Number(c.nodeValue);if(c=a.getAttributeNode("fov"))this.f=Number(c.nodeValue);if(c=a.getAttributeNode("width"))this.Ac=Number(c.nodeValue);if(c=a.getAttributeNode("height"))this.Tc=Number(c.nodeValue);this.ld=(c=a.getAttributeNode("stretch"))?Number(c.nodeValue):1;if(c=a.getAttributeNode("clickmode"))this.Sa=Number(c.nodeValue);if(c=a.getAttributeNode("handcursor"))this.Hf=1==Number(c.nodeValue);for(a=a.firstChild;a;)"source"==a.nodeName&&(c=a.getAttributeNode("url"))&& (this.url=c.nodeValue.toString()),a=a.nextSibling};a.prototype.Gf=function(){this.Ef=!1;this.a.style[this.g.Rc]="none"};a.prototype.Uc=function(){1!==this.Sa&&4!==this.Sa||this.Ff(!this.yb)};a.prototype.Ff=function(a){var c=this.g;if(1===this.Sa||4===this.Sa)this.yb=a,this.g.wb?(a=this.g.ha)&&a.activateSound(this.id,this.yb?1:0):(this.a.style.zIndex=this.yb?(c.zg+8E4).toString():c.zg.toString(),this.a.style[c.Rc]="all 1s ease 0s",this.Ef=!0,c.wl())};a.prototype.addElement=function(){var a=this,c= this.g;try{a.a=document.createElement("img");a.a.setAttribute("style","-webkit-user-drag:none; max-width:none; pointer-events:none;");a.a.setAttribute("class","ggmedia");a.a.hidden=!0;c.Ne&&a.a.setAttribute("id",c.Ne+a.id);a.a.ondragstart=function(){return!1};if(1===a.Sa||4===a.Sa)a.a.addEventListener(c.Hl(),function(){a.Gf()},!1),a.a.addEventListener("transitionend",function(){a.Gf()},!1);a.a.setAttribute("src",c.Wb(a.url));a.Ac&&(a.a.width=a.Ac);a.Tc&&(a.a.height=a.Tc);c.Xa.push(a);a.a.style.position= "absolute";a.Uc&&(a.a.onclick=function(){a.Uc()});c.C.appendChild(a.a)}catch(b){c.L("Error addimage:"+b)}};a.prototype.vd=function(){this.g.C.removeChild(this.a);this.a=null};return a}(k);m.Rl=g;k=function(b){function a(a){b.call(this,a);this.alpha=this.zj=50;this.type=0;this.color=16777215}__extends(a,b);a.prototype.Db=function(a){b.prototype.Db.call(this,a);var c;if(c=a.getAttributeNode("blinding"))this.zj=Number(c.nodeValue);if(c=a.getAttributeNode("alpha"))this.alpha=Number(c.nodeValue);if(c= a.getAttributeNode("type"))this.type=Number(c.nodeValue);if(c=a.getAttributeNode("color"))this.color=1*Number(c.nodeValue)};return a}(k);m.Sl=k;k=function(){function b(a){this.type="empty";this.il=this.id=this.target=this.description=this.title=this.url="";this.Nh=100;this.Xg=20;this.Ph=!1;this.a=null;this.gb=this.na=this.j=this.pan=0;this.Sb=a.w.Sb;this.Pb=a.w.Pb;this.Rb=a.w.Rb;this.Ob=a.w.Ob;this.Me=a.w.Me;this.xg=[]}b.prototype.Ie=function(){this.id=this.id;this.pan=this.pan;this.tilt=this.j;this.url= this.url;this.target=this.target;this.title=this.title;this.description=this.description;this.skinid=this.il;this.obj=this.a};b.prototype.Db=function(a){var d;if(d=a.getAttributeNode("url"))this.url=d.nodeValue.toString();if(d=a.getAttributeNode("target"))this.target=d.nodeValue.toString();if(d=a.getAttributeNode("title"))this.title=d.nodeValue.toString();if(d=a.getAttributeNode("description"))this.description=d.nodeValue.toString();if(d=a.getAttributeNode("id"))this.id=d.nodeValue.toString();if(d= a.getAttributeNode("skinid"))this.il=d.nodeValue.toString();if(d=a.getAttributeNode("width"))this.Nh=Number(d.nodeValue);if(d=a.getAttributeNode("height"))this.Xg=Number(d.nodeValue);if(d=a.getAttributeNode("wordwrap"))this.Ph=1==Number(d.nodeValue);d=a.getAttributeNode("pan");this.pan=1*(d?Number(d.nodeValue):0);d=a.getAttributeNode("tilt");this.j=1*(d?Number(d.nodeValue):0);if(d=a.getAttributeNode("bordercolor"))this.Sb=1*Number(d.nodeValue);if(d=a.getAttributeNode("backgroundcolor"))this.Pb=1* Number(d.nodeValue);if(d=a.getAttributeNode("borderalpha"))this.Rb=1*Number(d.nodeValue);if(d=a.getAttributeNode("backgroundalpha"))this.Ob=1*Number(d.nodeValue);if(d=a.getAttributeNode("handcursor"))this.Me=1==Number(d.nodeValue);for(a=a.firstChild;a;){if("vertex"==a.nodeName){var c={pan:0,j:0};d=a.getAttributeNode("pan");c.pan=1*(d?Number(d.nodeValue):0);d=a.getAttributeNode("tilt");c.j=1*(d?Number(d.nodeValue):0);this.xg.push(c)}a=a.nextSibling}this.Ie()};return b}();m.dh=k})(ggP2VR||(ggP2VR={})); (function(m){var k=function(){function g(b,a){this.x=b;this.y=a}g.prototype.Ya=function(b,a){this.x=b;this.y=a};g.prototype.nd=function(b,a,d){var c=a.y-b.y;this.x=b.x+(a.x-b.x)*d;this.y=b.y+c*d};g.prototype.bm=function(b,a,d,c,e){var f;f=new g;f.nd(b,d,e);b=new g;b.nd(d,c,e);d=new g;d.nd(c,a,e);a=new g;a.nd(f,b,e);f=new g;f.nd(b,d,e);b=new g;b.nd(a,f,e);this.x=b.x;this.y=b.y};g.prototype.Vh=function(b,a,d,c,e){var f=new g,l=.5,h=.25;do{f.bm(b,a,d,c,l);var x=f.x-e,l=0a;a++)2>a%3&&(h[a]*=b);l.bufferData(l.ARRAY_BUFFER,new Float32Array(h),l.STATIC_DRAW);this.Zd=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,this.Zd);var x=[1,0,0,0,0,1,1,1];l.bufferData(l.ARRAY_BUFFER,new Float32Array(x),l.STATIC_DRAW);this.Nc=l.createBuffer();l.bindBuffer(l.ELEMENT_ARRAY_BUFFER, this.Nc);var g=[0,1,2,0,2,3];l.bufferData(l.ELEMENT_ARRAY_BUFFER,new Uint16Array(g),l.STATIC_DRAW);var h=[],g=[],x=[],k=new m.ra;for(b=0;6>b;b++){c=b%3;e=3>b?1:0;for(d=0;4>d;d++){k.x=-1;k.y=-1;k.z=1;for(a=0;ak.x?.33:0)+.33*c,(0>k.y?0:.5)+.5*e);if(4>b)for(a=0;ae;e++)a=c.createTexture(),this.Vc++, a.Te=null,a.ie=null,a.gk=!1,c.bindTexture(c.TEXTURE_2D,a),c.texImage2D(c.TEXTURE_2D,0,c.RGB,1,1,0,c.RGB,c.UNSIGNED_BYTE,null),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),d.Ge[e]&&(b=new Image,b.crossOrigin=d.crossOrigin,b.src=d.Wb(d.Ge[e]),a.Te=b,b.addEventListener&&b.addEventListener("load",this.yi(a),!1),d.Gb.push(b)),this.Ua.push(a);for(e=0;6>e;e++)d.Kg[e]&& (b=new Image,b.crossOrigin=d.crossOrigin,b.src=d.Wb(d.Kg[e]),b.addEventListener?b.addEventListener("load",this.yi(this.Ua[e]),!1):b.onload=this.yi(this.Ua[e]),this.Ua[e].ie=b,d.Gb.push(b));for(e=0;eb;b++)this.kg(b),a.bindBuffer(a.ARRAY_BUFFER,this.ei),a.vertexAttribPointer(this.F.$,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Zd),a.vertexAttribPointer(this.F.wa,2,a.FLOAT,!1,0,0),6<=this.Ua.length&&this.Ua[b].loaded&&(a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,this.Ua[b]),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Nc),a.uniform1i(this.F.Ze,0),a.uniformMatrix4fv(this.F.Yf,!1,this.da),a.uniformMatrix4fv(this.F.Nd, !1,this.cb),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0))}};g.prototype.Ih=function(){var b=this.g;if(b.h.Ve&&6>16&255)/255,(a>>8&255)/255,(a>>0&255)/255,1)}};g.prototype.kg=function(b){var a=this.g;m.T.Jd(this.da);m.T.rotate(this.da,-a.N.c*Math.PI/180,[0,0,1]);m.T.rotate(this.da,-a.j.c*Math.PI/180,[1,0,0]);m.T.rotate(this.da,(180-a.pan.c)*Math.PI/180,[0,1,0]);a.Ca&&(m.T.rotate(this.da,-a.Ca.pitch*Math.PI/180,[1,0,0]),m.T.rotate(this.da, a.Ca.N*Math.PI/180,[0,0,1]));4>b?m.T.rotate(this.da,-Math.PI/2*b,[0,1,0]):m.T.rotate(this.da,Math.PI/2*(5==b?1:-1),[1,0,0])};g.prototype.Eo=function(b){var a=this;return function(){a.ji.push(b)}};g.prototype.qm=function(b){this.g.za=!0;this.g.Pc=!0;b.loaded=!0;b.Xi=0;b.Pd=0;var a=this.g.H;this.Jj();a.pixelStorei(a.UNPACK_FLIP_Y_WEBGL,1);if(null!=b.h&&b.h.complete){b.bb=a.createTexture();this.g.Vc++;a.bindTexture(a.TEXTURE_2D,b.bb);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b.h)}catch(d){a.texImage2D(a.TEXTURE_2D, 0,a.RGBA,1,1,0,a.RGBA,a.UNSIGNED_BYTE,new Uint8Array([128,128,128,250])),this.g.L(d)}}this.g.update(2)};g.prototype.Jj=function(){this.g.Fa&&this.g.Fa--;0==this.g.Fa&&this.g.O&&this.g.O.ggLoadedLevels&&this.g.O.ggLoadedLevels()};g.prototype.rm=function(){if(0f;f++){var l=new m.Id;l.K=document.createElement("canvas");a.g.Z?(l.K.width=c.width+2*e,l.K.height=c.height+2*e):(l.K.width=d.G+2*e,l.K.height=d.G+2*e);l.Oa=l.K.getContext("2d");l.K.style[a.g.Va+"Origin"]="0% 0%";l.K.style.overflow="hidden";l.K.style.position="absolute";l.h=b;var h=c.width+2*e,x=c.height+2*e;l.Oa&&l.Oa.drawImage(b,0,f*x,h,x,0,0,h,x);if(a.g.Z&&a.g.H){var g=a.g.H;g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,1);l.bb=g.createTexture();a.g.Vc++;g.bindTexture(g.TEXTURE_2D,l.bb);try{g.texImage2D(g.TEXTURE_2D, 0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,l.K)}catch(k){a.g.L(k)}g.bindTexture(g.TEXTURE_2D,null);g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,0)}a.g.Gc&&(l.K.Hd=-1,a.g.C.insertBefore(l.K,a.g.C.firstChild));c.V[f]=l}c.loaded=!0}}catch(k){a.g.L(k)}a.g.update(2)}};g.prototype.sl=function(b){var a=this;return function(){a.g.za=!0;a.g.Pc=!0;a.Jj();b.h=null}};g.prototype.Zo=function(){var b=this.g,a=b.h,d=b.h.I;b.de&&(b.Bc(0),b.dd());if(b.H){var c=b.H;c.useProgram(this.F);this.Ih();c.clear(c.DEPTH_BUFFER_BIT);c.enable(c.DEPTH_TEST); m.T.Jd(this.cb);m.T.perspective(b.Jb(),b.jb.width/b.jb.height,.1,100,this.cb);c.uniformMatrix4fv(this.F.Nd,!1,this.cb);b.yl();b.Ii();var e=b.ni(),f;for(f=d.length-1;f>=e;){var l=d[f],h=1;f==d.length-1&&0==a.Ka&&(h=a.G/(a.G-.5));for(var x=0;6>x;x++){var g;g=this.g.hb.ab[x];var k=g.Re;if(g.qc&&0w;w++)q[w]=0==w%3?h*t*(-2*q[w]/l.width+1):1==w%3?h*t*(-2*q[w]/l.height+ 1):t;c.bufferData(c.ARRAY_BUFFER,new Float32Array(q),c.STATIC_DRAW)}}else k=!1;v.visible=g.qc}r.Fi=k}}f--}for(x=0;6>x;x++)if(g=b.hb.ab[x],g.qc)for(k=g.Re,this.kg(x),c.uniform1i(this.F.Ze,0),c.uniformMatrix4fv(this.F.Nd,!1,this.cb),c.uniformMatrix4fv(this.F.Yf,!1,this.da),c.enableVertexAttribArray(this.F.$),c.enableVertexAttribArray(this.F.wa),c.bindBuffer(c.ARRAY_BUFFER,this.Zd),c.vertexAttribPointer(this.F.wa,2,c.FLOAT,!1,0,0),c.activeTexture(c.TEXTURE0),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Nc), c.useProgram(this.F),f=e;f<=d.length-1;){l=d[f];if(g.qc&&0f?z.cg(-90*f):z.pe(5==f?90:-90);h.Ca&&(z.vh(h.Ca.N), z.pe(-h.Ca.pitch));z.cg(-h.pan.c);z.pe(h.j.c);z.vh(h.N.c);for(f=0;f<=e;f++)for(var y=0;y<=e;y++)u=2*(n+y*r)-1,t=2*(d+f*p)-1,B.x=1*u,B.y=1*t,B.z=-1,B.normalize(),z.vn(B),u=this.ak(B,g,h.xa()),0!=h.fc&&1>w&&(u=u&&this.ak(B,v,h.fc),g.x=g.x*w+v.x*(1-w),g.y=g.y*w+v.y*(1-w)),u?-1E10g.x&&-1E10g.y?-2g.x&&-2g.y&&(a+=g.x,c+=g.y,q++):g.x=NaN:g.x=NaN,b.Wc[b.Wg++]=g.x,b.Wc[b.Wg++]=g.y;0h;h++)isNaN(b.Wc[2*c[0]])&&(e=!1);if(e){for(var g=!1,k=!1,n=!1,m=!1,h=0;4>h;h++){var p=b.Wc[2*c[h]];pp;p++)for(var u=0;u=f;){var q={},k=d[l],w=null;0>n-l),p,-(0!=b.fc)?.3:.1),y.visible=0b.f.c&&lb.je){b.L("Excided painted tiles");this.Ah=!1;break}y.bb&&(g=p=a.G,t==k.M-1&&(p=k.width-a.G*t),u==k.ea-1&&(g=k.height-a.G*u),p=(p+2*a.Ka)/a.G,g=(g+2*a.Ka)/a.G,c.bindTexture(c.TEXTURE_2D,y.bb),c.uniform2f(c.getUniformLocation(e,"uCanvasDimensions"),b.m.width,b.m.height),n=c.getUniformLocation(e,"srcScale"), c.uniform2f(n,.5*k.width/a.G/p,.5*k.height/a.G/g),n=c.getUniformLocation(e,"srcOffset"),c.uniform2f(n,(.5*k.width+a.Ka-a.G*t)/a.G/p,-(.5*k.height+a.Ka-a.G*u)/a.G/g+1),n=c.getUniformLocation(e,"zOffset"),c.uniform1f(n,(l+1)/(d.length+5)),p=c.getAttribLocation(e,"aVertexPosition"),c.disableVertexAttribArray(0),c.disableVertexAttribArray(1),c.disableVertexAttribArray(2),c.enableVertexAttribArray(p),c.activeTexture(c.TEXTURE0),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),c.bindBuffer(c.ARRAY_BUFFER,this.gn),c.vertexAttribPointer(p,2,c.FLOAT,!1,0,0),c.bufferData(c.ARRAY_BUFFER,new Float32Array(y.Wc),c.DYNAMIC_DRAW),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.fn),c.bufferData(c.ELEMENT_ARRAY_BUFFER,new Uint16Array(y.ge),c.DYNAMIC_DRAW),c.drawElements(c.TRIANGLES,y.md,c.UNSIGNED_SHORT,0),h++)}l++}c.disable(c.CULL_FACE); c.cullFace(c.FRONT_AND_BACK);b.Pc=!1}};g.prototype.Jh=function(b,a){var d=this.g,c=d.H;m.T.Jd(this.cb);m.T.Jd(this.da);m.T.rotate(this.da,d.N.c*Math.PI/180,[0,0,1]);m.T.rotate(this.da,d.j.c*Math.PI/180,[1,0,0]);m.T.rotate(this.da,-d.pan.c*Math.PI/180,[0,1,0]);d.Ca&&(m.T.rotate(this.da,-d.Ca.pitch*Math.PI/180,[1,0,0]),m.T.rotate(this.da,d.Ca.N*Math.PI/180,[0,0,1]));4>b?m.T.rotate(this.da,-Math.PI/2*b,[0,1,0]):m.T.rotate(this.da,Math.PI/2*(5==b?1:-1),[1,0,0]);c.uniformMatrix4fv(c.getUniformLocation(a, "matRotate"),!1,this.da)};g.prototype.En=function(){var b=this.g;if(b.H){var a=b.H,d,c=this.Vk;a.useProgram(c);this.Jh(0,c);a.uniform2f(a.getUniformLocation(c,"uCanvasDimensions"),b.m.width,b.m.height);1==b.o.format&&(d=a.getUniformLocation(c,"srcScale"),a.uniform2f(d,-.5/Math.PI,(b.o.ti?-1:1)/Math.PI));14==b.o.format&&(d=a.getUniformLocation(c,"srcScale"),a.uniform2f(d,1-2*b.o.ze/(b.o.width/3),1-2*b.o.ze/(b.o.height/2)));d=a.getUniformLocation(c,"srcOffset");a.uniform2f(d,.5,.5);this.mj(c);d=a.getUniformLocation(c, "cubeTexture");a.uniform1i(d,0);d=a.getAttribLocation(c,"aVertexPosition");a.disableVertexAttribArray(0);a.disableVertexAttribArray(1);a.disableVertexAttribArray(2);a.enableVertexAttribArray(d);a.bindBuffer(a.ARRAY_BUFFER,this.sh);a.vertexAttribPointer(d,2,a.FLOAT,!1,0,0);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,b.o.hc);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER, a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Nc);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)}};g.prototype.mj=function(b){var a=this.g,d=a.H,c=this.g.m,e=c.width/c.height;switch(a.f.mode){case 1:e=1;break;case 2:e=c.width/Math.sqrt(c.width*c.width+c.height*c.height);break;case 3:4*c.height/3l;l++)this.Ua[l].ie.complete?this.Jg[l]|| (f=!0):c=!1,this.Ua[l].Te.complete||(e=!1);if(e||c)if(!e||c||!this.rc||f){l=Math.round(b.ic/b.cf);e=(b.ic-l)/2;b.L("paint cube single - isMain: "+c+" overlap: "+e);this.Fe=0;this.rc||(this.rc=a.createTexture());b.Vc++;a.bindTexture(a.TEXTURE_CUBE_MAP,this.rc);a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.pixelStorei(a.UNPACK_FLIP_Y_WEBGL,1);f=document.createElement("canvas");f.width=l;f.height=l;for(var h= f.getContext("2d"),l=0;6>l;l++){var g=d[l];this.Ua[g].ie.complete?this.Jg[g]||(h.drawImage(this.Ua[g].ie,-e,-e),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+l,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,f),this.Jg[g]=!0):(h.drawImage(this.Ua[g].Te,-e,-e,b.ic,b.ic),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X+l,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,f))}this.Nf=!c}};g.prototype.om=function(){var b=this.g,a=this.g.h,d=b.h.I,c=b.H,e,f;e=d.length-1;if(!(0>e)){d[e].Ue&&e--;var l=512;b.Mf&&(l=256);!b.Ye&&2<=b.devicePixelRatio&& (l=512);for((f=c.getParameter(c.MAX_CUBE_MAP_TEXTURE_SIZE))&&fe)){l=d[e];b.L("paint cube level "+e);this.Fe=e;d=b.h.Ka;e=0l.width&&(1500n;n++){for(var m=0;me;e++)for(var f=0;fa;a++)for(var d=0;d1.1*b.ql)for(this.Fd.sort(function(a,c){return c.Sf-a.Sf});this.Fd.length>b.ql;)h=this.Fd.pop(),h.bb&&(d.deleteTexture(h.bb),b.Vc--,h.bb=0),h.h=null,h.Le&&(d.deleteBuffer(h.Le),h.Le=0),l=h.level.V.indexOf(h),b.L("delete "+l+" "+(c-h.Sf)),delete h.level.V[l]};g.prototype.To=function(){var b=this.g;if(b.H){var a=this.g.H; a.disable(a.DEPTH_TEST);var d;for(d=0;da;a++)this.kg(0),d.bindBuffer(d.ARRAY_BUFFER,b.o.rj),d.vertexAttribPointer(this.F.$,3,d.FLOAT,!1,0,0),d.bindBuffer(d.ARRAY_BUFFER,b.o.Ch),d.vertexAttribPointer(this.F.wa,2,d.FLOAT,!1,0,0),d.activeTexture(d.TEXTURE0),d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,b.o.Ci),d.uniform1i(this.F.Ze,0),d.uniformMatrix4fv(this.F.Yf,!1,this.da),d.uniformMatrix4fv(this.F.Nd,!1,this.cb),d.drawElements(d.TRIANGLES,36,d.UNSIGNED_SHORT, 0)}};g.prototype.Ro=function(){var b=this.g,a=b.H,d=b.o;if(0=d.w.mode&&(e=0);3==d.w.mode&&(e=d.w.na);for(b=0;b>16&255)/255,(a>>8&255)/255,(a&255)/255);var k=c.getUniformLocation(this.td,"uAlpha");c.uniform1f(k,f.Rb*h);c.vertexAttribPointer(this.td.$,3,c.FLOAT,!1,0,0);c.drawArrays(c.LINE_LOOP,0,g.length/3);a=f.Pb;c.uniform3f(l,(a>>16&255)/255,(a>>8&255)/255,(a&255)/255);c.uniform1f(k,f.Ob*h);c.enable(c.STENCIL_TEST);c.clearStencil(0);c.clear(c.STENCIL_BUFFER_BIT);c.colorMask(!1,!1,!1,!1);c.stencilFunc(c.ALWAYS,1,1);c.stencilOp(c.INCR,c.INCR, c.INCR);c.drawArrays(c.TRIANGLE_FAN,0,g.length/3);c.colorMask(!0,!0,!0,!0);c.stencilFunc(c.EQUAL,1,1);c.stencilOp(c.ZERO,c.ZERO,c.ZERO);c.drawArrays(c.TRIANGLE_FAN,0,g.length/3);c.disable(c.BLEND);c.enable(c.DEPTH_TEST);c.disable(c.STENCIL_TEST);c.useProgram(this.F)}}}}};g.prototype.lj=function(){var b=this.g,a=b.h;if(b.m.width!=b.C.offsetWidth||b.m.height!=b.C.offsetHeight)b.m.width=b.C.offsetWidth,b.m.height=b.C.offsetHeight;b.de&&(b.Bc(0),b.dd());if(b.H){var d=b.H;this.Ih();d.clear(d.COLOR_BUFFER_BIT| d.DEPTH_BUFFER_BIT);d.disable(d.DEPTH_TEST);d.disable(d.CULL_FACE);d.useProgram(this.xf);var c=d.getUniformLocation(this.xf,"uRect");d.uniform2f(d.getUniformLocation(this.xf,"uCanvasDimensions"),b.m.width,b.m.height);d.activeTexture(d.TEXTURE0);var e;d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.Nc);e=d.getAttribLocation(this.xf,"aVertexPosition");d.disableVertexAttribArray(0);d.disableVertexAttribArray(1);d.disableVertexAttribArray(2);d.enableVertexAttribArray(e);d.bindBuffer(d.ARRAY_BUFFER,this.Zd); d.vertexAttribPointer(e,2,d.FLOAT,!1,0,0);b.uc=0;var f,l;l=100/b.f.c;f=a.width/a.height;e=b.m.height*l*f;l*=b.m.height;f=(b.pan.c/100/f-.5)*e+b.m.width/2;for(var h=(b.j.c/100-.5)*l+b.m.height/2,g,k,n,r=0;a.I.length>=r+2&&a.I[r+1].width>e;)r++;var p,u;u=[];for(p=a.I.length-1;p>=r;){var t=a.I[p],v;t.cache?(v={Wa:0,rb:0},v.tb=t.M-1,v.ub=t.ea-1):(v={},g=-h/l*(t.height/b.h.G),k=(-f+b.m.width)/e*(t.width/b.h.G),n=(-h+b.m.height)/l*(t.height/b.h.G),v.Wa=Math.min(Math.max(0,Math.floor(-f/e*(t.width/b.h.G))), t.M-1),v.rb=Math.min(Math.max(0,Math.floor(g)),t.ea-1),v.tb=Math.min(Math.max(0,Math.floor(k)),t.M-1),v.ub=Math.min(Math.max(0,Math.floor(n)),t.ea-1));u[p]=v;var q=!0;for(k=v.rb;k<=v.ub;k++)for(g=v.Wa;g<=v.tb;g++){n=g+k*t.M;var w=t.V[n];w||(w=new m.Id,t.V[n]=w);this.Og()?w.h||(this.ih(w,t,b.se(0,p,g,k)),b.za=!0):this.g.uc++;w.h&&w.h.complete||(q=!1);w.visible=!0}v.Fi=q;p--}for(p=a.I.length-1;p>=r;){t=a.I[p];if(u[p]&&0<=u[p].Wa)for(v=u[p],k=v.rb;k<=v.ub;k++)for(g=v.Wa;g<=v.tb;g++)n=g+k*t.M,(w=t.V[n])&& w.h&&w.h.complete&&(d.uniform4f(c,f+(-a.Ka+a.G*g)*e/t.width,h+(-a.Ka+a.G*k)*l/t.height,w.h.width*e/t.width,w.h.height*l/t.height),w&&w.bb&&(d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.Nc),d.bindTexture(d.TEXTURE_2D,w.bb),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE),d.drawElements(d.TRIANGLES,6,d.UNSIGNED_SHORT, 0)));p--}this.Yi()}};g.prototype.th=function(){var b=this.g.H;if(b&&this.Ua)for(;0a;a++)this.ab[a]=new k}b.prototype.mm=function(a,d,c,b){for(var f=0;6>f;f++){var l;if(l=this.ab[f]){var h;h=[];h.push(new m.ra(-1,-1,-1,0,0));h.push(new m.ra(1,-1,-1,1,0));h.push(new m.ra(1,1,-1,1,1));h.push(new m.ra(-1,1,-1,0,1));for(var g=0;gf?h[g].Da(-Math.PI/2*f):h[g].va(Math.PI/2*(4===f?-1:1)),b&&(h[g].mb(b.N* Math.PI/180),h[g].va(-b.pitch*Math.PI/180)),h[g].Da(-a*Math.PI/180),h[g].va(d*Math.PI/180),h[g].mb(c*Math.PI/180);l.qc=0 uRadius) {\n alpha = 1.0;\n } else {\n alpha = 1.0 - ((uRadius - distFromCenter) / uSoftEdge);\n };\n }\n else {\n float alphaFromLeft = 1.0 - ((gl_FragCoord.x -(uIrisCenter.x - uRectDim.x)) / uSoftEdge);\n float alphaFromRight = 1.0 - (((uIrisCenter.x + uRectDim.x) - gl_FragCoord.x) / uSoftEdge);\n float alphaFromTop = 1.0 - ((gl_FragCoord.y -(uIrisCenter.y - uRectDim.y)) / uSoftEdge);\n float alphaFromBottom = 1.0 - (((uIrisCenter.y + uRectDim.y) - gl_FragCoord.y) / uSoftEdge);\n alpha = max(max(alphaFromLeft, alphaFromRight), max(alphaFromTop, alphaFromBottom));\n }\n gl_FragColor = vec4(textureColor.x, textureColor.y, textureColor.z, alpha);\n}\n"); b.compileShader(d);b.getShaderParameter(d,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(d)),d=null);this.Ga=b.createProgram();b.attachShader(this.Ga,a);b.attachShader(this.Ga,d);b.linkProgram(this.Ga);b.getProgramParameter(this.Ga,b.LINK_STATUS)||alert("Could not initialise shaders");this.Ga.$=b.getAttribLocation(this.Ga,"aVertexPosition");b.enableVertexAttribArray(this.Ga.$);this.Ga.wa=b.getAttribLocation(this.Ga,"aTextureCoord");b.enableVertexAttribArray(this.Ga.wa);d=b.createShader(b.FRAGMENT_SHADER); b.shaderSource(d,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nvarying vec2 vTextureCoord;\nuniform float uPercent;\nuniform int uDirection;\nuniform vec2 uCanvasDimensions;\nuniform float uSoftEdge;\nuniform sampler2D uSampler;\nvoid main(void) {\n vec4 textureColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n float alpha = 0.0;\n if (uDirection == 1) {\n\t if (gl_FragCoord.x > uPercent) {\n alpha = 1.0; \n } else {\n alpha = 1.0 - ((uPercent - gl_FragCoord.x) / uSoftEdge);\n }\n }\n if (uDirection == 2) {\n\t if (gl_FragCoord.x < uCanvasDimensions.x - uPercent) {\n alpha = 1.0; \n } else {\n alpha = 1.0 - ((gl_FragCoord.x - (uCanvasDimensions.x - uPercent)) / uSoftEdge);\n }\n }\n if (uDirection == 3) {\n\t if (gl_FragCoord.y < uCanvasDimensions.y - uPercent) {\n alpha = 1.0; \n } else {\n alpha = 1.0 - ((gl_FragCoord.y - (uCanvasDimensions.y - uPercent)) / uSoftEdge);\n }\n }\n if (uDirection == 4) {\n\t if (gl_FragCoord.y > uPercent) {\n alpha = 1.0; \n } else {\n alpha = 1.0 - ((uPercent - gl_FragCoord.y) / uSoftEdge);\n }\n }\n gl_FragColor = vec4(textureColor.x, textureColor.y, textureColor.z, alpha);\n}\n"); b.compileShader(d);b.getShaderParameter(d,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(d)),d=null);this.Ma=b.createProgram();b.attachShader(this.Ma,a);b.attachShader(this.Ma,d);b.linkProgram(this.Ma);b.getProgramParameter(this.Ma,b.LINK_STATUS)||alert("Could not initialise shaders");this.Ma.$=b.getAttribLocation(this.Ma,"aVertexPosition");b.enableVertexAttribArray(this.Ma.$);this.Ma.wa=b.getAttribLocation(this.Ma,"aTextureCoord");b.enableVertexAttribArray(this.Ma.wa)};g.prototype.Bc=function(){var b= this.g.H;if(!b)return!1;if(this.Mb=b.createFramebuffer()){b.bindFramebuffer(b.FRAMEBUFFER,this.Mb);this.Mb.width=1024;this.Mb.height=1024;this.ve=b.createTexture();b.bindTexture(b.TEXTURE_2D,this.ve);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,this.Mb.width,this.Mb.height,0,b.RGBA,b.UNSIGNED_BYTE,null);var a=b.createRenderbuffer();b.bindRenderbuffer(b.RENDERBUFFER,a);b.renderbufferStorage(b.RENDERBUFFER, b.DEPTH_COMPONENT16,this.Mb.width,this.Mb.height);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.ve,0);b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,a);b.bindTexture(b.TEXTURE_2D,null);b.bindRenderbuffer(b.RENDERBUFFER,null);b.bindFramebuffer(b.FRAMEBUFFER,null);this.eb=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.eb);b.bufferData(b.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);this.eb.Dc=3;this.eb.Md=4;this.We= b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.We);b.bufferData(b.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),b.STATIC_DRAW);return!0}return!1};g.prototype.Mk=function(b){var a=this.g.H,d=this.g.jb;if(this.Ad){a.useProgram(this.ma);a.bindBuffer(a.ARRAY_BUFFER,this.eb);a.vertexAttribPointer(this.ma.$,this.eb.Dc,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.We);a.vertexAttribPointer(this.ma.wa,2,a.FLOAT,!1,0,0);a.enableVertexAttribArray(this.ma.$);a.enableVertexAttribArray(this.ma.wa);a.activeTexture(a.TEXTURE0); a.bindTexture(a.TEXTURE_2D,this.ve);var d=1+(this.ob-1)*b,c=a.getUniformLocation(this.ma,"uAlpha");a.uniform1f(c,1);c=a.getUniformLocation(this.ma,"uZoomIn");a.uniform1i(c,1);var c=a.getUniformLocation(this.ma,"uZoomCenter"),e=.5+(this.Ag-.5)*Math.sqrt(b),f=.5+(this.Bg-.5)*Math.sqrt(b);0>e-.5/d&&(e=.5/d);0>f-.5/d&&(f=.5/d);1e-.5/this.ob&&(e=.5/this.ob);0>f-.5/this.ob&&(f=.5/this.ob);1>16&255)/255,(this.Ae>>8&255)/255,(this.Ae&255)/255),c=a.getUniformLocation(this.Ra,"uZoomIn"),a.uniform1i(c,1==this.Na||2==this.Na?1:0),c=a.getUniformLocation(this.Ra,"uZoomCenter"),a.uniform2f(c,e,f),e=a.getUniformLocation(this.Ra,"uZoomFactor"),a.uniform1f(e,this.ob),a.uniform1i(a.getUniformLocation(this.Ra,"uSampler"),0);else if("irisround"==this.type||"irisrectangular"==this.type){a.useProgram(this.Ga);a.bindBuffer(a.ARRAY_BUFFER,this.eb);a.vertexAttribPointer(this.Ga.$,this.eb.Dc,a.FLOAT, !1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.We);a.vertexAttribPointer(this.Ga.wa,2,a.FLOAT,!1,0,0);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,this.ve);var l;1==this.Na||2==this.Na?l=c=.5:(c=this.Ag,l=this.Bg);var h=c*d.width,g=l*d.height,h=Math.max(h,d.width-h),g=Math.max(g,d.height-g);"irisround"==this.type?a.uniform1f(a.getUniformLocation(this.Ga,"uRadius"),(Math.sqrt(h*h+g*g)+this.tc)*b):(h>g?(g=d.height/d.width*h+this.tc,h+=this.tc):(h=d.width/d.height*g+this.tc,g+=this.tc),a.uniform2f(a.getUniformLocation(this.Ga, "uRectDim"),h*b,g*b));b=a.getUniformLocation(this.Ga,"uSoftEdge");a.uniform1f(b,this.tc);a.uniform1i(a.getUniformLocation(this.Ga,"uRound"),"irisround"==this.type?1:0);a.uniform2f(a.getUniformLocation(this.Ga,"uIrisCenter"),c*d.width,l*d.height);c=a.getUniformLocation(this.Ga,"uZoomIn");a.uniform1i(c,1==this.Na||2==this.Na?1:0);c=a.getUniformLocation(this.Ga,"uZoomCenter");a.uniform2f(c,e,f);e=a.getUniformLocation(this.Ga,"uZoomFactor");a.uniform1f(e,this.ob);a.uniform1i(a.getUniformLocation(this.Ga, "uSampler"),0)}else if("wipeleftright"==this.type||"wiperightleft"==this.type||"wipetopbottom"==this.type||"wipebottomtop"==this.type||"wiperandom"==this.type)a.useProgram(this.Ma),a.bindBuffer(a.ARRAY_BUFFER,this.eb),a.vertexAttribPointer(this.Ma.$,this.eb.Dc,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.We),a.vertexAttribPointer(this.Ma.wa,2,a.FLOAT,!1,0,0),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,this.ve),a.uniform1f(a.getUniformLocation(this.Ma,"uPercent"),3>this.hi?b*(d.width+ this.tc):b*(d.height+this.tc)),b=a.getUniformLocation(this.Ma,"uSoftEdge"),a.uniform1f(b,this.tc),a.uniform1i(a.getUniformLocation(this.Ma,"uDirection"),this.hi),a.uniform2f(a.getUniformLocation(this.Ma,"uCanvasDimensions"),d.width,d.height),c=a.getUniformLocation(this.Ma,"uZoomIn"),a.uniform1i(c,1==this.Na||2==this.Na?1:0),c=a.getUniformLocation(this.Ma,"uZoomCenter"),a.uniform2f(c,e,f),e=a.getUniformLocation(this.Ma,"uZoomFactor"),a.uniform1f(e,this.ob),a.uniform1i(a.getUniformLocation(this.Ma, "uSampler"),0);a.drawArrays(a.TRIANGLE_STRIP,0,this.eb.Md);a.useProgram(this.g.la.F);a.disable(a.BLEND);a.enable(a.DEPTH_TEST)}};return g}();m.Nl=k})(ggP2VR||(ggP2VR={})); (function(m){var k=function(){function g(b){this.sg=[];this.g=b;this.enabled=!1;this.nb=2;this.Fj=!1}g.prototype.mi=function(b){if(2==b.mode||3==b.mode||5==b.mode){var a=this.g.Ha.currentTime,d=b.pc.gain.value,c=b.nc.gain.value,e=b.oc.gain.value;b.mc.gain.linearRampToValueAtTime(b.mc.gain.value,a);b.mc.gain.linearRampToValueAtTime(0,a+this.nb);b.pc.gain.linearRampToValueAtTime(d,a);b.pc.gain.linearRampToValueAtTime(0,a+this.nb);b.nc.gain.linearRampToValueAtTime(c,a);b.nc.gain.linearRampToValueAtTime(0, a+this.nb);b.oc.gain.linearRampToValueAtTime(e,a);b.oc.gain.linearRampToValueAtTime(0,a+this.nb)}else a=this.g.Ha.currentTime,b.Sc.gain.linearRampToValueAtTime(b.Sc.gain.value,a),b.Sc.gain.linearRampToValueAtTime(0,a+this.nb);b.Qg=!0;setTimeout(function(){b.vd()},1E3*this.nb+5)};g.prototype.Ao=function(){for(var b=0;bd.ka&&(d.ka=b)}1==b&&clearInterval(this.wo)};return g}();m.Ol=k})(ggP2VR||(ggP2VR={})); (function(m){var k=function(){function g(b){this.Tf=[];this.Mc=null;this.Kb=[];this.Hb=[];this.Lb=[];this.cj=!0;this.g=b;this.nm()}g.prototype.Kf=function(){var b=this.g.H,a=b.createShader(b.VERTEX_SHADER);b.shaderSource(a,"attribute vec3 aVertexPosition;\nvoid main(void) {\n gl_Position = vec4(aVertexPosition, 1.0);\n}\n");b.compileShader(a);b.getShaderParameter(a,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(a)),a=null);var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nvarying vec4 vColor;\nuniform vec2 uCanvasDimensions;\nuniform vec2 uFlareCenterPosition;\nuniform float uBlindingValue;\nuniform float uAspectRatio;\nvoid main(void) {\n float canvasDiag = sqrt( (uCanvasDimensions.x * uCanvasDimensions.x) + (uCanvasDimensions.y * uCanvasDimensions.y) );\n vec2 diff = uFlareCenterPosition - gl_FragCoord.xy;\n diff.y = diff.y * uAspectRatio;\n float distFromFlarePoint = sqrt( (diff.x * diff.x) + (diff.y * diff.y) );\n float factor = (distFromFlarePoint / canvasDiag) / 10.0;\n gl_FragColor = vec4(1.0, 1.0, 1.0, pow(((1.0 - factor) * 0.8) * uBlindingValue, 2.0));\n}\n"); b.compileShader(d);b.getShaderParameter(d,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(d)),d=null);this.Qb=b.createProgram();b.attachShader(this.Qb,a);b.attachShader(this.Qb,d);b.linkProgram(this.Qb);b.getProgramParameter(this.Qb,b.LINK_STATUS)||alert("Could not initialise shaders");this.Qb.$=b.getAttribLocation(this.Qb,"aVertexPosition");b.enableVertexAttribArray(this.Qb.$);d=b.createShader(b.VERTEX_SHADER);a=b.createShader(b.VERTEX_SHADER);b.shaderSource(d,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nattribute vec3 aVertexPosition;\nvarying vec4 vColor;\nuniform vec2 uCirclePosition;\nuniform float uCircleRadius;\nuniform vec2 uCanvasDimensions2;\nuniform float uAspectRatio;\nvoid main(void) {\n vec2 circleOnScreen = aVertexPosition.xy * uCircleRadius + uCirclePosition;\n circleOnScreen.y = circleOnScreen.y / uAspectRatio;\n vec2 circleNorm = (circleOnScreen / uCanvasDimensions2) * 2.0 - vec2(1.0, 1.0);\n gl_Position = vec4(circleNorm.x, circleNorm.y, 0.0, 1.0);\n}\n"); b.compileShader(d);b.getShaderParameter(d,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(d)),d=null);b.shaderSource(a,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nattribute vec3 aVertexPosition;\nvarying vec4 vColor;\nuniform vec2 uCirclePosition;\nuniform float uCircleRadius;\nuniform vec2 uCanvasDimensions2;\nuniform float uAspectRatio;\nvoid main(void) {\n vec2 circleOnScreen = aVertexPosition.xy * uCircleRadius + uCirclePosition;\n circleOnScreen.y = circleOnScreen.y / uAspectRatio;\n vec2 circleNorm = (circleOnScreen / uCanvasDimensions2) * 2.0 - vec2(1.0, 1.0);\n gl_Position = vec4(circleNorm.x, circleNorm.y, 0.0, 1.0);\n}\n"); b.compileShader(a);b.getShaderParameter(a,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(a)),d=null);var c=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(c,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nvarying vec4 vColor;\nuniform vec2 uCircleTexturePosition;\nuniform vec3 uCircleColor;\nuniform float uCircleRadius;\nuniform float uCircleAlpha;\nuniform float uCircleSoftness;\nuniform float uAspectRatio;\nvoid main(void) {\n vec2 diff = uCircleTexturePosition - gl_FragCoord.xy;\n diff.y = diff.y * uAspectRatio;\n float distFromCircleCenter = sqrt( (diff.x * diff.x) + (diff.y * diff.y) );\n float softnessDistance = uCircleRadius * (1.0 - uCircleSoftness);\n if (distFromCircleCenter > uCircleRadius)\n {\n\t gl_FragColor = vec4(uCircleColor, 0.0);\n }\n else if (distFromCircleCenter <= (softnessDistance))\n {\n\t float factor = distFromCircleCenter / softnessDistance;\n\t gl_FragColor = vec4(uCircleColor, pow((1.0 - (0.2 * factor)) * uCircleAlpha, 1.8));\n }\n else\n {\n\t float factor = (distFromCircleCenter - softnessDistance) / (uCircleRadius - softnessDistance);\n\t gl_FragColor = vec4(uCircleColor, pow((0.8 - (0.8 * factor)) * uCircleAlpha, 1.8));\n }\n}\n"); b.compileShader(c);b.getShaderParameter(c,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(c)),c=null);this.oa=b.createProgram();b.attachShader(this.oa,d);b.attachShader(this.oa,c);b.linkProgram(this.oa);b.getProgramParameter(this.oa,b.LINK_STATUS)||alert("Could not initialise shaders");this.oa.$=b.getAttribLocation(this.oa,"aVertexPosition");b.enableVertexAttribArray(this.oa.$);d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,"#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nvarying vec4 vColor;\nuniform vec2 uRingTexturePosition;\nuniform float uRingRadius;\nuniform float uRingAlpha;\nuniform float uAspectRatio;\nuniform sampler2D uSampler;\nvoid main(void) {\n vec2 diff = uRingTexturePosition - gl_FragCoord.xy;\n diff.y = diff.y * uAspectRatio;\n float distFromRingCenter = sqrt( (diff.x * diff.x) + (diff.y * diff.y) );\n float factor = distFromRingCenter / uRingRadius;\n if (distFromRingCenter > uRingRadius)\n {\n\t gl_FragColor = vec4(1.0, 1.0, 1.0, 0.0);\n }\n else\n {\n vec4 textureColor = texture2D(uSampler, vec2(factor / uAspectRatio, 0.5));\n gl_FragColor = vec4(textureColor.x, textureColor.y, textureColor.z, uRingAlpha);\n }\n}\n"); b.compileShader(d);b.getShaderParameter(d,b.COMPILE_STATUS)||(alert(b.getShaderInfoLog(d)),d=null);this.lb=b.createProgram();b.attachShader(this.lb,a);b.attachShader(this.lb,d);b.linkProgram(this.lb);b.getProgramParameter(this.lb,b.LINK_STATUS)||alert("Could not initialise shaders");this.lb.$=b.getAttribLocation(this.lb,"aVertexPosition")};g.prototype.Bc=function(){var b=this.g.H;this.kd=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.kd);b.bufferData(b.ARRAY_BUFFER,new Float32Array([-1,-1,0,1, -1,0,1,1,0,-1,1,0]),b.STATIC_DRAW);this.kd.Dc=3;this.kd.Md=4;this.Je=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Je);for(var a=[0,0,0],d=2*Math.PI/6,c=Math.PI/180*35,e=1,f=c;f<=c+2*Math.PI;f+=d)a.push(Math.sin(f)),a.push(-Math.cos(f)),a.push(0),e++;b.bufferData(b.ARRAY_BUFFER,new Float32Array(a),b.STATIC_DRAW);this.Je.Dc=3;this.Je.Md=e;this.Yk=b.createTexture();b.bindTexture(b.TEXTURE_2D,this.Yk);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER, b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a=document.createElement("canvas");a.width=100;a.height=1;d=a.getContext("2d");d.width=100;d.height=1;c=d.createLinearGradient(0,0,100,0);c.addColorStop(0,this.g.fa(16777215,0));c.addColorStop(.88,this.g.fa(0,0));c.addColorStop(.9,this.g.fa(16654848,1));c.addColorStop(.92,this.g.fa(16776448,1));c.addColorStop(.94,this.g.fa(4849466,1));c.addColorStop(.96,this.g.fa(131071, 1));c.addColorStop(.98,this.g.fa(8190,1));c.addColorStop(1,this.g.fa(0,0));d.fillStyle=c;d.fillRect(0,0,100,1);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,a)};g.prototype.Qn=function(){for(;0e.z){var p,u;u=-f/e.z;p=e.x*u;u*=e.y;Math.abs(p)h?l:h,r=n.zj/100*((v-c)/v);0>r&&(r=0);if(this.g.Z){b.useProgram(this.Qb);b.bindBuffer(b.ARRAY_BUFFER,this.g.B.eb);b.vertexAttribPointer(this.Qb.$,this.g.B.eb.Dc,b.FLOAT,!1,0,0);var q= b.getUniformLocation(this.Qb,"uCanvasDimensions");b.uniform2f(q,b.drawingBufferWidth,b.drawingBufferHeight);b.uniform2f(b.getUniformLocation(this.Qb,"uFlareCenterPosition"),b.drawingBufferWidth/l*p,h-b.drawingBufferHeight/h*u);b.uniform1f(b.getUniformLocation(this.Qb,"uBlindingValue"),r);q=b.getUniformLocation(this.Qb,"uAspectRatio");b.uniform1f(q,this.g.B.rg?b.drawingBufferWidth/b.drawingBufferHeight:b.drawingBufferWidth/b.drawingBufferHeight/(l/h));b.drawArrays(b.TRIANGLE_STRIP,0,this.g.B.eb.Md)}else q= this.R.createRadialGradient(p,u,1,p,u,t),q.addColorStop(0,"rgba(255, 255, 255, "+r+")"),q.addColorStop(.5,"rgba(255, 255, 255, "+.8*r+")"),q.addColorStop(1,"rgba(255, 255, 255, "+.6*r+")"),this.R.fillStyle=q,this.R.fillRect(0,0,this.R.width,this.R.height);if(0!=Number(n.type)&&!this.g.B.rg){var r=l/2-p,t=h/2-u,w=1,B=Number(n.type)-1;c<.35*v&&(w=c/(.35*v),w*=w);c>.7*v&&(w=(v-c)/(.3*v));w*=n.alpha/100;if(0 a&&(a=0);var y=z.color;if(8==B||9==B||10==B)y=n.color;if(this.g.Z)b.useProgram(this.oa),b.bindBuffer(b.ARRAY_BUFFER,this.Je),b.vertexAttribPointer(this.oa.$,this.Je.Dc,b.FLOAT,!1,0,0),q=b.getUniformLocation(this.oa,"uCanvasDimensions2"),b.uniform2f(q,b.drawingBufferWidth,b.drawingBufferHeight),b.uniform2f(b.getUniformLocation(this.oa,"uCirclePosition"),b.drawingBufferWidth/l*(p+r*z.i),b.drawingBufferWidth/l*(h-(u+t*z.i))),b.uniform2f(b.getUniformLocation(this.oa,"uCircleTexturePosition"),b.drawingBufferWidth/ l*(p+r*z.i),h-(u+t*z.i)),b.uniform1f(b.getUniformLocation(this.oa,"uCircleRadius"),v),b.uniform3f(b.getUniformLocation(this.oa,"uCircleColor"),(y>>16&255)/255,(y>>8&255)/255,(y&255)/255),b.uniform1f(b.getUniformLocation(this.oa,"uCircleAlpha"),a),b.uniform1f(b.getUniformLocation(this.oa,"uCircleSoftness"),.1),q=b.getUniformLocation(this.oa,"uAspectRatio"),b.uniform1f(q,b.drawingBufferWidth/b.drawingBufferHeight/(l/h)),b.drawArrays(b.TRIANGLE_FAN,0,this.Je.Md);else{this.R.save();this.R.translate(p+ r*z.i,u+t*z.i);q=this.R.createRadialGradient(0,0,1,0,0,1.1*v);q.addColorStop(0,this.g.fa(y,a));q.addColorStop(.65,this.g.fa(y,.9*a));q.addColorStop(.8,this.g.fa(y,.7*a));q.addColorStop(1,this.g.fa(y,.2*a));this.R.beginPath();var y=2*Math.PI/6,z=Math.PI/180*35,C=!0;for(a=z;a<=z+2*Math.PI;a+=y)C?(this.R.moveTo(v*Math.sin(a),v*Math.cos(a)),C=!1):this.R.lineTo(v*Math.sin(a),v*Math.cos(a));this.R.closePath();this.R.fillStyle=q;this.R.fill();this.R.restore()}}if(0a&&(a=0);y=z.color;if(8==B||9==B||10==B)y=n.color;this.g.Z?(b.useProgram(this.oa),b.bindBuffer(b.ARRAY_BUFFER,this.kd),b.vertexAttribPointer(this.oa.$,this.kd.Dc,b.FLOAT,!1,0,0),q=b.getUniformLocation(this.oa,"uCanvasDimensions2"),b.uniform2f(q,b.drawingBufferWidth,b.drawingBufferHeight),q=b.getUniformLocation(this.oa,"uCirclePosition"),b.uniform2f(q,b.drawingBufferWidth/l*(p+r*z.i),b.drawingBufferWidth/l*(h-(u+t*z.i))),q=b.getUniformLocation(this.oa,"uCircleTexturePosition"), b.uniform2f(q,b.drawingBufferWidth/l*(p+r*z.i),h-(u+t*z.i)),q=b.getUniformLocation(this.oa,"uCircleRadius"),b.uniform1f(q,v),b.uniform3f(b.getUniformLocation(this.oa,"uCircleColor"),(y>>16&255)/255,(y>>8&255)/255,(y&255)/255),b.uniform1f(b.getUniformLocation(this.oa,"uCircleAlpha"),a),b.uniform1f(b.getUniformLocation(this.oa,"uCircleSoftness"),z.u),q=b.getUniformLocation(this.oa,"uAspectRatio"),b.uniform1f(q,b.drawingBufferWidth/b.drawingBufferHeight/(l/h)),b.drawArrays(b.TRIANGLE_FAN,0,this.kd.Md)): (this.R.save(),this.R.translate(p+r*z.i,u+t*z.i),q=this.R.createRadialGradient(0,0,1,0,0,v),q.addColorStop(0,this.g.fa(y,a)),q.addColorStop(1-z.u,this.g.fa(y,.8*a)),q.addColorStop(1,this.g.fa(y,0)),this.R.beginPath(),this.R.arc(0,0,v,0,2*Math.PI,!1),this.R.closePath(),this.R.fillStyle=q,this.R.fill(),this.R.restore())}if(0a&&(a=0),this.g.Z?(b.useProgram(this.lb),b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D, this.Yk),b.bindBuffer(b.ARRAY_BUFFER,this.kd),b.vertexAttribPointer(this.lb.$,this.kd.Dc,b.FLOAT,!1,0,0),q=b.getUniformLocation(this.lb,"uCanvasDimensions2"),b.uniform2f(q,l,h),q=b.getUniformLocation(this.lb,"uCirclePosition"),b.uniform2f(q,p+r*n.i,h-(u+t*n.i)),q=b.getUniformLocation(this.lb,"uRingTexturePosition"),b.uniform2f(q,b.drawingBufferWidth/l*(p+r*n.i),h-(u+t*n.i)),q=b.getUniformLocation(this.lb,"uCircleRadius"),b.uniform1f(q,v),b.uniform2f(b.getUniformLocation(this.lb,"uRingPosition"),p+ r*n.i,h-(u+t*n.i)),b.uniform1f(b.getUniformLocation(this.lb,"uRingRadius"),v),b.uniform1f(b.getUniformLocation(this.lb,"uRingAlpha"),a),q=b.getUniformLocation(this.lb,"uAspectRatio"),b.uniform1f(q,b.drawingBufferWidth/b.drawingBufferHeight/(l/h)),b.uniform1i(b.getUniformLocation(this.lb,"uSampler"),0),b.drawArrays(b.TRIANGLE_FAN,0,this.kd.Md)):(this.R.save(),this.R.translate(p+r*n.i,u+t*n.i),q=this.R.createRadialGradient(0,0,0,0,0,v),q.addColorStop(0,this.g.fa(16777215,0)),q.addColorStop(.88,this.g.fa(0, 0)),q.addColorStop(.9,this.g.fa(16654848,a)),q.addColorStop(.92,this.g.fa(16776448,a)),q.addColorStop(.94,this.g.fa(4849466,a)),q.addColorStop(.96,this.g.fa(131071,a)),q.addColorStop(.98,this.g.fa(8190,a)),q.addColorStop(1,this.g.fa(0,0)),this.R.beginPath(),this.R.arc(0,0,v,0,2*Math.PI,!1),this.R.closePath(),this.R.fillStyle=q,this.R.fill(),this.R.restore())}this.g.Z&&(b.useProgram(this.g.la.F),b.disable(b.BLEND),b.enable(b.DEPTH_TEST))}}}};return g}();m.Ll=k})(ggP2VR||(ggP2VR={}));var O=!1; (function(m){var k=function(){return function(){this.f=this.j=this.pan=0}}(),g=function(){function b(a,d){this.pan={c:0,Pa:0,min:0,max:360,d:0,Oi:0,gd:0};this.j={c:0,Pa:0,min:-90,max:90,d:0,gd:0};this.N={c:0,Pa:0,min:-180,max:180,d:0};this.lc={pan:0,j:-90,N:0,f:170,Bb:9};this.f={c:70,Pa:70,min:1,Xf:0,max:170,Ji:360,Ki:270,Se:0,d:0,mode:0,ml:0,Hj:0};this.Ca={N:0,pitch:0};this.m={width:10,height:10};this.kb=0;this.fi=new m.ra;this.crossOrigin="anonymous";this.Za=this.oh=4;this.Vc=this.zg=this.Zf=this.fc= 0;this.Y={start:{x:0,y:0},ca:{x:0,y:0},sd:{x:0,y:0},c:{x:0,y:0},ba:{x:0,y:0}};this.X={ib:!1,Nj:0,startTime:0,start:{x:0,y:0},ca:{x:0,y:0},sd:{x:0,y:0},c:{x:0,y:0},ba:{x:0,y:0}};this.pi=!0;this.ua={enabled:!0,ca:{x:0,y:0},ba:{x:0,y:0},Zi:0,f:{active:!1,Vb:0}};this.o={src:[],ze:4,width:640,height:480,Xc:!1,bh:!1,nl:!1,be:"loop",a:HTMLVideoElement=null,pl:!1,hc:WebGLTexture=null,rj:WebGLBuffer=null,Ch:WebGLBuffer=null,Ci:WebGLBuffer=null,format:1,Vg:0,ti:1};this.he=0;this.ha=this.sa=this.Aa=this.U=this.Tb= this.$a=this.C=null;this.ee="pano";this.si="flashcontainer";this.gi="";this.control=null;this.Gb=[];this.za=!1;this.vf=1;this.O=null;this.Bd=this.nf=this.If=!1;this.lf=0;this.fd=.02;this.Th=0;this.Uh=!1;this.Sh=this.Cg=this.mf=this.ye=this.xj=0;this.zb="";this.Xe=this.sc=!1;this.ph=0;this.Kg=[];this.Ge=[];this.cf=this.ic=1;this.qf=1024;this.Ye=!1;this.je=200;this.Fa=0;this.qg=5;this.uc=0;this.ql=50;this.Bi=this.rl=0;this.s={enabled:!1,timeout:5,active:!1,pg:!1,speed:.4,Eh:0,mh:0,Ni:!0,pj:!1,ed:!1, yj:!1,Li:!1,hj:!1,startTime:0,rd:0,Rg:!1,Lg:!1,hh:0};this.v={active:!1,xe:!1,speed:.1,pan:0,j:0,N:0,f:70,zd:70,yk:0,Ak:0,zk:0,xk:0,Bb:0,bg:0,Di:0,oj:!1,Mi:!1,wj:0,vj:0};this.Qa=null;this.gf={};this.qj={};this.Mg=[];this.w={mode:1,Qf:-1,na:0,gb:0,Kc:.05,Sb:255,Rb:1,Pb:255,Ob:.3,Me:!0,jj:{enabled:!0,width:180,height:20,kj:0,ij:1,background:!0,Pb:16777215,Ob:1,Sb:0,Rb:1,Wh:3,Xh:1,Ph:!0},fb:[],Eb:[],Fc:[],zh:[]};this.ta=null;this.P=[];this.S=[];this.J=[];this.Xa=[];this.te=[];this.La=[];this.Ia=[];this.W= 1;this.la=this.Dd=this.Ed=null;this.wf={};this.addListener=function(a,d){(this.wf[a]=this.wf[a]||[]).push(d)};this.tl=function(a,d){var b=this.wf[a],l,h;if(b)for(h=0,l=b.length;hh&&(h=0),1b||p.push(a[n]),p.push(k);b=l}return p};this.dj=0;this.gh=-1;this.Df=function(a){return a?a.pageX||a.pageY?{x:a.pageX,y:a.pageY}:a.clientX||a.clientY?{x:a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:a.clientY+document.body.scrollTop+document.documentElement.scrollTop}:a.touches&&a.touches[0]?{x:a.touches[0].pageX,y:a.touches[0].pageY}: {x:0,y:0}:{x:0,y:0}};this.lh=1;this.wm=this.Sg=this.vk=this.li=this.Vi=this.rh=0;this.ce=!0;this.pb=new m.dh(this);this.pb.Me=!1;this.Kj();this.$e(this.pb);this.checkLoaded=this.Gb;this.isLoaded=!1;d&&d.hasOwnProperty("useFlash")&&d.useFlash&&(this.wb=!0,this.Z=this.Gc=!1,d.hasOwnProperty("flashPlayerId")?this.ee=d.flashPlayerId:this.ee="pano",d.hasOwnProperty("flashContainerId")?this.si=d.flashContainerId:this.si=a+"flash");this.pa();this.wb||(this.Ba=new m.Ll(this));this.Ej(a);this.$l();this.userdata= this.gf=this.Pg();this.emptyHotspot=this.pb;this.mouse=this.qa;this.B=new m.Nl(this);this.Ea=new m.Ol(this);this.la=new m.Ul(this)}b.prototype.di=function(){this.B.enabled=this.ga.enabled;this.B.type=this.ga.type;this.B.Na=this.ga.zoomin;this.B.Nb=this.ga.zoomout;this.B.Dg=this.ga.blendtime;this.B.kf=this.ga.zoomoutpause;this.B.jf=this.ga.zoomfov;this.B.Td=this.ga.zoomspeed;this.B.Ae=this.ga.blendcolor;this.B.tc=this.ga.softedge;this.ga=null};b.prototype.mo=function(a){this.ga={};this.ga.enabled= !0;this.ga.type=this.B.type;this.ga.zoomin=this.B.Na;this.ga.zoomout=this.B.Nb;this.ga.blendtime=this.B.Dg;this.ga.zoomoutpause=this.B.kf;this.ga.zoomfov=this.B.jf;this.ga.zoomspeed=this.B.Td;this.ga.blendcolor=this.B.Ae;this.ga.softedge=this.B.tc;if(a.hasOwnProperty("type")){var d=a.type;if("cut"==d||"crossdissolve"==d||"diptocolor"==d||"irisround"==d||"irisrectangular"==d||"wipeleftright"==d||"wiperightleft"==d||"wipetopbottom"==d||"wipebottomtop"==d||"wiperandom"==d)this.ga.type=d}a.hasOwnProperty("before")&& (d=Number(a.before),0==d||2==d)&&(this.ga.zoomin=d);a.hasOwnProperty("after")&&(d=Number(a.after),0==d||2==d||3==d||4==d)&&(this.ga.zoomout=d);a.hasOwnProperty("transitiontime")&&(d=Number(a.transitiontime),0<=d&&50>=d&&(this.ga.blendtime=d));a.hasOwnProperty("waitfortransition")&&(this.ga.zoomoutpause=1==a.waitfortransition);a.hasOwnProperty("zoomedfov")&&(d=Number(a.zoomedfov),.01<=d&&50>=d&&(this.ga.zoomfov=d));a.hasOwnProperty("zoomspeed")&&(d=Number(a.zoomspeed),.01<=d&&99>=d&&(this.ga.zoomspeed= d));a.hasOwnProperty("dipcolor")&&(this.ga.blendcolor=a.dipcolor);a.hasOwnProperty("softedge")&&(a=Number(a.softedge),0<=a&&1E3>=a&&(this.ga.softedge=a));this.Gg||this.di()};b.prototype.ad=function(a,d,c){var b=d?Number(d):0;if(0!=a&&4!=a&&12!=a&&9!=a)this.Zc("Unsupported projection type: "+a);else if(d&&0!==b&&4!==b&&12!==b&&9!==b)this.Zc("Unsupported projection2 type: "+b);else if(a==b&&(b=0),this.Zf=c?Number(c):1,this.Za!=a||this.fc!=b)this.Za=a,this.fc=b,this.la.Yg()};b.prototype.xa=function(){return 0== this.Za?4:this.Za};b.prototype.$h=function(a,d){if(0!=a&&4!=a&&12!=a&&9!=a)this.Zc("Unsupported projection type: "+a);else if(this.Z||0==a||4==a||this.Zc("Projection changes require WebGL!"),this.xa()!=a){var c={};c.pan=this.pan.c;c.tilt=this.j.c;c.fov=this.f.c;c.projection=a;c.timingFunction=3;c.speed=d;var b=this.Cf(a);c.fov=Math.min(b,c.fov);this.kh(c)}};b.prototype.Kj=function(){var a;this.devicePixelRatio=window.devicePixelRatio||1;this.qk=navigator.userAgent.match(/(MSIE)/g)?!0:!1;this.Lf=navigator.userAgent.match(/(Firefox)/g)? !0:!1;if(this.qd=navigator.userAgent.match(/(Safari)/g)?!0:!1)a=navigator.userAgent.indexOf("Safari"),this.xd=navigator.userAgent.substring(a+7),a=navigator.userAgent.indexOf("Version"),-1!=a&&(this.xd=navigator.userAgent.substring(a+8)),this.xd=this.xd.substring(0,this.xd.indexOf(" ")),this.xd=this.xd.substring(0,this.xd.indexOf(".")),this.$i=!0;if(this.pk=navigator.userAgent.match(/(Chrome)/g)?!0:!1)this.qd=!1;this.Kd=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1;this.sk=navigator.userAgent.match(/(iPhone|iPod)/g)? !0:!1;this.Zg=navigator.userAgent.match(/(android)/i)?!0:!1;this.rk=navigator.userAgent.match(/(IEMobile)/i)?!0:!1;this.Mf=this.Kd||this.Zg||this.rk;/iP(hone|od|ad)/.test(navigator.platform)&&(a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),this.jk=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3]||"0",10)]);this.$g=!window.requestAnimationFrame;a=["Webkit","Moz","O","ms","Ms"];var d;this.Ja="";this.Rc="transition";this.Va="transform";this.jd="perspective";for(d=0;dNumber(this.xd))&&(this.Ha=null);this.Mh=this.sk?this.qd&&this.$i&&10<=Number(this.xd)?!0:!1:!0};b.prototype.L=function(a){if(O){var d=document.getElementById("debug");d&&(d.innerHTML=a.toString()+"
");window.console&&window.console.log(a)}};b.prototype.Zc=function(a){var d=document.getElementById("debug");d&&(d.innerHTML=a+"
");window.console&&window.console.log(a)};b.prototype.dl= function(a){this.je=a};b.prototype.Vn=function(a){this.crossOrigin=a};b.prototype.Xn=function(a){this.Ne=a};b.prototype.Sm=function(){return this.ph};b.prototype.Un=function(a){this.Cd=a};b.prototype.Am=function(){return this.Cd};b.prototype.Hm=function(){return this.Mf};b.prototype.Fm=function(){return this.s.active};b.prototype.Yn=function(a){this.Mf=!!a};b.prototype.Tg=function(){return this.isLoaded};b.prototype.hd=function(){return 1*this.m.height/(2*Math.tan(Math.PI/180*(this.Jb()/2)))};b.prototype.fl= function(a,d){this.isFullscreen&&(a=window.innerWidth,d=window.innerHeight);var c=a-this.margin.left-this.margin.right,b=d-this.margin.top-this.margin.bottom;if(!(10>c||10>b)){var f=window.devicePixelRatio||1;this.Ye&&(f=1);this.C.style.width=c+"px";this.C.style.height=b+"px";this.C.style.left=this.margin.left+"px";this.C.style.top=this.margin.top+"px";if(this.Z)try{this.$a&&(this.$a.style.position="absolute",this.$a.style.display="inline",this.$a.style.width=c+"px",this.$a.style.height=b+"px",this.$a.width= c*f,this.$a.height=b*f),this.H&&(this.jb.width=c*f,this.jb.height=b*f,this.H.viewport(0,0,this.H.drawingBufferWidth,this.H.drawingBufferHeight))}catch(l){alert(l)}this.Tb&&(this.Tb.style.width=a+"px",this.Tb.style.height=d+"px",this.Tb.width=a,this.Tb.height=d);this.Aa&&(this.Aa.style.width=a+"px",this.Aa.style.height=d+"px",this.sa.style.width=a+"px",this.sa.style.height=d+"px",this.sa.width=a,this.sa.height=d,this.sa.style.left=this.margin.left+"px",this.sa.style.top=this.margin.top+"px",this.O&& this.O!=this.Aa&&(this.O.style.width=a+"px",this.O.style.height=d+"px"));this.Ba&&(c=this.Ba.Mc,c.style.width=a+"px",c.style.height=d+"px",c.width=a,c.height=d,c.style.left=this.margin.left+"px",c.style.top=this.margin.top+"px");this.If&&(this.za=!0);c=this.C.offsetWidth;b=this.C.offsetHeight;if(this.m.width!=c||this.m.height!=b)this.m.width=c,this.m.height=b;this.Uo();this.O&&this.O.ggUpdateSize&&this.O.ggUpdateSize(a,d)}};b.prototype.we=function(){this.nj=!0};b.prototype.dd=function(){this.fl(this.Ed.offsetWidth, this.Ed.offsetHeight)};b.prototype.dn=function(){var a={width:0,height:0};a.width=this.m.width;a.height=this.m.height;return a};b.prototype.fe=function(){var a={x:0,y:0},d=this.C;if(d.offsetParent){do a.x+=d.offsetLeft,a.y+=d.offsetTop,d=d.offsetParent;while(d)}return a};b.prototype.lo=function(a){this.Qa=a};b.prototype.$n=function(a,d,c,b){this.margin.left=a;this.margin.top=d;this.margin.right=c;this.margin.bottom=b;this.Qa=this.skinObj;this.we()};b.prototype.im=function(a){0==a&&(this.A.od=!1); 1==a&&(this.A.od=!0);2==a&&(this.A.od=this.A.od?!1:!0)};b.prototype.bn=function(){return 1==this.A.od?1:0};b.prototype.Bj=function(a,d){this.w.mode=1==d&&0d.z?(n=-c/d.z,a=d.x*n,n*=d.y,Math.abs(a)d.z?(n=-c/d.z,a=this.m.width/2+d.x*n,n=this.m.height/2+d.y*n):n=a=0,d.gc=a,d.Cb=n;k.Od=p}}}};b.prototype.Bm=function(){for(var a=[],d=0;dd&&(d=0);1>16&255)+","+(a>>8&255)+","+(a&255)+","+d+")"};b.prototype.Cn=function(){var a,d;if(this.sa&&(this.w.Qf!=this.w.mode&&(this.w.Qf=this.w.mode,this.sa.style.visibility=0=this.w.mode&&(c=0);3==this.w.mode&&(c=this.w.na);for(a=0;ac!=f.Cb>c&&d<(f.gc-h.gc)*(c-h.Cb)/(f.Cb-h.Cb)+h.gc&&(l=!l)}return l};b.prototype.bi=function(a,d){var c=-1;if((0<=this.w.mode||0c.width?this.f.c/2:4==d?180* Math.atan(4*c.height/(3*c.width)*Math.tan(this.f.c/2*Math.PI/180))/Math.PI:4*c.height/(3*c.width)*(this.f.c/2)}return 2*a};b.prototype.Dm=function(a,d){a||(a=this.Jb());d||(d=this.xa());return 4==d?180*Math.atan(this.Ud()*Math.tan(a/2*Math.PI/180))/Math.PI:a*this.Ud()};b.prototype.Ud=function(){return this.m.width/this.m.height};b.prototype.jg=function(a){a/=2;var d,c=this.xa();switch(this.f.mode){case 0:this.f.c=2*a;break;case 1:a=4==c?180*Math.atan(this.m.width/this.m.height*Math.tan(a*Math.PI/ 180))/Math.PI:this.m.width/this.m.height*a;this.f.c=2*a;break;case 2:d=Math.sqrt(this.m.width*this.m.width+this.m.height*this.m.height);a=4==c?180*Math.atan(d/this.m.height*Math.tan(a*Math.PI/180))/Math.PI:d/this.m.height*a;this.f.c=2*a;break;case 3:4*this.m.height/3>this.m.width||(d=3*this.m.width/(4*this.m.height),a=4==c?180*Math.atan(d*Math.tan(a*Math.PI/180))/Math.PI:d*a),this.f.c=2*a}};b.prototype.Hg=function(){var a=new k;a.pan=this.pan.c;a.j=this.j.c;a.f=this.f.c;this.Ee(a);this.Ee(a);this.Ee(a); this.pan.c=a.pan;this.j.c=a.j;this.f.c=a.f};b.prototype.Ee=function(a){var d,c,b=this.m.width/this.m.height;if(2==this.kb){0b&&(a.f=b);50a.j-c&&(a.j=-50+c));d>f?a.pan=0:(a.pan+d>f&&(a.pan=f-d,this.s.active&&(this.s.speed= -this.s.speed,this.pan.d=0)),a.pan-d<-f&&(a.pan=-f+d,this.s.active&&(this.s.speed=-this.s.speed,this.pan.d=0)))}else{0f&& (a.f=f);12==this.xa()&&(2*d>l&&(a.f=l/b),c=this.Jb()/2,2*c>l&&(a.f=l),c=this.Jb()/2,d=b*c);2*c>this.j.max-this.j.min&&180>this.j.max-this.j.min&&(c=(this.j.max-this.j.min)/2,this.jg(2*c));90>this.j.max?a.j+c>this.j.max&&(a.j=this.j.max-c):a.j>this.j.max&&(a.j=this.j.max);-90b){var f=90,l=Math.tan(c*Math.PI/180),h=Math.tan((Math.abs(a.j)+c)*Math.PI/180),h=Math.sqrt(h*h+1)/Math.sqrt(l* l+1);c=180*Math.atan(h*Math.tan(d*Math.PI/180))/Math.PI;2*c>b&&(h=Math.tan(b*Math.PI/360)/Math.tan(d*Math.PI/180),b=h*Math.sqrt(l*l+1),h=Math.sqrt(b*b-1),f=180/Math.PI*Math.atan(h));a.pan+c>this.pan.max&&(a.pan=this.pan.max-c,this.s.active&&(this.s.speed=-this.s.speed,this.pan.d=0));a.pan-cf&&(a.j=f-d);a.j-d<-f&&(a.j=-f+d)}}};b.prototype.update=function(a){void 0===a&&(a=0);this.za=!0;a&&(this.vf= Math.max(1*a,this.vf))};b.prototype.Im=function(){return this.ha?!!this.ha.isTileLoading:0a;a++){var c,b;if(c=this.hb.ab[a])b="",this.sc?(b+="translate3d("+this.m.width/2+"px,"+this.m.height/2+"px,0px) ",b+= "perspective("+d+"px) ",b+="translate3d(0px,0px,"+d+"px) "):b+="translate3d("+this.m.width/2+"px,"+this.m.height/2+"px,"+d+"px) ",b+="rotateZ("+Number(this.N.c).toFixed(10)+"deg) ",b+="rotateX("+Number(this.j.c).toFixed(10)+"deg) ",b+="rotateY("+Number(-this.pan.c).toFixed(10)+"deg) ",c.ek&&(b+=c.ek,c.qc||(b="translate3d(-10px,-10px,0px) scale(0.001,0.001)"),c.K.style[this.Va]=b)}};b.prototype.Mo=function(){this.Hg();var a;this.Tb&&(a=this.Tb.getContext("2d"));if(this.m.width!==this.C.offsetWidth|| this.m.height!==this.C.offsetHeight)this.m.width=this.C.offsetWidth,this.m.height=this.C.offsetHeight;if(a){var d=a.canvas.width/2,c=a.canvas.height/2,b=a.createRadialGradient(d,c,5,d,c,Math.max(d,c));b.addColorStop(0,"#333");b.addColorStop(1,"#fff");a.rect(0,0,a.canvas.width,a.canvas.height);a.fillStyle=b;a.fill();a.fillStyle="#f00";a.font="20px Helvetica";a.textAlign="center";a.fillText("Pan: "+this.pan.c.toFixed(1),d,c-60);a.fillText("Tilt: "+this.j.c.toFixed(1),d,c-30);a.fillText("Fov: "+this.f.c.toFixed(1), d,c+0);a.fillText("Node: "+this.Xj(),d,c+30);a.fillText("Title: "+this.gf.title,d,c+60)}};b.prototype.No=function(){this.Hg();if(this.m.width!==this.C.offsetWidth||this.m.height!==this.C.offsetHeight)this.m.width=this.C.offsetWidth,this.m.height=this.C.offsetHeight;this.ha&&this.ha.setPan&&(this.ha.setPan(this.pan.c),this.ha.setTilt(this.j.c),this.ha.setFov(this.f.c))};b.prototype.lj=function(){this.sa.style.visibility="inherit";this.aa||(this.aa=this.sa.getContext("2d"));if(this.aa.width!=this.m.width|| this.aa.height!=this.m.height)this.aa.width=this.m.width,this.aa.height=this.m.height;this.aa.clear?this.aa.clear():this.aa.clearRect(0,0,this.sa.width,this.sa.height);this.uc=0;var a,d,c;d=100/this.f.c;c=this.h.width/this.h.height;var b=this.m.height*d*c;d*=this.m.height;a=(this.pan.c/100/c-.5)*b+this.m.width/2;for(var f=(this.j.c/100-.5)*d+this.m.height/2,l,h,g,k,n=0;this.h.I.length>=n+2&&this.h.I[n+1].width>b;)n++;var r,p;p=[];for(r=this.h.I.length-1;r>=n;){c=this.h.I[r];var u;if(c.cache)u={Wa:0, rb:0},u.tb=c.M-1,u.ub=c.ea-1;else{u={};var t=-f/d*(c.height/this.h.G);l=(-a+this.m.width)/b*(c.width/this.h.G);h=(-f+this.m.height)/d*(c.height/this.h.G);u.Wa=Math.min(Math.max(0,Math.floor(-a/b*(c.width/this.h.G))),c.M-1);u.rb=Math.min(Math.max(0,Math.floor(t)),c.ea-1);u.tb=Math.min(Math.max(0,Math.floor(l)),c.M-1);u.ub=Math.min(Math.max(0,Math.floor(h)),c.ea-1)}p[r]=u;var v=!0;for(h=u.rb;h<=u.ub;h++)for(l=u.Wa;l<=u.tb;l++)k=l+h*c.M,t=c.V[k],t||(t=new m.Id,c.V[k]=t),this.Fa=n;){c=this.h.I[r];if(p[r]&&0<=p[r].Wa)for(u=p[r],h=u.rb;h<=u.ub;h++)for(l=u.Wa;l<=u.tb;l++)k=l+h*c.M,(t=c.V[k])||(t=c.V[k]=new m.Id),t.h&&t.h.complete&& this.aa.drawImage(t.h,a+(-this.h.Ka+this.h.G*l)*b/c.width,f+(-this.h.Ka+this.h.G*h)*d/c.height,t.h.width*b/c.width,t.h.height*d/c.height),t.visible=!0;r--}for(b=0;b=this.w.mode&&(b=0),3==this.w.mode&&(b=this.w.na),g=0;g this.hb.ab.length))for(var a=0;6>a;a++){var d;d=this.hb.ab[a];var c;c=[];c.push(new m.ra(-1,-1,-1,0,0));c.push(new m.ra(1,-1,-1,1,0));c.push(new m.ra(1,1,-1,1,1));c.push(new m.ra(-1,1,-1,0,1));for(var b=0;4>b;b++)4>a?c[b].Da(-Math.PI/2*a):c[b].va(Math.PI/2*(4==a?-1:1)),this.Ca&&(c[b].mb(this.Ca.N*Math.PI/180),c[b].va(-this.Ca.pitch*Math.PI/180)),c[b].Da(-this.pan.c*Math.PI/180),c[b].va(this.j.c*Math.PI/180),c[b].mb(this.N.c*Math.PI/180);c=this.ci(c);d.qc=0=a+2&&!this.h.I[a+1].Ue&&this.h.I[a+1].width>c;)a++;return a};b.prototype.Qo=function(){var a=!1,d,c,b;if(this.m.width!==this.C.offsetWidth||this.m.height!==this.C.offsetHeight)this.m.width=this.C.offsetWidth,this.m.height=this.C.offsetHeight,this.C.style[this.Va+"OriginX"]=this.m.width/2+"px",this.C.style[this.Va+"OriginY"]=this.m.height/2+"px",a=!0;var f=Math.round(this.hd());if(this.Rf!= f||a)this.Rf=f,this.sc||(this.C.style[this.jd]=f+"px",this.C.style[this.jd+"Origin"]="50% 50%");this.uc=0;if(0d;d++){var h;h=this.hb.ab[d];h.qc&&(l=l+d+",")}l=this.ni();var g;for(g=this.h.I.length-1;g>=l;){var a=this.h.I[g],k=1;g==this.h.I.length-1&&0==this.h.Ka&&(k=this.h.G/(this.h.G-2));for(d=0;6>d;d++){h=this.hb.ab[d];var n=h.Re;if(h.qc&&0=g);)p=p.nextSibling;this.C.insertBefore(n.K,p);n.Oa=n.K.getContext("2d")}else if(this.rl=g);)p=p.nextSibling;this.C.insertBefore(n.K,p)}n.K&&(this.Bi++,n.h=new Image,n.h.crossOrigin=this.crossOrigin,n.h.style[this.Va+"Origin"]="0% 0%",n.h.style.position="absolute",n.h.style.overflow="hidden",n.K.Hd=g,n.h.onload=this.Co(n),n.h.onerror=this.Dh(n),n.h.onabort=this.Dh(n),n.h.setAttribute("src",this.se(d,g,c,b)),a.cache&&this.Gb.push(n.h),0==this.Fa&&this.O&&this.O.ggReLoadedLevels&& this.O.ggReLoadedLevels(),this.Fa++,this.za=!0)}else this.uc++;if(n.K){p="";this.sc?(p+="translate3d("+this.m.width/2+"px,"+this.m.height/2+"px,0px) ",p+=" perspective("+f+"px) ",p+="translate3d(0px,0px,"+f+"px) "):p+="translate3d("+this.m.width/2+"px,"+this.m.height/2+"px,"+f+"px) ";p+="rotateZ("+Number(this.N.c).toFixed(10)+"deg) ";p+="rotateX("+Number(this.j.c).toFixed(10)+"deg) ";p+="rotateY("+Number(-this.pan.c).toFixed(10)+"deg) ";this.Ca&&(p+="rotateX("+Number(-this.Ca.pitch).toFixed(10)+"deg) ", p+="rotateZ("+Number(this.Ca.N).toFixed(10)+"deg) ");var p=4>d?p+("rotateY("+-90*d+"deg) "):p+("rotateX("+(4==d?-90:90)+"deg) "),u;this.Xe?(u=this.qf/this.h.G*(this.h.G/a.width)*(2*g+1),u=this.qd?2/Math.tan(this.f.c*Math.PI/360)*u:2*u,p+=" scale("+u*k*k+")"):u=1/(k*k);p+=" translate3d("+(1/k*c*this.h.G-this.h.Ka-a.width/2)+"px,";p+=1/k*b*this.h.G-this.h.Ka-a.width/2+"px,";p+=-a.width*u/2+"px)";h.qc&&(n.visible=!0,n.K?n.K.style[this.Va]=p:n.h&&(n.h.style[this.Va]=p))}}}}g--}for(f=0;fd||100>c)c=d=100;var b=window.devicePixelRatio||1;this.Ye&&(b=1);this.C.style.width=d+"px";this.C.style.height=c+"px";this.$a.style.width=d+"px";this.$a.style.height=c+"px";this.$a.width=d*b;this.$a.height=c*b;this.$a.style.display="none";this.$a.style.jp="none";this.C.insertBefore(this.$a, this.C.firstChild);a={stencil:!0,depth:!0};a.alpha=this.qd?!0:!1;this.Kd&&10<=this.jk[0]&&(a.antialias=!1,a.alpha=!1);this.H=this.$a.getContext("webgl",a);this.H||(this.H=this.$a.getContext("experimental-webgl",a));if(this.H){var f=this.H;this.jb.width=d*b;this.jb.height=c*b;f.clearColor(0,0,0,0);f.enable(this.H.DEPTH_TEST);f.viewport(0,0,500,500);f.clear(f.COLOR_BUFFER_BIT|f.DEPTH_BUFFER_BIT);4096<=f.getParameter(f.MAX_TEXTURE_SIZE)&&!this.Mf&&(this.je=1g;g++)l=this.Qd(l,"c",a),l=this.Qd(l,"s",h),l=this.Qd(l,"r",d),l=this.Qd(l,"l",f),l=this.Qd(l,"x",c),l=this.Qd(l,"y",b),l=this.Qd(l,"v",b),l=this.Qd(l,"h",c);return this.Wb(l)};b.prototype.vi=function(){return this.pan.c}; b.prototype.Qm=function(){return this.v.pan};b.prototype.Rm=function(){for(var a=this.pan.c;-180>a;)a+=360;for(;180a;)a+=360;for(;180c?this.v.f=Number(c):this.v.f=this.f.c;this.v.speed=!isNaN(b)&&0=h?(this.hg(d,c,b),this.ad(f)):(a=new m.uk,a.Ta="__AutoMove",a.lg=this.pan.c, a.ng=this.j.c,a.yd=this.f.c,a.mg=this.Za,a.Rd=d,a.Sd=c,a.bf=b,a.bd=f,a.He=!1,a.$d=!1,a.ae=!1,0==l&&(a.$d=!0),1==l&&(a.He=!0,a.$d=!0),2==l&&(a.ae=!0),a.speed=h,this.v.vj=this.D,this.D=this.Uj(a),this.v.wj=(new Date).getTime(),this.v.oj=!0,this.v.active=!0,this.v.xe=!1,this.v.pan=d,this.v.j=c,this.v.f=b,this.Bd=!1)};b.prototype.sn=function(a){this.moveTo(this.pan.Pa,this.j.Pa,this.f.Pa,a)};b.prototype.tn=function(a,d){var c={};c.pan=this.pan.Pa;c.tilt=this.j.Pa;c.fov=this.f.Pa;c.projection=this.oh; c.timingFunction=d;c.speed=a;this.kh(c)};b.prototype.Wl=function(a,d,c,b){var f=new m.dh(this);f.type="point";f.pan=d;f.j=c;f.id=a;f.a={};f.a.player=this;f.Ie();f.a.hotspot=f;f.a.__div=document.createElement("div");f.a.__div.appendChild(b);this.P.push(f);f.a.__div.style.position="absolute";f.a.__div.style.left="-1000px";f.a.__div.style.top="-1000px";this.Aa.insertBefore(f.a.__div,this.Aa.firstChild);this.za=!0};b.prototype.Oo=function(a,b,c){for(var e=0;ec;)c+=360;e=e.Zl()}var f={};f.pan=c;f.tilt=e;return f};b.prototype.pd= function(a){return a==this.control?!0:a&&void 0!==a.ggPermeable&&0==a.ggPermeable?!1:a&&a.ggType&&("container"==a.ggType||"cloner"==a.ggType||"timer"==a.ggType)?!0:!1};b.prototype.ai=function(a,b){var c=this.hd(),e,f,l;for(e=0;en;n++){switch(n){case 0:k.Ya(-r,-p,-1);break;case 1:k.Ya(r,-p,-1);break;case 2:k.Ya(r,p,-1);break;case 3:k.Ya(-r,p,-1)}k.va(-h.j*Math.PI/180);k.Da(h.pan*Math.PI/180);k.Da(-this.pan.c*Math.PI/180);k.va(this.j.c*Math.PI/180);k.mb(this.N.c*Math.PI/180);g.push(k.clone())}g=this.ci(g);if(0k.z?(l=-c/k.z,f=this.m.width/2+k.x*l,l=this.m.height/2+k.y*l):l=f=0,k.gc=f,k.Cb=l;if(this.ik(g,a,b))return h}}return null}; b.prototype.ah=function(){return document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement&&null!=document.msFullscreenElement||document.fullScreen};b.prototype.rn=function(a){this.xl(a);if(this.Qc)this.Qc.onclick();this.Dd=null;if(!this.A.sb){a=a?a:window.event;if((a.which||0==a.which||1==a.which)&&this.pd(a.target)){var b;(b=this.ai(this.qa.x,this.qa.y))&&b.Uc&&(this.Dd=b);this.Fl(a.pageX,a.pageY);this.X.ib=!0;this.X.startTime=(new Date).getTime();a.preventDefault();this.pa()}this.Y.ba.x= 0;this.Y.ba.y=0}};b.prototype.ff=function(a,b){var c=this.w.jj;c.enabled&&(this.ya!=this.pb&&0<=a&&0<=b&&""!=this.ya.title?(this.ta.innerHTML=this.ya.title,this.ta.style.color=this.fa(c.kj,c.ij),c.background?this.ta.style.backgroundColor=this.fa(c.Pb,c.Ob):this.ta.style.backgroundColor="transparent",this.ta.style.border="solid "+this.fa(c.Sb,c.Rb)+" "+c.Xh+"px",this.ta.style.borderRadius=c.Wh+"px",this.ta.style.textAlign="center",0a-this.X.startTime&&0<=b&&20>b&&(this.Dd&&this.Dd.Uc(),(b=this.bi(this.qa.x,this.qa.y))&&this.ul(b),b=Math.abs(this.Y.sd.x-this.Y.ca.x)+Math.abs(this.Y.sd.y- this.Y.ca.y),700>a-this.Pf&&0<=b&&20>b?(this.A.ii&&this.Gh(),this.Pf=0):this.Pf=a,this.Y.sd.x=this.Y.ca.x,this.Y.sd.y=this.Y.ca.y)}};b.prototype.Fk=function(a){if(!this.A.Yc&&(a=a?a:window.event,this.pd(a.target))){var b=a.detail?-1*a.detail:a.wheelDelta/40;this.A.nk&&(b=-b);a.axis&&(-1==this.gh?this.gh=a.axis:this.gh!=a.axis&&(b=0));var c=0Math.abs(a.wheelDeltaY)&&(b=0);0!=b&&(this.rf(c*this.A.kl,!0),this.update());a.preventDefault(); this.pa()}};b.prototype.Ko=function(a){a||(a=window.event);var b=a.touches,c=this.fe();this.qa.x=b[0].pageX-c.x;this.qa.y=b[0].pageY-c.y;this.df=this.Dd=null;this.pi&&(this.pi=!1,this.xm());if(!this.A.sb){if(!this.X.ib&&b[0]){this.X.startTime=(new Date).getTime();this.X.start.x=b[0].pageX;this.X.start.y=b[0].pageY;this.X.ca.x=b[0].pageX;this.X.ca.y=b[0].pageY;this.jc=b[0].target;if(this.pd(a.target)){var e;(e=this.ai(this.qa.x,this.qa.y))&&e.Uc&&(this.Dd=e);if(e=this.bi(this.qa.x,this.qa.y))this.L(e), this.df=e,this.wh(e),e=this.Df(a),this.ff(e.x-c.x,e.y-c.y);this.Fl(b[0].pageX,b[0].pageY);this.X.Nj=b[0].identifier;this.X.ib=!0;a.preventDefault();this.pa()}if(this.jc){c=this.jc;for(e=!1;c&&c!=this.control;){if(c.onmouseover)c.onmouseover();c.onmousedown&&!e&&(c.onmousedown(),e=!0);c=c.parentNode}e&&a.preventDefault()}}1this.f.max&&(this.ua.f.Vb=this.f.max),this.ua.f.Vbb){a.preventDefault();e=!0;this.pd(this.jc)&& this.Dd&&this.Dd.Uc();if(this.jc)for(b=this.jc,l=!1;b&&b!=this.control;)b.onclick&&!l&&(b.onclick(),l=!0,e=!1),b=b.parentNode;b=Math.abs(this.X.sd.x-this.X.ca.x)+Math.abs(this.X.sd.y-this.X.ca.y);if(700>f-this.Pf&&0<=b&&20>b){a.preventDefault();if(this.pd(this.jc)&&this.A.ii){var h=this;setTimeout(function(){h.Gh()},1)}if(this.jc)for(b=this.jc,l=!1;b&&b!=this.control;)b.ondblclick&&!l&&(b.ondblclick(),l=!0,e=!1),b=b.parentNode;this.Pf=0}else this.Pf=f;this.X.sd.x=this.X.ca.x;this.X.sd.y=this.X.ca.y}if(this.jc)for(a.preventDefault(), b=this.jc,l=!1;b&&b!=this.control;){if(b.onmouseout)b.onmouseout();b.onmouseup&&!l&&(b.onmouseup(),l=!0);b=b.parentNode}a=this.Df(a);this.ff(a.x-c.x,a.y-c.y);this.df&&e&&this.ul(this.df);this.jc=null;this.X.ib=!1;this.wh(this.pb);this.df=null}};b.prototype.Ho=function(a){var b=this.fe();this.A.sb||(this.X.ib=!1);this.df=null;this.wh(this.pb);a=this.Df(a);this.ff(a.x-b.x,a.y-b.y)};b.prototype.kn=function(){return null!=this.jc||this.X.ib};b.prototype.Gk=function(a){!this.ke&&window.MSGesture&&(this.L("setup gesture"), this.ke=new MSGesture,this.ke.target=this.control);this.ke&&this.ke.addPointer(a.pointerId)};b.prototype.Wj=function(a){this.zi=!0;this.lh=1;this.A.sb||this.A.Yc||(a.touches?(this.jc=a.touches.target,this.pd(a.target)&&(a.preventDefault(),this.f.Se=this.f.c,this.pa())):(a.preventDefault(),this.f.Se=this.f.c,this.pa()))};b.prototype.zm=function(a){this.A.sb||this.A.Yc||!this.pd(a.target)||(a.preventDefault(),this.ua.f.active=!0,this.ua.f.Vb=this.f.Se/Math.sqrt(a.scale),4==this.xa()&&this.ua.f.Vb>this.f.max&& (this.ua.f.Vb=this.f.max),this.update(),this.pa())};b.prototype.un=function(a){this.A.sb||this.A.Yc||(a.preventDefault(),1!=a.scale&&(this.ua.f.active=!0,this.lh*=a.scale,this.ua.f.Vb=this.f.Se/Math.sqrt(this.lh),4==this.xa()&&this.ua.f.Vb>this.f.max&&(this.ua.f.Vb=this.f.max),this.update(),this.pa()))};b.prototype.Vj=function(a){this.A.sb||this.A.Yc||(this.ua.f.active=!1,a.preventDefault(),this.pa(),this.ke&&this.ke.reset&&this.ke.reset())};b.prototype.ln=function(a){this.A.Qe||(this.isFullscreen&& a.preventDefault(),this.he=a.keyCode,this.pa())};b.prototype.mn=function(a){this.he&&(this.he=0,a.preventDefault(),this.pa())};b.prototype.zn=function(){this.he=0};b.prototype.nh=function(){this.isFullscreen&&(this.ah()||this.exitFullscreen(),this.ah()&&(this.U.style.left="0px",this.U.style.top="0px"))};b.prototype.ul=function(a){this.Qa&&this.Qa.hotspotProxyClick&&this.Qa.hotspotProxyClick(a.id);""!=a.url&&(this.Pi(a.url,a.target),this.ff(-1,-1))};b.prototype.Gd=function(){return Math.min(1,2*Math.tan(Math.PI* Math.min(this.f.c,90)/360))};b.prototype.Nk=function(){var a=this;setTimeout(function(){a.Nk()},100);9!=a.rh||a.$g||window.requestAnimationFrame(function(){a.$f();a.Zc("restart recover timer")});10 g;)g+=360}c=g-h;2!=this.kb&&(180c&&(c+=360));this.pan.c=this.pan.c+c*this.fd}else this.pan.c=g;break;case 1:h=this.j.c;this.Bd?(e=g-h,this.j.c=this.j.c+e*this.fd):this.j.c=g;break;case 2:h=this.f.c,this.Bd?(f=g-h,this.f.c=this.f.c+f*this.fd):this.f.c=g}}b=this.xa();for(l=Math.floor(a);!this.Ke(l,3)&&0a?(b=this.Cf(this.mf),this.f.c>b?this.Cg=a:(a=(a-this.Cg)/this.Sh,a=Math.min(1,a),this.ad(this.Za,this.mf,1-a))): 0==l.nb||h>l.nb-.3?this.ad(l.value):(a=h/l.nb,this.ad(b,l.value,1-a));this.Bd&&(c=Math.sqrt(c*c+e*e+f*f),.3>c&&(this.Bd=!1,this.fd=.02,this.lf=0),0this.lf&&(this.fd+=.01,this.fd=Math.min(this.fd,1)),this.lf=c);this.update()};b.prototype.Fn=function(a){var b,c=this.v.speed;this.v.Di&&(c=c*(a.getTime()-this.v.Di)/60,5c&&(c=.2));this.v.Di=a.getTime();this.s.Rg&&(this.la.ready()||4==this.Za)&&this.Tg()&&(this.s.Rg=!1,this.s.active=!0,this.qb.wd=!0,this.qb.oi=!1);if(this.v.active|| 0!=this.v.Bb&&this.la.ready()){if(this.v.oj&&"__AutoMove"==this.D.Ta)if(b=a.getTime()-this.v.wj,c=b/100,c>=this.D.length){if(this.Ia.splice(this.Ia.indexOf(this.D),1),this.v.active=!1,this.D=this.v.vj,this.v.Bb=0,b=this.s.ed,this.hg(this.v.pan,this.v.j,this.v.f),this.v.Mi&&(this.v.Mi=!1,this.s.Li=!0,this.s.active=!0,this.s.ed=b),this.onMoveComplete)this.onMoveComplete()}else this.el(c);else{this.pan.d=this.v.pan-this.pan.c;if(360==this.pan.max-this.pan.min){for(;-180>this.pan.d;)this.pan.d+=360;for(;180< this.pan.d;)this.pan.d-=360}this.j.d=this.v.j-this.j.c;this.N.d=this.v.N-this.N.c;this.f.d=this.v.f-this.f.c;b=c*this.Gd();var e=Math.sqrt(this.pan.d*this.pan.d+this.j.d*this.j.d+this.N.d*this.N.d+this.f.d*this.f.d),f=this.pan.c-this.v.yk,g=this.j.c-this.v.Ak,h=this.N.c-this.v.zk,k=this.f.c-this.v.xk;100*Math.sqrt(f*f+g*g+h*h+k*k)5*b?b/e:.2,this.pan.d*=e,this.j.d*=e,this.f.d*=e;this.pan.c+=this.pan.d;this.j.c+=this.j.d;this.N.c+=this.N.d;this.f.c+=this.f.d;0!=this.v.Bb&&(this.v.Bb!=this.Za?(c=this.Cf(this.v.Bb),this.Bf()>c?(this.f.c+=-Math.max((2.5-1.7*Math.min(Math.sqrt(this.pan.d*this.pan.d+this.j.d*this.j.d+this.N.d*this.N.d)/b,1))*b,this.f.d)-this.f.d, this.v.f=this.f.c):(this.fc=this.Za,this.Za=this.v.Bb,this.L("New projection from Target:"+this.Za),this.Zf=this.v.bg=0,this.la.Yg())):1>this.v.bg?(this.v.bg=Math.min(1,this.v.bg+.05*c),this.Zf=this.v.bg):(this.fc=0,this.v.Bb=0,this.la.Yg()))}this.Oe=a.getTime();this.update()}else if(this.s.active){b=a.getTime()-this.s.startTime;this.s.hhthis.o.a.duration-this.o.a.currentTime&&(this.Uh=!0);e>=10*this.ye;)e-=10*this.ye;if(!f&&c>=this.D.length|| f&&!b&&c>=this.D.length||f&&b&&this.D.Ta!=this.D.Ik&&c>=this.D.length){this.nf=!1;if(this.qb.wd){this.qb.wd=!1;this.qb.oi=!0;this.s.active=this.B.Vd;this.Ia.splice(this.Ia.indexOf(this.D),1);0h.pan;)h.pan+=360;h.tilt=e.value;h.fov=f.value;h.projection=g?g.value:4;h.timingFunction=3;h.speed=1;this.v.Mi=!0;this.kh(h);this.s.active=!0;this.s.ed=b}}else if(0=1E3*this.s.mh){if(1=this.La.length&&(b=0),c=this.La[b];this.s.startTime=a.getTime();this.s.rd=a.getTime();this.s.timeout=0;this.le("{"+c+"}");this.s.active=!0;this.B.Vd=!0}}else b=a.getTime(),e=c=1E3/60,0!=this.s.rd&&(e=b-this.s.rd),this.j.d=this.s.Eh*(0-this.j.c)/100,this.f.d=this.s.Eh*(this.f.Pa-this.f.c)/100,this.pan.d=.95*this.pan.d+-this.s.speed*this.Gd()*.05,c=e/c,this.pan.c+=this.pan.d*c,this.j.c+= this.j.d*c,this.f.c+=this.f.d*c,this.s.rd=b,this.update();3E31E3*this.s.timeout&&(this.s.pg&&this.Tg()||!this.s.pg)&&(this.s.active=!0,this.s.startTime=a.getTime(),this.s.rd=0,this.pan.d=0,this.j.d=0,this.f.d=0),!this.ua.enabled|| 0!=this.he||this.X.ib||0==this.pan.d&&0==this.j.d&&0==this.f.d||(this.pan.d*=.9,this.j.d*=.9,this.f.d*=.9,this.pan.c+=this.pan.d,this.j.c+=this.j.d,this.rf(this.f.d),1E-4>this.pan.d*this.pan.d+this.j.d*this.j.d+this.f.d*this.f.d&&(this.pan.d=0,this.j.d=0,this.f.d=0),this.update())};b.prototype.Hn=function(a){var b=this.B;if(b.Ad){var c=a.getTime()-b.Jl,c=c/(1E3*b.Il);if(1<=c){b.Ad=!1;for(c=0;c=1E3*b.sm&&(b.Ng=!1):(b.current+=b.Kc,0>b.current&&(b.current=0,b.Kc=-b.Kc,b.Ng=!0,b.ki=a.getTime()),1b.Eb[a]?(b.Eb[a]+=.05,b.Fc[a]b.Eb[a]&&(b.Eb[a]=b.Fc[a],-1!=b.zh.indexOf(b.fb[a])&&(b.zh.splice(b.zh.indexOf(b.fb[a]),1),b.fb.splice(a, 1),b.Fc.splice(a,1),b.Eb.splice(a,1)))));this.update()}if(2==b.mode)for(a=0;ac.na?(c.na+=b.Kc,c.gbc.na&&(c.na=c.gb)),this.update())}3==b.mode&&b.gb!=b.na&&(b.gb>b.na?(b.na+=b.Kc,b.gbb.na&&(b.na=b.gb)),this.update())};b.prototype.Kn=function(){var a=this.ua;this.X.ib&&(this.A.od?(a.ba.x=.4*(this.Y.ca.x-a.ca.x),a.ba.y=.4*(this.Y.ca.y-a.ca.y),a.ca.x+=a.ba.x, a.ca.y+=a.ba.y):(a.ba.x=.1*-this.Y.ba.x*this.A.sensitivity/8,a.ba.y=.1*-this.Y.ba.y*this.A.sensitivity/8),this.Dl(a.ba.x,a.ba.y),this.update());a.f.active&&(this.Aj(.4*(a.f.Vb-this.f.c)),.001>Math.abs(a.f.Vb-this.f.c)/this.f.c&&(a.f.active=!1),this.update());if(a.enabled&&(0!=a.ba.x||0!=a.ba.y)&&!this.X.ib){var b=.9*(1-a.Zi);a.ba.x=b*a.ba.x;a.ba.y=b*a.ba.y;.01>a.ba.x*a.ba.x+a.ba.y*a.ba.y?(a.ba.x=0,a.ba.y=0):(this.Dl(a.ba.x,a.ba.y),this.update())}};b.prototype.Gn=function(){if(this.A.$k&&this.A.od){var a= new k;a.pan=this.pan.c;a.j=this.j.c;a.f=this.f.c;this.Ee(a);this.Ee(a);this.Ee(a);var b=a.pan-this.pan.c,c=a.j-this.j.c,a=a.f-this.f.c;if(0!=b||0!=c||0!=a){var e;e=.2+.9*Math.min((Math.abs(b)+Math.abs(c)+Math.abs(a))/Math.abs(Math.min(this.f.c,100))*.3,1);this.pan.c+=b*e;this.j.c+=c*e;this.f.c+=a*e;this.ua.Zi=.3;this.update()}else this.ua.Zi=0}else this.Hg();if(2!=this.kb){for(;360this.pan.c;)this.pan.c+=360}};b.prototype.In=function(){if(0!=this.he){var a=this.A.sensitivity/ 8;switch(this.he){case 37:case 65:this.Eg(a*this.Gd(),!0);break;case 38:case 87:this.Fg(a*this.Gd(),!0);break;case 39:case 68:this.Eg(-a*this.Gd(),!0);break;case 40:case 83:this.Fg(-a*this.Gd(),!0);break;case 43:case 107:case 16:case 81:this.A.Hi||this.rf(-a,!0);break;case 17:case 18:case 109:case 45:case 91:case 69:this.A.Hi||this.rf(a,!0)}this.update()}};b.prototype.Jn=function(){if(!this.Tg()&&this.If&&5>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|h,b+=String.fromCharCode(c),64!=g&&(b+=String.fromCharCode(e)),64!=h&&(b+=String.fromCharCode(f));while(kb&&(b=0),b>c.pf.duration&&(b=c.pf.duration-.1),c.dm(b)):c.a&&(0>b&&(b=0),b>c.a.duration&&(b=c.a.duration-.1),c.a.currentTime=b))};b.prototype.po=function(a,b){if(this.wb){var c=this.ha;c&&c.setVolume(a,b)}else try{var e=Number(b);1e&&(e=0);"_videopanorama"===a&&this.o.a&&(this.o.a.volume=e);if("_main"===a){this.W=e;for(c=0;cc&&(c=0);this.W=c;for(e=0;ec&&(c=0);g.level=c;g.a&&null!=g.a.volume&&(g.a.volume=c*this.W)}}}catch(h){this.L(h)}};b.prototype.ol=function(){try{for(var a=this,b=!1,c=!1,e=0;ef&&(f=this.ic);for(e=0;6>e;e++){c=this.hb.ab[e];a?(c.width=this.qf,c.height=this.qf):(c.K=document.createElement("canvas"),c.K.width=this.ic,c.K.height=this.ic,c.width=this.ic, c.height=this.ic,c.Oa=c.K.getContext("2d"));b="position:absolute;";b+="left: 0px;";b+="top: 0px;";b+="width: "+f+"px;";b+="height: "+f+"px;";a&&(b+="outline: 1px solid transparent;");b+=this.Ja+"transform-origin: 0% 0%;";b+="-webkit-user-select: none;";b+=this.Ja+"transform: ";var g;g="";var h=1;this.Xe&&(h=100);g=4>e?g+("rotateY("+-90*e+"deg)"):g+("rotateX("+(4==e?-90:90)+"deg)");this.Xe&&(g+=" scale("+h+")");g+=" translate3d("+-f/2+"px,"+-f/2+"px,"+-f*h/(2*this.cf)+"px)";b+=g+";";c.ek=g;a||(c.K.setAttribute("style", b),this.C.insertBefore(c.K,this.C.firstChild))}if(!a){for(e=0;6>e;e++)c=this.hb.ab[e],""!=this.Ge[e]&&(c.ud=new Image,c.ud.crossOrigin=this.crossOrigin,c.ud.onload=this.Gj(c),c.ud.setAttribute("src",this.Wb(this.Ge[e])),this.Gb.push(c.ud));for(e=0;6>e;e++)c=this.hb.ab[e],c.loaded=!1,c.h=new Image,c.h.crossOrigin=this.crossOrigin,c.h.onload=this.Gj(c),c.h.setAttribute("src",this.Wb(this.Kg[e])),this.Gb.push(c.h)}};b.prototype.th=function(){var a;this.ua.ba.x=0;this.ua.ba.y=0;if(this.Gc){for(a=0;a< this.hb.ab.length;a++)this.hb.ab[a].K&&this.hb.ab[a].K.setAttribute&&(this.hb.ab[a].K.setAttribute("src",this.Lj),this.C.removeChild(this.hb.ab[a].K));if(this.h.I){for(a=0;aa.Xg?a.Nh:a.Xg};b.prototype.Ui=function(a,b){var c=(new DOMParser).parseFromString(a,"text/xml");this.gi=a;this.Rk(c,b);this.ha&&(this.L("Apply to Flash player"),this.ha.readConfigString(this.gi), this.ha.setLocked(!0),this.ha.setSlaveMode(!0))};b.prototype.Qk=function(a,b,c){try{var e;e=new XMLHttpRequest;e.open("GET",a,!1);e.send(null);if(e.responseXML){var f=a.lastIndexOf("/");0<=f&&(this.Cd=a.substr(0,f+1));2<=arguments.length&&null!=b&&(this.Cd=b);this.Ui(e.responseText,c)}else alert("Error loading panorama XML")}catch(g){alert("Error:"+g)}};b.prototype.On=function(a,b,c,e){var f;f=new XMLHttpRequest;var g=this;f.onload=function(h){if(4<=f.readyState)if(f.responseXML){var k=a.lastIndexOf("/"); 0<=k&&(g.Cd=a.substr(0,k+1));3<=arguments.length&&null!=c&&(g.Cd=c);g.Ui(f.responseText,e);b&&b()}else alert("Error loading panorama XML");else console.error("Wrong state loading XML:"+f.statusText)};f.onerror=function(){console.error("Error loading XML:"+f.statusText)};f.open("GET",a,!0);f.send(null)};b.prototype.Zh=function(a){var b="";"{"==a.charAt(0)&&(b=a.substr(1,a.length-2));a={oldNodeId:this.Ub,nodeId:b};this.tl("beforechangenodeid",a);""!=this.Ub&&-1==this.sj.indexOf(this.Ub)&&this.sj.push(this.Ub); this.wk=this.Ub;this.Ub=b;this.L("change active node: "+b);this.Qa&&this.Qa.changeActiveNode&&this.Qa.changeActiveNode("{"+b+"}");this.tl("changenodeid",a)};b.prototype.Xj=function(){return this.Ub};b.prototype.Zj=function(){if(0=this.La.length&&(a=0);return this.La[a]}return""};b.prototype.Wm=function(){if(0a&&(a=this.La.length-1);return this.La[a]}return""};b.prototype.Km=function(){return this.wk}; b.prototype.xn=function(a){return-1!=this.sj.indexOf(a)};b.prototype.Rk=function(a,b){var c=a.firstChild;this.te=[];this.La=[];this.Mg=[];if("tour"==c.nodeName){this.Of=!0;var e="",f;(f=c.getAttributeNode("start"))&&(e=f.nodeValue.toString());this.hasOwnProperty("startNode")&&this.startNode&&(e=String(this.startNode),this.startNode="");for(var g=c.firstChild,h="",c="";g;){if("panorama"==g.nodeName){if(f=g.getAttributeNode("id"))h=f.nodeValue.toString(),""==e&&(e=h),""==c&&(c=h),this.te[h]=g,this.La.push(h); for(f=g.firstChild;f;){if("userdata"==f.nodeName){var k=this.Pg(f);this.qj[h]=k;k.customnodeid&&(this.Mg[k.customnodeid]=h)}f=f.nextSibling}}g=g.nextSibling}this.te.hasOwnProperty(e)||(g=this.Mg[e])&&(e=g);this.te.hasOwnProperty(e)||(this.Zc("Start node "+e+" not found!"),e=c);this.Ti(this.te[e],b);this.Zh("{"+e+"}")}else this.Of=!1,this.Ti(c,b),this.Zh(""),this.La.push("")};b.prototype.Ti=function(a,b){this.Wk();this.Ba&&this.Ba.Qn();this.$e(this.pb);this.th();this.Rf=0;for(var c=a.firstChild,e, f,g=0;c;){if("view"==c.nodeName){if(e=c.getAttributeNode("fovmode"))this.f.mode=Number(e.nodeValue);e=c.getAttributeNode("pannorth");this.pan.Oi=1*(e?e.nodeValue:0);for(var h=c.firstChild;h;){"start"==h.nodeName&&(e=h.getAttributeNode("pan"),this.pan.c=Number(e?e.nodeValue:0),this.pan.Pa=this.pan.c,e=h.getAttributeNode("tilt"),this.j.c=Number(e?e.nodeValue:0),this.j.Pa=this.j.c,e=h.getAttributeNode("roll"),this.N.c=Number(e?e.nodeValue:0),this.N.Pa=this.N.c,e=h.getAttributeNode("fov"),this.f.c=Number(e? e.nodeValue:70),this.f.Pa=this.f.c,e=h.getAttributeNode("projection"),this.oh=Number(e?e.nodeValue:4),this.ad(this.oh));"min"==h.nodeName&&(e=h.getAttributeNode("pan"),this.pan.min=1*(e?e.nodeValue:0),e=h.getAttributeNode("tilt"),this.j.min=1*(e?e.nodeValue:-90),e=h.getAttributeNode("fov"),this.f.min=1*(e?e.nodeValue:5),1E-20>this.f.min&&(this.f.min=1E-20),e=h.getAttributeNode("fovpixel"),this.f.Xf=1*(e?e.nodeValue:0));if("max"==h.nodeName){e=h.getAttributeNode("pan");this.pan.max=1*(e?e.nodeValue: 0);e=h.getAttributeNode("tilt");this.j.max=1*(e?e.nodeValue:90);e=h.getAttributeNode("fov");this.f.max=1*(e?e.nodeValue:120);180<=this.f.max&&(this.f.max=179.9);if(e=h.getAttributeNode("fovstereographic"))this.f.Ki=1*e.nodeValue;if(e=h.getAttributeNode("fovfisheye"))this.f.Ji=1*e.nodeValue;if(e=h.getAttributeNode("scaletofit"))this.A.bl=1==e.nodeValue}if("flyin"==h.nodeName){if(e=h.getAttributeNode("projection"))this.lc.Bb=Number(e.nodeValue);if(e=h.getAttributeNode("pan"))this.lc.pan=parseFloat(e.nodeValue); if(e=h.getAttributeNode("tilt"))this.lc.j=parseFloat(e.nodeValue);if(e=h.getAttributeNode("fov"))this.lc.f=parseFloat(e.nodeValue)}h=h.nextSibling}}if("autorotate"==c.nodeName){if(e=c.getAttributeNode("speed"))this.s.speed=1*e.nodeValue;if(e=c.getAttributeNode("delay"))this.s.timeout=1*e.nodeValue;if(e=c.getAttributeNode("returntohorizon"))this.s.Eh=1*e.nodeValue;if(e=c.getAttributeNode("nodedelay"))this.s.mh=1*e.nodeValue;if(e=c.getAttributeNode("noderandom"))this.s.Ni=1==e.nodeValue;this.ce&&(this.s.enabled= !0,this.s.active=!1);if(e=c.getAttributeNode("startloaded"))this.s.pg=1==e.nodeValue,this.s.pg&&(this.s.active=!1);if(e=c.getAttributeNode("useanimation"))this.s.pj=1==e.nodeValue;if(e=c.getAttributeNode("syncanimationwithvideo"))this.s.hj=1==e.nodeValue}if("animation"==c.nodeName){if(e=c.getAttributeNode("syncanimationwithvideo"))this.s.hj=1==e.nodeValue;if(e=c.getAttributeNode("useinautorotation"))this.s.pj=1==e.nodeValue;this.Ia=[];for(h=c.firstChild;h;){if("clip"==h.nodeName){this.D=new m.Ek; if(e=h.getAttributeNode("animtitle"))this.D.gp=e.nodeValue.toString();if(e=h.getAttributeNode("cliptitle"))this.D.Ta=e.nodeValue.toString();if(e=h.getAttributeNode("nodeid"))this.D.hp=e.nodeValue.toString();if(e=h.getAttributeNode("length"))this.D.length=Number(e.nodeValue);if(e=h.getAttributeNode("animtype"))this.D.Xl=Number(e.nodeValue);if(e=h.getAttributeNode("nextcliptitle"))this.D.Ik=e.nodeValue.toString();if(e=h.getAttributeNode("nextclipnodeid"))this.D.Hk=e.nodeValue.toString();if(e=h.getAttributeNode("transitiontype"))this.D.Lo= Number(e.nodeValue);var k=h.firstChild;for(this.D.ja=[];k;){if("keyframe"==k.nodeName){var A=new m.yc;if(e=k.getAttributeNode("time"))A.time=Number(e.nodeValue);if(e=k.getAttributeNode("value"))A.value=Number(e.nodeValue);if(e=k.getAttributeNode("transitiontime"))A.nb=Number(e.nodeValue);e=k.getAttributeNode("type");var n=0;e&&(A.type=Number(e.nodeValue),n=Number(e.nodeValue));if(e=k.getAttributeNode("property"))A.vb=Number(e.nodeValue);if(1==n||2==n){if(e=k.getAttributeNode("bezierintime"))A.Wd= Number(e.nodeValue);if(e=k.getAttributeNode("bezierinvalue"))A.Jc=Number(e.nodeValue);if(e=k.getAttributeNode("bezierouttime"))A.Xd=Number(e.nodeValue);if(e=k.getAttributeNode("bezieroutvalue"))A.Yd=Number(e.nodeValue)}this.D.ja.push(A)}k=k.nextSibling}this.zb==this.D.Ta&&(e=this.D.ja,this.hg(e[0].value,e[1].value,e[2].value));this.Ia.push(this.D)}h=h.nextSibling}}"input"==c.nodeName&&(f||(f=c));if(f)for(h=0;6>h;h++)e=f.getAttributeNode("prev"+h+"url"),this.Ge[h]=e?String(e.nodeValue):"";"altinput"== c.nodeName&&(h=0,(e=c.getAttributeNode("screensize"))&&(h=1*e.nodeValue),0g&&(g=h,f=c));if("control"==c.nodeName&&this.ce){if(e=c.getAttributeNode("simulatemass"))this.ua.enabled=1==e.nodeValue;if(e=c.getAttributeNode("rubberband"))this.A.$k=1==e.nodeValue;if(e=c.getAttributeNode("locked"))this.A.sb=1==e.nodeValue;e&&(this.A.Qe=1==e.nodeValue);if(e=c.getAttributeNode("lockedmouse"))this.A.sb=1==e.nodeValue;if(e=c.getAttributeNode("lockedkeyboard"))this.A.Qe=1==e.nodeValue;if(e= c.getAttributeNode("lockedkeyboardzoom"))this.A.Hi=1==e.nodeValue;if(e=c.getAttributeNode("lockedwheel"))this.A.Yc=1==e.nodeValue;if(e=c.getAttributeNode("invertwheel"))this.A.nk=1==e.nodeValue;if(e=c.getAttributeNode("speedwheel"))this.A.kl=1*e.nodeValue;if(e=c.getAttributeNode("invertcontrol"))this.A.od=1==e.nodeValue;if(e=c.getAttributeNode("sensitivity"))this.A.sensitivity=1*e.nodeValue,1>this.A.sensitivity&&(this.A.sensitivity=1);if(e=c.getAttributeNode("dblclickfullscreen"))this.A.ii=1==e.nodeValue; if(e=c.getAttributeNode("contextfullscreen"))this.A.uf=1==e.nodeValue;if(e=c.getAttributeNode("contextprojections"))this.A.Ig=1==e.nodeValue;if(e=c.getAttributeNode("hideabout"))this.A.Jf=1==e.nodeValue;for(h=c.firstChild;h;)"menulink"==h.nodeName&&(k={text:"",url:""},e=h.getAttributeNode("text"),k.text=e.nodeValue,e=h.getAttributeNode("url"),k.url=e.nodeValue,this.Wf.push(k)),h=h.nextSibling}if("transition"==c.nodeName&&this.ce){if(e=c.getAttributeNode("enabled"))this.B.enabled=1==e.nodeValue;if(e= c.getAttributeNode("blendtime"))this.B.Dg=e.nodeValue;if(e=c.getAttributeNode("blendcolor"))this.B.Ae=e.nodeValue.toString();if(e=c.getAttributeNode("type"))this.B.type=e.nodeValue.toString();if(e=c.getAttributeNode("softedge"))this.B.tc=1*e.nodeValue;if(e=c.getAttributeNode("zoomin"))this.B.Na=e.nodeValue;if(e=c.getAttributeNode("zoomout"))this.B.Nb=e.nodeValue;if(e=c.getAttributeNode("zoomfov"))this.B.jf=e.nodeValue;if(e=c.getAttributeNode("zoomspeed"))this.B.Td=e.nodeValue;if(e=c.getAttributeNode("zoomoutpause"))this.B.kf= 1==e.nodeValue}if("soundstransition"==c.nodeName){if(e=c.getAttributeNode("enabled"))this.Ea.enabled=1==e.nodeValue;if(e=c.getAttributeNode("transitiontime"))this.Ea.nb=1*e.nodeValue;if(e=c.getAttributeNode("crossfade"))this.Ea.Fj=1==e.nodeValue}if("flyintransition"==c.nodeName){if(e=c.getAttributeNode("enabled"))this.qb.enabled=1==e.nodeValue&&this.Z;if(e=c.getAttributeNode("speed"))this.qb.speed=1*e.nodeValue}"userdata"==c.nodeName&&(this.userdata=this.gf=this.Pg(c));if("hotspots"==c.nodeName)for(h= c.firstChild;h;){if("label"==h.nodeName&&this.ce){k=this.w.jj;if(e=h.getAttributeNode("enabled"))k.enabled=1==e.nodeValue;if(e=h.getAttributeNode("width"))k.width=1*e.nodeValue;if(e=h.getAttributeNode("height"))k.height=1*e.nodeValue;if(e=h.getAttributeNode("textcolor"))k.kj=1*e.nodeValue;if(e=h.getAttributeNode("textalpha"))k.ij=1*e.nodeValue;if(e=h.getAttributeNode("background"))k.background=1==e.nodeValue;if(e=h.getAttributeNode("backgroundalpha"))k.Ob=1*e.nodeValue;if(e=h.getAttributeNode("backgroundcolor"))k.Pb= 1*e.nodeValue;if(e=h.getAttributeNode("border"))k.Xh=1*e.nodeValue;if(e=h.getAttributeNode("bordercolor"))k.Sb=1*e.nodeValue;if(e=h.getAttributeNode("borderalpha"))k.Rb=1*e.nodeValue;if(e=h.getAttributeNode("borderradius"))k.Wh=1*e.nodeValue;if(e=h.getAttributeNode("wordwrap"))k.Ph=1==e.nodeValue}if("polystyle"==h.nodeName&&this.ce){if(e=h.getAttributeNode("mode"))this.w.mode=1*e.nodeValue;if(e=h.getAttributeNode("bordercolor"))this.w.Sb=1*e.nodeValue;if(e=h.getAttributeNode("backgroundcolor"))this.w.Pb= 1*e.nodeValue;if(e=h.getAttributeNode("borderalpha"))this.w.Rb=1*e.nodeValue;if(e=h.getAttributeNode("backgroundalpha"))this.w.Ob=1*e.nodeValue;if(e=h.getAttributeNode("handcursor"))this.w.Me=1==e.nodeValue}e=void 0;"hotspot"==h.nodeName&&(e=new m.dh(this),e.type="point",e.Db(h),this.P.push(e));"polyhotspot"==h.nodeName&&(e=new m.dh(this),e.type="poly",e.Db(h),this.P.push(e));h=h.nextSibling}if("sounds"==c.nodeName||"media"==c.nodeName)for(h=c.firstChild;h;)"sound"!=h.nodeName||this.Jk||(e=new m.Tl(this), e.Db(h),this.wb||e.addElement()),"video"==h.nodeName&&(e=new m.al(this),e.Db(h),this.wb||e.addElement()),"image"==h.nodeName&&(e=new m.Rl(this),e.Db(h),this.wb||e.addElement()),"lensflare"==h.nodeName&&this.Ba&&(e=new m.Sl(this),e.Db(h),this.Ba.Tf.push(e)),h=h.nextSibling;c=c.nextSibling}b&&""!=b&&(c=b.toString().split("/"),4h;h++)(e=f.getAttributeNode("tile"+h+"url"))&&(this.Kg[h]=String(e.nodeValue)),e=f.getAttributeNode("tile"+h+"url1");for(h=0;6>h;h++)(e=f.getAttributeNode("prev"+h+"url"))&&(this.Ge[h]=String(e.nodeValue));if(e=f.getAttributeNode("tilesize"))this.ic=1*e.nodeValue;if(e=f.getAttributeNode("canvassize"))this.qf=Number(e.nodeValue);if(e=f.getAttributeNode("tilescale"))this.cf=1*e.nodeValue;if(e=f.getAttributeNode("leveltileurl"))this.h.Dk= e.nodeValue;if(e=f.getAttributeNode("leveltilesize"))this.h.G=Number(e.nodeValue);if(e=f.getAttributeNode("levelbias"))this.h.Bk=Number(e.nodeValue);if(e=f.getAttributeNode("levelbiashidpi"))this.h.Ck=Number(e.nodeValue);e=f.getAttributeNode("overlap");this.Ca.N=0;this.Ca.pitch=0;e&&(this.h.Ka=Number(e.nodeValue));if(e=f.getAttributeNode("levelingroll"))this.Ca.N=Number(e.nodeValue);if(e=f.getAttributeNode("levelingpitch"))this.Ca.pitch=Number(e.nodeValue);this.kb=0;(e=f.getAttributeNode("flat"))&& 1==e.nodeValue&&(this.kb=2);e=f.getAttributeNode("width");this.h.width=1*(e?e.nodeValue:1);e=f.getAttributeNode("height");this.h.height=1*(e?e.nodeValue:this.h.width);this.o.src=[];this.h.I=[];for(h=f.firstChild;h;){if("preview"==h.nodeName){if(e=h.getAttributeNode("color"))this.h.Ve=e.nodeValue;if(e=h.getAttributeNode("strip"))this.h.Pk=1==e.nodeValue}if("video"==h.nodeName){if(e=h.getAttributeNode("format"))"3x2"==e.nodeValue&&(this.o.format=14),"equirectangular"==e.nodeValue&&(this.o.format=1); if(e=h.getAttributeNode("flipy"))this.o.ti=Number(e.nodeValue);if(e=h.getAttributeNode("startmuted"))this.o.nl=1==e.nodeValue;if(e=h.getAttributeNode("bleed"))this.o.ze=Number(e.nodeValue);if(e=h.getAttributeNode("endaction"))this.o.be=String(e.nodeValue);if(e=h.getAttributeNode("width"))this.o.width=Number(e.nodeValue);if(e=h.getAttributeNode("height"))this.o.height=Number(e.nodeValue);for(f=h.firstChild;f;)"source"==f.nodeName&&(e=f.getAttributeNode("url"))&&this.o.src.push(e.nodeValue.toString()), f=f.nextSibling}if("level"==h.nodeName){f=new m.Kk;e=h.getAttributeNode("width");f.width=1*(e?e.nodeValue:1);e=h.getAttributeNode("height");f.height=1*(e?e.nodeValue:f.width);if(e=h.getAttributeNode("preload"))f.cache=1==e.nodeValue;if(e=h.getAttributeNode("preview"))f.Ue=1==e.nodeValue;f.M=Math.floor((f.width+this.h.G-1)/this.h.G);f.ea=Math.floor((f.height+this.h.G-1)/this.h.G);this.h.I.push(f)}h=h.nextSibling}this.h.Ei=this.h.I.length}this.vg&&(this.Z=this.Gc=!1,this.Tb||(this.L("dummy rendering"), this.Tb=document.createElement("canvas"),this.Tb.width=100,this.Tb.height=100,this.Tb.id="dummycanvas",this.C.appendChild(this.Tb)),this.dd());this.Z&&this.H&&(this.la.lk(this.cf),this.la.mk());this.Gc&&(0a;a++)for(c=a%3*l+r.o.ze,e=c+l-2*r.o.ze,f=4,3>a&&(f+=l),d=f+l-2*r.o.ze,b=0;4>b;b++){h.x=-1;h.y=-1;h.z=1;for(var n=0;na.time&&this.D.ja[b].timee;)e+=360;for(;360v)for(;p<=h&&t>v;)t=new m.kc,t.Vh(q,w,z,B,p),t=t.y,p++;else p=1;p>=.8*h&&(r=p=Math.round(.8*h));0==p&&(p=1);var y;4==a.mg?y=120:y=this.Cf(a.mg);v=a.bf;if(v>y)for(;u>p&&v>y;)t=new m.kc,t.Vh(q,w,z,B,u),v=t.y,u--}q=new m.yc;q.time=0;q.vb=0;q.value=a.lg;q.type=1;q.Xd=h/3;q.Yd=a.He?a.lg:a.lg+e/3;b.ja.push(q); q=new m.yc;q.time=0;q.vb=1;q.value=a.ng;q.type=1;q.Xd=h/3;q.Yd=a.He?a.ng:a.ng+f/3;b.ja.push(q);q=new m.yc;q.time=0;q.vb=2;q.value=a.yd;q.type=1;q.Xd=h/3;q.Yd=a.He?a.yd:a.yd+g/3;b.ja.push(q);q=new m.yc;q.time=0;q.vb=3;q.value=a.mg;q.type=0;q.nb=0;b.ja.push(q);c&&(q=new m.yc,q.time=p,q.vb=3,q.value=a.bd,q.type=0,q.nb=u-p,b.ja.push(q));q=new m.yc;q.time=h;q.vb=0;q.value=a.Rd;q.type=1;q.Wd=2*h/3;a.$d&&!a.ae?q.Jc=a.Rd:q.Jc=a.Rd-e/3;a.ae&&(q.Xd=h+A,q.Yd=q.value+A/h*e);b.ja.push(q);q=new m.yc;q.time=h;q.vb= 1;q.value=a.Sd;q.type=1;q.Wd=2*h/3;a.$d&&!a.ae?q.Jc=a.Sd:q.Jc=a.Sd-f/3;a.ae&&(q.Xd=h+A,q.Yd=q.value+A/h*f);b.ja.push(q);q=new m.yc;q.time=r;q.vb=2;q.value=n;q.type=1;q.Wd=2*r/3;a.$d?q.Jc=n:q.Jc=n-g/3;b.ja.push(q);a.ae&&(q=new m.yc,q.time=h+k,q.vb=0,q.value=a.Rd,q.type=1,q.Wd=h+k-A,q.Jc=a.Rd,b.ja.push(q),q=new m.yc,q.time=h+k,q.vb=1,q.value=a.Sd,q.type=1,q.Wd=h+k-A,q.Jc=a.Sd,b.ja.push(q));this.Ia.push(b);return b};b.prototype.Xo=function(){this.o.a&&this.o.a.play()};b.prototype.Yo=function(){this.o.a&& (this.o.a.pause(),this.o.a.currentTime=0)};b.prototype.Wo=function(){this.o.a&&this.o.a.pause()};b.prototype.oo=function(a){this.o.a&&(0>a&&(a=0),a>this.o.a.duration&&(a=this.o.a.duration-.1),this.o.a.currentTime=a,this.update())};b.prototype.an=function(){return this.o.a?this.o.a.currentTime:0};b.prototype.$m=function(){if(this.o.a)return this.o.a};b.prototype.no=function(a){if(this.o.a){var b=!this.o.a.paused&&!this.o.a.ended,c=this.o.a.currentTime;this.o.a.pause();isNaN(parseInt(a,10))?this.o.a.src= String(a):this.o.a.src=this.o.src[parseInt(a,10)];b&&(this.o.a.onloadedmetadata=function(){this.currentTime=c;this.play();this.onloadedmetadata=null});this.o.a.currentTime=c}};b.prototype.tm=function(){this.Jk=!0};return b}();m.b=g})(ggP2VR||(ggP2VR={}));window.ggHasHtml5Css3D=G;window.ggHasWebGL=N;window.pano2vrPlayer=ggP2VR.b;ggP2VR.b.prototype.readConfigString=ggP2VR.b.prototype.Ui;ggP2VR.b.prototype.readConfigUrl=ggP2VR.b.prototype.Qk;ggP2VR.b.prototype.readConfigUrlAsync=ggP2VR.b.prototype.On; ggP2VR.b.prototype.readConfigXml=ggP2VR.b.prototype.Rk;ggP2VR.b.prototype.openUrl=ggP2VR.b.prototype.Pi;ggP2VR.b.prototype.openNext=ggP2VR.b.prototype.le;ggP2VR.b.prototype.setMargins=ggP2VR.b.prototype.$n;ggP2VR.b.prototype.addListener=ggP2VR.b.prototype.addListener;ggP2VR.b.prototype.removeEventListener=ggP2VR.b.prototype.removeEventListener;ggP2VR.b.prototype.detectBrowser=ggP2VR.b.prototype.Kj;ggP2VR.b.prototype.initWebGL=ggP2VR.b.prototype.Bc;ggP2VR.b.prototype.getPercentLoaded=ggP2VR.b.prototype.Sm; ggP2VR.b.prototype.setBasePath=ggP2VR.b.prototype.Un;ggP2VR.b.prototype.getBasePath=ggP2VR.b.prototype.Am;ggP2VR.b.prototype.setViewerSize=ggP2VR.b.prototype.fl;ggP2VR.b.prototype.getViewerSize=ggP2VR.b.prototype.dn;ggP2VR.b.prototype.setSkinObject=ggP2VR.b.prototype.lo;ggP2VR.b.prototype.changeViewMode=ggP2VR.b.prototype.im;ggP2VR.b.prototype.getViewMode=ggP2VR.b.prototype.bn;ggP2VR.b.prototype.changePolygonMode=ggP2VR.b.prototype.Bj;ggP2VR.b.prototype.setPolygonMode=ggP2VR.b.prototype.Bj; ggP2VR.b.prototype.getPolygonMode=ggP2VR.b.prototype.Um;ggP2VR.b.prototype.showOnePolyHotspot=ggP2VR.b.prototype.hl;ggP2VR.b.prototype.hideOnePolyHotspot=ggP2VR.b.prototype.hk;ggP2VR.b.prototype.changePolyHotspotColor=ggP2VR.b.prototype.gm;ggP2VR.b.prototype.toggleOnePolyHotspot=ggP2VR.b.prototype.Go;ggP2VR.b.prototype.changeViewState=ggP2VR.b.prototype.jm;ggP2VR.b.prototype.getViewState=ggP2VR.b.prototype.cn;ggP2VR.b.prototype.setRenderFlags=ggP2VR.b.prototype.bo; ggP2VR.b.prototype.getRenderFlags=ggP2VR.b.prototype.Xm;ggP2VR.b.prototype.setMaxTileCount=ggP2VR.b.prototype.dl;ggP2VR.b.prototype.getVFov=ggP2VR.b.prototype.Jb;ggP2VR.b.prototype.setVFov=ggP2VR.b.prototype.jg;ggP2VR.b.prototype.getHFov=ggP2VR.b.prototype.Dm;ggP2VR.b.prototype.updatePanorama=ggP2VR.b.prototype.ug;ggP2VR.b.prototype.isTouching=ggP2VR.b.prototype.kn;ggP2VR.b.prototype.getIsMobile=ggP2VR.b.prototype.Hm;ggP2VR.b.prototype.setIsMobile=ggP2VR.b.prototype.Yn; ggP2VR.b.prototype.getIsAutorotating=ggP2VR.b.prototype.Fm;ggP2VR.b.prototype.getIsLoaded=ggP2VR.b.prototype.Tg;ggP2VR.b.prototype.getIsTileLoading=ggP2VR.b.prototype.Im;ggP2VR.b.prototype.getLastActivity=ggP2VR.b.prototype.Jm;ggP2VR.b.prototype.getPan=ggP2VR.b.prototype.vi;ggP2VR.b.prototype.getPanNorth=ggP2VR.b.prototype.Ug;ggP2VR.b.prototype.getPanDest=ggP2VR.b.prototype.Qm;ggP2VR.b.prototype.getPanN=ggP2VR.b.prototype.Rm;ggP2VR.b.prototype.setPan=ggP2VR.b.prototype.xh; ggP2VR.b.prototype.setPanNorth=ggP2VR.b.prototype.aj;ggP2VR.b.prototype.changePan=ggP2VR.b.prototype.Eg;ggP2VR.b.prototype.changePanLog=ggP2VR.b.prototype.fm;ggP2VR.b.prototype.getTilt=ggP2VR.b.prototype.xi;ggP2VR.b.prototype.getTiltDest=ggP2VR.b.prototype.Zm;ggP2VR.b.prototype.setTilt=ggP2VR.b.prototype.yh;ggP2VR.b.prototype.changeTilt=ggP2VR.b.prototype.Fg;ggP2VR.b.prototype.changeTiltLog=ggP2VR.b.prototype.hm;ggP2VR.b.prototype.getFov=ggP2VR.b.prototype.Bf;ggP2VR.b.prototype.getFovDest=ggP2VR.b.prototype.Cm; ggP2VR.b.prototype.setFov=ggP2VR.b.prototype.dg;ggP2VR.b.prototype.changeFov=ggP2VR.b.prototype.Aj;ggP2VR.b.prototype.changeFovLog=ggP2VR.b.prototype.rf;ggP2VR.b.prototype.getRoll=ggP2VR.b.prototype.Ym;ggP2VR.b.prototype.setRoll=ggP2VR.b.prototype.co;ggP2VR.b.prototype.setPanTilt=ggP2VR.b.prototype.ao;ggP2VR.b.prototype.setPanTiltFov=ggP2VR.b.prototype.hg;ggP2VR.b.prototype.setDefaultView=ggP2VR.b.prototype.Wn;ggP2VR.b.prototype.setLocked=ggP2VR.b.prototype.Zn;ggP2VR.b.prototype.setLockedMouse=ggP2VR.b.prototype.fg; ggP2VR.b.prototype.setLockedKeyboard=ggP2VR.b.prototype.eg;ggP2VR.b.prototype.setLockedWheel=ggP2VR.b.prototype.gg;ggP2VR.b.prototype.moveTo=ggP2VR.b.prototype.moveTo;ggP2VR.b.prototype.moveToEx=ggP2VR.b.prototype.kh;ggP2VR.b.prototype.moveToDefaultView=ggP2VR.b.prototype.sn;ggP2VR.b.prototype.moveToDefaultViewEx=ggP2VR.b.prototype.tn;ggP2VR.b.prototype.addHotspotElements=ggP2VR.b.prototype.uj;ggP2VR.b.prototype.playSound=ggP2VR.b.prototype.ne;ggP2VR.b.prototype.playPauseSound=ggP2VR.b.prototype.Ok; ggP2VR.b.prototype.playStopSound=ggP2VR.b.prototype.Mn;ggP2VR.b.prototype.pauseSound=ggP2VR.b.prototype.Qi;ggP2VR.b.prototype.activateSound=ggP2VR.b.prototype.Vl;ggP2VR.b.prototype.soundGetTime=ggP2VR.b.prototype.uo;ggP2VR.b.prototype.soundSetTime=ggP2VR.b.prototype.vo;ggP2VR.b.prototype.isPlaying=ggP2VR.b.prototype.Cc;ggP2VR.b.prototype.stopSound=ggP2VR.b.prototype.gj;ggP2VR.b.prototype.setVolume=ggP2VR.b.prototype.po;ggP2VR.b.prototype.changeVolume=ggP2VR.b.prototype.km; ggP2VR.b.prototype.removeHotspots=ggP2VR.b.prototype.Wk;ggP2VR.b.prototype.addHotspot=ggP2VR.b.prototype.Wl;ggP2VR.b.prototype.updateHotspot=ggP2VR.b.prototype.Oo;ggP2VR.b.prototype.removeHotspot=ggP2VR.b.prototype.Pn;ggP2VR.b.prototype.setActiveHotspot=ggP2VR.b.prototype.$e;ggP2VR.b.prototype.getPointHotspotIds=ggP2VR.b.prototype.Tm;ggP2VR.b.prototype.getHotspot=ggP2VR.b.prototype.Em;ggP2VR.b.prototype.setFullscreen=ggP2VR.b.prototype.af;ggP2VR.b.prototype.toggleFullscreen=ggP2VR.b.prototype.Gh; ggP2VR.b.prototype.enterFullscreen=ggP2VR.b.prototype.um;ggP2VR.b.prototype.exitFullscreen=ggP2VR.b.prototype.exitFullscreen;ggP2VR.b.prototype.getIsFullscreen=ggP2VR.b.prototype.Gm;ggP2VR.b.prototype.startAutorotate=ggP2VR.b.prototype.ll;ggP2VR.b.prototype.stopAutorotate=ggP2VR.b.prototype.Bo;ggP2VR.b.prototype.toggleAutorotate=ggP2VR.b.prototype.Fo;ggP2VR.b.prototype.startAnimation=ggP2VR.b.prototype.yo;ggP2VR.b.prototype.createLayers=ggP2VR.b.prototype.Ej;ggP2VR.b.prototype.removePanorama=ggP2VR.b.prototype.th; ggP2VR.b.prototype.getScreenResolution=ggP2VR.b.prototype.bk;ggP2VR.b.prototype.getMaxScreenResolution=ggP2VR.b.prototype.Yj;ggP2VR.b.prototype.getNodeIds=ggP2VR.b.prototype.Nm;ggP2VR.b.prototype.getNodeUserdata=ggP2VR.b.prototype.ui;ggP2VR.b.prototype.getNodeLatLng=ggP2VR.b.prototype.Om;ggP2VR.b.prototype.getNodeTitle=ggP2VR.b.prototype.Pm;ggP2VR.b.prototype.getCurrentNode=ggP2VR.b.prototype.Xj;ggP2VR.b.prototype.getNextNode=ggP2VR.b.prototype.Zj;ggP2VR.b.prototype.getPrevNode=ggP2VR.b.prototype.Wm; ggP2VR.b.prototype.getLastVisitedNode=ggP2VR.b.prototype.Km;ggP2VR.b.prototype.getCurrentPointHotspots=ggP2VR.b.prototype.Bm;ggP2VR.b.prototype.getPositionAngles=ggP2VR.b.prototype.Vm;ggP2VR.b.prototype.getPositionRawAngles=ggP2VR.b.prototype.$j;ggP2VR.b.prototype.nodeVisited=ggP2VR.b.prototype.xn;ggP2VR.b.prototype.setElementIdPrefix=ggP2VR.b.prototype.Xn;ggP2VR.b.prototype.videoPanoPlay=ggP2VR.b.prototype.Xo;ggP2VR.b.prototype.videoPanoStop=ggP2VR.b.prototype.Yo; ggP2VR.b.prototype.videoPanoPause=ggP2VR.b.prototype.Wo;ggP2VR.b.prototype.getVideoPanoTime=ggP2VR.b.prototype.an;ggP2VR.b.prototype.setVideoPanoTime=ggP2VR.b.prototype.oo;ggP2VR.b.prototype.getVideoPanoObject=ggP2VR.b.prototype.$m;ggP2VR.b.prototype.setVideoPanoSource=ggP2VR.b.prototype.no;ggP2VR.b.prototype.getMediaObject=ggP2VR.b.prototype.Lm;ggP2VR.b.prototype.registerVideoElement=ggP2VR.b.prototype.Sk;ggP2VR.b.prototype.disableSoundLoading=ggP2VR.b.prototype.tm; ggP2VR.b.prototype.setCrossOrigin=ggP2VR.b.prototype.Vn;ggP2VR.b.prototype.setProjection=ggP2VR.b.prototype.ad;ggP2VR.b.prototype.getProjection=ggP2VR.b.prototype.xa;ggP2VR.b.prototype.changeProjection=ggP2VR.b.prototype.$h;ggP2VR.b.prototype.changeProjectionEx=ggP2VR.b.prototype.$h;ggP2VR.b.prototype.changeLensflares=ggP2VR.b.prototype.em;ggP2VR.b.prototype.setTransition=ggP2VR.b.prototype.mo;