////////////////////////////////////////////////////////////////////// // Pano2VR 6.0.4/17319 HTML5/CSS3 & WebGL Panorama Player // // License: BKYM.COM // // (c) 2019, Garden Gnome Software, http://ggnome.com // ////////////////////////////////////////////////////////////////////// var G="function"==typeof Object.defineProperties?Object.defineProperty:function(p,f,h){p!=Array.prototype&&p!=Object.prototype&&(p[f]=h.value)},N="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function O(p,f){if(f){var h=N;p=p.split(".");for(var d=0;dh&&(h=Math.max(0,b+h));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(h=Number(h||0);hd;)d+=360;for(;180m&&(m=a.f.c);this.Qb||(this.Qb=new p.xa,this.Qb.Kk(this.pan,this.i));0!=this.mode&&1!=this.mode||!c||this.cd&&this.cd.gain.setValueAtTime(this.level*a.V* this.ka,c.currentTime);if(2==this.mode&&c){var t=.5*Math.cos(d*Math.PI/180)+.5;this.Tc=Math.sqrt(t)*this.ka*this.level*a.V;this.Uc=Math.sqrt(t)*this.ka*this.level*a.V;this.Cc=Math.sqrt(1-t)*this.ka*this.level*a.V;this.Dc=Math.sqrt(1-t)*this.ka*this.level*a.V;this.Qg()}if(3==this.mode){0>d?d<-this.tb?d+=this.tb:d=0:d=d>this.tb?d-this.tb:0;var g=this.level;b=Math.abs(b);b=bm||0>h)t=g*e*a.V,c?(this.Tc=t*this.ka,this.Uc=t*this.ka,this.Dc=this.Cc=0,this.Qg()): this.b.volume=g*e*a.V;else if(t=1-Math.abs(d/m),c){var f=g*(e+(1-e)*h*t)*a.V;t=g*e*a.V;0<=d?(this.Tc=f*this.ka,this.Uc=t*this.ka):(this.Tc=t*this.ka,this.Uc=f*this.ka);2*Math.abs(d)d?d=d>-this.tb?0:d+this.tb:d=d no audio buffer -> playWhenReady"),this.kp=!0)};b.prototype.Ki=function(){var a=this.g.pa.currentTime-this.Tg;this.Te();this.ze=a};b.prototype.Te=function(){this.Rb&&this.nf&&(this.stopped=!0,this.Rb.disconnect(),this.Rb.stop(0),this.Rb=null);this.Tg=this.ze=0;this.nf=!1};b.prototype.jn=function(){var a=this.g.pa;return this.ze?this.ze:this.Tg? a.currentTime-this.Tg:0};b.prototype.kn=function(a){this.Te();this.ze=a;this.Md()};b.prototype.addElement=function(){var a=-1,c=this,b=this.g,d=this.g.pa;try{for(var e=!1,m=0;ma.loop&&(a.b.preload="none"));a.b.volume=a.level*c.V;1<=a.loop&&(a.Zc=a.loop-1);b&&(this.Le=!0);(1==a.mode||2==a.mode||3==a.mode||5==a.mode)&&0<=a.loop&&(a.b.autoplay=!0,a.vl=!0,a.autoplay=!0,a.Wj());c.I.push(this);c.dh?c.T.appendChild(a.b):(a.b.style.position="absolute",a.Hc&&(a.b.width=a.Hc),a.ed&&(a.b.height=a.ed),c.D.appendChild(a.b)); a.b.addEventListener("ended",function(){a.uq()},!1)}catch(m){c.M(m)}};b.prototype.registerElement=function(a,c){this.ld=!0;this.b=c;this.id=a;this.level=1;this.g.I.push(this)};b.prototype.Be=function(){var a=this.g;a.dh&&(a.H.deleteTexture(this.sc),this.sc=0,a.T.removeChild(this.b));a.Fm&&a.D.removeChild(this.b);this.b=null};return b}(h);p.ik=h;h=function(d){function b(a){a=d.call(this,a)||this;a.url="";a.wa=0;a.Ea=0;a.mb=0;a.f=50;a.Ua=0;a.qg=!1;a.Hc=100;a.ed=100;a.xd=1;return a}__extends(b,d);b.prototype.Nb= function(a){d.prototype.Nb.call(this,a);var c;if(c=a.getAttributeNode("url"))this.url=c.nodeValue.toString();if(c=a.getAttributeNode("rotx"))this.wa=Number(c.nodeValue);if(c=a.getAttributeNode("roty"))this.Ea=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.Hc=Number(c.nodeValue);if(c=a.getAttributeNode("height"))this.ed=Number(c.nodeValue);this.xd=(c=a.getAttributeNode("stretch"))? Number(c.nodeValue):1;if(c=a.getAttributeNode("clickmode"))this.Ua=Number(c.nodeValue);if(c=a.getAttributeNode("handcursor"))this.qg=1==Number(c.nodeValue);for(a=a.firstChild;a;)"source"==a.nodeName&&(c=a.getAttributeNode("url"))&&(this.url=c.nodeValue.toString()),a=a.nextSibling};b.prototype.ng=function(){this.lg=!1;this.b.style[this.g.bd]="none"};b.prototype.re=function(){1!==this.Ua&&4!==this.Ua||this.mg(!this.gb)};b.prototype.mg=function(a){var c=this.g;if(1===this.Ua||4===this.Ua)this.gb=a,this.g.Fb? (a=this.g.ia)&&a.activateSound(this.id,this.gb?1:0):(this.gb?(this.b.style.pointerEvents="auto",this.b.style.cursor="pointer",this.b.style.zIndex=(c.ih+8E4).toString()):(this.b.style.pointerEvents="none",this.b.style.cursor="default",this.b.style.zIndex=c.ih.toString()),this.b.style[c.bd]="all 1s ease 0s",this.lg=!0,c.zm())};b.prototype.addElement=function(){var a=this,c=this.g;try{a.b=document.createElement("img");a.b.setAttribute("style","-webkit-user-drag:none; max-width:none; pointer-events:none;"); a.b.setAttribute("class","ggmedia");a.b.hidden=!0;a.b.addEventListener("click",function(a){a.stopPropagation()});c.ff&&a.b.setAttribute("id",c.ff+a.id);a.b.ondragstart=function(){return!1};if(1===a.Ua||4===a.Ua)a.b.addEventListener(c.Mm(),function(){a.ng()},!1),a.b.addEventListener("transitionend",function(){a.ng()},!1);a.b.setAttribute("src",c.nc(a.url));a.Hc&&(a.b.width=a.Hc);a.ed&&(a.b.height=a.ed);c.Sa.push(a);a.b.style.position="absolute";c.D.appendChild(a.b)}catch(k){c.M("Error addimage:"+k)}}; b.prototype.Be=function(){this.g.D.removeChild(this.b);this.b=null};return b}(f);p.Vm=h;f=function(d){function b(a){a=d.call(this,a)||this;a.pk=50;a.alpha=50;a.type=0;a.color=16777215;return a}__extends(b,d);b.prototype.Nb=function(a){d.prototype.Nb.call(this,a);var c;if(c=a.getAttributeNode("blinding"))this.pk=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= Number(c.nodeValue)};return b}(f);p.Wm=f;f=function(){function d(b){this.type="empty";this.Nj=this.id=this.target=this.description=this.title=this.url="";this.hh=100;this.pg=20;this.Bi=!1;this.b=null;this.vb=this.Mb=this.ab=this.qa=this.i=this.pan=0;this.visible=!0;this.kc=b.A.kc;this.hc=b.A.hc;this.jc=b.A.jc;this.gc=b.A.gc;this.cf=b.A.cf;this.Nf=[]}d.prototype.Ye=function(){this.id=this.id;this.pan=this.pan;this.tilt=this.i;this.url=this.url;this.target=this.target;this.title=this.title;this.description= this.description;this.skinid=this.Nj;this.obj=this.b};d.prototype.Nb=function(b){var a;if(a=b.getAttributeNode("url"))this.url=a.nodeValue.toString();if(a=b.getAttributeNode("target"))this.target=a.nodeValue.toString();if(a=b.getAttributeNode("title"))this.title=a.nodeValue.toString();if(a=b.getAttributeNode("description"))this.description=a.nodeValue.toString();if(a=b.getAttributeNode("id"))this.id=a.nodeValue.toString();if(a=b.getAttributeNode("skinid"))this.Nj=a.nodeValue.toString();if(a=b.getAttributeNode("width"))this.hh= Number(a.nodeValue);if(a=b.getAttributeNode("height"))this.pg=Number(a.nodeValue);if(a=b.getAttributeNode("wordwrap"))this.Bi=1==Number(a.nodeValue);this.pan=(a=b.getAttributeNode("pan"))?Number(a.nodeValue):0;this.i=(a=b.getAttributeNode("tilt"))?Number(a.nodeValue):0;if(a=b.getAttributeNode("bordercolor"))this.kc=Number(a.nodeValue);if(a=b.getAttributeNode("backgroundcolor"))this.hc=Number(a.nodeValue);if(a=b.getAttributeNode("borderalpha"))this.jc=Number(a.nodeValue);if(a=b.getAttributeNode("backgroundalpha"))this.gc= Number(a.nodeValue);if(a=b.getAttributeNode("handcursor"))this.cf=1==Number(a.nodeValue);for(b=b.firstChild;b;){if("polystring"==b.nodeName){a=b.textContent.toString().split("|");for(var c=0;cb;b++)2>b%3&&(l[b]*=d);k.bufferData(k.ARRAY_BUFFER,new Float32Array(l),k.STATIC_DRAW);this.je=k.createBuffer();k.bindBuffer(k.ARRAY_BUFFER,this.je);var e=[1,0,0,0,0,1,1,1];k.bufferData(k.ARRAY_BUFFER,new Float32Array(e),k.STATIC_DRAW);this.Yc=k.createBuffer();k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Yc);var m=[0,1,2,0,2,3];k.bufferData(k.ELEMENT_ARRAY_BUFFER,new Uint16Array(m),k.STATIC_DRAW);l=[];m=[];e=[];var f=new p.xa;for(d=0;6>d;d++){var g=d%3;var q=3>d?1:0;for(a=0;4>a;a++){f.x=-1;f.y=-1;f.z=1;for(b=0;bf.x?.33:0)+.33*g,(0>f.y?0:.5)+.5*q);if(4>d)for(b=0;ba;a++){var c=b.createTexture();this.fd++; c.qf=null;c.ve=null;c.il=!1;b.bindTexture(b.TEXTURE_2D,c);b.texImage2D(b.TEXTURE_2D,0,b.RGB,1,1,0,b.RGB,b.UNSIGNED_BYTE,null);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_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);if(d.We[a]){var k=new Image;k.crossOrigin=d.crossOrigin;k.src=d.nc(d.We[a]);c.qf=k;k.addEventListener&&k.addEventListener("load",this.ij(c),!1);d.Sb.push(k)}this.Va.push(c)}for(a=0;6>a;a++)d.th[a]&& (k=new Image,k.crossOrigin=d.crossOrigin,k.src=d.nc(d.th[a]),k.addEventListener?k.addEventListener("load",this.ij(this.Va[a]),!1):k.onload=this.ij(this.Va[a]),this.Va[a].ve=k,d.Sb.push(k));for(a=0;ad;d++)this.Df(d),b.bindBuffer(b.ARRAY_BUFFER,this.Si),b.vertexAttribPointer(this.F.$,3,b.FLOAT,!1,0,0),b.bindBuffer(b.ARRAY_BUFFER,this.je),b.vertexAttribPointer(this.F.Ca,2,b.FLOAT,!1,0,0),6<=this.Va.length&&this.Va[d].loaded&&(b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D,this.Va[d]),b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Yc),b.uniform1i(this.F.wf,0),b.uniformMatrix4fv(this.F.Ig,!1,this.ma),b.uniformMatrix4fv(this.F.Vd, !1,this.sb),b.drawElements(b.TRIANGLES,6,b.UNSIGNED_SHORT,0))}};f.prototype.wi=function(){var d=this.g;if(d.h.sf&&6>16&255)/255,(b>>8&255)/255,(b>>0&255)/255,1)}};f.prototype.Df=function(d,b){void 0===b&&(b=1);var a=this.g;p.aa.te(this.ma);p.aa.rotate(this.ma,b*-a.O.c*Math.PI/180,[0,0,1]);p.aa.rotate(this.ma,b*-a.i.c*Math.PI/180,[1,0,0]);-1==b?p.aa.rotate(this.ma,-a.pan.c*Math.PI/180,[0,1,0]):p.aa.rotate(this.ma,(180-a.pan.c)*Math.PI/180,[0, 1,0]);a.$a&&(p.aa.rotate(this.ma,-a.$a.pitch*Math.PI/180,[1,0,0]),p.aa.rotate(this.ma,a.$a.O*Math.PI/180,[0,0,1]));4>d?p.aa.rotate(this.ma,-Math.PI/2*d,[0,1,0]):p.aa.rotate(this.ma,Math.PI/2*(5==d?1:-1),[1,0,0])};f.prototype.cq=function(d){var b=this;return function(){b.Xi.push(d)}};f.prototype.zn=function(d){this.g.Da=!0;this.g.$c=!0;d.loaded=!0;d.Fj=0;d.Xd=0;var b=this.g.H;this.Ck();b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL,1);if(null!=d.h&&d.h.complete){d.ib=b.createTexture();this.g.fd++;b.bindTexture(b.TEXTURE_2D, d.ib);try{b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,d.h)}catch(a){b.texImage2D(b.TEXTURE_2D,0,b.RGBA,1,1,0,b.RGBA,b.UNSIGNED_BYTE,new Uint8Array([128,128,128,250])),this.g.M(a)}}this.g.update(2)};f.prototype.Ck=function(){this.g.Pb&&this.g.Pb--};f.prototype.An=function(){if(0l;l++){var e=new p.Id;e.K=document.createElement("canvas");b.g.Z?(e.K.width=c.width+2*k,e.K.height=c.height+2*k):(e.K.width=a.G+2*k,e.K.height=a.G+2*k);e.Pa=e.K.getContext("2d");e.K.style[b.g.Ra+"Origin"]="0% 0%";e.K.style.overflow="hidden";e.K.style.position="absolute";e.h=d;var m=c.width+2*k,f=c.height+2*k;e.Pa&&e.Pa.drawImage(d,0,l*f,m,f,0,0,m,f);if(b.g.Z&&b.g.H){var g=b.g.H;g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,1);e.ib=g.createTexture();b.g.fd++;g.bindTexture(g.TEXTURE_2D, e.ib);try{g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,e.K)}catch(q){b.g.M(q)}g.bindTexture(g.TEXTURE_2D,null);g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,0)}b.g.Sc&&(e.K.Rd=-1,b.g.D.insertBefore(e.K,b.g.D.firstChild));c.U[l]=e}c.loaded=!0}}catch(q){b.g.M(q)}b.g.update(2)}};f.prototype.vm=function(d){var b=this;return function(){b.g.Da=!0;b.g.$c=!0;b.Ck();d.h=null}};f.prototype.yq=function(){var d=this.g,b=d.h,a=d.h.J;d.ne&&(d.Ic(0),d.Rc());if(d.H){var c=d.H;c.useProgram(this.F);this.wi();c.clear(c.DEPTH_BUFFER_BIT); c.enable(c.DEPTH_TEST);p.aa.te(this.sb);p.aa.perspective(d.Ib(),d.rb.width/d.rb.height,.1,100,this.sb);c.uniformMatrix4fv(this.F.Vd,!1,this.sb);d.Bm();d.tj();var k=d.aj();var l=a.length-1;for(d.tc=0;l>=k;){var e=a[l],m=1;l==a.length-1&&0==b.Ja&&(m=b.G/(b.G-.5));for(var f=0;6>f;f++){var g=d.pb.fb[f];var q=g.mf;if(g.hb&&0A;A++)x[A]=0==A%3?m*v*(-2*x[A]/e.width+1):1==A%3? m*v*(-2*x[A]/e.height+1):v;c.bufferData(c.ARRAY_BUFFER,new Float32Array(x),c.STATIC_DRAW)}}else q=!1;u.visible=g.hb}n.rj=q}}l--}for(f=0;6>f;f++)if(g=d.pb.fb[f],g.hb)for(q=g.mf,this.Df(f),c.uniform1i(this.F.wf,0),c.uniformMatrix4fv(this.F.Vd,!1,this.sb),c.uniformMatrix4fv(this.F.Ig,!1,this.ma),c.enableVertexAttribArray(this.F.$),c.enableVertexAttribArray(this.F.Ca),c.bindBuffer(c.ARRAY_BUFFER,this.je),c.vertexAttribPointer(this.F.Ca,2,c.FLOAT,!1,0,0),c.activeTexture(c.TEXTURE0),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Yc),c.useProgram(this.F),l=k;l<=a.length-1;){e=a[l];if(g.hb&&0l?A.Ce(-90*l):A.Fd(5==l?90:-90);m.$a&&(A.De(m.$a.O),A.Fd(-m.$a.pitch));A.Ce(-m.pan.c);A.Fd(m.i.c);A.De(m.O.c);for(l=0;l<=k;l++)for(var w= 0;w<=k;w++){var B=2*(q+w*n)-1;var z=2*(a+l*h)-1;x.x=1*B;x.y=1*z;x.z=-1;x.normalize();A.Ro(x);B=this.$k(x,f,m.sa());0!=m.rc&&1>u&&(B=B&&this.$k(x,r,m.rc),f.x=f.x*u+r.x*(1-u),f.y=f.y*u+r.y*(1-u));B?-1E10f.x&&-1E10f.y?-2f.x&&-2f.y&&(b+=f.x,c+=f.y,v++):f.x=NaN:f.x=NaN;d.gd[d.Eh++]=f.x;d.gd[d.Eh++]=f.y}0m;m++)isNaN(d.gd[2*c[0]])&&(k=!1);if(k){var f=!1,g=!1,q=!1,n=!1;for(m=0;4>m;m++){var h=d.gd[2*c[m]];hh;h++)for(var r=0;r=l;){var x={};g=a[m];var A=null;0>q-m),h,-(0!=d.rc)?.3:.1);z.visible=0d.f.c&&md.we){d.M("Excided painted tiles");this.oi=!1;break}z.ib&&(f=h=b.G,v==g.L-1&&(h=g.width-b.G*v),r==g.fa-1&&(f=g.height-b.G*r),h=(h+2*b.Ja)/b.G,f=(f+2*b.Ja)/b.G,c.bindTexture(c.TEXTURE_2D,z.ib),c.uniform2f(c.getUniformLocation(k,"uCanvasDimensions"),d.o.width,d.o.height),q=c.getUniformLocation(k,"srcScale"),c.uniform2f(q,.5*g.width/b.G/h,.5*g.height/b.G/f), q=c.getUniformLocation(k,"srcOffset"),c.uniform2f(q,(.5*g.width+b.Ja-b.G*v)/b.G/h,-(.5*g.height+b.Ja-b.G*r)/b.G/f+1),q=c.getUniformLocation(k,"zOffset"),c.uniform1f(q,(m+1)/(a.length+5)),h=c.getAttribLocation(k,"aVertexPosition"),c.disableVertexAttribArray(0),c.disableVertexAttribArray(1),c.disableVertexAttribArray(2),c.enableVertexAttribArray(h),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.Co),c.vertexAttribPointer(h,2,c.FLOAT,!1,0,0),c.bufferData(c.ARRAY_BUFFER,new Float32Array(z.gd),c.DYNAMIC_DRAW),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Bo),c.bufferData(c.ELEMENT_ARRAY_BUFFER,new Uint16Array(z.se),c.DYNAMIC_DRAW),c.drawElements(c.TRIANGLES,z.yd,c.UNSIGNED_SHORT,0),e++)}m++}c.disable(c.CULL_FACE);c.cullFace(c.FRONT_AND_BACK);d.$c=!1}};f.prototype.xi=function(d, b){var a=this.g.H;p.aa.te(this.ma);this.Df(d,-1);a.uniformMatrix4fv(a.getUniformLocation(b,"matRotate"),!1,this.ma)};f.prototype.bp=function(){var d=this.g;if(d.H){var b=d.H,a=this.Zl;b.useProgram(a);this.xi(0,a);b.uniform2f(b.getUniformLocation(a,"uCanvasDimensions"),d.o.width,d.o.height);if(1==d.s.format){var c=b.getUniformLocation(a,"srcScale");b.uniform2f(c,-.5/Math.PI,(d.s.ej?-1:1)/Math.PI)}14==d.s.format&&(c=b.getUniformLocation(a,"srcScale"),b.uniform2f(c,1-2*d.s.Qe/(d.s.width/3),1-2*d.s.Qe/ (d.s.height/2)));c=b.getUniformLocation(a,"srcOffset");b.uniform2f(c,.5,.5);this.Yj(a);c=b.getUniformLocation(a,"cubeTexture");b.uniform1i(c,0);c=b.getAttribLocation(a,"aVertexPosition");b.disableVertexAttribArray(0);b.disableVertexAttribArray(1);b.disableVertexAttribArray(2);b.enableVertexAttribArray(c);b.bindBuffer(b.ARRAY_BUFFER,this.ei);b.vertexAttribPointer(c,2,b.FLOAT,!1,0,0);b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,d.s.sc);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);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Yc);b.drawElements(b.TRIANGLES,6,b.UNSIGNED_SHORT,0)}};f.prototype.Yj=function(d){var b=this.g,a=b.H,c=this.g.o,k=c.width/c.height;switch(b.f.mode){case 1:k=1;break;case 2:k=c.width/Math.sqrt(c.width*c.width+c.height*c.height);break;case 3:4*c.height/3e;e++)this.Va[e].ve.complete?this.sh[e]||(l=!0):c=!1,this.Va[e].qf.complete||(k=!1);if(k||c)if(!k||c||!this.xc||l){e=Math.round(d.uc/d.Gf);k=(d.uc-e)/2;d.M("paint cube single - isMain: "+c+" overlap: "+k);this.Ve=0;this.xc||(this.xc=b.createTexture());d.fd++;b.bindTexture(b.TEXTURE_CUBE_MAP,this.xc);b.texParameteri(b.TEXTURE_CUBE_MAP,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_CUBE_MAP,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL, 1);l=document.createElement("canvas");l.width=e;l.height=e;var m=l.getContext("2d");for(e=0;6>e;e++){var f=a[e];this.Va[f].ve.complete?this.sh[f]||(m.drawImage(this.Va[f].ve,-k,-k),b.texImage2D(b.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,l),this.sh[f]=!0):(m.drawImage(this.Va[f].qf,-k,-k,d.uc,d.uc),b.texImage2D(b.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,l))}this.ug=!c}};f.prototype.xn=function(){var d=this.g,b=this.g.h,a=d.h.J,c=d.H,k;var l=a.length-1;if(!(0> l)){a[l].rf&&l--;var e=512;d.tg&&(e=256);!d.vf&&2<=d.devicePixelRatio&&(e=512);for((k=c.getParameter(c.MAX_CUBE_MAP_TEXTURE_SIZE))&&kl){e=a[l];d.M("paint cube level "+l);this.Ve=l;a=d.h.Ja;l=0e.width&&(1500g;g++){for(var h=0;hk;k++)for(var l=0;lb;b++)for(var a=0;a1.1*d.tm)for(this.Pd.sort(function(a,c){return c.yg-a.yg});this.Pd.length>d.tm;)m=this.Pd.pop(),m.ib&&(a.deleteTexture(m.ib),d.fd--,m.ib=0),m.h=null,m.bf&&(a.deleteBuffer(m.bf),m.bf=0),e=m.level.U.indexOf(m),d.M("delete "+e+" "+(c-m.yg)),delete m.level.U[e]}; f.prototype.sq=function(){var d=this.g;if(d.H){var b=this.g.H;b.disable(b.DEPTH_TEST);var a;for(a=0;ab;b++)this.Df(0),a.bindBuffer(a.ARRAY_BUFFER,d.s.bk),a.vertexAttribPointer(this.F.$,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,d.s.ri),a.vertexAttribPointer(this.F.Ca,2,a.FLOAT,!1,0,0),a.activeTexture(a.TEXTURE0),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,d.s.mj),a.uniform1i(this.F.wf,0),a.uniformMatrix4fv(this.F.Ig,!1,this.ma),a.uniformMatrix4fv(this.F.Vd, !1,this.sb),a.drawElements(a.TRIANGLES,36,a.UNSIGNED_SHORT,0)}};f.prototype.qq=function(){var d=this.g,b=d.H,a=d.s;if(0=a.A.mode&&(k=0);3==a.A.mode&& (k=a.A.qa);for(d=0;d>16&255)/255,(b>>8&255)/255,(b&255)/255);var g=c.getUniformLocation(this.Dd,"uAlpha");c.uniform1f(g,l.jc*m);c.vertexAttribPointer(this.Dd.$,3,c.FLOAT,!1,0,0);c.drawArrays(c.LINE_LOOP,0,f.length/3);b=l.hc;c.uniform3f(e,(b>>16&255)/255,(b>>8&255)/255,(b&255)/255);c.uniform1f(g,l.gc*m);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,f.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,f.length/3);c.disable(c.BLEND);c.enable(c.DEPTH_TEST);c.disable(c.STENCIL_TEST);c.useProgram(this.F)}}}}};f.prototype.Xj=function(){var d=this.g,b=d.h;if(d.o.width!=d.D.offsetWidth||d.o.height!=d.D.offsetHeight)d.o.width=d.D.offsetWidth,d.o.height=d.D.offsetHeight;d.ne&&(d.Ic(0),d.Rc());if(d.H){var a=d.H; this.wi();a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT);a.disable(a.DEPTH_TEST);a.disable(a.CULL_FACE);a.useProgram(this.dg);var c=a.getUniformLocation(this.dg,"uRect");a.uniform2f(a.getUniformLocation(this.dg,"uCanvasDimensions"),d.o.width,d.o.height);a.activeTexture(a.TEXTURE0);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Yc);var k=a.getAttribLocation(this.dg,"aVertexPosition");a.disableVertexAttribArray(0);a.disableVertexAttribArray(1);a.disableVertexAttribArray(2);a.enableVertexAttribArray(k);a.bindBuffer(a.ARRAY_BUFFER, this.je);a.vertexAttribPointer(k,2,a.FLOAT,!1,0,0);d.tc=0;var l=100/d.f.c;var e=b.width/b.height;k=d.o.height*l*e;l*=d.o.height;e=(d.pan.c/100/e-.5)*k+d.o.width/2;for(var m=(d.i.c/100-.5)*l+d.o.height/2,f,g,h,n=0;b.J.length>=n+2&&b.J[n+1].width>k;)n++;var y;var r=[];for(y=b.J.length-1;y>=n;){var v=b.J[y];if(v.cache){var u={Ya:0,zb:0};u.Bb=v.L-1;u.Cb=v.fa-1}else{u={};f=-m/l*(v.height/d.h.G);g=(-e+d.o.width)/k*(v.width/d.h.G);var x=(-m+d.o.height)/l*(v.height/d.h.G);u.Ya=Math.min(Math.max(0,Math.floor(-e/ k*(v.width/d.h.G))),v.L-1);u.zb=Math.min(Math.max(0,Math.floor(f)),v.fa-1);u.Bb=Math.min(Math.max(0,Math.floor(g)),v.L-1);u.Cb=Math.min(Math.max(0,Math.floor(x)),v.fa-1)}r[y]=u;var A=!0;for(g=u.zb;g<=u.Cb;g++)for(f=u.Ya;f<=u.Bb;f++)h=f+g*v.L,x=v.U[h],x||(x=new p.Id,v.U[h]=x),this.wh()?x.h||(this.Qh(x,v,d.He(0,y,f,g)),d.Da=!0):this.g.tc++,x.h&&x.h.complete||(A=!1),x.visible=!0;u.rj=A;y--}for(y=b.J.length-1;y>=n;){v=b.J[y];if(r[y]&&0<=r[y].Ya)for(u=r[y],g=u.zb;g<=u.Cb;g++)for(f=u.Ya;f<=u.Bb;f++)h=f+ g*v.L,(x=v.U[h])&&x.h&&x.h.complete&&(d=e+(-b.Ja+b.G*f)*k/v.width,a.uniform4f(c,d,m+(-b.Ja+b.G*g)*l/v.height,x.h.width*k/v.width,x.h.height*l/v.height),x&&x.ib&&(a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Yc),a.bindTexture(a.TEXTURE_2D,x.ib),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),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.drawElements(a.TRIANGLES, 6,a.UNSIGNED_SHORT,0)));y--}this.Gj()}};f.prototype.fi=function(){var d=this.g.H;if(d&&this.Va)for(;0b;b++)this.fb[b]=new f}d.prototype.un=function(b,a,c,d){for(var k=0;6>k;k++){var e;if(e=this.fb[k]){var m=[];m.push(new p.xa(-1,-1,-1,0,0));m.push(new p.xa(1,-1,-1,1,0));m.push(new p.xa(1,1,-1,1,1));m.push(new p.xa(-1,1,-1,0,1));for(var f=0;fk?m[f].Ea(-Math.PI/2*k):m[f].wa(Math.PI/2*(4===k?-1:1)),d&&(m[f].mb(d.O* Math.PI/180),m[f].wa(-d.pitch*Math.PI/180)),m[f].Ea(-b*Math.PI/180),m[f].wa(a*Math.PI/180),m[f].mb(c*Math.PI/180);e.hb=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"); d.compileShader(a);d.getShaderParameter(a,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(a)),a=null);this.Ha=d.createProgram();d.attachShader(this.Ha,b);d.attachShader(this.Ha,a);d.linkProgram(this.Ha);d.getProgramParameter(this.Ha,d.LINK_STATUS)||alert("Could not initialise shaders");this.Ha.$=d.getAttribLocation(this.Ha,"aVertexPosition");d.enableVertexAttribArray(this.Ha.$);this.Ha.Ca=d.getAttribLocation(this.Ha,"aTextureCoord");d.enableVertexAttribArray(this.Ha.Ca);a=d.createShader(d.FRAGMENT_SHADER); d.shaderSource(a,"#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"); d.compileShader(a);d.getShaderParameter(a,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(a)),a=null);this.Na=d.createProgram();d.attachShader(this.Na,b);d.attachShader(this.Na,a);d.linkProgram(this.Na);d.getProgramParameter(this.Na,d.LINK_STATUS)||alert("Could not initialise shaders");this.Na.$=d.getAttribLocation(this.Na,"aVertexPosition");d.enableVertexAttribArray(this.Na.$);this.Na.Ca=d.getAttribLocation(this.Na,"aTextureCoord");d.enableVertexAttribArray(this.Na.Ca)};f.prototype.Ic=function(){var d= this.g.H;if(!d)return!1;if(this.dc=d.createFramebuffer()){d.bindFramebuffer(d.FRAMEBUFFER,this.dc);this.dc.width=1024;this.dc.height=1024;this.Je=d.createTexture();d.bindTexture(d.TEXTURE_2D,this.Je);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,this.dc.width,this.dc.height,0,d.RGBA,d.UNSIGNED_BYTE,null);var b=d.createRenderbuffer();d.bindRenderbuffer(d.RENDERBUFFER,b);d.renderbufferStorage(d.RENDERBUFFER, d.DEPTH_COMPONENT16,this.dc.width,this.dc.height);d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.Je,0);d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,b);d.bindTexture(d.TEXTURE_2D,null);d.bindRenderbuffer(d.RENDERBUFFER,null);d.bindFramebuffer(d.FRAMEBUFFER,null);this.lb=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.lb);d.bufferData(d.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),d.STATIC_DRAW);this.lb.Kc=3;this.lb.Ud=4;this.tf= d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.tf);d.bufferData(d.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),d.STATIC_DRAW);return!0}return!1};f.prototype.Ol=function(d){var b=this.g.H,a=this.g.rb;if(this.rd){b.useProgram(this.oa);b.bindBuffer(b.ARRAY_BUFFER,this.lb);b.vertexAttribPointer(this.oa.$,this.lb.Kc,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.tf);b.vertexAttribPointer(this.oa.Ca,2,b.FLOAT,!1,0,0);b.enableVertexAttribArray(this.oa.$);b.enableVertexAttribArray(this.oa.Ca);b.activeTexture(b.TEXTURE0); b.bindTexture(b.TEXTURE_2D,this.Je);a=1+(this.yb-1)*d;var c=b.getUniformLocation(this.oa,"uAlpha");b.uniform1f(c,1);c=b.getUniformLocation(this.oa,"uZoomIn");b.uniform1i(c,1);c=b.getUniformLocation(this.oa,"uZoomCenter");var k=.5+(this.jh-.5)*Math.sqrt(d),l=.5+(this.kh-.5)*Math.sqrt(d);0>k-.5/a&&(k=.5/a);0>l-.5/a&&(l=.5/a);1k-.5/this.yb&&(k=.5/this.yb);0>l-.5/this.yb&&(l=.5/this.yb);1>16&255)/255,(this.Re>>8&255)/255,(this.Re&255)/255),c=b.getUniformLocation(this.Ta,"uZoomIn"),b.uniform1i(c,1==this.Oa||2==this.Oa?1:0),c=b.getUniformLocation(this.Ta,"uZoomCenter"),b.uniform2f(c,k,l),k=b.getUniformLocation(this.Ta,"uZoomFactor"),b.uniform1f(k,this.yb),b.uniform1i(b.getUniformLocation(this.Ta,"uSampler"),0);else if("irisround"==this.type||"irisroundcenter"==this.type||"irisrectangular"==this.type||"irisrectangularcenter"==this.type){b.useProgram(this.Ha);b.bindBuffer(b.ARRAY_BUFFER, this.lb);b.vertexAttribPointer(this.Ha.$,this.lb.Kc,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.tf);b.vertexAttribPointer(this.Ha.Ca,2,b.FLOAT,!1,0,0);b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,this.Je);if(1==this.Oa||2==this.Oa||"irisroundcenter"==this.type||"irisrectangularcenter"==this.type)var e=c=.5;else c=this.jh,e=this.kh;var f=c*a.width,t=e*a.height;f=Math.max(f,a.width-f);t=Math.max(t,a.height-t);"irisround"==this.type||"irisroundcenter"==this.type?b.uniform1f(b.getUniformLocation(this.Ha, "uRadius"),(Math.sqrt(f*f+t*t)+this.Bc)*d):(f>t?(t=a.height/a.width*f+this.Bc,f+=this.Bc):(f=a.width/a.height*t+this.Bc,t+=this.Bc),b.uniform2f(b.getUniformLocation(this.Ha,"uRectDim"),f*d,t*d));d=b.getUniformLocation(this.Ha,"uSoftEdge");b.uniform1f(d,this.Bc);b.uniform1i(b.getUniformLocation(this.Ha,"uRound"),"irisround"==this.type||"irisroundcenter"==this.type?1:0);b.uniform2f(b.getUniformLocation(this.Ha,"uIrisCenter"),c*a.width,e*a.height);c=b.getUniformLocation(this.Ha,"uZoomIn");b.uniform1i(c, 1==this.Oa||2==this.Oa?1:0);c=b.getUniformLocation(this.Ha,"uZoomCenter");b.uniform2f(c,k,l);k=b.getUniformLocation(this.Ha,"uZoomFactor");b.uniform1f(k,this.yb);b.uniform1i(b.getUniformLocation(this.Ha,"uSampler"),0)}else if("wipeleftright"==this.type||"wiperightleft"==this.type||"wipetopbottom"==this.type||"wipebottomtop"==this.type||"wiperandom"==this.type)b.useProgram(this.Na),b.bindBuffer(b.ARRAY_BUFFER,this.lb),b.vertexAttribPointer(this.Na.$,this.lb.Kc,b.FLOAT,!1,0,0),b.bindBuffer(b.ARRAY_BUFFER, this.tf),b.vertexAttribPointer(this.Na.Ca,2,b.FLOAT,!1,0,0),b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D,this.Je),b.uniform1f(b.getUniformLocation(this.Na,"uPercent"),3>this.Vi?d*(a.width+this.Bc):d*(a.height+this.Bc)),d=b.getUniformLocation(this.Na,"uSoftEdge"),b.uniform1f(d,this.Bc),b.uniform1i(b.getUniformLocation(this.Na,"uDirection"),this.Vi),b.uniform2f(b.getUniformLocation(this.Na,"uCanvasDimensions"),a.width,a.height),c=b.getUniformLocation(this.Na,"uZoomIn"),b.uniform1i(c,1==this.Oa|| 2==this.Oa?1:0),c=b.getUniformLocation(this.Na,"uZoomCenter"),b.uniform2f(c,k,l),k=b.getUniformLocation(this.Na,"uZoomFactor"),b.uniform1f(k,this.yb),b.uniform1i(b.getUniformLocation(this.Na,"uSampler"),0);b.drawArrays(b.TRIANGLE_STRIP,0,this.lb.Ud);b.useProgram(this.g.na.F);b.disable(b.BLEND);b.enable(b.DEPTH_TEST)}};return f}();p.Rm=f})(ggP2VR||(ggP2VR={})); (function(p){var f=function(){function f(d){this.Xg=[];this.g=d;this.enabled=!1;this.xb=2;this.zk=!1}f.prototype.Hk=function(d){if(2==d.mode||3==d.mode||5==d.mode){var b=this.g.pa.currentTime,a=d.Wb.gain.value,c=d.Ub.gain.value,k=d.Vb.gain.value;d.oc.gain.linearRampToValueAtTime(d.oc.gain.value,b);d.oc.gain.linearRampToValueAtTime(0,b+this.xb);d.Wb.gain.linearRampToValueAtTime(a,b);d.Wb.gain.linearRampToValueAtTime(0,b+this.xb);d.Ub.gain.linearRampToValueAtTime(c,b);d.Ub.gain.linearRampToValueAtTime(0, b+this.xb);d.Vb.gain.linearRampToValueAtTime(k,b);d.Vb.gain.linearRampToValueAtTime(0,b+this.xb)}else b=this.g.pa.currentTime,d.cd.gain.linearRampToValueAtTime(d.cd.gain.value,b),d.cd.gain.linearRampToValueAtTime(0,b+this.xb);d.$i=!0;setTimeout(function(){d.Be()},1E3*this.xb+5)};f.prototype.Zp=function(){for(var d=0;da.ka&&(a.ka=d)}1==d&&clearInterval(this.Up)};return f}();p.Sm=f})(ggP2VR||(ggP2VR={})); (function(p){var f=function(){function f(d){this.Cg=[];this.Xc=null;this.bc=[];this.Tb=[];this.cc=[];this.Mj=!0;this.g=d;this.wn()}f.prototype.rg=function(){var d=this.g.H,b=d.createShader(d.VERTEX_SHADER);d.shaderSource(b,"attribute vec3 aVertexPosition;\nvoid main(void) {\n gl_Position = vec4(aVertexPosition, 1.0);\n}\n");d.compileShader(b);d.getShaderParameter(b,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(b)),b=null);var a=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(a,"#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"); d.compileShader(a);d.getShaderParameter(a,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(a)),a=null);this.ic=d.createProgram();d.attachShader(this.ic,b);d.attachShader(this.ic,a);d.linkProgram(this.ic);d.getProgramParameter(this.ic,d.LINK_STATUS)||alert("Could not initialise shaders");this.ic.$=d.getAttribLocation(this.ic,"aVertexPosition");d.enableVertexAttribArray(this.ic.$);a=d.createShader(d.VERTEX_SHADER);b=d.createShader(d.VERTEX_SHADER);d.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"); d.compileShader(a);d.getShaderParameter(a,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(a)),a=null);d.shaderSource(b,"#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"); d.compileShader(b);d.getShaderParameter(b,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(b)),a=null);var c=d.createShader(d.FRAGMENT_SHADER);d.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"); d.compileShader(c);d.getShaderParameter(c,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(c)),c=null);this.ra=d.createProgram();d.attachShader(this.ra,a);d.attachShader(this.ra,c);d.linkProgram(this.ra);d.getProgramParameter(this.ra,d.LINK_STATUS)||alert("Could not initialise shaders");this.ra.$=d.getAttribLocation(this.ra,"aVertexPosition");d.enableVertexAttribArray(this.ra.$);a=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(a,"#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"); d.compileShader(a);d.getShaderParameter(a,d.COMPILE_STATUS)||(alert(d.getShaderInfoLog(a)),a=null);this.wb=d.createProgram();d.attachShader(this.wb,b);d.attachShader(this.wb,a);d.linkProgram(this.wb);d.getProgramParameter(this.wb,d.LINK_STATUS)||alert("Could not initialise shaders");this.wb.$=d.getAttribLocation(this.wb,"aVertexPosition")};f.prototype.Ic=function(){var d=this.g.H;this.wd=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.wd);d.bufferData(d.ARRAY_BUFFER,new Float32Array([-1,-1,0,1, -1,0,1,1,0,-1,1,0]),d.STATIC_DRAW);this.wd.Kc=3;this.wd.Ud=4;this.$e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.$e);for(var b=[0,0,0],a=2*Math.PI/6,c=Math.PI/180*35,k=1,l=c;l<=c+2*Math.PI;l+=a)b.push(Math.sin(l)),b.push(-Math.cos(l)),b.push(0),k++;d.bufferData(d.ARRAY_BUFFER,new Float32Array(b),d.STATIC_DRAW);this.$e.Kc=3;this.$e.Ud=k;this.bm=d.createTexture();d.bindTexture(d.TEXTURE_2D,this.bm);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_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);b=document.createElement("canvas");b.width=100;b.height=1;a=b.getContext("2d");a.width=100;a.height=1;c=a.createLinearGradient(0,0,100,0);c.addColorStop(0,this.g.ga(16777215,0));c.addColorStop(.88,this.g.ga(0,0));c.addColorStop(.9,this.g.ga(16654848,1));c.addColorStop(.92,this.g.ga(16776448,1));c.addColorStop(.94,this.g.ga(4849466,1));c.addColorStop(.96,this.g.ga(131071, 1));c.addColorStop(.98,this.g.ga(8190,1));c.addColorStop(1,this.g.ga(0,0));a.fillStyle=c;a.fillRect(0,0,100,1);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,d.UNSIGNED_BYTE,b)};f.prototype.np=function(){for(;0a.z){l=-c/a.z;k=a.x*l;l*=a.y;var y=Math.max(f,t);Math.abs(k)t?f:t;y=n.pk/100*((u-v)/u);0>y&&(y=0);if(this.g.Z){d.useProgram(this.ic);d.bindBuffer(d.ARRAY_BUFFER,this.g.B.lb);d.vertexAttribPointer(this.ic.$,this.g.B.lb.Kc, d.FLOAT,!1,0,0);var x=d.getUniformLocation(this.ic,"uCanvasDimensions");d.uniform2f(x,d.drawingBufferWidth,d.drawingBufferHeight);d.uniform2f(d.getUniformLocation(this.ic,"uFlareCenterPosition"),d.drawingBufferWidth/f*k,t-d.drawingBufferHeight/t*l);d.uniform1f(d.getUniformLocation(this.ic,"uBlindingValue"),y);x=d.getUniformLocation(this.ic,"uAspectRatio");d.uniform1f(x,this.g.B.Wg?d.drawingBufferWidth/d.drawingBufferHeight:d.drawingBufferWidth/d.drawingBufferHeight/(f/t));d.drawArrays(d.TRIANGLE_STRIP, 0,this.g.B.lb.Ud)}else x=this.S.createRadialGradient(k,l,1,k,l,r),x.addColorStop(0,"rgba(255, 255, 255, "+y+")"),x.addColorStop(.5,"rgba(255, 255, 255, "+.8*y+")"),x.addColorStop(1,"rgba(255, 255, 255, "+.6*y+")"),this.S.fillStyle=x,this.S.fillRect(0,0,this.S.width,this.S.height);if(0!=Number(n.type)&&!this.g.B.Wg){y=f/2-k;r=t/2-l;var A=1,w=Number(n.type)-1;v<.35*u&&(A=v/(.35*u),A*=A);v>.7*u&&(A=(u-v)/(.3*u));A*=n.alpha/100;if(0z&&(z=0);var C=B.color;if(8==w||9==w||10==w)C=n.color;if(this.g.Z)d.useProgram(this.ra),d.bindBuffer(d.ARRAY_BUFFER,this.$e),d.vertexAttribPointer(this.ra.$,this.$e.Kc,d.FLOAT,!1,0,0),x=d.getUniformLocation(this.ra,"uCanvasDimensions2"),d.uniform2f(x,d.drawingBufferWidth,d.drawingBufferHeight),d.uniform2f(d.getUniformLocation(this.ra,"uCirclePosition"),d.drawingBufferWidth/f*(k+y*B.j),d.drawingBufferWidth/f*(t-(l+r*B.j))),d.uniform2f(d.getUniformLocation(this.ra,"uCircleTexturePosition"), d.drawingBufferWidth/f*(k+y*B.j),t-(l+r*B.j)),d.uniform1f(d.getUniformLocation(this.ra,"uCircleRadius"),u),d.uniform3f(d.getUniformLocation(this.ra,"uCircleColor"),(C>>16&255)/255,(C>>8&255)/255,(C&255)/255),d.uniform1f(d.getUniformLocation(this.ra,"uCircleAlpha"),z),d.uniform1f(d.getUniformLocation(this.ra,"uCircleSoftness"),.1),x=d.getUniformLocation(this.ra,"uAspectRatio"),d.uniform1f(x,d.drawingBufferWidth/d.drawingBufferHeight/(f/t)),d.drawArrays(d.TRIANGLE_FAN,0,this.$e.Ud);else{this.S.save(); this.S.translate(k+y*B.j,l+r*B.j);x=this.S.createRadialGradient(0,0,1,0,0,1.1*u);x.addColorStop(0,this.g.ga(C,z));x.addColorStop(.65,this.g.ga(C,.9*z));x.addColorStop(.8,this.g.ga(C,.7*z));x.addColorStop(1,this.g.ga(C,.2*z));this.S.beginPath();C=2*Math.PI/6;B=Math.PI/180*35;var D=!0;for(z=B;z<=B+2*Math.PI;z+=C)D?(this.S.moveTo(u*Math.sin(z),u*Math.cos(z)),D=!1):this.S.lineTo(u*Math.sin(z),u*Math.cos(z));this.S.closePath();this.S.fillStyle=x;this.S.fill();this.S.restore()}}if(0z&&(z=0);C=B.color;if(8==w||9==w||10==w)C=n.color;this.g.Z?(d.useProgram(this.ra),d.bindBuffer(d.ARRAY_BUFFER,this.wd),d.vertexAttribPointer(this.ra.$,this.wd.Kc,d.FLOAT,!1,0,0),x=d.getUniformLocation(this.ra,"uCanvasDimensions2"),d.uniform2f(x,d.drawingBufferWidth,d.drawingBufferHeight),x=d.getUniformLocation(this.ra,"uCirclePosition"),d.uniform2f(x,d.drawingBufferWidth/f*(k+y*B.j),d.drawingBufferWidth/f*(t-(l+r*B.j))),x=d.getUniformLocation(this.ra, "uCircleTexturePosition"),d.uniform2f(x,d.drawingBufferWidth/f*(k+y*B.j),t-(l+r*B.j)),x=d.getUniformLocation(this.ra,"uCircleRadius"),d.uniform1f(x,u),d.uniform3f(d.getUniformLocation(this.ra,"uCircleColor"),(C>>16&255)/255,(C>>8&255)/255,(C&255)/255),d.uniform1f(d.getUniformLocation(this.ra,"uCircleAlpha"),z),d.uniform1f(d.getUniformLocation(this.ra,"uCircleSoftness"),B.v),x=d.getUniformLocation(this.ra,"uAspectRatio"),d.uniform1f(x,d.drawingBufferWidth/d.drawingBufferHeight/(f/t)),d.drawArrays(d.TRIANGLE_FAN, 0,this.wd.Ud)):(this.S.save(),this.S.translate(k+y*B.j,l+r*B.j),x=this.S.createRadialGradient(0,0,1,0,0,u),x.addColorStop(0,this.g.ga(C,z)),x.addColorStop(1-B.v,this.g.ga(C,.8*z)),x.addColorStop(1,this.g.ga(C,0)),this.S.beginPath(),this.S.arc(0,0,u,0,2*Math.PI,!1),this.S.closePath(),this.S.fillStyle=x,this.S.fill(),this.S.restore())}if(0z&&(z=0),this.g.Z?(d.useProgram(this.wb),d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D, this.bm),d.bindBuffer(d.ARRAY_BUFFER,this.wd),d.vertexAttribPointer(this.wb.$,this.wd.Kc,d.FLOAT,!1,0,0),x=d.getUniformLocation(this.wb,"uCanvasDimensions2"),d.uniform2f(x,f,t),x=d.getUniformLocation(this.wb,"uCirclePosition"),d.uniform2f(x,k+y*n.j,t-(l+r*n.j)),x=d.getUniformLocation(this.wb,"uRingTexturePosition"),d.uniform2f(x,d.drawingBufferWidth/f*(k+y*n.j),t-(l+r*n.j)),x=d.getUniformLocation(this.wb,"uCircleRadius"),d.uniform1f(x,u),d.uniform2f(d.getUniformLocation(this.wb,"uRingPosition"),k+ y*n.j,t-(l+r*n.j)),d.uniform1f(d.getUniformLocation(this.wb,"uRingRadius"),u),d.uniform1f(d.getUniformLocation(this.wb,"uRingAlpha"),z),x=d.getUniformLocation(this.wb,"uAspectRatio"),d.uniform1f(x,d.drawingBufferWidth/d.drawingBufferHeight/(f/t)),d.uniform1i(d.getUniformLocation(this.wb,"uSampler"),0),d.drawArrays(d.TRIANGLE_FAN,0,this.wd.Ud)):(this.S.save(),this.S.translate(k+y*n.j,l+r*n.j),x=this.S.createRadialGradient(0,0,0,0,0,u),x.addColorStop(0,this.g.ga(16777215,0)),x.addColorStop(.88,this.g.ga(0, 0)),x.addColorStop(.9,this.g.ga(16654848,z)),x.addColorStop(.92,this.g.ga(16776448,z)),x.addColorStop(.94,this.g.ga(4849466,z)),x.addColorStop(.96,this.g.ga(131071,z)),x.addColorStop(.98,this.g.ga(8190,z)),x.addColorStop(1,this.g.ga(0,0)),this.S.beginPath(),this.S.arc(0,0,u,0,2*Math.PI,!1),this.S.closePath(),this.S.fillStyle=x,this.S.fill(),this.S.restore())}this.g.Z&&(d.useProgram(this.g.na.F),d.disable(d.BLEND),d.enable(d.DEPTH_TEST))}}}};return f}();p.Qm=f})(ggP2VR||(ggP2VR={}));var W=!1; (function(p){var f=function(){return function(){this.f=this.i=this.pan=0}}(),h=function(){return function(){this.Qi=-1E7}}(),d=function(){function b(a,c){this.Io="TGljZW5zZTogQktZTS5DT00=";this.pan={c:0,Qa:0,min:0,max:360,d:0,xj:0,Fc:0};this.i={c:0,Qa:0,min:-90,max:90,d:0,Fc:0};this.O={c:0,Qa:0,min:-180,max:180,d:0};this.wc={pan:0,i:-90,O:0,f:170,Eb:9};this.f={c:70,Qa:70,min:1,Gg:0,max:170,uj:360,vj:270,pf:0,d:0,mode:0,nm:0,Bk:0};this.$a={O:0,pitch:0};this.o={width:10,height:10};this.kb=0;this.Ti=new p.xa;this.crossOrigin= "anonymous";this.Ka=this.ai=4;this.fd=this.ih=this.Jg=this.rc=0;this.Km={};this.X={start:{x:0,y:0},ea:{x:0,y:0},Cd:{x:0,y:0},c:{x:0,y:0},da:{x:0,y:0}};this.R={Xa:!1,Jk:0,startTime:0,start:{x:0,y:0},ea:{x:0,y:0},Cd:{x:0,y:0},c:{x:0,y:0},da:{x:0,y:0}};this.Ze=!0;this.Ba={enabled:!0,ea:{x:0,y:0},da:{x:0,y:0},Hj:0,f:{active:!1,mc:0}};this.jb={alpha:0,beta:0,gamma:0,orientation:0,Pl:0,hi:!0,cg:0};this.og={alpha:0,beta:0,gamma:0,orientation:0};this.s={src:[],Qe:4,width:640,height:480,hd:!1,Kh:!1,Pj:!0, om:!1,me:"loop",b:HTMLVideoElement=null,sm:!1,sc:WebGLTexture=null,bk:WebGLBuffer=null,ri:WebGLBuffer=null,mj:WebGLBuffer=null,format:1,Dh:0,ej:1};this.Nh=0;this.ia=this.ya=this.Fa=this.T=this.lc=this.bb=this.D=null;this.oe="pano";this.dj="flashcontainer";this.Ui="";this.control=null;this.Sb=[];this.Da=!1;this.$f=1;this.ja=null;this.Jd=this.Ne=this.df=!1;this.Qf=0;this.td=.02;this.Fi=0;this.Gi=!1;this.Ei=this.nh=this.Rf=this.Me=this.nk=0;this.mk=-1;this.Lb="";this.uf=this.Ac=!1;this.bi=0;this.th= [];this.We=[];this.Gf=this.uc=1;this.Uf=1024;this.vf=!1;this.we=200;this.Pb=0;this.Vg=5;this.tc=0;this.tm=50;this.lj=this.um=0;this.l={enabled:!1,timeout:5,active:!1,Ug:!1,speed:.4,ti:0,Yh:0,wj:!0,eh:!1,Kf:!1,oh:"",Kd:"Animation01",Pe:!1,Uh:!1,Sj:!1,startTime:0,jd:0,eg:!1,uh:!1,Ph:0,Bd:0,Ag:0,Bg:0,zg:0,Dl:0};this.u={active:!1,aborted:!1,speed:.1,pan:0,i:0,O:0,f:70,Hd:70,Ag:0,Bg:0,El:0,zg:0,Eb:0,Mg:0,pj:0,$j:!1,Hg:!1,lk:0,kk:0,Fh:!1};this.jf={pan:-1,i:-1,f:-1};this.Bl=0;this.ba=null;this.Lf={};this.fh= {};this.Od=[];this.Sh={};this.zc={};this.lf={};this.A={mode:1,wg:-1,qa:0,ab:0,Wc:.05,kc:255,jc:1,hc:255,gc:.3,cf:!0,Uj:{enabled:!0,width:180,height:20,Vj:0,Tj:1,background:!0,hc:16777215,gc:1,kc:0,jc:1,Ii:3,Ji:1,Bi:!0},nb:[],Ob:[],Oc:[],ni:[]};this.Aa=null;this.P=[];this.N=[];this.I=[];this.Sa=[];this.Ie=[];this.Ma=[];this.za=[];this.Pc=[];this.ce=[];this.Ee=[];this.V=1;this.na=this.md=this.Gb=this.Nd=null;this.ag={};this.pd={};this.h=new p.Tm;this.Yo={target:0,current:0,Wc:.01,Bn:2,Yi:0,vh:!1,gn:!1}; this.margin={left:0,top:0,right:0,bottom:0};this.C={ue:!1,Jo:!1,Ab:!1,kd:!1,Ad:!0,pl:!1,mm:1,dm:!1,Wi:!0,Zf:!0,rh:!1,ef:!1,em:!0,sensitivity:8};this.Fg=[];this.$c=!0;this.ua={x:0,y:0};this.dh=this.Fb=this.$g=this.Sc=this.Z=!1;this.zi=this.Fm=!0;this.kj=!1;this.ne=!0;this.ah=this.jj=!1;this.Gm=!0;this.Ia=this.Ld="";this.bd="transition";this.Ra="transform";this.vd="perspective";this.Ek="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYBgeACDAAADIAAE3iTbkAAAAAElFTkSuQmCC"; this.rb={width:0,height:0};this.Nk=new p.xa;this.Mk=new p.xa;this.Ok=new p.xa;this.Pk=new p.xa;this.Lk=new p.xa;this.gf=!1;this.Cl=this.Wa="";this.ck=[];this.vi=[];this.tg=this.rl=this.sg=this.sl=this.Sd=this.nj=this.Ij=this.Jc=this.Ih=this.ql=this.oj=this.tl=this.ul=this.xl=!1;this.bh=!0;this.gi=this.Hh=!1;this.ll=[];this.devicePixelRatio=1;this.ha=this.B=null;this.Vf=!1;this.La=null;this.qb={enabled:!1,speed:1,nd:!1,bj:!0};this.Ll=!1;this.Rh="<>";this.pb=new p.Um;this.Zj=!1;this.Yf=function(a, c){if(0==a.length)return a;var b;var d=[];var k=c.ci(a[0])-0;for(b=0;bh&&(h=0);1k||d.push(a[e]);d.push(v)}k=f}return d};this.Tl=new f;this.Oj=0;this.Oh=-1;this.jg=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.Wh=1;this.Gn=this.Ah=this.zl=this.Zi=this.Dj=this.di=0;this.Al=!1;this.Qd=!0;this.eb=new p.lh(this);this.eb.cf=!1;this.Dk();if(7=c&&(this.ha.blendtime=c));a.hasOwnProperty("waitfortransition")&&(this.ha.zoomoutpause=1==a.waitfortransition);a.hasOwnProperty("zoomedfov")&&(c=Number(a.zoomedfov),.01<=c&&50>=c&&(this.ha.zoomfov=c));a.hasOwnProperty("zoomspeed")&&(c=Number(a.zoomspeed),.01<=c&&99>=c&&(this.ha.zoomspeed=c));a.hasOwnProperty("dipcolor")&&(this.ha.blendcolor=a.dipcolor);a.hasOwnProperty("softedge")&&(a=Number(a.softedge),0<=a&&1E3>=a&&(this.ha.softedge= a));this.Vf||this.Ri()};b.prototype.Nc=function(a,c,b){var d=c?Number(c):0;if(0!=a&&4!=a&&12!=a&&9!=a)this.Lc("Unsupported projection type: "+a);else if(c&&0!==d&&4!==d&&12!==d&&9!==d)this.Lc("Unsupported projection2 type: "+d);else if(a==d&&(d=0),this.Jg=b?Number(b):1,this.Ka!=a||this.rc!=d)this.Ka=a,this.rc=d,this.na.Gh()};b.prototype.sa=function(){return 0==this.Ka?4:this.Ka};b.prototype.Ni=function(a,c){if(0!=a&&4!=a&&12!=a&&9!=a)this.Lc("Unsupported projection type: "+a);else if(this.Z||0==a|| 4==a||this.Lc("Projection changes require WebGL!"),this.sa()!=a){var b={};b.pan=this.pan.c;b.tilt=this.i.c;b.fov=this.f.c;b.projection=a;b.timingFunction=3;b.speed=c;a=this.ig(a);b.fov=Math.min(a,b.fov);this.Vh(b)}};b.prototype.addListener=function(a,c){(this.ag[a]=this.ag[a]||[]).push(c)};b.prototype.Y=function(a,c){if(a=this.ag[a])for(var b=a.length,d=0;d>4;e=(e&15)<<4|f>>2;var g=(f&3)<<6|t;c+=String.fromCharCode(d);64!=f&&(c+=String.fromCharCode(e));64!=t&&(c+=String.fromCharCode(g))}while(b>3&7];if(!(f&64&&t)||e+t>b)return null;for(f&=63>>t;0Number(this.od))&&(this.pa=null);this.Jc&&!this.Sd&&12<=Number(this.od)&&(this.pa=null);this.bh=this.sl?this.Jc&&this.Ij&&10<=Number(this.od)?!0:!1:!0};b.prototype.M=function(a){if(W){var c=document.getElementById("gg_debug"); c&&(c.innerHTML=a.toString()+"
");window.console&&window.console.log(a)}};b.prototype.Lc=function(a){var c=document.getElementById("gg_debug");c&&(c.innerHTML=a+"
");window.console&&window.console.log(a)};b.prototype.hm=function(a){this.we=a};b.prototype.tp=function(a){this.crossOrigin=a};b.prototype.vp=function(a){this.ff=a};b.prototype.lo=function(){return this.bi};b.prototype.sp=function(a){this.Ld=a};b.prototype.Kn=function(){return this.Ld};b.prototype.Tn=function(){return this.tg}; b.prototype.Un=function(){return this.gf};b.prototype.Qn=function(){return this.l.active};b.prototype.wp=function(a){this.tg=!!a};b.prototype.Bh=function(){return this.isLoaded};b.prototype.Sn=function(){return!this.isLoaded};b.prototype.dd=function(){return Number(this.o.height)/(2*Math.tan(Math.PI/180*(this.Ib()/2)))};b.prototype.jm=function(a,c){this.isFullscreen&&(a=window.innerWidth,c=window.innerHeight);var b=a-this.margin.left-this.margin.right,d=c-this.margin.top-this.margin.bottom;if(!(10> b||10>d)){var e=window.devicePixelRatio||1;this.vf&&(e=1);this.D.style.width=b+"px";this.D.style.height=d+"px";this.D.style.left=this.margin.left+"px";this.D.style.top=this.margin.top+"px";if(this.Z)try{this.bb&&(this.bb.style.position="absolute",this.bb.style.display="inline",this.bb.style.width=b+"px",this.bb.style.height=d+"px",this.bb.width=b*e,this.bb.height=d*e),this.H&&(this.rb.width=b*e,this.rb.height=d*e,this.H.viewport(0,0,this.H.drawingBufferWidth,this.H.drawingBufferHeight))}catch(m){alert(m)}this.lc&& (this.lc.style.width=a+"px",this.lc.style.height=c+"px",this.lc.width=a,this.lc.height=c);this.Fa&&(this.Fa.style.width=a+"px",this.Fa.style.height=c+"px",this.ya.style.width=a+"px",this.ya.style.height=c+"px",this.ya.width=a,this.ya.height=c,this.ya.style.left=this.margin.left+"px",this.ya.style.top=this.margin.top+"px",this.ja&&this.ja!=this.Fa&&(this.ja.style.width=a+"px",this.ja.style.height=c+"px"));this.Ga&&(b=this.Ga.Xc,b.style.width=a+"px",b.style.height=c+"px",b.width=a,b.height=c,b.style.left= this.margin.left+"px",b.style.top=this.margin.top+"px");this.df&&(this.Da=!0);b=this.D.offsetWidth;d=this.D.offsetHeight;if(this.o.width!=b||this.o.height!=d)this.o.width=b,this.o.height=d;this.tq();this.ja&&this.ja.ggUpdateSize&&this.ja.ggUpdateSize(a,c);this.Y("sizechanged",{hh:a,pg:c})}};b.prototype.Ke=function(){this.Zj=!0};b.prototype.Rc=function(){this.jm(this.Nd.offsetWidth,this.Nd.offsetHeight)};b.prototype.yo=function(){var a={width:0,height:0};a.width=this.o.width;a.height=this.o.height; return a};b.prototype.qe=function(){var a={x:0,y:0},c=this.D;if(c.offsetParent){do a.x+=c.offsetLeft,a.y+=c.offsetTop,c=c.offsetParent;while(c)}return a};b.prototype.Ip=function(a){this.ba=a};b.prototype.yp=function(a,c,b,d){this.margin.left=a;this.margin.top=c;this.margin.right=b;this.margin.bottom=d;this.ba=this.skinObj;this.Ke()};b.prototype.qn=function(a){0==a&&(this.C.Ad=!1);1==a&&(this.C.Ad=!0);2==a&&(this.C.Ad=!this.C.Ad);this.Y("viewmodechanged",{})};b.prototype.wo=function(){return 1==this.C.Ad? 1:0};b.prototype.uk=function(a,c){this.A.mode=1==c&&0a.z?(y=-c/a.z,n=a.x*y,y*=a.y,Math.abs(n)a.z?(y=-c/a.z,n=this.o.width/2+a.x*y,y=this.o.height/2+a.y*y):y=n=0,a.Mb=n,a.vb=y;g.Wd=r}}}};b.prototype.Mn=function(){for(var a=[], c=0;cc&&(c=0);1>16&255)+","+(a>>8&255)+","+(a&255)+","+c+")"};b.prototype.$o=function(){var a;if(this.ya&&(this.A.wg!=this.A.mode&&(this.A.wg=this.A.mode,this.ya.style.visibility=0=this.A.mode&&(c=0);3==this.A.mode&&(c=this.A.qa);for(a=0;ab!=d.vb>b&&c<(d.Mb-h.Mb)*(b-h.vb)/(d.vb-h.vb)+h.Mb&&(k=!k)}return k};b.prototype.qh=function(a,c){var b=-1;if((0<=this.A.mode||0b.width?this.f.c/2:4==c?180*Math.atan(4*b.height/(3*b.width)*Math.tan(this.f.c/2*Math.PI/180))/Math.PI:4*b.height/(3*b.width)*(this.f.c/2)}return 2*a};b.prototype.On=function(a,c){a||(a=this.Ib());c||(c=this.sa());return 4==c?180*Math.atan(this.ee()*Math.tan(a/2*Math.PI/180))/Math.PI:a*this.ee()};b.prototype.ee=function(){return this.o.width/this.o.height};b.prototype.rk=function(a){var c=this.f.c;a/=2;var b=this.sa();switch(this.f.mode){case 0:c= 2*a;break;case 1:a=4==b?180*Math.atan(this.o.width/this.o.height*Math.tan(a*Math.PI/180))/Math.PI:this.o.width/this.o.height*a;c=2*a;break;case 2:c=Math.sqrt(this.o.width*this.o.width+this.o.height*this.o.height);a=4==b?180*Math.atan(c/this.o.height*Math.tan(a*Math.PI/180))/Math.PI:c/this.o.height*a;c=2*a;break;case 3:4*this.o.height/3>this.o.width?c=2*a:(c=3*this.o.width/(4*this.o.height),a=4==b?180*Math.atan(c*Math.tan(a*Math.PI/180))/Math.PI:c*a,c=2*a)}return c};b.prototype.li=function(a){this.f.c= this.rk(a)};b.prototype.Xf=function(){var a=this.Tl;a.pan=this.pan.c;a.i=this.i.c;a.f=this.f.c;this.Ue(a);this.Ue(a);this.Ue(a);this.pan.c=a.pan;this.i.c=a.i;this.f.c=a.f};b.prototype.Ue=function(a){var c=this.o.width/this.o.height;if(2==this.kb){if(0c&&(a.f=c);50a.i-d&&(a.i=-50+d));b>e?a.pan=0:(a.pan+b>e&&(a.pan=e-b,this.l.active&&(this.l.speed=-this.l.speed,this.pan.d=0)),a.pan-b<-e&&(a.pan=-e+b,this.l.active&&(this.l.speed=-this.l.speed,this.pan.d=0)))}else{0e&&(a.f=e);12==this.sa()&&(2*b>f&&(a.f=f/c),d=this.Ib()/2,2*d>f&&(a.f=f),d=this.Ib()/2,b=c*d);2*d>this.i.max-this.i.min&&180>this.i.max-this.i.min&&(d=(this.i.max-this.i.min)/2,a.f=this.rk(2*d));90>this.i.max?a.i+d>this.i.max&&(a.i=this.i.max-d):a.i>this.i.max&&(a.i=this.i.max);-90c){e=90;f=Math.tan(d*Math.PI/180);var h=Math.tan((Math.abs(a.i)+d)*Math.PI/180);h=Math.sqrt(h*h+1)/Math.sqrt(f*f+1);d=180*Math.atan(h*Math.tan(b*Math.PI/180))/Math.PI;2*d>c&&(h=Math.tan(c*Math.PI/360)/Math.tan(b*Math.PI/180),c=h*Math.sqrt(f*f+1),h=Math.sqrt(c*c-1),e=180/Math.PI*Math.atan(h));a.pan+d>this.pan.max&&(a.pan=this.pan.max-d,this.l.active&&(this.l.speed=-this.l.speed,this.pan.d=0));a.pan-de&&(a.i=e-b);a.i-b<-e&&(a.i=-e+b)}}};b.prototype.update=function(a){void 0===a&&(a=0);this.Da=!0;a&&(this.$f=Math.max(1*a,this.$f))};b.prototype.Vk=function(){return this.ia?!!this.ia.isTileLoading:0a;a++){var b;if(b=this.pb.fb[a]){var d="";this.Ac?(d+="translate3d("+this.o.width/2+"px,"+this.o.height/2+"px,0px) ",d+="perspective("+c+"px) ",d+="translate3d(0px,0px,"+c+"px) "):d+="translate3d("+this.o.width/2+"px,"+this.o.height/2+"px,"+c+"px) ";d+="rotateZ("+Number(this.O.c).toFixed(10)+"deg) ";d+="rotateX("+Number(this.i.c).toFixed(10)+"deg) ";d+="rotateY("+Number(-this.pan.c).toFixed(10)+"deg) ";b.fl&&(d+=b.fl,b.hb||(d="translate3d(-10px,-10px,0px) scale(0.001,0.001)"), b.K.style[this.Ra]=d)}}};b.prototype.lq=function(){this.Xf();var a;this.lc&&(a=this.lc.getContext("2d"));if(this.o.width!==this.D.offsetWidth||this.o.height!==this.D.offsetHeight)this.o.width=this.D.offsetWidth,this.o.height=this.D.offsetHeight;if(a){var c=a.canvas.width/2,b=a.canvas.height/2,d=a.createRadialGradient(c,b,5,c,b,Math.max(c,b));d.addColorStop(0,"#333");d.addColorStop(1,"#fff");a.rect(0,0,a.canvas.width,a.canvas.height);a.fillStyle=d;a.fill();a.fillStyle="#f00";a.font="20px Helvetica"; a.textAlign="center";a.fillText("Pan: "+this.pan.c.toFixed(1),c,b-60);a.fillText("Tilt: "+this.i.c.toFixed(1),c,b-30);a.fillText("Fov: "+this.f.c.toFixed(1),c,b);a.fillText("Node: "+this.Tk(),c,b+30);a.fillText("Title: "+this.Lf.title,c,b+60)}};b.prototype.mq=function(){this.Xf();if(this.o.width!==this.D.offsetWidth||this.o.height!==this.D.offsetHeight)this.o.width=this.D.offsetWidth,this.o.height=this.D.offsetHeight;this.ia&&this.ia.setPan&&(this.ia.setPan(this.pan.c),this.ia.setTilt(this.i.c),this.ia.setFov(this.f.c))}; b.prototype.Xj=function(){this.ya.style.visibility="inherit";this.ca||(this.ca=this.ya.getContext("2d"));if(this.ca.width!=this.o.width||this.ca.height!=this.o.height)this.ca.width=this.o.width,this.ca.height=this.o.height;this.ca.clear?this.ca.clear():this.ca.clearRect(0,0,this.ya.width,this.ya.height);this.tc=0;var a=100/this.f.c;var c=this.h.width/this.h.height;var b=this.o.height*a*c;a*=this.o.height;var d=(this.pan.c/100/c-.5)*b+this.o.width/2;for(var e=(this.i.c/100-.5)*a+this.o.height/2,f, h,g,q,n=0;this.h.J.length>=n+2&&this.h.J[n+1].width>b;)n++;var y;var r=[];for(y=this.h.J.length-1;y>=n;){c=this.h.J[y];if(c.cache){var v={Ya:0,zb:0};v.Bb=c.L-1;v.Cb=c.fa-1}else{v={};var u=-e/a*(c.height/this.h.G);f=(-d+this.o.width)/b*(c.width/this.h.G);h=(-e+this.o.height)/a*(c.height/this.h.G);v.Ya=Math.min(Math.max(0,Math.floor(-d/b*(c.width/this.h.G))),c.L-1);v.zb=Math.min(Math.max(0,Math.floor(u)),c.fa-1);v.Bb=Math.min(Math.max(0,Math.floor(f)),c.L-1);v.Cb=Math.min(Math.max(0,Math.floor(h)), c.fa-1)}r[y]=v;var x=!0;for(h=v.zb;h<=v.Cb;h++)for(f=v.Ya;f<=v.Bb;f++)q=f+h*c.L,u=c.U[q],u||(u=new p.Id,c.U[q]=u),this.Pb=n;){c=this.h.J[y];if(r[y]&&0<=r[y].Ya)for(v=r[y],h=v.zb;h<=v.Cb;h++)for(f= v.Ya;f<=v.Bb;f++)q=f+h*c.L,(u=c.U[q])||(u=c.U[q]=new p.Id),u.h&&u.h.complete&&(q=d+(-this.h.Ja+this.h.G*f)*b/c.width,this.ca.drawImage(u.h,q,e+(-this.h.Ja+this.h.G*h)*a/c.height,u.h.width*b/c.width,u.h.height*a/c.height)),u.visible=!0;y--}for(b=0;b=this.A.mode&&(b=0),3==this.A.mode&&(b=this.A.qa),g=0;gthis.pb.fb.length))for(var a=0;6>a;a++){var c=this.pb.fb[a];var b= [];b.push(new p.xa(-1,-1,-1,0,0));b.push(new p.xa(1,-1,-1,1,0));b.push(new p.xa(1,1,-1,1,1));b.push(new p.xa(-1,1,-1,0,1));for(var d=0;4>d;d++)4>a?b[d].Ea(-Math.PI/2*a):b[d].wa(Math.PI/2*(4==a?-1:1)),this.$a&&(b[d].mb(this.$a.O*Math.PI/180),b[d].wa(-this.$a.pitch*Math.PI/180)),b[d].Ce(-this.pan.c),b[d].Fd(this.i.c),b[d].De(this.O.c);b=this.Pi(b);c.hb=0= a+2&&!this.h.J[a+1].rf&&this.h.J[a+1].width>b;)a++;return a};b.prototype.pq=function(){var a=!1,c,b,d;if(this.o.width!==this.D.offsetWidth||this.o.height!==this.D.offsetHeight)this.o.width=this.D.offsetWidth,this.o.height=this.D.offsetHeight,this.D.style[this.Ra+"OriginX"]=this.o.width/2+"px",this.D.style[this.Ra+"OriginY"]=this.o.height/2+"px",a=!0;var e=Math.round(this.dd());if(this.xg!=e||a)this.xg=e,this.Ac||(this.D.style[this.vd]=e+"px",this.D.style[this.vd+"Origin"]="50% 50%");this.tc=0;if(0< this.h.J.length){this.Bm();this.tj();var f="";for(c=0;6>c;c++){var h=this.pb.fb[c];h.hb&&(f=f+c+",")}f=this.aj();var g;for(g=this.h.J.length-1;g>=f;){a=this.h.J[g];var q=1;g==this.h.J.length-1&&0==this.h.Ja&&(q=this.h.G/(this.h.G-2));for(c=0;6>c;c++){h=this.pb.fb[c];var n=h.mf;if(h.hb&&0=g);)r=r.nextSibling;this.D.insertBefore(n.K,r);n.Pa=n.K.getContext("2d")}else if(this.um=g);)r= r.nextSibling;this.D.insertBefore(n.K,r)}n.K&&(this.lj++,n.h=new Image,n.h.crossOrigin=this.crossOrigin,n.h.style[this.Ra+"Origin"]="0% 0%",n.h.style.position="absolute",n.h.style.overflow="hidden",n.K.Rd=g,n.h.onload=this.aq(n),n.h.onerror=this.si(n),n.h.onabort=this.si(n),n.h.setAttribute("src",this.He(c,g,b,d)),a.cache&&this.Sb.push(n.h),this.Pb++,this.Da=!0)}else this.tc++;if(n.K){r="";this.Ac?(r+="translate3d("+this.o.width/2+"px,"+this.o.height/2+"px,0px) ",r+=" perspective("+e+"px) ",r+="translate3d(0px,0px,"+ e+"px) "):r+="translate3d("+this.o.width/2+"px,"+this.o.height/2+"px,"+e+"px) ";r+="rotateZ("+Number(this.O.c).toFixed(10)+"deg) ";r+="rotateX("+Number(this.i.c).toFixed(10)+"deg) ";r+="rotateY("+Number(-this.pan.c).toFixed(10)+"deg) ";this.$a&&(r+="rotateX("+Number(-this.$a.pitch).toFixed(10)+"deg) ",r+="rotateZ("+Number(this.$a.O).toFixed(10)+"deg) ");r=4>c?r+("rotateY("+-90*c+"deg) "):r+("rotateX("+(4==c?-90:90)+"deg) ");if(this.uf){var v=this.h.G/a.width*(2*g+1)*(this.Uf/this.h.G);v=this.Jc?2/ Math.tan(this.f.c*Math.PI/360)*v:2*v;r+=" scale("+v*q*q+")"}else v=1/(q*q);r+=" translate3d("+(1/q*b*this.h.G-this.h.Ja-a.width/2)+"px,";r+=1/q*d*this.h.G-this.h.Ja-a.width/2+"px,";r+=-a.width*v/2+"px)";h.hb&&(n.visible=!0,n.K?n.K.style[this.Ra]=r:n.h&&(n.h.style[this.Ra]=r))}}}}g--}for(e=0;ec||100>b)b=c=100;var d=window.devicePixelRatio||1;this.vf&&(d=1);this.D.style.width=c+"px";this.D.style.height=b+"px";this.bb.style.width=c+"px";this.bb.style.height=b+"px";this.bb.width=c*d;this.bb.height=b*d;this.bb.style.display="none";this.bb.style.touchAction="none";this.D.insertBefore(this.bb,this.D.firstChild);var e=this.Km;e.stencil=!0;e.depth=!0;e.alpha=this.Jc?!0:!1;this.Sd&&10<=this.ll[0]&&(e.antialias=!1,e.alpha=!1);this.H=this.bb.getContext("webgl", e);this.H||(this.H=this.bb.getContext("experimental-webgl",e));if(this.H){var f=this.H;this.rb.width=c*d;this.rb.height=b*d;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.tg&&(this.we=1f;f++)k=this.Yd(k,"c",a),k=this.Yd(k,"s",l),k=this.Yd(k,"r",c),k=this.Yd(k,"l",e),k=this.Yd(k,"x",b),k=this.Yd(k,"y",d),k=this.Yd(k,"v",d),k=this.Yd(k,"h",b);return this.nc(k)};b.prototype.kg=function(){return this.pan.c};b.prototype.ko=function(){return this.u.pan};b.prototype.Yk=function(){for(var a=this.pan.c;-180>a;)a+=360;for(;180a;)a+=360;for(;180b?this.u.f=Number(b):this.u.f=this.f.c;this.u.speed=!isNaN(d)&&0=h?(this.ji(c,b,d),this.Nc(e)):(a=new p.dk,a.cb="__AutoMove",a.Ef=this.Yk(),a.Sg=this.i.c,a.Gd=this.f.c,a.Rg=this.Ka,a.Qc=c,a.$d=b,a.Ff=d,a.qd=e,a.Xe=!1,a.ke=!1,a.le=!1,0==f&&(a.ke=!0),1==f&&(a.Xe=!0,a.ke=!0),2==f&&(a.le=!0),a.speed=h,this.u.kk=this.w,this.w=this.Qk(a),this.u.lk=(new Date).getTime(),this.u.$j=!0,this.u.active= !0,this.u.aborted=!1,this.u.pan=c,this.u.i=b,this.u.f=d,this.Jd=!1)};b.prototype.Oo=function(a){this.moveTo(this.pan.Qa,this.i.Qa,this.f.Qa,a)};b.prototype.Po=function(a,c){var b={};b.pan=this.pan.Qa;b.tilt=this.i.Qa;b.fov=this.f.Qa;b.projection=this.ai;b.timingFunction=c;b.speed=a;this.Vh(b)};b.prototype.an=function(a,c,b,d){var e=new p.lh(this);e.type="point";e.pan=c;e.i=b;e.id=a;e.b={};e.b.player=this;e.Ye();e.b.hotspot=e;e.b.__div=document.createElement("div");e.b.__div.appendChild(d);this.P.push(e); e.b.__div.style.position="absolute";e.b.__div.style.left="-1000px";e.b.__div.style.top="-1000px";this.Fa.insertBefore(e.b.__div,this.Fa.firstChild);this.Da=!0};b.prototype.nq=function(a,c,b){for(var d=0;da;)a+=360;c=b.en()}b={};b.pan=a;b.tilt=c;return b};b.prototype.yc=function(a){return a==this.control||a&&void 0!==a.ggPermeableMap&&1==a.ggPermeableMap?!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.Oi=function(a,c){var b=this.dd(),d,e;for(d=0;dq;q++){switch(q){case 0:g.Za(-e,-n,0); break;case 1:g.Za(e,-n,0);break;case 2:g.Za(e,n,0);break;case 3:g.Za(-e,n,0)}g.wa(f.wa*Math.PI/180);g.Ea(-f.Ea*Math.PI/180);g.mb(f.mb*Math.PI/180);g.z=g.z-1;g.wa(-f.i*Math.PI/180);g.Ea(f.pan*Math.PI/180);g.Ea(-this.pan.c*Math.PI/180);g.wa(this.i.c*Math.PI/180);g.mb(this.O.c*Math.PI/180);h.push(g.clone())}h=this.Pi(h);if(0g.z?(n=-b/g.z,e=this.o.width/2+g.x*n,n=this.o.height/2+g.y*n):n=e=0,g.Mb=e,g.vb=n;if(this.kl(h,a,c))return f}}return null};b.prototype.Jh= function(){return document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement&&null!=document.msFullscreenElement||document.fullScreen};b.prototype.No=function(a){this.Am(a);if(this.ad)this.ad.onclick();this.Ze&&this.yh();this.Gb=null;if(!this.C.Ab){a=a?a:window.event;if(a.which||0==a.which||1==a.which){var c=(new Date).getTime();if(this.md){this.Gb=this.md;this.R.Xa=!0;this.R.startTime=c;a.stopPropagation();return}if(this.yc(a.target)){var b;(b=this.Oi(this.ua.x,this.ua.y))&& b.re&&(this.Gb=b);this.Jm(a.pageX,a.pageY);this.R.Xa=!0;this.R.startTime=c;a.preventDefault();this.va()}}this.X.da.x=0;this.X.da.y=0}};b.prototype.Jf=function(a,c){var b=this.A.Uj;b.enabled&&(this.ta!=this.eb&&0<=a&&0<=c&&""!=this.ta.title?(this.Aa.innerHTML=this.ta.title,this.Aa.style.color=this.ga(b.Vj,b.Tj),b.background?this.Aa.style.backgroundColor=this.ga(b.hc,b.gc):this.Aa.style.backgroundColor="transparent",this.Aa.style.border="solid "+this.ga(b.kc,b.jc)+" "+b.Ji+"px",this.Aa.style.borderRadius= b.Ii+"px",this.Aa.style.textAlign="center",0a-this.R.startTime&&0<=c&&20>c){var b=this.qh(this.ua.x,this.ua.y);b&&this.wm(b);c=Math.abs(this.X.Cd.x-this.X.ea.x)+Math.abs(this.X.Cd.y-this.X.ea.y);700>a-this.vg&&0<=c&&20>c?(b?this.xm(b):this.C.Wi&&this.ui(),this.vg=0):this.vg=a;this.X.Cd.x=this.X.ea.x;this.X.Cd.y=this.X.ea.y}}};b.prototype.Il=function(a){if(!this.C.kd&& (a=a?a:window.event,this.yc(a.target))){var c=a.detail?-1*a.detail:a.wheelDelta/40;this.C.pl&&(c=-c);a.axis&&(-1==this.Oh?this.Oh=a.axis:this.Oh!=a.axis&&(c=0));var b=0Math.abs(a.wheelDeltaY)&&(c=0);0!=c&&(this.Mi(b*this.C.mm,!0),this.update());a.preventDefault();this.va()}};b.prototype.jq=function(a){a||(a=window.event);var c=a.touches,b=this.qe();this.ua.x=c[0].pageX-b.x;this.ua.y=c[0].pageY-b.y;this.ae=this.Gb=null;this.Ze&&this.yh(); if(!this.C.Ab){var d=(new Date).getTime();if(this.md)this.Gb=this.md,this.R.Xa=!0,this.R.startTime=d,a.preventDefault();else{if(!this.R.Xa&&c[0]){this.R.startTime=d;this.R.start.x=c[0].pageX;this.R.start.y=c[0].pageY;this.R.ea.x=c[0].pageX;this.R.ea.y=c[0].pageY;this.ob=c[0].target;if(this.yc(this.ob)){(d=this.Oi(this.ua.x,this.ua.y))&&d.re&&(this.Gb=d);if(d=this.qh(this.ua.x,this.ua.y))this.M(d),this.ae=d,this.ii(d),d=this.jg(a),this.Jf(d.x-b.x,d.y-b.y);this.Jm(c[0].pageX,c[0].pageY);this.R.Jk=c[0].identifier; this.R.Xa=!0;a.preventDefault();this.va()}if(this.ob){b=this.ob;for(d=!1;b&&b!=this.control;){if(b.onmouseover)b.onmouseover();b.onmousedown&&!d&&(b.onmousedown(),d=!0);b=b.parentNode}d&&a.preventDefault()}}1this.f.max&& (this.Ba.f.mc=this.f.max),this.Ba.f.mce){b=!0;this.yc(this.ob)&&(a.preventDefault(),this.Gb&&(this.Gb.re(),this.Gb.gb?this.md=this.Gb:this.md=null));if(this.ob){for(e= this.ob;e&&e!=this.control;)e.onclick&&(e.onclick(),f=!0,b=!1),e=e.parentNode;f&&a.preventDefault()}e=Math.abs(this.R.Cd.x-this.R.ea.x)+Math.abs(this.R.Cd.y-this.R.ea.y);if(700>d-this.vg&&0<=e&&20>e){if(this.yc(this.ob))if(a.preventDefault(),this.ae)this.xm(this.ae);else if(this.C.Wi){var h=this;setTimeout(function(){h.ui()},1)}if(this.ob){for(e=this.ob;e&&e!=this.control;)e.ondblclick&&(e.ondblclick(),f=!0,b=!1),e=e.parentNode;f&&a.preventDefault()}this.vg=0}else this.vg=d;this.R.Cd.x=this.R.ea.x; this.R.Cd.y=this.R.ea.y}if(this.ob)for(e=this.ob;e&&e!=this.control;){if(e.onmouseout)e.onmouseout();if(e.onmouseup)e.onmouseup();e=e.parentNode}a=this.jg(a);this.Jf(a.x-c.x,a.y-c.y);this.ae&&b&&this.wm(this.ae);this.ob=null;this.R.Xa=!1;this.ii(this.eb);this.ae=null}};b.prototype.gq=function(a){var c=this.qe();this.C.Ab||(this.R.Xa=!1);this.ae=null;this.ii(this.eb);a=this.jg(a);this.Jf(a.x-c.x,a.y-c.y)};b.prototype.wl=function(){return null!=this.ob||this.R.Xa};b.prototype.Jl=function(a){!this.xe&& window.MSGesture&&(this.M("setup gesture"),this.xe=new MSGesture,this.xe.target=this.control);this.xe&&this.xe.addPointer(a.pointerId)};b.prototype.Sk=function(a){this.jj=!0;this.Wh=1;this.C.Ab||this.C.kd||(a.touches?(this.ob=a.touches.target,this.yc(a.target)&&(a.preventDefault(),this.f.pf=this.f.c,this.va())):(a.preventDefault(),this.f.pf=this.f.c,this.va()))};b.prototype.In=function(a){this.C.Ab||this.C.kd||!this.yc(a.target)||(a.preventDefault(),this.Ba.f.active=!0,this.Ba.f.mc=this.f.pf/Math.sqrt(a.scale), 4==this.sa()&&this.Ba.f.mc>this.f.max&&(this.Ba.f.mc=this.f.max),this.update(),this.va())};b.prototype.Qo=function(a){this.C.Ab||this.C.kd||(a.preventDefault(),1!=a.scale&&(this.Ba.f.active=!0,this.Wh*=a.scale,this.Ba.f.mc=this.f.pf/Math.sqrt(this.Wh),4==this.sa()&&this.Ba.f.mc>this.f.max&&(this.Ba.f.mc=this.f.max),this.update(),this.va()))};b.prototype.Rk=function(a){this.C.Ab||this.C.kd||(this.Ba.f.active=!1,a.preventDefault(),this.va(),this.xe&&this.xe.reset&&this.xe.reset())};b.prototype.Fo=function(a){this.C.ue|| (this.isFullscreen&&a.preventDefault(),this.Nh=a.keyCode,this.va())};b.prototype.Go=function(a){this.Nh&&(this.Nh=0,a.preventDefault())};b.prototype.Wo=function(){this.Nh=0};b.prototype.$h=function(){this.isFullscreen&&(this.Jh()||this.exitFullscreen(),this.Jh()&&(this.T.style.left="0px",this.T.style.top="0px"))};b.prototype.Xo=function(a,c,b,d){d?(this.og.alpha=a,this.og.beta=c,this.og.gamma=b,this.og.gamma+=90):(this.jb.alpha=a,this.jb.beta=c,this.jb.gamma=b,this.jb.gamma+=90);this.jb.orientation= window.orientation?parseInt(""+window.orientation,10):0;b=new p.fk;a=this.jb;b.Ce(-a.alpha);b.De(-a.beta);b.Fd(-a.gamma);b.De(90-a.orientation);1>b.Db?-1this.jb.cg&& (this.jb.cg+=1,e=.1*this.jb.cg);b=-b+this.jb.Pl;this.Af(e*b+(1-e)*this.kg());this.Bf(e*a+(1-e)*this.Ch());this.Gm?this.Kj(e*c+(1-e)*this.al()):this.Kj(0);this.Xf();this.u.active=d}};b.prototype.wm=function(a){this.ba&&this.ba.hotspotProxyClick&&this.ba.hotspotProxyClick(a.id,a.url);""!=a.url&&(this.yj(a.url,a.target),this.Jf(-1,-1))};b.prototype.xm=function(a){this.ba&&this.ba.hotspotProxyDoubleClick&&this.ba.hotspotProxyDoubleClick(a.id,a.url)};b.prototype.zh=function(){return Math.min(1,2*Math.tan(Math.PI* Math.min(this.f.c,90)/360))};b.prototype.Ql=function(){var a=this;setTimeout(function(){a.Ql()},100);9!=a.di||a.Hh||window.requestAnimationFrame(function(){a.Kg();a.Lc("restart recover timer")});10g;)g+=360}b=g-h;2!=this.kb&&(180b&&(b+=360));this.pan.c=this.pan.c+b*this.td}else this.pan.c=g;this.l.Ag=this.pan.c;break;case 1:h=this.i.c;this.Jd&&3!=q.type?(d=g-h,this.i.c=this.i.c+d*this.td):this.i.c=g;this.l.Bg=this.i.c;break;case 2:h=this.f.c,this.Jd&&3!=q.type?(e=g-h,this.f.c=this.f.c+e*this.td):this.f.c=g,this.l.zg=this.f.c}}c=this.sa();for(f=Math.floor(a);!this.af(f,3)&&0a?(c=this.ig(this.Rf), this.f.c>c?this.nh=a:(q=(a-this.nh)/this.Ei,q=Math.min(1,q),this.Nc(this.Ka,this.Rf,1-q))):(0==f.xb||q>f.xb-.3?this.Nc(f.value):(q/=f.xb,this.Nc(c,f.value,1-q)),this.l.Dl=f.value);this.Jd&&(b=Math.sqrt(b*b+d*d+e*e),.3>b&&(this.Jd=!1,this.td=.02,this.Qf=0),0this.Qf&&(this.td+=.01,this.td=Math.min(this.td,1)),this.Qf=b);f=Math.floor(a);if(f!=this.mk)for(this.mk=f,a=this.Jn(f),b=0;bc&&(c=.2));this.u.pj=a.getTime();this.l.eg&&(this.na.ready()||4==this.Ka)&&this.Bh()&&(this.l.eg=!1,this.l.active=!0,this.qb.nd=!0,this.qb.bj=!1);if(this.u.active||0!=this.u.Eb&&this.na.ready()){if(this.u.$j&&"__AutoMove"==this.w.cb){var b=a.getTime()-this.u.lk;c=b/100;if(c>=this.w.length){if(this.mi(this.w.length),this.za.splice(this.za.indexOf(this.w), 1),this.u.active=!1,this.w=this.u.kk,this.u.Eb=0,this.ji(this.u.pan,this.u.i,this.u.f),this.pan.Fc=this.u.pan,this.i.Fc=this.u.i,this.u.Hg&&(this.u.Hg=!1,this.l.Uh=!0,this.l.active=!0,this.Y("autorotatechanged",{})),this.onMoveComplete)this.onMoveComplete()}else this.mi(c)}else{this.pan.d=this.u.pan-this.pan.c;if(360==this.pan.max-this.pan.min){for(;-180>this.pan.d;)this.pan.d+=360;for(;1805*b?b/d:.2,this.pan.d*=d,this.i.d*=d,this.f.d*=d;this.pan.c+=this.pan.d;this.i.c+=this.i.d;this.O.c+=this.O.d;this.f.c+=this.f.d;0!=this.u.Eb&&(this.u.Eb!=this.Ka?(c=this.ig(this.u.Eb),this.fj()>c?(this.f.c+=-Math.max((2.5-1.7*Math.min(Math.sqrt(this.pan.d*this.pan.d+this.i.d*this.i.d+this.O.d*this.O.d)/b,1))*b,this.f.d)-this.f.d,this.u.f=this.f.c):(this.rc=this.Ka,this.Ka=this.u.Eb,this.M("New projection from Target:"+this.Ka), this.Jg=this.u.Mg=0,this.na.Gh())):1>this.u.Mg?(this.u.Mg=Math.min(1,this.u.Mg+.05*c),this.Jg=this.u.Mg):(this.rc=0,this.u.Eb=0,this.na.Gh()))}this.hf=a.getTime();this.update()}else if(this.l.active){b=a.getTime()-this.l.startTime;this.l.Phthis.s.b.duration-this.s.b.currentTime&&(this.Gi=!0);d>=10*this.Me;)d-=10*this.Me;if(!e&& c>=this.w.length||e&&!b&&c>=this.w.length||e&&b&&(this.w.cb!=this.w.Kl||this.w.Xh!=this.Wa)&&c>=this.w.length){this.mi(this.w.length);this.l.Bd=0;this.Ne=!1;if(this.qb.nd){this.fm();return}this.Lb=this.w.Kl;if(this.Lb==this.w.cb&&this.Wa==this.w.Xh){if(1b.pan;)b.pan+=360;b.tilt=d.value;b.fov=e.value;b.projection=f?f.value:4}b.timingFunction=3;b.speed=1;this.u.Hg=!0;this.Vh(b);this.l.active=!0}}else if(0=1E3*this.l.Yh){if(1=this.Ma.length&&(b=0),c=this.Ma[b];this.l.startTime=a.getTime();this.l.jd=a.getTime();this.l.timeout=0;this.ye("{"+c+"}");this.l.active=!0;this.B.fe=!0}}else b=a.getTime(),d=c=1E3/60,0!=this.l.jd&&(d=b-this.l.jd),this.i.d=this.l.ti*(0-this.i.c)/100,this.f.d=this.l.ti*(this.f.Qa-this.f.c)/100,this.pan.d=.95*this.pan.d+-this.l.speed*this.zh()*.05,c=d/c,this.pan.c+=this.pan.d*c,this.i.c+= this.i.d*c,this.f.c+=this.f.d*c,this.l.jd=b,this.update();3E31E3*this.l.timeout&&!this.l.eg&&(this.l.Ug&&this.Bh()||!this.l.Ug)&&(this.l.active=!0,this.l.startTime=a.getTime(),this.l.jd=0,this.Y("autorotatechanged",{}),this.pan.d= 0,this.i.d=0,this.f.d=0),!this.Ba.enabled||this.R.Xa||0==this.pan.d&&0==this.i.d&&0==this.f.d||(this.u.Fh=!0,this.pan.d*=.9,this.i.d*=.9,this.f.d*=.9,this.pan.c+=this.pan.d,this.i.c+=this.i.d,this.Mi(this.f.d),1E-4>this.pan.d*this.pan.d+this.i.d*this.i.d+this.f.d*this.f.d&&(this.pan.d=0,this.i.d=0,this.f.d=0),this.update())};b.prototype.fp=function(a){var c=this.B;if(c.rd){var b=a.getTime()-c.Om;b/=1E3*c.Nm;1<=b?(c.rd=!1,this.Ik(),c.Qj=a.getTime(),this.qm(),c.be=!0,0==c.ec||c.Pf||(4==c.ec?(this.w= this.hg(!0,c.Fe,c.Ge,c.Hd),this.Lb=this.w.cb,this.l.active=!0,this.qb.nd=!0):this.moveTo(c.Fe,c.Ge,c.Hd,c.de,0,c.qd))):c.Ol(b)}else c.be&&(b=a.getTime()-c.Qj,b/=1E3*c.Tf,1<=b?(c.be=!1,this.hf=a.getTime(),this.update(),0!=c.ec&&c.Pf&&(4==c.ec?(this.w=this.hg(!0,c.Fe,c.Ge,c.Hd),this.Lb=this.w.cb,this.l.active=!0,this.qb.nd=!0):this.moveTo(c.Fe,c.Ge,c.Hd,c.de,0,c.qd)),4!=c.ec&&(this.Og(c.Th),this.Pg(c.Ai),this.Ng(c.Lh),this.l.active=c.fe,this.Y("autorotatechanged",{}),c.fe=!1),this.l.jd=0,this.ha&&this.Ri(), this.Vf=!1):c.Ol(b));c=this.Yo;c.gn&&(c.vh?a.getTime()-c.Yi>=1E3*c.Bn&&(c.vh=!1):(c.current+=c.Wc,0>c.current&&(c.current=0,c.Wc=-c.Wc,c.vh=!0,c.Yi=a.getTime()),1c.Ob[a]?(c.Ob[a]+=.05,c.Oc[a]c.Ob[a]&&(c.Ob[a]=c.Oc[a],-1!=c.ni.indexOf(c.nb[a])&&(c.ni.splice(c.ni.indexOf(c.nb[a]), 1),c.nb.splice(a,1),c.Oc.splice(a,1),c.Ob.splice(a,1)))));this.update()}if(2==c.mode)for(a=0;ab.qa?(b.qa+=c.Wc,b.abb.qa&&(b.qa=b.ab)),this.update())}3==c.mode&&c.ab!=c.qa&&(c.ab>c.qa?(c.qa+=c.Wc,c.abc.qa&&(c.qa=c.ab)),this.update())};b.prototype.hp=function(){var a=this.Ba;this.R.Xa&&(this.C.Ad?(a.da.x=.4*(this.X.ea.x-a.ea.x),a.da.y=.4*(this.X.ea.y-a.ea.y), a.ea.x+=a.da.x,a.ea.y+=a.da.y):(a.da.x=.1*-this.X.da.x*this.C.sensitivity/8,a.da.y=.1*-this.X.da.y*this.C.sensitivity/8),this.Hm(a.da.x,a.da.y),this.update());a.f.active&&(this.sk(.4*(a.f.mc-this.f.c)),.001>Math.abs(a.f.mc-this.f.c)/this.f.c&&(a.f.active=!1),this.update());if(a.enabled&&(0!=a.da.x||0!=a.da.y)&&!this.R.Xa){var c=.9*(1-a.Hj);a.da.x=c*a.da.x;a.da.y=c*a.da.y;this.u.Fh=!0;.01>a.da.x*a.da.x+a.da.y*a.da.y?(a.da.x=0,a.da.y=0):(this.Hm(a.da.x,a.da.y),this.update())}};b.prototype.ep=function(){if(this.C.dm&& this.C.Ad){var a=this.Tl;a.pan=this.pan.c;a.i=this.i.c;a.f=this.f.c;this.Ue(a);this.Ue(a);this.Ue(a);var c=a.pan-this.pan.c,b=a.i-this.i.c;a=a.f-this.f.c;if(0!=c||0!=b||0!=a){var d=.2+.9*Math.min((Math.abs(c)+Math.abs(b)+Math.abs(a))/Math.abs(Math.min(this.f.c,90))*.3,1);this.pan.c+=c*d;this.i.c+=b*d;this.f.c+=a*d;this.Ba.Hj=.3;this.update()}else this.Ba.Hj=0}else this.Xf();if(2!=this.kb){for(;360this.pan.c;)this.pan.c+=360}};b.prototype.gp=function(){if(!this.Bh()&& this.df&&5"+b.qk(this.Rh).replace(/./gm,function(a){return"&#"+a.charCodeAt(0)+";"})),f.setAttribute("style","color: black; text-decoration: none;"),a.appendChild(f),e.appendChild(a));d.T.insertBefore(d.ad,d.T.firstChild);e.onclick=function(){d.ad&&(d.T.removeChild(d.ad),d.ad=null)};e.oncontextmenu=e.onclick}};b.prototype.fn=function(){var a=this;var c=a.Fa;a.control=c;a.control=c;a.Cm();setTimeout(function(){a.Kg()},10);setTimeout(function(){a.Ql()},200);setTimeout(function(){a.Ke();a.Zg()},10);c.addEventListener&& (c.addEventListener("touchstart",function(c){a.jq(c)},!1),c.addEventListener("touchmove",function(c){a.iq(c)},!1),c.addEventListener("touchend",function(c){a.hq(c)},!1),c.addEventListener("touchcancel",function(c){a.gq(c)},!1),c.addEventListener("pointerdown",function(c){a.Jl(c)},!1),c.addEventListener("MSPointerDown",function(c){a.Jl(c)},!1),c.addEventListener("MSGestureStart",function(c){a.Sk(c)},!1),c.addEventListener("MSGestureEnd",function(c){a.Rk(c)},!1),c.addEventListener("MSGestureChange", function(c){a.Qo(c)},!1),c.addEventListener("gesturestart",function(c){a.Sk(c)},!1),c.addEventListener("gesturechange",function(c){a.In(c)},!1),c.addEventListener("gestureend",function(c){a.Rk(c)},!1),c.addEventListener("mousedown",function(c){a.No(c)},!1),c.addEventListener("mousemove",function(c){a.Mo(c)},!1),document.addEventListener("mouseup",function(c){a.Lo(c)},!1),c.addEventListener("mousewheel",function(c){a.Il(c)},!1),c.addEventListener("DOMMouseScroll",function(c){a.Il(c)},!1),document.addEventListener("keydown", function(c){a.Fo(c)},!1),document.addEventListener("keyup",function(c){a.Go(c)},!1),window.addEventListener("orientationchange",function(){a.Cm()},!1),window.addEventListener("resize",function(){a.Ke()},!1),window.addEventListener("blur",function(){a.Wo()},!1),a.T.addEventListener("webkitfullscreenchange",function(){a.$h()},!1),document.addEventListener("mozfullscreenchange",function(){a.$h()},!1),window.addEventListener("webkitfullscreenchange",function(){a.$h()},!1),document.addEventListener("MSFullscreenChange", function(){a.$h()},!1));c.oncontextmenu=function(c){void 0===c&&(c=window.event);if(c.target&&!a.yc(c.target))return!0;if(!c.ctrlKey){c=a.jg(c);var b=a.qe();a.Rp(c.x-b.x,c.y-b.y);return!1}return!0};window.addEventListener("deviceorientation",function(c){a.Xo(c.alpha,c.beta,c.gamma,c.absolute)})};b.prototype.jk=function(){for(var a=0;ac&&(c=0),c>a.ph.duration&&(c=a.ph.duration-.1),a.kn(c)):a.b&&(0>c&&(c=0),c>a.b.duration&&(c=a.b.duration-.1),a.b.currentTime=c))};b.prototype.Op=function(a,c){if(this.Fb){var b=this.ia;b&&b.setVolume(a,c)}else try{b=void 0;var d=Number(c);1d&&(d=0);"_videopanorama"===a&&this.s.b&&(this.s.b.volume=d);if("_main"===a){this.V=d;for(b=0;bb&&(b=0);this.V=b;for(d=0;db&&(b=0);f.level=b;f.b&&null!=f.b.volume&&(f.b.volume=b*this.V)}}}catch(t){this.M(t)}};b.prototype.zp=function(a,c){a=this.Hb(a);for(var b=0;bb&&(b=this.uc);for(c=0;6>c;c++){var d=this.pb.fb[c];a?(d.width=this.Uf,d.height=this.Uf):(d.K=document.createElement("canvas"),d.K.width=this.uc,d.K.height=this.uc,d.width=this.uc, d.height=this.uc,d.Pa=d.K.getContext("2d"));var e="position:absolute;";e+="left: 0px;";e+="top: 0px;";e+="width: "+b+"px;";e+="height: "+b+"px;";a&&(e+="outline: 1px solid transparent;");e+=this.Ia+"transform-origin: 0% 0%;";e+="-webkit-user-select: none;";e+=this.Ia+"transform: ";var f="";var h=1;this.uf&&(h=100);f=4>c?f+("rotateY("+-90*c+"deg)"):f+("rotateX("+(4==c?-90:90)+"deg)");this.uf&&(f+=" scale("+h+")");f+=" translate3d("+-b/2+"px,"+-b/2+"px,"+-b*h/(2*this.Gf)+"px)";e+=f+";";d.fl=f;a||(d.K.setAttribute("style", e),this.D.insertBefore(d.K,this.D.firstChild))}if(!a){for(c=0;6>c;c++)d=this.pb.fb[c],""!=this.We[c]&&(d.Ed=new Image,d.Ed.crossOrigin=this.crossOrigin,d.Ed.onload=this.Ak(d),d.Ed.setAttribute("src",this.nc(this.We[c])),this.Sb.push(d.Ed));for(c=0;6>c;c++)d=this.pb.fb[c],d.loaded=!1,d.h=new Image,d.h.crossOrigin=this.crossOrigin,d.h.onload=this.Ak(d),d.h.setAttribute("src",this.nc(this.th[c])),this.Sb.push(d.h)}};b.prototype.fi=function(){var a;this.Ba.da.x=0;this.Ba.da.y=0;if(this.Sc){for(a=0;a< this.pb.fb.length;a++)this.pb.fb[a].K&&this.pb.fb[a].K.setAttribute&&(this.pb.fb[a].K.setAttribute("src",this.Ek),this.D.removeChild(this.pb.fb[a].K));if(this.h.J){for(a=0;aa.pg?a.hh:a.pg};b.prototype.Cj=function(a,c){var b=(new DOMParser).parseFromString(a,"text/xml");this.Ui=a;this.Vl(b,c);this.ia&&(this.M("Apply to Flash player"),this.ia.readConfigString(this.Ui),this.ia.setLocked(!0),this.ia.setSlaveMode(!0))};b.prototype.Ul=function(a,c,b){try{var d=void 0;d=new XMLHttpRequest;d.open("GET",a,!1);d.send(null); if(d.responseXML){var e=a.lastIndexOf("/");0<=e&&(this.Ld=a.substr(0,e+1));2<=arguments.length&&null!=c&&(this.Ld=c);this.Cj(d.responseText,b)}else alert("Error loading panorama XML")}catch(m){alert("Error:"+m)}};b.prototype.lp=function(a,b,d,f){var c=new XMLHttpRequest;var k=this;c.onload=function(e){if(4<=c.readyState)if(c.responseXML){var g=a.lastIndexOf("/");0<=g&&(k.Ld=a.substr(0,g+1));3<=arguments.length&&null!=d&&(k.Ld=d);k.Cj(c.responseText,f);b&&b()}else alert("Error loading panorama XML"); else console.error("Wrong state loading XML:"+c.statusText)};c.onerror=function(){console.error("Error loading XML:"+c.statusText)};c.open("GET",a,!0);c.send(null)};b.prototype.Li=function(a){var c="";"{"==a.charAt(0)&&(c=a.substr(1,a.length-2));(a=this.Od[c])&&(c=a);a={oldNodeId:this.Wa,nodeId:c};this.Y("beforechangenodeid",a);""!=this.Wa&&-1==this.ck.indexOf(this.Wa)&&this.ck.push(this.Wa);this.Cl=this.Wa;this.Wa=c;this.M("change active node: "+c);this.ba&&this.ba.changeActiveNode&&this.ba.changeActiveNode("{"+ c+"}");this.Y("changenodeid",a)};b.prototype.Tk=function(){return this.Wa};b.prototype.Xk=function(){if(0=this.Ma.length&&(a=0);return this.Ma[a]}return""};b.prototype.po=function(){if(0a&&(a=this.Ma.length-1);return this.Ma[a]}return""};b.prototype.Wn=function(){return this.Cl};b.prototype.Uo=function(a){return-1!=this.ck.indexOf(a)};b.prototype.Vl=function(a,c){var b=a.firstChild;this.Ie= [];this.Ma=[];this.Od=[];for(a=b.firstChild;a;){if("map"==a.nodeName){var d={},e=a.getAttributeNode("title");e&&(d.title=e.nodeValue.toString());e=a.getAttributeNode("type");d.type=e.nodeValue.toString();"web"==d.type?(e=a.getAttributeNode("mapprovider"),d.mapprovider=e.nodeValue.toString(),(e=a.getAttributeNode("mapstyle"))&&(d.mapstyle=e.nodeValue.toString()),(e=a.getAttributeNode("googlecustomstylecode"))&&(d.googlecustomstylecode=e.nodeValue.toString()),(e=a.getAttributeNode("mapurltemplate"))&& (d.mapurltemplate=e.nodeValue.toString()),(e=a.getAttributeNode("mapmaxzoom"))&&(d.mapmaxzoom=Number(e.nodeValue)),(e=a.getAttributeNode("mapkey"))&&(d.mapkey=e.nodeValue.toString()),(e=a.getAttributeNode("styleurl"))&&(d.styleurl=e.nodeValue.toString())):(e=a.getAttributeNode("width"),d.width=Number(e.nodeValue),e=a.getAttributeNode("height"),d.height=Number(e.nodeValue),e=a.getAttributeNode("zoomlevels"),d.zoomlevels=Number(e.nodeValue),e=a.getAttributeNode("tileformat"),d.tileformat=e.nodeValue.toString(), e=a.getAttributeNode("bgcolor"),d.bgcolor=e.nodeValue.toString(),e=a.getAttributeNode("transparent"),d.transparent=1==e.nodeValue,e=a.getAttributeNode("floorplannorth"),d.floorplannorth=Number(e.nodeValue));e=a.getAttributeNode("id");this.Sh[e.nodeValue.toString()]=d}a=a.nextSibling}if("tour"==b.nodeName){this.gf=!0;a="";(e=b.getAttributeNode("start"))&&(a=e.nodeValue.toString());this.hasOwnProperty("startNode")&&this.startNode&&(a=String(this.startNode),this.startNode="");this.hasOwnProperty("startView")&& this.startView&&("object"===typeof this.startView&&null!==this.startView?c=this.startView:""!=this.startView&&(c=String(this.startView)),this.startView="");d=b.firstChild;var f="";for(b="";d;){if("panorama"==d.nodeName){if(e=d.getAttributeNode("id"))f=e.nodeValue.toString(),""==a&&(a=f),""==b&&(b=f),this.Ie[f]=d,this.Ma.push(f);for(e=d.firstChild;e;){if("userdata"==e.nodeName){var h=this.bg(e);this.fh[f]=h;f==a&&(this.fh._first=h);h.customnodeid&&(this.Od[h.customnodeid]=f);this.zc[f]=this.Fk(e); this.lf[f]=this.Gk(e)}e=e.nextSibling}}if("masternode"==d.nodeName)for(e=d.firstChild;e;)"userdata"==e.nodeName&&(h=this.bg(e),this.fh._master=h),e=e.nextSibling;d=d.nextSibling}this.Ie.hasOwnProperty(a)||(e=this.Od[a])&&(a=e);this.Ie.hasOwnProperty(a)||(this.Lc("Start node "+a+" not found!"),a=b);this.Bj(this.Ie[a],c);this.Li("{"+a+"}");this.Wa=a}else this.gf=!1,this.Bj(b,c),this.Li(""),this.Ma.push("");this.Y("configloaded",{});this.Y("changenode",{})};b.prototype.Bj=function(a,b){var c=this;this.$l(); this.Ga&&this.Ga.np();this.xf(this.eb);this.fi();this.xg=0;for(var d=a.firstChild,e,f,h=0;d;){if("view"==d.nodeName){if(e=d.getAttributeNode("fovmode"))this.f.mode=Number(e.nodeValue);e=d.getAttributeNode("pannorth");this.pan.xj=1*(e?e.nodeValue:0);for(var g=d.firstChild;g;){"start"==g.nodeName&&(e=g.getAttributeNode("pan"),this.pan.c=Number(e?e.nodeValue:0),this.pan.Qa=this.pan.c,e=g.getAttributeNode("tilt"),this.i.c=Number(e?e.nodeValue:0),this.i.Qa=this.i.c,e=g.getAttributeNode("roll"),this.O.c= Number(e?e.nodeValue:0),this.O.Qa=this.O.c,e=g.getAttributeNode("fov"),this.f.c=Number(e?e.nodeValue:70),this.f.Qa=this.f.c,e=g.getAttributeNode("projection"),this.ai=Number(e?e.nodeValue:4),this.Nc(this.ai));"min"==g.nodeName&&(e=g.getAttributeNode("pan"),this.pan.min=1*(e?e.nodeValue:0),e=g.getAttributeNode("tilt"),this.i.min=1*(e?e.nodeValue:-90),e=g.getAttributeNode("fov"),this.f.min=1*(e?e.nodeValue:5),1E-20>this.f.min&&(this.f.min=1E-20),e=g.getAttributeNode("fovpixel"),this.f.Gg=1*(e?e.nodeValue: 0));if("max"==g.nodeName){e=g.getAttributeNode("pan");this.pan.max=1*(e?e.nodeValue:0);e=g.getAttributeNode("tilt");this.i.max=1*(e?e.nodeValue:90);e=g.getAttributeNode("fov");this.f.max=1*(e?e.nodeValue:120);180<=this.f.max&&(this.f.max=179.9);if(e=g.getAttributeNode("fovstereographic"))this.f.vj=1*e.nodeValue;if(e=g.getAttributeNode("fovfisheye"))this.f.uj=1*e.nodeValue;if(e=g.getAttributeNode("scaletofit"))this.C.em=1==e.nodeValue}if("flyin"==g.nodeName){if(e=g.getAttributeNode("projection"))this.wc.Eb= Number(e.nodeValue);if(e=g.getAttributeNode("pan"))this.wc.pan=parseFloat(e.nodeValue);if(e=g.getAttributeNode("tilt"))this.wc.i=parseFloat(e.nodeValue);if(e=g.getAttributeNode("fov"))this.wc.f=parseFloat(e.nodeValue)}g=g.nextSibling}}if("autorotate"==d.nodeName){if(e=d.getAttributeNode("speed"))this.l.speed=1*e.nodeValue;if(e=d.getAttributeNode("delay"))this.l.timeout=1*e.nodeValue;if(e=d.getAttributeNode("returntohorizon"))this.l.ti=1*e.nodeValue;if(e=d.getAttributeNode("nodedelay"))this.l.Yh=1* e.nodeValue;if(e=d.getAttributeNode("noderandom"))this.l.wj=1==e.nodeValue;this.Qd&&(this.l.enabled=!0,this.l.Pe=!0,this.l.active=!1);this.l.Bd=0;if(e=d.getAttributeNode("startloaded"))this.l.Ug=1==e.nodeValue,this.l.Ug&&(this.l.active=!1);if(e=d.getAttributeNode("useanimation"))this.l.eh=1==e.nodeValue,this.l.Kf=this.l.eh;if(e=d.getAttributeNode("syncanimationwithvideo"))this.l.Sj=1==e.nodeValue}if("animation"==d.nodeName){if(e=d.getAttributeNode("syncanimationwithvideo"))this.l.Sj=1==e.nodeValue; if(e=d.getAttributeNode("useinautorotation"))this.l.eh=1==e.nodeValue;if(e=d.getAttributeNode("animsequence"))this.l.oh=e.nodeValue,this.Qd&&(this.l.Kd=this.l.oh);this.za=[];for(g=d.firstChild;g;){if("clip"==g.nodeName){this.w=new p.ek;if(e=g.getAttributeNode("animtitle"))this.w.Oe=e.nodeValue.toString();if(e=g.getAttributeNode("cliptitle"))this.w.cb=e.nodeValue.toString();if(e=g.getAttributeNode("nodeid"))this.w.Fq=e.nodeValue.toString();if(e=g.getAttributeNode("length"))this.w.length=Number(e.nodeValue); if(e=g.getAttributeNode("animtype"))this.w.cn=Number(e.nodeValue);if(e=g.getAttributeNode("nextcliptitle"))this.w.Kl=e.nodeValue.toString();if(e=g.getAttributeNode("nextclipnodeid"))this.w.Xh=e.nodeValue.toString();if(e=g.getAttributeNode("nextclipstartview"))this.w.To=e.nodeValue.toString();if(e=g.getAttributeNode("transitiontype"))this.w.kq=Number(e.nodeValue);var q=g.firstChild;for(this.w.W=[];q;){if("keyframe"==q.nodeName){var n=new p.Ec;if(e=q.getAttributeNode("time"))n.time=Number(e.nodeValue); if(e=q.getAttributeNode("value"))n.value=Number(e.nodeValue);if(e=q.getAttributeNode("valuestring"))n.ak=e.nodeValue.toString();if(e=q.getAttributeNode("transitiontime"))n.xb=Number(e.nodeValue);e=q.getAttributeNode("type");var y=0;e&&(n.type=Number(e.nodeValue),y=Number(e.nodeValue));if(e=q.getAttributeNode("property"))n.ub=Number(e.nodeValue);if(e=q.getAttributeNode("additionaltrackid"))n.mh=e.nodeValue.toString();if(1==y||2==y){if(e=q.getAttributeNode("bezierintime"))n.ge=Number(e.nodeValue);if(e= q.getAttributeNode("bezierinvalue"))n.Vc=Number(e.nodeValue);if(e=q.getAttributeNode("bezierouttime"))n.he=Number(e.nodeValue);if(e=q.getAttributeNode("bezieroutvalue"))n.ie=Number(e.nodeValue)}this.w.W.push(n)}q=q.nextSibling}this.za.push(this.w)}g=g.nextSibling}}"input"==d.nodeName&&(f||(f=d));if(f)for(q=0;6>q;q++)e=f.getAttributeNode("prev"+q+"url"),this.We[q]=e?String(e.nodeValue):"";"altinput"==d.nodeName&&(g=0,(e=d.getAttributeNode("screensize"))&&(g=1*e.nodeValue),0h&&(h= g,f=d));if("control"==d.nodeName&&this.Qd){if(e=d.getAttributeNode("simulatemass"))this.Ba.enabled=1==e.nodeValue;if(e=d.getAttributeNode("rubberband"))this.C.dm=1==e.nodeValue;if(e=d.getAttributeNode("locked"))this.C.Ab=1==e.nodeValue;e&&(this.C.ue=1==e.nodeValue);if(e=d.getAttributeNode("lockedmouse"))this.C.Ab=1==e.nodeValue;if(e=d.getAttributeNode("lockedkeyboard"))this.C.ue=1==e.nodeValue;if(e=d.getAttributeNode("lockedkeyboardzoom"))this.C.Jo=1==e.nodeValue;if(e=d.getAttributeNode("lockedwheel"))this.C.kd= 1==e.nodeValue;if(e=d.getAttributeNode("invertwheel"))this.C.pl=1==e.nodeValue;if(e=d.getAttributeNode("speedwheel"))this.C.mm=1*e.nodeValue;if(e=d.getAttributeNode("invertcontrol"))this.C.Ad=1==e.nodeValue;if(e=d.getAttributeNode("sensitivity"))this.C.sensitivity=1*e.nodeValue,1>this.C.sensitivity&&(this.C.sensitivity=1);if(e=d.getAttributeNode("dblclickfullscreen"))this.C.Wi=1==e.nodeValue;if(e=d.getAttributeNode("contextfullscreen"))this.C.Zf=1==e.nodeValue;if(e=d.getAttributeNode("contextprojections"))this.C.rh= 1==e.nodeValue;if(e=d.getAttributeNode("hideabout"))this.C.ef=1==e.nodeValue;for(g=d.firstChild;g;)"menulink"==g.nodeName&&(q={text:"",url:""},e=g.getAttributeNode("text"),q.text=e.nodeValue,e=g.getAttributeNode("url"),q.url=e.nodeValue,this.Fg.push(q)),g=g.nextSibling}if("transition"==d.nodeName&&this.Qd){if(e=d.getAttributeNode("enabled"))this.B.enabled=1==e.nodeValue;if(e=d.getAttributeNode("blendtime"))this.B.Tf=1*e.nodeValue;if(e=d.getAttributeNode("blendcolor"))this.B.Re=e.nodeValue.toString(); if(e=d.getAttributeNode("type"))this.B.type=e.nodeValue.toString();if(e=d.getAttributeNode("softedge"))this.B.Bc=1*e.nodeValue;if(e=d.getAttributeNode("zoomin"))this.B.Oa=1*e.nodeValue;if(e=d.getAttributeNode("zoomout"))this.B.ec=1*e.nodeValue;if(e=d.getAttributeNode("zoomfov"))this.B.Of=1*e.nodeValue;if(e=d.getAttributeNode("zoomspeed"))this.B.de=1*e.nodeValue;if(e=d.getAttributeNode("zoomoutpause"))this.B.Pf=1==e.nodeValue;"cut"==this.B.type&&(this.B.Tf=0)}if("soundstransition"==d.nodeName){if(e= d.getAttributeNode("enabled"))this.La.enabled=1==e.nodeValue;if(e=d.getAttributeNode("transitiontime"))this.La.xb=1*e.nodeValue;if(e=d.getAttributeNode("crossfade"))this.La.zk=1==e.nodeValue}if("flyintransition"==d.nodeName){if(e=d.getAttributeNode("enabled"))this.qb.enabled=1==e.nodeValue&&this.Z;if(e=d.getAttributeNode("speed"))this.qb.speed=1*e.nodeValue}"userdata"==d.nodeName&&(this.userdata=this.Lf=this.bg(d),this.zc[a.id]||(this.zc[a.id]=this.Fk(d),this.lf[a.id]=this.Gk(d)));if("hotspots"== d.nodeName)for(g=d.firstChild;g;){if("label"==g.nodeName&&this.Qd){q=this.A.Uj;if(e=g.getAttributeNode("enabled"))q.enabled=1==e.nodeValue;if(e=g.getAttributeNode("width"))q.width=1*e.nodeValue;if(e=g.getAttributeNode("height"))q.height=1*e.nodeValue;if(e=g.getAttributeNode("textcolor"))q.Vj=1*e.nodeValue;if(e=g.getAttributeNode("textalpha"))q.Tj=1*e.nodeValue;if(e=g.getAttributeNode("background"))q.background=1==e.nodeValue;if(e=g.getAttributeNode("backgroundalpha"))q.gc=1*e.nodeValue;if(e=g.getAttributeNode("backgroundcolor"))q.hc= 1*e.nodeValue;if(e=g.getAttributeNode("border"))q.Ji=1*e.nodeValue;if(e=g.getAttributeNode("bordercolor"))q.kc=1*e.nodeValue;if(e=g.getAttributeNode("borderalpha"))q.jc=1*e.nodeValue;if(e=g.getAttributeNode("borderradius"))q.Ii=1*e.nodeValue;if(e=g.getAttributeNode("wordwrap"))q.Bi=1==e.nodeValue}if("polystyle"==g.nodeName&&this.Qd){if(e=g.getAttributeNode("mode"))this.A.mode=1*e.nodeValue;if(e=g.getAttributeNode("bordercolor"))this.A.kc=1*e.nodeValue;if(e=g.getAttributeNode("backgroundcolor"))this.A.hc= 1*e.nodeValue;if(e=g.getAttributeNode("borderalpha"))this.A.jc=1*e.nodeValue;if(e=g.getAttributeNode("backgroundalpha"))this.A.gc=1*e.nodeValue;if(e=g.getAttributeNode("handcursor"))this.A.cf=1==e.nodeValue}e=void 0;"hotspot"==g.nodeName&&(e=new p.lh(this),e.type="point",e.Nb(g),this.P.push(e));"polyhotspot"==g.nodeName&&(e=new p.lh(this),e.type="poly",e.Nb(g),this.P.push(e));g=g.nextSibling}if("sounds"==d.nodeName||"media"==d.nodeName)for(g=d.firstChild;g;){if("sound"==g.nodeName&&!this.Ll)for(e= new p.Xm(this),e.Nb(g),this.Fb||e.addElement(),q=0;qq;q++)(e=f.getAttributeNode("tile"+q+"url"))&&(this.th[q]=String(e.nodeValue)),e=f.getAttributeNode("tile"+q+"url1");for(q=0;6>q;q++)(e=f.getAttributeNode("prev"+q+"url"))&&(this.We[q]=String(e.nodeValue));if(e=f.getAttributeNode("tilesize"))this.uc=1*e.nodeValue;if(e=f.getAttributeNode("canvassize"))this.Uf=Number(e.nodeValue);if(e=f.getAttributeNode("tilescale"))this.Gf= 1*e.nodeValue;if(e=f.getAttributeNode("leveltileurl"))this.h.Hl=e.nodeValue;if(e=f.getAttributeNode("leveltilesize"))this.h.G=Number(e.nodeValue);if(e=f.getAttributeNode("levelbias"))this.h.Fl=Number(e.nodeValue);if(e=f.getAttributeNode("levelbiashidpi"))this.h.Gl=Number(e.nodeValue);e=f.getAttributeNode("overlap");this.$a.O=0;this.$a.pitch=0;e&&(this.h.Ja=Number(e.nodeValue));if(e=f.getAttributeNode("levelingroll"))this.$a.O=Number(e.nodeValue);if(e=f.getAttributeNode("levelingpitch"))this.$a.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.s.src=[];this.h.J=[];for(g=f.firstChild;g;){if("preview"==g.nodeName){if(e=g.getAttributeNode("color"))this.h.sf=e.nodeValue;if(e=g.getAttributeNode("strip"))this.h.Sl=1==e.nodeValue}if("video"==g.nodeName){if(e=g.getAttributeNode("format"))"3x2"==e.nodeValue&&(this.s.format= 14),"equirectangular"==e.nodeValue&&(this.s.format=1);if(e=g.getAttributeNode("flipy"))this.s.ej=Number(e.nodeValue);if(e=g.getAttributeNode("startonload"))this.s.Pj=1==e.nodeValue;if(e=g.getAttributeNode("startmutedmobile"))this.s.om=1==e.nodeValue;if(e=g.getAttributeNode("bleed"))this.s.Qe=Number(e.nodeValue);if(e=g.getAttributeNode("endaction"))this.s.me=String(e.nodeValue);if(e=g.getAttributeNode("width"))this.s.width=Number(e.nodeValue);if(e=g.getAttributeNode("height"))this.s.height=Number(e.nodeValue); for(q=g.firstChild;q;)"source"==q.nodeName&&(e=q.getAttributeNode("url"))&&this.s.src.push(e.nodeValue.toString()),q=q.nextSibling}if("level"==g.nodeName){f=new p.hk;e=g.getAttributeNode("width");f.width=1*(e?e.nodeValue:1);e=g.getAttributeNode("height");f.height=1*(e?e.nodeValue:f.width);if(e=g.getAttributeNode("preload"))f.cache=1==e.nodeValue;if(e=g.getAttributeNode("preview"))f.rf=1==e.nodeValue;f.L=Math.floor((f.width+this.h.G-1)/this.h.G);f.fa=Math.floor((f.height+this.h.G-1)/this.h.G);this.h.J.push(f)}g= g.nextSibling}this.h.qj=this.h.J.length}this.df=!0;this.$g&&(this.Z=this.Sc=!1,this.lc||(this.M("dummy rendering"),this.lc=document.createElement("canvas"),this.lc.width=100,this.lc.height=100,this.lc.id="dummycanvas",this.D.appendChild(this.lc)),this.Rc());this.Z&&this.H&&(this.na.nl(this.Gf),this.na.ol());this.Sc&&(0a;a++){var k=a%3*f+r.s.Qe;var g=k+f-2*r.s.Qe;var h=4;3>a&&(h+=f);var l=h+f-2*r.s.Qe;for(b=0;4>b;b++){d.x=-1;d.y=-1;d.z=1;for(var m=0;ma.time&&this.w.W[b].timea.Qc;)a.Qc=a.Qc+360;for(;180f;)f+=360;for(;180x)for(;r<=t&&u>x;)u=new p.vc,u.Hi(w,B,C,z,r),u=u.y,r++;else r=1;r>=.8*t&&(y=r=Math.round(.8*t));0==r&&(r=1);x=void 0;4==a.Rg?x=120:x=this.ig(a.Rg);u=a.Ff;if(u>x)for(;v>r&&u>x;)u=new p.vc,u.Hi(w,B,C,z,v),u=u.y,v--}w=new p.Ec;w.time=0;w.ub= 0;w.value=a.Ef;w.type=1;w.he=t/3;w.ie=a.Xe?a.Ef:a.Ef+f/3;b.W.push(w);w=new p.Ec;w.time=0;w.ub=1;w.value=a.Sg;w.type=1;w.he=t/3;w.ie=a.Xe?a.Sg:a.Sg+e/3;b.W.push(w);w=new p.Ec;w.time=0;w.ub=2;w.value=a.Gd;w.type=1;w.he=t/3;w.ie=a.Xe?a.Gd:a.Gd+h/3;b.W.push(w);w=new p.Ec;w.time=0;w.ub=3;w.value=a.Rg;w.type=0;w.xb=0;b.W.push(w);d&&(w=new p.Ec,w.time=r,w.ub=3,w.value=a.qd,w.type=0,w.xb=v-r,b.W.push(w));w=new p.Ec;w.time=t;w.ub=0;w.value=a.Ef+f;w.type=1;w.ge=2*t/3;a.ke&&!a.le?w.Vc=w.value:w.Vc=w.value-f/ 3;a.le&&(w.he=t+q,w.ie=w.value+q/t*f);b.W.push(w);w=new p.Ec;w.time=t;w.ub=1;w.value=a.$d;w.type=1;w.ge=2*t/3;a.ke&&!a.le?w.Vc=a.$d:w.Vc=a.$d-e/3;a.le&&(w.he=t+q,w.ie=w.value+q/t*e);b.W.push(w);w=new p.Ec;w.time=y;w.ub=2;w.value=n;w.type=1;w.ge=2*y/3;a.ke?w.Vc=n:w.Vc=n-h/3;b.W.push(w);a.le&&(w=new p.Ec,w.time=t+g,w.ub=0,w.value=a.Qc,w.type=1,w.ge=t+g-q,w.Vc=a.Qc,b.W.push(w),w=new p.Ec,w.time=t+g,w.ub=1,w.value=a.$d,w.type=1,w.ge=t+g-q,w.Vc=a.$d,b.W.push(w));this.za.push(b);return b};b.prototype.wq= function(){this.s.b&&this.s.b.play()};b.prototype.xq=function(){this.s.b&&(this.s.b.pause(),this.s.b.currentTime=0)};b.prototype.vq=function(){this.s.b&&this.s.b.pause()};b.prototype.Np=function(a){this.s.b&&(0>a&&(a=0),a>this.s.b.duration&&(a=this.s.b.duration-.1),this.s.b.currentTime=a,this.update())};b.prototype.vo=function(){return this.s.b?this.s.b.currentTime:0};b.prototype.uo=function(){if(this.s.b)return this.s.b};b.prototype.Mp=function(a){if(this.s.b){var b=!this.s.b.paused&&!this.s.b.ended, d=this.s.b.currentTime;this.s.b.pause();isNaN(parseInt(a,10))?this.s.b.src=String(a):this.s.b.src=this.s.src[parseInt(a,10)];b&&(this.s.b.onloadedmetadata=function(){this.currentTime=d;this.play();this.onloadedmetadata=null});this.s.b.currentTime=d}};b.prototype.Cn=function(){this.Ll=!0};return b}();p.a=d})(ggP2VR||(ggP2VR={}));window.ggHasHtml5Css3D=U;window.ggHasWebGL=V;window.pano2vrPlayer=ggP2VR.a;ggP2VR.a.prototype.getVersion=ggP2VR.a.prototype.el;ggP2VR.a.prototype.readConfigString=ggP2VR.a.prototype.Cj; ggP2VR.a.prototype.readConfigUrl=ggP2VR.a.prototype.Ul;ggP2VR.a.prototype.readConfigUrlAsync=ggP2VR.a.prototype.lp;ggP2VR.a.prototype.readConfigXml=ggP2VR.a.prototype.Vl;ggP2VR.a.prototype.openUrl=ggP2VR.a.prototype.yj;ggP2VR.a.prototype.openNext=ggP2VR.a.prototype.ye;ggP2VR.a.prototype.setMargins=ggP2VR.a.prototype.yp;ggP2VR.a.prototype.addListener=ggP2VR.a.prototype.addListener;ggP2VR.a.prototype.on=ggP2VR.a.prototype.addListener;ggP2VR.a.prototype.removeEventListener=ggP2VR.a.prototype.removeEventListener; ggP2VR.a.prototype.off=ggP2VR.a.prototype.removeEventListener;ggP2VR.a.prototype.detectBrowser=ggP2VR.a.prototype.Dk;ggP2VR.a.prototype.initWebGL=ggP2VR.a.prototype.Ic;ggP2VR.a.prototype.getPercentLoaded=ggP2VR.a.prototype.lo;ggP2VR.a.prototype.setBasePath=ggP2VR.a.prototype.sp;ggP2VR.a.prototype.getBasePath=ggP2VR.a.prototype.Kn;ggP2VR.a.prototype.setViewerSize=ggP2VR.a.prototype.jm;ggP2VR.a.prototype.getViewerSize=ggP2VR.a.prototype.yo;ggP2VR.a.prototype.setSkinObject=ggP2VR.a.prototype.Ip; ggP2VR.a.prototype.changeViewMode=ggP2VR.a.prototype.qn;ggP2VR.a.prototype.getViewMode=ggP2VR.a.prototype.wo;ggP2VR.a.prototype.changePolygonMode=ggP2VR.a.prototype.uk;ggP2VR.a.prototype.setPolygonMode=ggP2VR.a.prototype.uk;ggP2VR.a.prototype.getPolygonMode=ggP2VR.a.prototype.no;ggP2VR.a.prototype.showOnePolyHotspot=ggP2VR.a.prototype.km;ggP2VR.a.prototype.hideOnePolyHotspot=ggP2VR.a.prototype.jl;ggP2VR.a.prototype.changePolyHotspotColor=ggP2VR.a.prototype.nn; ggP2VR.a.prototype.toggleOnePolyHotspot=ggP2VR.a.prototype.fq;ggP2VR.a.prototype.changeViewState=ggP2VR.a.prototype.rn;ggP2VR.a.prototype.getViewState=ggP2VR.a.prototype.xo;ggP2VR.a.prototype.setRenderFlags=ggP2VR.a.prototype.Bp;ggP2VR.a.prototype.getRenderFlags=ggP2VR.a.prototype.qo;ggP2VR.a.prototype.setMaxTileCount=ggP2VR.a.prototype.hm;ggP2VR.a.prototype.getVFov=ggP2VR.a.prototype.Ib;ggP2VR.a.prototype.setVFov=ggP2VR.a.prototype.li;ggP2VR.a.prototype.getHFov=ggP2VR.a.prototype.On; ggP2VR.a.prototype.updatePanorama=ggP2VR.a.prototype.Zg;ggP2VR.a.prototype.isTouching=ggP2VR.a.prototype.wl;ggP2VR.a.prototype.getIsMobile=ggP2VR.a.prototype.Tn;ggP2VR.a.prototype.setIsMobile=ggP2VR.a.prototype.wp;ggP2VR.a.prototype.getIsTour=ggP2VR.a.prototype.Un;ggP2VR.a.prototype.getIsAutorotating=ggP2VR.a.prototype.Qn;ggP2VR.a.prototype.getIsLoading=ggP2VR.a.prototype.Sn;ggP2VR.a.prototype.getIsLoaded=ggP2VR.a.prototype.Bh;ggP2VR.a.prototype.getIsTileLoading=ggP2VR.a.prototype.Vk; ggP2VR.a.prototype.getLastActivity=ggP2VR.a.prototype.Vn;ggP2VR.a.prototype.getPan=ggP2VR.a.prototype.kg;ggP2VR.a.prototype.getPanNorth=ggP2VR.a.prototype.pe;ggP2VR.a.prototype.getPanDest=ggP2VR.a.prototype.ko;ggP2VR.a.prototype.getPanN=ggP2VR.a.prototype.Yk;ggP2VR.a.prototype.setPan=ggP2VR.a.prototype.Af;ggP2VR.a.prototype.setPanNorth=ggP2VR.a.prototype.Jj;ggP2VR.a.prototype.changePan=ggP2VR.a.prototype.tk;ggP2VR.a.prototype.changePanLog=ggP2VR.a.prototype.mn;ggP2VR.a.prototype.getTilt=ggP2VR.a.prototype.Ch; ggP2VR.a.prototype.getTiltDest=ggP2VR.a.prototype.ro;ggP2VR.a.prototype.setTilt=ggP2VR.a.prototype.Bf;ggP2VR.a.prototype.changeTilt=ggP2VR.a.prototype.vk;ggP2VR.a.prototype.changeTiltLog=ggP2VR.a.prototype.pn;ggP2VR.a.prototype.getFov=ggP2VR.a.prototype.fj;ggP2VR.a.prototype.getFovDest=ggP2VR.a.prototype.Nn;ggP2VR.a.prototype.setFov=ggP2VR.a.prototype.yf;ggP2VR.a.prototype.changeFov=ggP2VR.a.prototype.sk;ggP2VR.a.prototype.changeFovLog=ggP2VR.a.prototype.Mi;ggP2VR.a.prototype.getRoll=ggP2VR.a.prototype.al; ggP2VR.a.prototype.setRoll=ggP2VR.a.prototype.Kj;ggP2VR.a.prototype.setPanTilt=ggP2VR.a.prototype.Ap;ggP2VR.a.prototype.setPanTiltFov=ggP2VR.a.prototype.ji;ggP2VR.a.prototype.setDefaultView=ggP2VR.a.prototype.up;ggP2VR.a.prototype.setLocked=ggP2VR.a.prototype.xp;ggP2VR.a.prototype.setLockedMouse=ggP2VR.a.prototype.Og;ggP2VR.a.prototype.setLockedKeyboard=ggP2VR.a.prototype.Ng;ggP2VR.a.prototype.getLockedKeyboard=ggP2VR.a.prototype.Xn;ggP2VR.a.prototype.setLockedWheel=ggP2VR.a.prototype.Pg; ggP2VR.a.prototype.moveTo=ggP2VR.a.prototype.moveTo;ggP2VR.a.prototype.moveToEx=ggP2VR.a.prototype.Vh;ggP2VR.a.prototype.moveToDefaultView=ggP2VR.a.prototype.Oo;ggP2VR.a.prototype.moveToDefaultViewEx=ggP2VR.a.prototype.Po;ggP2VR.a.prototype.addHotspotElements=ggP2VR.a.prototype.jk;ggP2VR.a.prototype.playSound=ggP2VR.a.prototype.Ae;ggP2VR.a.prototype.playPauseSound=ggP2VR.a.prototype.Rl;ggP2VR.a.prototype.playStopSound=ggP2VR.a.prototype.jp;ggP2VR.a.prototype.pauseSound=ggP2VR.a.prototype.zj; ggP2VR.a.prototype.activateSound=ggP2VR.a.prototype.$m;ggP2VR.a.prototype.soundGetTime=ggP2VR.a.prototype.Sp;ggP2VR.a.prototype.soundSetTime=ggP2VR.a.prototype.Tp;ggP2VR.a.prototype.setMediaVisibility=ggP2VR.a.prototype.zp;ggP2VR.a.prototype.isPlaying=ggP2VR.a.prototype.Xb;ggP2VR.a.prototype.stopSound=ggP2VR.a.prototype.pi;ggP2VR.a.prototype.setVolume=ggP2VR.a.prototype.Op;ggP2VR.a.prototype.changeVolume=ggP2VR.a.prototype.sn;ggP2VR.a.prototype.removeHotspots=ggP2VR.a.prototype.$l; ggP2VR.a.prototype.getHotspotsVisible=ggP2VR.a.prototype.Uk;ggP2VR.a.prototype.getCurrentPerspective=ggP2VR.a.prototype.dd;ggP2VR.a.prototype.addHotspot=ggP2VR.a.prototype.an;ggP2VR.a.prototype.updateHotspot=ggP2VR.a.prototype.nq;ggP2VR.a.prototype.removeHotspot=ggP2VR.a.prototype.mp;ggP2VR.a.prototype.setActiveHotspot=ggP2VR.a.prototype.xf;ggP2VR.a.prototype.getPointHotspotIds=ggP2VR.a.prototype.mo;ggP2VR.a.prototype.getHotspot=ggP2VR.a.prototype.Pn;ggP2VR.a.prototype.setFullscreen=ggP2VR.a.prototype.zf; ggP2VR.a.prototype.toggleFullscreen=ggP2VR.a.prototype.ui;ggP2VR.a.prototype.enterFullscreen=ggP2VR.a.prototype.Dn;ggP2VR.a.prototype.exitFullscreen=ggP2VR.a.prototype.exitFullscreen;ggP2VR.a.prototype.getIsFullscreen=ggP2VR.a.prototype.Rn;ggP2VR.a.prototype.startAutorotate=ggP2VR.a.prototype.Xp;ggP2VR.a.prototype.stopAutorotate=ggP2VR.a.prototype.$p;ggP2VR.a.prototype.toggleAutorotate=ggP2VR.a.prototype.eq;ggP2VR.a.prototype.startAnimation=ggP2VR.a.prototype.Wp;ggP2VR.a.prototype.createLayers=ggP2VR.a.prototype.yk; ggP2VR.a.prototype.removePanorama=ggP2VR.a.prototype.fi;ggP2VR.a.prototype.getScreenResolution=ggP2VR.a.prototype.bl;ggP2VR.a.prototype.getMaxScreenResolution=ggP2VR.a.prototype.Wk;ggP2VR.a.prototype.getNodeIds=ggP2VR.a.prototype.co;ggP2VR.a.prototype.getNodeUserdata=ggP2VR.a.prototype.gj;ggP2VR.a.prototype.getNodeLatLng=ggP2VR.a.prototype.eo;ggP2VR.a.prototype.getNodeTitle=ggP2VR.a.prototype.io;ggP2VR.a.prototype.getCurrentNode=ggP2VR.a.prototype.Tk;ggP2VR.a.prototype.getNextNode=ggP2VR.a.prototype.Xk; ggP2VR.a.prototype.getPrevNode=ggP2VR.a.prototype.po;ggP2VR.a.prototype.getLastVisitedNode=ggP2VR.a.prototype.Wn;ggP2VR.a.prototype.getCurrentPointHotspots=ggP2VR.a.prototype.Mn;ggP2VR.a.prototype.getPositionAngles=ggP2VR.a.prototype.oo;ggP2VR.a.prototype.getPositionRawAngles=ggP2VR.a.prototype.Zk;ggP2VR.a.prototype.nodeVisited=ggP2VR.a.prototype.Uo;ggP2VR.a.prototype.setElementIdPrefix=ggP2VR.a.prototype.vp;ggP2VR.a.prototype.videoPanoPlay=ggP2VR.a.prototype.wq;ggP2VR.a.prototype.videoPanoStop=ggP2VR.a.prototype.xq; ggP2VR.a.prototype.videoPanoPause=ggP2VR.a.prototype.vq;ggP2VR.a.prototype.getVideoPanoTime=ggP2VR.a.prototype.vo;ggP2VR.a.prototype.setVideoPanoTime=ggP2VR.a.prototype.Np;ggP2VR.a.prototype.getVideoPanoObject=ggP2VR.a.prototype.uo;ggP2VR.a.prototype.setVideoPanoSource=ggP2VR.a.prototype.Mp;ggP2VR.a.prototype.getMediaObject=ggP2VR.a.prototype.ao;ggP2VR.a.prototype.registerVideoElement=ggP2VR.a.prototype.Wl;ggP2VR.a.prototype.disableSoundLoading=ggP2VR.a.prototype.Cn; ggP2VR.a.prototype.setCrossOrigin=ggP2VR.a.prototype.tp;ggP2VR.a.prototype.setProjection=ggP2VR.a.prototype.Nc;ggP2VR.a.prototype.getProjection=ggP2VR.a.prototype.sa;ggP2VR.a.prototype.changeProjection=ggP2VR.a.prototype.Ni;ggP2VR.a.prototype.changeProjectionEx=ggP2VR.a.prototype.Ni;ggP2VR.a.prototype.changeLensflares=ggP2VR.a.prototype.ln;ggP2VR.a.prototype.setTransition=ggP2VR.a.prototype.Kp;ggP2VR.a.prototype.getMapType=ggP2VR.a.prototype.$n;ggP2VR.a.prototype.getMapDetails=ggP2VR.a.prototype.Zn; ggP2VR.a.prototype.getNodeMapCoords=ggP2VR.a.prototype.fo;ggP2VR.a.prototype.getNodeMapCoordsInPercent=ggP2VR.a.prototype.ho;ggP2VR.a.prototype.getMapContainingNode=ggP2VR.a.prototype.Yn;ggP2VR.a.prototype.addVariable=ggP2VR.a.prototype.bn;ggP2VR.a.prototype.setVariableOptions=ggP2VR.a.prototype.im;ggP2VR.a.prototype.setVariableValue=ggP2VR.a.prototype.Zd;ggP2VR.a.prototype.getVariableValue=ggP2VR.a.prototype.to;ggP2VR.a.prototype.setUseGyro=ggP2VR.a.prototype.Lp;ggP2VR.a.prototype.getUseGyro=ggP2VR.a.prototype.so; ggP2VR.a.prototype.getOS=ggP2VR.a.prototype.jo;ggP2VR.a.prototype.getBrowser=ggP2VR.a.prototype.Ln;ggP2VR.a.prototype.triggerEvent=ggP2VR.a.prototype.Y;ggP2VR.a.prototype.requestRedraw=ggP2VR.a.prototype.op;ggP2VR.a.prototype.getWebGlContext=ggP2VR.a.prototype.zo;