Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var l=!0,n=null,y=!1;
- function ea(g,t,m){this.x=g;this.y=t;this.a=m;this.o=function(D,g,m){this.x=D;this.y=g;this.a=m};this.toString=function(){return"("+this.x+","+this.y+","+this.a+")"};this.i=function(g){var m=Math.sin(g),g=Math.cos(g),o=this.y,t=this.a;this.y=g*o-m*t;this.a=m*o+g*t};this.j=function(g){var m=Math.sin(g),g=Math.cos(g),o=this.x,t=this.a;this.x=g*o+m*t;this.a=-m*o+g*t};this.F=function(g){var m=Math.sin(g),g=Math.cos(g),o=this.x,t=this.y;this.x=g*o-m*t;this.y=m*o+g*t};this.ha=function(){return new ea(this.x,this.y,
- this.a)};this.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.a*this.a)};this.M=function(g){return this.x*g.x+this.y*g.y+this.a*g.a};this.V=function(g,m){var o;o=Math.cos(m*Math.PI/180);this.x=o*Math.sin(g*Math.PI/180);this.y=Math.sin(m*Math.PI/180);this.a=o*Math.cos(g*Math.PI/180)};this.na=function(g,m,o){this.x=g.x*o+m.x*(1-o);this.y=g.y*o+m.y*(1-o);this.a=g.a*o+m.a*(1-o)}}
- glMatrixArrayType="undefined"!=typeof Float32Array?Float32Array:"undefined"!=typeof WebGLFloatArray?WebGLFloatArray:Array;function pb(g){g[0]=1;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=1;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=1;g[11]=0;g[12]=0;g[13]=0;g[14]=0;g[15]=1}
- function fc(g,t,m){var D,L=m[0],o=m[1],m=m[2],S=Math.sqrt(L*L+o*o+m*m);if(S){1!=S&&(S=1/S,L*=S,o*=S,m*=S);var na=Math.sin(t),wa=Math.cos(t),W=1-wa,t=g[0],S=g[1],Fa=g[2],xa=g[3],Ga=g[4],Ha=g[5],Ia=g[6],Za=g[7],$a=g[8],ab=g[9],bb=g[10],cb=g[11],Ja=L*L*W+wa,Ka=o*L*W+m*na,oa=m*L*W-o*na,ya=L*o*W-m*na,za=o*o*W+wa,Aa=m*o*W+L*na,Ba=L*m*W+o*na,L=o*m*W-L*na,o=m*m*W+wa;D?g!=D&&(D[12]=g[12],D[13]=g[13],D[14]=g[14],D[15]=g[15]):D=g;D[0]=t*Ja+Ga*Ka+$a*oa;D[1]=S*Ja+Ha*Ka+ab*oa;D[2]=Fa*Ja+Ia*Ka+bb*oa;D[3]=xa*Ja+
- Za*Ka+cb*oa;D[4]=t*ya+Ga*za+$a*Aa;D[5]=S*ya+Ha*za+ab*Aa;D[6]=Fa*ya+Ia*za+bb*Aa;D[7]=xa*ya+Za*za+cb*Aa;D[8]=t*Ba+Ga*L+$a*o;D[9]=S*Ba+Ha*L+ab*o;D[10]=Fa*Ba+Ia*L+bb*o;D[11]=xa*Ba+Za*L+cb*o}}
- function gc(){var g="perspective",t=["Webkit","Moz","O","ms","Ms"],m;m=y;for(m=0;m<t.length;m++)"undefined"!==typeof document.documentElement.style[t[m]+"Perspective"]&&(g=t[m]+"Perspective");"undefined"!==typeof document.documentElement.style[g]?"webkitPerspective"in document.documentElement.style?(g=document.createElement("style"),t=document.createElement("div"),m=document.head||document.getElementsByTagName("head")[0],g.textContent="@media (-webkit-transform-3d) {#ggswhtml5{height:5px}}",m.appendChild(g),
- t.id="ggswhtml5",document.documentElement.appendChild(t),m=5===t.offsetHeight,g.parentNode.removeChild(g),t.parentNode.removeChild(t)):m=l:m=y;return m}function hc(){var g;if(g=!!window.WebGLRenderingContext)try{var t=document.createElement("canvas");t.width=100;t.height=100;var m=t.getContext("webgl");m||(m=t.getContext("experimental-webgl"));g=m?l:y}catch(D){g=y}return g}
- function pano2vrPlayer(g){function t(a){ic="{"==a.charAt(0)?a.substr(1,a.length-2):"";d.skinObj&&d.skinObj.changeActiveNode&&d.skinObj.changeActiveNode(a)}function m(a){for(var c=0;c<r.length;c++)if(r[c].id==a)return r[c];for(c=0;c<x.length;c++)if(x[c].id==a)return x[c];return n}function D(a){try{a.obj=document.createElement("img");if(1==a.g||4==a.g)a.obj.onclick=function(){a.l=!a.l;a.obj.style.zIndex=a.l?80:0;a.obj.style[ga]="all 1s ease 0s";a.I=l;a.obj.addEventListener(o(),function(){a.I=y;a.obj.style[ga]=
- "all 0s linear 0s"},y);Eb()};a.obj.setAttribute("src",Z(a.url));a.n&&(a.obj.width=a.n);a.m&&(a.obj.height=a.m);La.push(a);a.obj.style.position="absolute";var c=C.firstChild;c?C.insertBefore(a.obj,c):C.appendChild(a.obj)}catch(b){$("Error addimage:"+b)}}function L(a){try{a.obj=document.createElement("video");if(1==a.g||4==a.g)a.obj.onclick=function(){a.l=!a.l;a.l?(a.obj.style.zIndex=80,a.obj.style[ga]="all 1s ease 0s",d.playSound(a.id)):(a.obj.style.zIndex=0,a.obj.style[ga]="all 1s ease 0s");a.I=l;
- a.obj.addEventListener(o(),function(){a.I=y;a.obj.style[ga]="all 0s linear 0s"},y);Eb()};2==a.g&&(a.obj.onclick=function(){d.playPauseSound(a.id)});var c;for(c=0;c<a.url.length;c++){var b;b=document.createElement("source");b.setAttribute("src",Z(a.url[c]));a.obj.appendChild(b)}a.obj.volume=a.b*P;0==a.loop&&(a.obj.d=1E7);1<=a.loop&&(a.obj.d=a.loop-1);if((1==a.mode||2==a.mode||3==a.mode||5==a.mode)&&0<=a.loop)a.obj.autoplay=l;x.push(a);a.obj.style.position="absolute";a.n&&(a.obj.width=a.n);a.m&&(a.obj.height=
- a.m);var h=C.firstChild;h?C.insertBefore(a.obj,h):C.appendChild(a.obj);a.Y=l;a.obj.addEventListener("ended",function(){if(0<this.d)return this.d--,this.currentTime=0,this.play(),l;this.Y=y},y)}catch(e){$(e)}}function o(){var a,c=document.createElement("fakeelement"),b={transition:"transitionEnd",OTransition:"oTransitionEnd",MSTransition:"msTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(a in b)if(void 0!==c.style[a])return b[a]}function S(a){var c=-1;try{for(var b=
- 0;b<r.length;b++)r[b].id==a.id&&r[b].obj!=n&&r[b].url.join()==a.url.join()&&r[b].loop==a.loop&&r[b].mode==a.mode&&(c=b);if(-1==c){for(b=0;b<r.length;b++)if(r[b].id==a.id&&r[b].obj!=n){try{r[b].obj.pause()}catch(d){$(d)}try{r[b].obj.parentElement.removeChild(r[b].obj),delete r[b].obj,r[b].obj=n}catch(e){$(e)}c=b}a.obj=document.createElement("audio");for(b=0;b<a.url.length;b++){var f;f=document.createElement("source");""!=a.url[b]&&"#"!=a.url[b]&&(f.setAttribute("src",Z(a.url[b])),a.obj.appendChild(f))}a.obj.volume=
- a.b*P;0==a.loop&&(a.obj.d=1E7);1<=a.loop&&(a.obj.d=a.loop-1);if((1==a.mode||2==a.mode||3==a.mode||5==a.mode)&&0<=a.loop)a.obj.autoplay=l;0<=c?r[c]=a:r.push(a);0<a.obj.childNodes.length&&(B.appendChild(a.obj),a.obj.addEventListener("ended",function(){if(0<this.d)return this.d--,this.currentTime=0,this.play(),l},y))}}catch(k){$(k)}}function na(){var a;a=document.createElement("div");a.innerHTML=Mc("PGRpdiBzdHlsZT0icG9zaXRpb246IHJlbGF0aXZlOyBsZWZ0OiAwcHg7IHJpZ2h0OiAwcHg7IHRvcDogNDAlOyBib3R0b206IDYwJTsgbWFyZ2luOiBhdXRvOyB3aWR0aDogMThlbTsgaGVpZ2h0OiA0ZW07IGJvcmRlcjogM3B4IHNvbGlkICM1NTU7IGJveC1zaGFkb3c6IDVweCA1cHggMTBweCAjMzMzOyBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsgZGlzcGxheTogdGFibGU7IGZvbnQtZmFtaWx5OiBWZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IDEwcHQ7IG9wYWNpdHk6IDAuOTU7IGJvcmRlci1yYWRpdXM6IDE1cHg7Ij48cCBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBkaXNwbGF5OiB0YWJsZS1jZWxsOyB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyAiPkNyZWF0ZWQgd2l0aCA8YSBocmVmPSJodHRwOi8vcGFubzJ2ci5jb20vIiB0YXJnZXQ9Il9ibGFuayI+UGFubzJWUjwvYT48L3A+PC9kaXY+JzsNCgkJ");
- a.setAttribute("style","top: 0px;left: 0px;width: 100px;height: 100px;overflow: hidden;z-index: 5000;position:relative;");B.replaceChild(a,C);a.style.width=0+ha+Fb+z+"px";a.style.height=0+ia+Gb+s+"px";a.onclick=function(){B.replaceChild(C,a)};a.oncontextmenu=function(){B.replaceChild(C,a)}}function wa(){setTimeout(function(){d.setFullscreen(y)},10);setTimeout(function(){d.setFullscreen(y)},100)}function W(){Nc(W);var a=new Date;0<=N&&(Ca?(aa=0.4*(pa-db),ba=0.4*(qa-eb),db+=aa,eb+=ba,Hb(aa,ba)):(aa=
- 0.1*-Ma,ba=0.1*-Na,Hb(0.1*-Ma,0.1*-Na)),d.dirty=l);qb&&(d.changeFov(0.4*(X-u)),0.0010>Math.abs(X-u)/u&&(qb=y),d.dirty=l);if(Ib&&(0!=aa||0!=ba)&&0>N)aa*=0.9,ba*=0.9,0.1>aa*aa+ba*ba?ba=aa=0:(Hb(aa,ba),d.dirty=l);if(0!=Oa){switch(Oa){case 37:d.changePan(1,l);break;case 38:d.changeTilt(1,l);break;case 39:d.changePan(-1,l);break;case 40:d.changeTilt(-1,l);break;case 43:case 107:case 16:d.changeFovLog(-1,l);break;case 17:case 18:case 109:case 45:case 91:d.changeFovLog(1,l)}d.dirty=l}if(!d.isLoaded&&d.hasConfig){var c,
- b=0;Pa&&(d.finalPanorama(),Pa=y);for(c=0;c<d.checkLoaded.length;c++)d.checkLoaded[c].complete&&"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYBgeACDAAADIAAE3iTbkAAAAAElFTkSuQmCC"!=d.checkLoaded[c].src&&b++;b==d.checkLoaded.length?(rb=1,d.isLoaded=l,d.divSkin&&d.divSkin.ggLoaded&&d.divSkin.ggLoaded()):rb=b/(1*d.checkLoaded.length)}for(;360<q;)q-=360;for(;-360>q;)q+=360;if(fb){A=Jb-q;if(360==Qa-Ra){for(;-180>A;)A+=
- 360;for(;180<A;)A-=360}K=Kb-p;H=Lb-u;c=Math.sqrt(A*A+K*K+H*H);if(10*c<sb){if(fb=y,H=K=A=0,d.onMoveComplete)d.onMoveComplete()}else c=c>5*sb?sb/c:0.2,A*=c,K*=c,H*=c;q+=A;p+=K;u+=H;Mb=a.getTime();d.dirty=l}else if(ca)if(c=a.getTime()-Sa,0<Nb&&d.Q&&c>=1E3*Nb){if(1<gb.length){c=1E3;do b=gb[Math.floor(Math.random()*gb.length)];while(c--&&b==ic);Sa=a.getTime();d.openNext("{"+b+"}")}}else K=tb*(0-p)/100,H=tb*(ub-u)/100,A=0.95*A+0.05*-ra,q+=A,p+=K,u+=H,d.dirty=l;else if(hb&&0>N&&a.getTime()-Mb>1E3*Ob&&(ca=
- l,Sa=a.getTime(),H=K=A=0),Ib&&0==Oa&&0>N&&(0!=A||0!=K||0!=H))A*=0.9,K*=0.9,H*=0.9,q+=A,p+=K,d.changeFovLog(H),1.0E-4>A*A+K*K+H*H&&(H=K=A=0),d.dirty=l;jc&&(vb?a.getTime()-Pb>=1E3*kc&&(vb=y):(Da+=Ta,0>Da&&(Da=0,Ta=-Ta,vb=l,Pb=a.getTime()),1<Da&&(Da=1,Ta=-Ta,vb=l,Pb=a.getTime()),d.setOverlayOpacity(Da)));if(0<x.length)for(c=0;c<x.length;c++)x[c].Y&&x[c].la!=x[c].obj.currentTime&&(x[c].la=x[c].obj.currentTime,!x[c].fa&&0<x[c].obj.videoHeight&&(x[c].fa=x[c].obj.videoWidth/x[c].obj.videoHeight));if(0<T){if(2==
- T)for(c=0;c<G.length;c++)a=G[c],"poly"==a.type&&a.k!=a.c&&(a.k>a.c?(a.c+=0.05,a.k<a.c&&(a.c=a.k)):(a.c-=0.05,a.k>a.c&&(a.c=a.k)),d.dirty=l);3==T&&sa!=da&&(sa>da?(da+=0.05,sa<da&&(da=sa)):(da-=0.05,sa>da&&(da=sa)),d.dirty=l)}a=new ea;a.V(q,p);for(c=0;c<r.length+x.length;c++)if(b=c<r.length?r[c]:x[c-r.length],b.obj){var h;h=b.pan-q;for(var e=b.tilt-p;-180>h;)h+=360;for(;180<h;)h-=360;var f=b.s,k=b.field;0==k&&(k=0.01);0>k&&(k=u);b.N||(b.N=new ea,b.N.V(b.pan,b.tilt));if(3==b.mode){h=Math.abs(h);h=h<
- b.e?0:h-b.e;var g=b.b,e=Math.abs(e),e=e<b.r?0:e-b.r,m=1-e/k;if(Math.abs(h)>k||0>m)b.obj.volume=g*f*P;else{var o=1-Math.abs(h/k);b.obj.volume=g*(f+(1-f)*m*o)*P}}4==b.mode&&b.sa==n&&(Math.abs(h)<b.e&&Math.abs(e)<b.r?b.G||(b.G=l,b.obj.play()):b.G=y);5==b.mode&&(h=180*Math.acos(a.M(b.N))/Math.PI,h<b.e?b.obj.volume=b.b*P:(h-=b.e,h<k&&0<k?(o=1-Math.abs(h/k),b.obj.volume=b.b*(f+(1-f)*o)*P):b.obj.volume=f*P));6==b.mode&&(h=180*Math.acos(a.M(b.N))/Math.PI,Math.abs(h)<b.e?b.G||(b.G=l,b.obj.play()):b.G=y)}d.dirty&&
- (d.dirty=y,d.updatePanorama())}function Fa(a){d.skinObj&&d.skinObj.hotspotProxyClick&&d.skinObj.hotspotProxyClick(a.id);""!=a.url&&(d.openUrl(a.url,a.target),Aa(-1,-1))}function xa(){d.isFullscreen&&!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.fullScreen&&d.exitFullscreen()}function Ga(){Oa=0}function Ha(){Oa=0;I()}function Ia(a){wb||(Oa=a.keyCode,I())}function Za(a){U||(a.preventDefault(),I())}function $a(a){U||(a.preventDefault(),qb=l,X=xb/Math.sqrt(event.scale),X>ja&&(X=ja),
- X<ka&&(X=ka),d.dirty=l,I())}function ab(a){Qb=l;U||(a.preventDefault(),xb=u,I())}function bb(a){U||(a.preventDefault(),N=-2)}function cb(a){if(!U){a.preventDefault();0<=N&&I();var c=(new Date).getTime(),a=-1,b,h,e=l,a=Math.abs(lc-ib)+Math.abs(mc-jb);if(0<=a&&20>a){b=Rb(d.mouse.x,d.mouse.y);if(d.f){a=d.f;for(h=y;a&&a!=d.control;)a.onclick&&!h&&(a.onclick(),h=l,e=y),a=a.parentNode}a=Math.abs(nc-ib)+Math.abs(oc-jb);if(700>c-d.C&&0<=a&&20>a){d.f==d.control&&Sb&&setTimeout(function(){d.toggleFullscreen()},
- 1);if(d.f){a=d.f;for(h=y;a&&a!=d.control;)a.ondblclick&&!h&&(a.ondblclick(),h=l,e=y),a=a.parentNode}d.C=0}else d.C=c;nc=ib;oc=jb}if(d.f){a=d.f;for(h=y;a&&a!=d.control;){if(a.onmouseout)a.onmouseout();a.onmouseup&&!h&&(a.onmouseup(),h=l);a=a.parentNode}}d.f=n;N=-11;b&&e&&Fa(b)}}function Ja(a){a||(a=window.event);var c=a.touches,b=yb();d.mouse.x=c[0].pageX-b.x;d.mouse.y=c[0].pageY-b.y;if(!U){a.preventDefault();c[0]&&(ib=c[0].pageX,jb=c[0].pageY);if(0<=N){a.preventDefault();for(a=0;a<c.length;a++)if(c[a].identifier==
- N){pc(c[a].pageX,c[a].pageY);break}I()}2==c.length&&c[0]&&c[1]&&(N=-6,Qb||(qc=Math.sqrt((c[0].pageX-c[1].pageX)*(c[0].pageX-c[1].pageX)+(c[0].pageY-c[1].pageY)*(c[0].pageY-c[1].pageY)),qb=l,X=xb*Math.sqrt(rc/qc),X>ja&&(X=ja),X<ka&&(X=ka),I()))}}function Ka(a){a||(a=window.event);var c=a.touches,b=yb();d.mouse.x=c[0].pageX-b.x;d.mouse.y=c[0].pageY-b.y;if(!U){a.preventDefault();if(0>N&&c[0]&&(Tb=(new Date).getTime(),lc=c[0].pageX,mc=c[0].pageY,ib=c[0].pageX,jb=c[0].pageY,d.f=c[0].target,c[0].target==
- d.control&&(a=c[0].pageX,b=c[0].pageY,Ub=a,Vb=b,pa=a,qa=b,db=a,eb=b,N=c[0].identifier,I()),d.f)){a=d.f;for(flag=y;a&&a!=d.control;){if(a.onmouseover)a.onmouseover();a.onmousedown&&!flag&&(a.onmousedown(),flag=l);a=a.parentNode}}1<c.length&&(N=-5);!Qb&&2==c.length&&c[0]&&c[1]&&(rc=Math.sqrt((c[0].pageX-c[1].pageX)*(c[0].pageX-c[1].pageX)+(c[0].pageY-c[1].pageY)*(c[0].pageY-c[1].pageY)),xb=u);Na=Ma=0}}function oa(a){if(!Wb){var a=a?a:window.event,c=a.detail?-1*a.detail:a.wheelDelta/40;sc&&(c=-c);d.changeFovLog((0<
- c?1:-1)*tc,l);d.dirty=l;a.preventDefault();I()}}function ya(a){a=a?a:window.event;if(!U&&(a.preventDefault(),0<=N)){N=-3;Na=Ma=0;var a=(new Date).getTime(),c=-1,c=Math.abs(Ub-pa)+Math.abs(Vb-qa);400>a-Tb&&0<=c&&20>c&&((c=Rb(d.mouse.x,d.mouse.y))&&Fa(c),c=Math.abs(uc-pa)+Math.abs(vc-qa),700>a-d.C&&0<=c&&20>c?(Sb&&setTimeout(function(){d.toggleFullscreen()},10),d.C=0):d.C=a,uc=pa,vc=qa);I()}}function za(a){var a=a?a:window.event,c=yb();d.mouse.x=a.pageX-c.x;d.mouse.y=a.pageY-c.y;if(!U&&(a.preventDefault(),
- 0<=N&&((a.which||0==a.which||1==a.which)&&pc(a.pageX,a.pageY),I()),d.hotspot==d.emptyHotspot||"poly"==d.hotspot.type)){var b=Rb(d.mouse.x,d.mouse.y);d.hotspot!=b&&(d.hotspot!=d.emptyHotspot&&(0<T&&(d.hotspot.k=0),d.skinObj&&d.skinObj.hotspotProxyOut&&d.skinObj.hotspotProxyOut(d.hotspot.id)),b?(d.hotspot=b,d.skinObj&&d.skinObj.hotspotProxyOver&&d.skinObj.hotspotProxyOver(d.hotspot.id),C.style.cursor="pointer",0<T&&(sa=1,d.hotspot.k=1)):(d.hotspot=d.emptyHotspot,C.style.cursor="auto",0<T&&(sa=0)));
- Aa(a.pageX-c.x,a.pageY-c.y)}}function Aa(a,c){O.enabled&&(d.hotspot!=d.emptyHotspot&&0<=a&&0<=c&&""!=d.hotspot.title?(J.innerHTML=d.hotspot.title,J.style.color=kb(O.aa,O.$),J.style.backgroundColor=O.background?kb(O.u,O.t):"transparent",J.style.border="solid "+kb(O.z,O.v)+" "+O.U+"px",J.style.borderRadius=O.T+"px",J.style.textAlign="center",0<O.width?(J.style.left=a-O.width/2+"px",J.style.width=O.width+"px"):(J.style.width="auto",J.style.left=a-J.offsetWidth/2+"px"),J.style.height=0<O.height?O.height+
- "px":"auto",J.style.top=c+25+"px",J.style.visibility="inherit",J.style.overflow="hidden"):(J.style.visibility="hidden",J.innerHTML=""))}function Ba(a){if(!U){a=a?a:window.event;a.preventDefault();if((a.which||0==a.which||1==a.which)&&a.target==d.control){var c=a.pageX,a=a.pageY;Ub=c;Vb=a;pa=c;qa=a;db=c;eb=a;N=1;Tb=(new Date).getTime();I()}Na=Ma=0}}function I(){ca&&(ca=y,H=K=A=0);fb&&(fb=y,H=K=A=0);Mb=(new Date).getTime()}function pc(a,c){Xb=a;Yb=c;Ma=Xb-pa;Na=Yb-qa;Ca&&(pa=Xb,qa=Yb)}function Hb(a,
- c){var b=d.getVFov();q+=a*b/s;p+=c*b/s;zb()}function wc(a){Zb=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,Zb);vertices=[-1,-1,1,1,-1,1,1,1,1,-1,1,1];for(i=0;12>i;i++)2>i%3&&(vertices[i]*=a);e.bufferData(e.ARRAY_BUFFER,new Float32Array(vertices),e.STATIC_DRAW);$b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,$b);e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,0,1,1,1]),e.STATIC_DRAW);ac=e.createBuffer();e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,ac);e.bufferData(e.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,
- 1,2,0,2,3]),e.STATIC_DRAW)}function xc(){var a,c;if(Y)for(;0<Y.length;)e.deleteTexture(Y.pop());Y=[];for(var b=0;6>b;b++)c=e.createTexture(),c.L=n,c.K=n,c.X=y,a=new Image,a.crossOrigin="anonymous",a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYBgeACDAAADIAAE3iTbkAAAAAElFTkSuQmCC",c.ta=a,a.addEventListener&&a.addEventListener("load",Ab(c),y),ta[b]&&(a=new Image,a.crossOrigin="anonymous",a.src=Z(ta[b]),c.L=a,
- a.addEventListener&&a.addEventListener("load",Ab(c),y),d.checkLoaded.push(a)),Y.push(c);for(b=0;6>b;b++)Ua[b]&&(a=new Image,a.crossOrigin="anonymous",a.src=Z(Ua[b]),a.addEventListener?a.addEventListener("load",Ab(Y[b]),y):a.onload=Ab(Y[b]),Y[b].K=a,d.checkLoaded.push(a));for(b=0;b<x.length;b++)x[b].va=e.createTexture()}function Z(a){return a?"/"==a.charAt(0)||0<a.indexOf("://")?a:Va+a:Va}function Ab(a){return function(){try{e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,l);var c=y;a.K!=n&&a.K.complete?(e.bindTexture(e.TEXTURE_2D,
- a),a.X||(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a.K),c=a.X=l)):a.L!=n&&a.L.complete&&(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a.L),c=l);c&&(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));e.bindTexture(e.TEXTURE_2D,n)}catch(b){}d.dirty=l}}function Eb(){var a=Math.round(d.O()),
- c;for(c=0;c<x.length+La.length;c++){var b;b=c<x.length?x[c]:La[c-x.length];yc(a);var h="",h=h+("translate3d(0px,0px,"+a+"px) "),h=h+("rotateX("+p+"deg) "),h=h+("rotateY("+-q+"deg) "),h=h+("rotateY("+b.pan+"deg) "),h=h+("rotateX("+-b.tilt+"deg) "),e=1E4,f=b.obj.videoWidth,k=b.obj.videoHeight;if(0==f||0==k)f=640,k=480;0<b.n&&(f=b.n);0<b.m&&(k=b.m);0<f&&0<k&&(b.obj.width=f+"px",b.obj.ma=k+"px",b.obj.style.width=f+"px",b.obj.style.ma=k+"px");0<b.B&&(e=f/(2*Math.tan(b.B/2*Math.PI/180)));h+="translate3d(0px,0px,"+
- -e+"px) ";h+="rotateZ("+b.F+"deg) ";h+="rotateY("+-b.j+"deg) ";h+="rotateX("+b.i+"deg) ";b.J&&1!=b.J&&(h+="scaleY("+b.J+") ");h+="translate3d("+-f/2+"px,"+-k/2+"px,0px) ";b.obj.style[V+"Origin"]="0% 0%";b.l&&(h="",1==b.g&&(e=Math.min(z/f,s/k),h+="scale("+e+") "),h+="translate3d("+-f/2+"px,"+-k/2+"px,0px) ");b.ka!=h&&(b.ka=h,b.obj.style[V]=h,b.obj.style.left=ha+z/2+"px",b.obj.style.top=ia+s/2+"px",b.obj.style.visibility="visible",b.I&&b.ja==b.l&&(b.obj.style[ga]="all 0.05s linear 0s"),b.ja=b.l)}}function zb(){var a,
- c;u<ka&&(u=ka);u>ja&&(u=ja);c=d.getVFov()/2;a=180*Math.atan(z/s*Math.tan(c*Math.PI/180))/Math.PI;2*c>ua-va&&(c=(ua-va)/2);d.setVFov(2*c);90>ua?p+c>ua&&(p=ua-c):p>ua&&(p=ua);-90<va?p-c<va&&(p=va+c):p<va&&(p=va);if(359.99>Qa-Ra){var b=0;if(0!=p){var h,e=s/2;h=e*Math.tan(c*Math.PI/180);e/=Math.tan(Math.abs(p)*Math.PI/180);e-=h;0<e&&(b=180*Math.atan(1/(e/h))/Math.PI,b=b*(Qa-Ra)/360)}q+(a+b)>Qa&&(q=Qa-(a+b),ca&&(ra=-ra,A=0));q-(a+b)<Ra&&(q=Ra+(a+b),ca&&(ra=-ra,A=0));90<p+c&&(p=90-c);-90>p-c&&(p=-90+c)}}
- function Rb(a,c){for(var b=-1,d=0;d<G.length;d++){var e=G[d];if("poly"==e.type&&e.p&&0<e.p.length){var f,k,g=y;for(f=0,k=e.p.length-1;f<e.p.length;k=f++){var m=e.p[f];k=e.p[k];m.q>c!=k.q>c&&a<(k.D-m.D)*(c-m.q)/(k.q-m.q)+m.D&&(g=!g)}g&&(b=d)}}return 0<=b?G[b]:y}function kb(a,c){a=Number(a);return"rgba("+(a>>16&255)+","+(a>>8&255)+","+(a&255)+","+c+")"}function yc(a){d.oa!=a&&(d.oa=a,C.style[lb]=a+"px",C.style[lb+"Origin"]=ha+z/2+"px "+(ia+s/2)+"px ")}function mb(a,c){if(0==a.length)return a;var b,
- d,e,f,k,g,m,o=[];b=c.M(a[0])-0;for(f=0;f<a.length;f++){g=f;m=f+1;m==a.length&&(m=0);d=c.M(a[m])-0;if(0<=b&&0<=d)o.push(a[g]);else if(0<=b||0<=d)e=d/(d-b),0>e&&(e=0),1<e&&(e=1),k=new ea,k.na(a[g],a[m],e),0>b||o.push(a[g]),o.push(k);b=d}return o}function yb(){var a={x:0,y:0},c=F;if(c.offsetParent){do a.x+=c.offsetLeft,a.y+=c.offsetTop;while(c=c.offsetParent)}return a}function Ea(){d.setViewerSize(d.A.offsetWidth,d.A.offsetHeight)}function $(a){if(debug=document.getElementById("debug"))debug.innerHTML=
- a+"<br />";window.console&&window.console.log(a)}function Mc(a){var c="",b,d,e="",f,k="",g=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++)),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++)),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++)),
- b=b<<2|d>>4,d=(d&15)<<4|f>>2,e=(f&3)<<6|k,c+=String.fromCharCode(b),64!=f&&(c+=String.fromCharCode(d)),64!=k&&(c+=String.fromCharCode(e));while(g<a.length);return c}function Oc(a,c){var b=this;b.qa=a;b.hotspot=c;this.__div=document.createElement("div");b.P=document.createElement("img");var d;b.P.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA5xJREFUeNqclmlIVFEUx997TjrplFQW2WKBBSYtRFlpWUILSSsRZRQIBdGHCFqIoKIvQRsUFRJC9LEgaSFbMMpcWi1pLzOLsjItKms0U5t5/c/wH7nc5o2jF374xrv87z33nHOPaRsRtbFgDpgJxoD+wATfwDNQDK6CyrCr5OcbhgiGIRsUAZt4QTWoIFXgp9JfAhY7rgdBl8NeBoLDYBloA+dBOagFTcDHcVEgDgwBGWA+OAcugvXgvb5wKMGJoAAMp9BpUA96EBf/Btsf8BI8AWfAErAcpHHDZeriliY2AVwDg8AucAQ0Ag+I4XhTm2Oxz8PT46KMbTx5EZjuJDgAnAVusJUm9DhYwalFcc59sIXXIaceFkowDySBPTRPL20xm+b7zYXa+N3CPrWJ6GuwGySA40HLBHc/GywFhbS5R1lEBrZy7FQwiSaX9pmnqeAYt+KUcew7BVZw/QKTq0ocpYPVvDOXItZCk2xgDIZqL8BR8Ab0VDbr4yZOgLeIwzQx6WiQxcCt1+6sld66L4yYtFSwF4yg2dU7/cEwGW9YVkAwmycp1dzdpvgm0DcCh4kHmxWzBls0uBX4qqmZJ4KzePm1IeJLgjmlC16aDKZpp5Q168B3o6wsSwTHgU+MIUs74RSj6y1d+212HKimJlUE+tFRfJpYtOKNXWmJTASqWf2Bu/R6+4TKHOrOzG4IhptjWgHbGkZvepQ6SQK7oRuCXzjX1DJavBEX1ygfT8FgBqpfm1zRDcEKbR2bsZlkJCdXieB1ZhZ5YtqVgXIPN+m9kbY6hpdb+d9fPncJRmZmqQheZkemJmgxyxykl3XWJEkcAl7N21s7PDcl5ZJ0PAa3wVwmWtVbZafPwQ7wLozYB7ATPNJO56d/LAikP9u+66KNJS1d4IOZp7wU0hfLukUyzgwm70T2N/DOxIy/eFdqawa5DL2NEGwP5k15Ja4woz9glvcomd9NzyvkFcQo5gomaLfm5c0svnKZ2k7q7+FauvR2MJKZR3+sY5WgtvkdG6JyELGhNHMTXyGfLviRJ5Tcd4Dlhle7086Sgp8CqVxDkn4OqHaqacr5ekjy3Q/W0FRNNGmoMtamdzdxsytZC0lqXKhEgWPVVgImg2NgFT1MHOoOk3yLEtgWN5TEOYvoIFI1rGM19//2wpAD7imF7lfwENwAxaASNCj90pcLLKdC2Iyw1M9gnEplMEp5kOU1f8WwKGJm8oUr9f8JMAAVMDM6HSDa9QAAAABJRU5ErkJggg%3D%3D");
- b.P.setAttribute("style","position: absolute;top: -14px;left: -14px;");this.__div.appendChild(b.P);d="position:absolute;"+(M+"user-select: none;");this.__div.setAttribute("style",d);this.__div.onclick=function(){b.qa.openUrl(c.url,c.target)};b.text=document.createElement("div");d="position:absolute;"+("left: -"+c.w/2+"px;");d=d+"top: 20px;"+("width: "+c.w+"px;");d=0==c.h?d+"height: auto;":d+("height: "+c.h+"px;");c.wordwrap?d=d+"white-space: pre-wrap;"+("width: "+c.w+"px;"):(d=0==c.h?d+"width: auto;":
- d+("width: "+c.w+"px;"),d+="white-space: nowrap;");d+=M+"transform-origin: 50% 50%;";b.text.setAttribute("style",d+"visibility: hidden;border: 1px solid #000000;background-color: #ffffff;text-align: center;overflow: hidden;padding: 0px 1px 0px 1px;");b.text.innerHTML=c.title;this.__div.onmouseover=function(){0==c.h&&(w=b.text.offsetWidth,b.text.style.left=-w/2+"px");b.text.style.visibility="inherit"};this.__div.onmouseout=function(){b.text.style.visibility="hidden"};this.__div.appendChild(b.text)}
- var d=this;this.transitionsDisabled=y;var q=0,bc=0,Ra=0,Qa=360,A=0,zc=0,p=0,cc=0,va=-90,ua=90,K=0,u=90,ub=90,ka=1,ja=170,xb=0,H=0,dc=0,rc,qc,z=320,s=480,Ub=0,Vb=0,pa=0,qa=0,uc=0,vc=0,Xb=0,Yb=0,Ma=0,Na=0,N=-1,lc=0,mc=0,ib=0,jb=0,nc=0,oc=0,Tb,Ib=l,db=0,eb=0,aa=0,ba=0,qb=y,X=0,Oa=0,F=n,la=n,B=n,ma=n,fa=n,C=n,R=n;this.control=n;this.cubeFaces=[];this.cubeFacesOverlay=[];this.checkLoaded=[];this.dirty=this.isFullscreen=y;this.divSkin=n;this.hasConfig=this.isLoaded=y;this.startNode="";this.onMoveComplete=
- n;var rb=0,Ua=[],ec=[],ta=[],nb=1,Wa=1,Pa=y,hb=y,Ob=5,ca=y,ra=0.4,tb=0,Nb=0,Sa,fb=y,sb=0.1,Jb=0,Kb=0,Lb,Mb;this.skinObj=n;this.userdata={};this.userdata.title="";this.userdata.description="";this.userdata.author="";this.userdata.datetime="";this.userdata.copyright="";this.userdata.source="";this.userdata.information="";this.userdata.comment="";this.userdata.tags=[];var G=[];this.emptyHotspot={pan:0,tilt:0,title:"",url:"",target:"",id:"",skinid:"",w:100,h:20,wordwrap:y,obj:n,type:"empty"};var r=[],
- x=[],La=[],ob=[],gb=[],P=1,Da=0,Ta=0.01,kc=2,Pb=0,vb=y,jc=y,ha=0,ia=0,Fb=0,Gb=0,wb=y,U=y,Wb=y,Ca=l,sc=y,tc=1,Sb=l,T=1,da=0,sa=0,Ac=255,Bc=1,Cc=255,Dc=0.3,O={enabled:l,width:180,height:20,aa:0,$:1,background:l,u:16777215,t:1,z:0,v:1,T:3,U:1,wordwrap:l},Ec;this.hotspot=this.emptyHotspot;var J=n;this.mouse={x:0,y:0};var Xa=y,Bb=y,Fc=y,Gc=l,Qb=y,Va="",M="",ga="transition",V="transform",lb="perspective",e,Hc=new ea,Ic=new ea,Jc=new ea,Kc=new ea,Lc=new ea;this.Q=y;var ic="",Nc=function(){return window.requestAnimationFrame||
- window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,10)}}();this.detectBrowser=function(){var a=["Webkit","Moz","O","ms","Ms"],c;M="";ga="transition";V="transform";lb="perspective";for(c=0;c<a.length;c++)"undefined"!==typeof document.documentElement.style[a[c]+"Transform"]&&(M="-"+a[c].toLowerCase()+"-",ga=a[c]+"Transition",V=a[c]+"Transform",lb=a[c]+"Perspective");Fc=gc();Xa=hc();$((Fc?
- "CSS 3D available":"CSS 3D not available")+", "+(Xa?"WebGL available":"WebGL not available"))};this.getPercentLoaded=function(){return rb};this.setBasePath=function(a){Va=a};this.O=function(){return 1*s/(2*Math.tan(Math.PI/180*(d.getVFov()/2)))};this.setViewerSize=function(a,c){d.isFullscreen&&(a=window.innerWidth,c=window.innerHeight);var b=a-ha-Fb,h=c-ia-Gb;F.style.width=b+"px";F.style.height=h+"px";F.style.left=ha+"px";F.style.top=ia+"px";if(Xa)try{la&&(la.width=b,la.height=h),e&&(e.ea=b,e.da=
- h,e.viewport(0,0,b,h))}catch(g){alert(g)}C.style.width=a+"px";C.style.height=c+"px";d.updatePanorama();d.divSkin&&d.divSkin.ggUpdateSize&&d.divSkin.ggUpdateSize(a,c)};this.setMargins=function(a,c,b,d){ha=a;ia=c;Fb=b;Gb=d;Ea()};this.changeViewMode=function(a){0==a&&(Ca=y);1==a&&(Ca=l);2==a&&(Ca=Ca?y:l)};var Q;this.getVFov=function(){var a;switch(dc){case 0:a=u/2;break;case 1:a=180*Math.atan(s/z*Math.tan(u/2*Math.PI/180))/Math.PI;break;case 2:a=180*Math.atan(s/Math.sqrt(z*z+s*s)*Math.tan(u/2*Math.PI/
- 180))/Math.PI;break;case 3:a=4*s/3>z?u/2:180*Math.atan(4*s/(3*z)*Math.tan(u/2*Math.PI/180))/Math.PI}return 2*a};this.setVFov=function(a){var a=a/2,c;switch(dc){case 0:u=2*a;break;case 1:a=180*Math.atan(z/s*Math.tan(a*Math.PI/180))/Math.PI;u=2*a;break;case 2:c=Math.sqrt(z*z+s*s);a=180*Math.atan(c/s*Math.tan(a*Math.PI/180))/Math.PI;u=2*a;break;case 3:4*s/3>z||(a=180*Math.atan(3*z/(4*s)*Math.tan(a*Math.PI/180))/Math.PI),u=2*a}};this.updatePanorama=function(){var a=new ea(0,0,-100),c=d.O(),b=Math.atan2(z/
- 2+1,c),h=Math.atan2(s/2+1,c),g=Math.sin(b),f=Math.sin(h),b=Math.cos(b),h=Math.cos(h);Hc.o(0,0,-1);Ic.o(b,0,-g);Jc.o(-b,0,-g);Kc.o(0,h,-f);Lc.o(0,-h,-f);for(g=0;g<G.length;g++){var f=G[g],k;"point"==f.type&&(a.o(0,0,-100),a.i(-f.tilt*Math.PI/180),a.j(f.pan*Math.PI/180),a.j(-q*Math.PI/180),a.i(p*Math.PI/180),b=y,0.1>a.a?(k=-c/a.a,h=a.x*k,k*=a.y,Math.abs(h)<z/2+500&&Math.abs(k)<s/2+500&&(b=l)):k=h=0,f.obj&&f.obj.__div&&(f.obj.__div.style[ga]="none",f.obj.ggUse3d?b?(yc(c),f.obj.__div.style.width="1px",
- f.obj.__div.style.height="1px",hs="",hs+="translate3d(0px,0px,"+c+"px) ",hs+="rotateX("+p+"deg) ",hs+="rotateY("+-q+"deg) ",hs+="rotateY("+f.pan+"deg) ",hs+="rotateX("+-f.tilt+"deg) ",hs+="translate3d(0px,0px,"+-1*f.obj.gg3dDistance+"px) ",f.obj.__div.style[V+"Origin"]="0% 0%",f.obj.__div.style[V]=hs,f.obj.__div.style.left=ha+z/2+"px",f.obj.__div.style.top=ia+s/2+"px",f.obj.__div.style.visibility="visible"):(f.obj.__div.style[V]="",f.obj.__div.style.visibility="hidden"):b?(f.obj.__div.style.left=
- ha+h+z/2+"px",f.obj.__div.style.top=ia+k+s/2+"px",f.obj.__div.style[V]=""):(f.obj.__div.style.left="-100px",f.obj.__div.style.top="-100px",f.obj.__div.style[V]="scale(0,0)")));if("poly"==f.type){for(var m=[],b=0;b<f.H.length;b++)h=f.H[b],a.o(0,0,-100),a.i(-h.tilt*Math.PI/180),a.j(h.pan*Math.PI/180),a.j(-q*Math.PI/180),a.i(p*Math.PI/180),m.push(a.ha());h=m;h=mb(h,Hc);h=mb(h,Ic);h=mb(h,Jc);h=mb(h,Kc);m=h=mb(h,Lc);if(0<m.length)for(b=0;b<m.length;b++)a=m[b],0.1>a.a?(k=-c/a.a,h=z/2+a.x*k,k=s/2+a.y*k):
- k=h=0,a.D=h,a.q=k;f.p=m}}if(R&&(Ec!=T&&(Ec=T,R.style.visibility=0<T?"inherit":"hidden"),0<T)){Q||(Q=R.getContext("2d"));if(R.width!=z||R.height!=s)R.style.width=z+"px",R.style.height=s+"px",R.width=z,R.height=s,Q.width=z,Q.height=s;Q.clear?Q.clear():Q.clearRect(0,0,R.width,R.height);a=1;3==T&&(a=da);for(c=0;c<G.length;c++)if(g=G[c],"poly"==g.type&&(f=g.p,2==T&&(a=g.c),Q.fillStyle=kb(g.u,g.t*a),Q.strokeStyle=kb(g.z,g.v*a),0<f.length)){Q.beginPath();for(j=0;j<f.length;j++)v=f[j],0==j?Q.moveTo(v.D,v.q):
- Q.lineTo(v.D,v.q);Q.closePath();Q.stroke();Q.fill()}}if(Xa){zb();if(z!=F.offsetWidth||s!=F.offsetHeight)z=parseInt(F.offsetWidth),s=parseInt(F.offsetHeight);Gc&&(d.initWebGL(0),Ea());if(e){e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);pb(Cb);f=d.getVFov();c=e.ea/e.da;f=0.1*Math.tan(f*Math.PI/360);c*=f;a=-c;g=-f;(h=Cb)||(h=new glMatrixArrayType(16));b=c-a;m=f-g;h[0]=0.2/b;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=0.2/m;h[6]=0;h[7]=0;h[8]=(c+a)/b;h[9]=(f+g)/m;h[10]=-100.1/99.9;h[11]=-1;h[12]=0;h[13]=0;h[14]=
- -20/99.9;h[15]=0;e.uniformMatrix4fv(E.Z,y,Cb);for(v=0;6>v;v++)pb(Ya),fc(Ya,-p*Math.PI/180,[1,0,0]),fc(Ya,(180-q)*Math.PI/180,[0,1,0]),4>v?fc(Ya,-Math.PI/2*v,[0,1,0]):fc(Ya,Math.PI/2*(5==v?1:-1),[1,0,0]),e.bindBuffer(e.ARRAY_BUFFER,Zb),e.vertexAttribPointer(E.ca,3,e.FLOAT,y,0,0),e.bindBuffer(e.ARRAY_BUFFER,$b),e.vertexAttribPointer(E.ba,2,e.FLOAT,y,0,0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,Y[v]),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,ac),e.uniform1i(E.ra,0),e.uniformMatrix4fv(E.pa,y,
- Ya),e.uniformMatrix4fv(E.Z,y,Cb),e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0)}}else{zb();c=y;if(z!=F.offsetWidth||s!=F.offsetHeight)z=parseInt(F.offsetWidth),s=parseInt(F.offsetHeight),F.style[V+"OriginX"]=z/2+"px",F.style[V+"OriginY"]=s/2+"px",c=l;a=Math.round(d.O());if(d.R!=a||c)d.R=a,F.style[lb]=a+"px";if(fa&&ma)fa.style[V]="translate3d("+z/2+"px,"+s/2+"px,"+a+"px)",ma.style[V]="rotateX("+Number(p).toFixed(10)+"deg) rotateY("+Number(-q).toFixed(10)+"deg)";else for(c=0;6>c;c++)if(g=d.cubeFaces[c])f=
- "translate3d("+z/2+"px,"+s/2+"px,"+a+"px) ",f+="rotateX("+Number(p).toFixed(10)+"deg) rotateY("+Number(-q).toFixed(10)+"deg) ",g.W&&(f+=g.W,g.style.transform=f)}Eb()};var E;this.initWebGL=function(a){Gc=y;try{if(la=a?a:document.createElement("canvas"),la.width=100,la.height=100,F.appendChild(la),(e=la.getContext("webgl"))||(e=la.getContext("experimental-webgl")),e){e.ea=500;e.da=500;e.clearColor(0,0,0,0);e.enable(e.DEPTH_TEST);e.viewport(0,0,500,500);e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);
- e.enable(e.TEXTURE_2D);var c=e.createShader(e.FRAGMENT_SHADER);hs="#ifdef GL_ES\n";hs+="precision highp float;\n";hs+="#endif\n";hs+="varying vec2 vTextureCoord;\n";hs+="uniform sampler2D uSampler;\n";hs+="void main(void) {\n";hs+=" gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n";hs+="}\n";e.shaderSource(c,hs);e.compileShader(c);e.getShaderParameter(c,e.COMPILE_STATUS)||(alert(e.getShaderInfoLog(c)),c=n);var b=e.createShader(e.VERTEX_SHADER);hs="attribute vec3 aVertexPosition;\n";
- hs+="attribute vec2 aTextureCoord;\n";hs+="uniform mat4 uMVMatrix;\n";hs+="uniform mat4 uPMatrix;\n";hs+="varying vec2 vTextureCoord;\n";hs+="void main(void) {\n";hs+=" gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\n";hs+=" vTextureCoord = aTextureCoord;\n";hs+="}\n";e.shaderSource(b,hs);e.compileShader(b);e.getShaderParameter(b,e.COMPILE_STATUS)||(alert(e.getShaderInfoLog(b)),b=n);E=e.createProgram();e.attachShader(E,b);e.attachShader(E,c);e.linkProgram(E);e.getProgramParameter(E,
- e.LINK_STATUS)||alert("Could not initialise shaders");e.useProgram(E);E.ca=e.getAttribLocation(E,"aVertexPosition");e.enableVertexAttribArray(E.ca);E.ba=e.getAttribLocation(E,"aTextureCoord");e.enableVertexAttribArray(E.ba);E.Z=e.getUniformLocation(E,"uPMatrix");E.pa=e.getUniformLocation(E,"uMVMatrix");E.ra=e.getUniformLocation(E,"uSampler");wc(Wa);xc()}}catch(d){$(d)}e?Xa=l:alert("Could not initialise WebGL!")};var Y=[],Ya=new glMatrixArrayType(16),Cb=new glMatrixArrayType(16),Zb,$b,ac;this.getPan=
- function(){return q};this.getPanDest=function(){return Jb};this.getPanN=function(){for(var a=q;-180>a;)a+=360;for(;180<a;)a-=360;return a};this.getPanNorth=function(){for(var a=q-zc;-180>a;)a+=360;for(;180<a;)a-=360;return a};this.setPan=function(a){I();isNaN(a)||(q=Number(a));d.dirty=l};this.changePan=function(a,c){d.setPan(d.getPan()+a);c&&(A=a)};this.getTilt=function(){return p};this.getTiltDest=function(){return Kb};this.setTilt=function(a){I();isNaN(a)||(p=Number(a));d.dirty=l};this.changeTilt=
- function(a,c){d.setTilt(d.getTilt()+a);c&&(K=a)};this.getFov=function(){return u};this.getFovDest=function(){return Lb};this.setFov=function(a){I();if(!isNaN(a)&&0<a&&180>a){var c=u;u=Number(a);zb();d.dirty|=c!=u}};this.changeFov=function(a,c){d.setFov(d.getFov()+a);c&&(H=a)};this.changeFovLog=function(a,c){if(!isNaN(a)){var b;b=a/90*Math.cos(u*Math.PI/360);b=u*Math.exp(b);d.setFov(b);c&&(H=a)}};this.setPanTilt=function(a,c){I();isNaN(a)||(q=a);isNaN(c)||(p=c);d.dirty=l};this.setPanTiltFov=function(a,
- c,b){I();isNaN(a)||(q=a);isNaN(c)||(p=c);!isNaN(b)&&0<b&&180>b&&(u=b);d.dirty=l};this.setDefaultView=function(){d.setPanTiltFov(bc,cc,ub)};this.setLocked=function(a){d.setLockedMouse(a);d.setLockedWheel(a);d.setLockedKeyboard(a)};this.setLockedMouse=function(a){U=a};this.setLockedKeyboard=function(a){wb=a};this.setLockedWheel=function(a){Wb=a};this.moveTo=function(a,c,b,d){I();fb=l;var e=a.toString().split("/");1<e.length&&(a=Number(e[0]),d=c,c=Number(e[1]),2<e.length&&(b=Number(e[2])));Jb=isNaN(a)?
- q:a;Kb=isNaN(c)?p:c;Lb=!isNaN(b)&&0<b&&180>b?b:u;sb=!isNaN(d)&&0<d?d:1};this.moveToDefaultView=function(a){d.moveTo(bc,cc,ub,a)};I();this.ga=function(){var a;a=C;d.control=a;wa();setTimeout(function(){W()},10);setTimeout(function(){Ea();d.updatePanorama()},10);a.addEventListener?(a.addEventListener("touchstart",Ka,y),a.addEventListener("touchmove",Ja,y),a.addEventListener("touchend",cb,y),a.addEventListener("touchcancel",bb,y),a.addEventListener("gesturestart",ab,y),a.addEventListener("gesturechange",
- $a,y),a.addEventListener("gestureend",Za,y),a.addEventListener("mousedown",Ba,y),a.addEventListener("mousemove",za,y),document.addEventListener("mouseup",ya,y),a.addEventListener("mousedblclick",d.toggleFullscreen,y),a.addEventListener("mousewheel",oa,y),a.addEventListener("DOMMouseScroll",oa,y),document.addEventListener("keydown",Ia,y),document.addEventListener("keyup",Ha,y),window.addEventListener("orientationchange",wa,y),window.addEventListener("resize",Ea,y),window.addEventListener("blur",Ga,
- y),B.addEventListener("webkitfullscreenchange",xa,y),document.addEventListener("mozfullscreenchange",xa,y),window.addEventListener("webkitfullscreenchange",xa,y)):a.attachEvent&&(a.attachEvent("onmousedown",Ba),a.attachEvent("onmousemove",za),document.attachEvent("onmouseup",ya),a.attachEvent("onmousedblclick",this.toggleFullscreen),a.attachEvent("onmousewheel",oa),document.attachEvent("onkeydown",Ia),document.attachEvent("onkeyup",Ha),window.attachEvent("onresize",Ea),window.attachEvent("onblur",
- Ga));a.oncontextmenu=function(a){void 0===a&&(a=window.event);return!a.ctrlKey&&(a="<<L>>","U"!=a.charAt(2))?(na(),y):l}};this.addHotspotElements=function(){for(var a=0;a<G.length;a++)if("point"==G[a].type&&(G[a].obj=d.skinObj&&d.skinObj.addSkinHotspot?new d.skinObj.addSkinHotspot(G[a]):new Oc(this,G[a]),G[a].obj&&G[a].obj.__div)){var c=C.firstChild;c?C.insertBefore(G[a].obj.__div,c):C.appendChild(G[a].obj.__div)}};this.isPlaying=function(a){return"_main"==a?l:(a=m(a))?!a.obj.ended&&!a.obj.paused:
- y};this.playSound=function(a,c){var b=m(a);b&&(b.obj.d=c&&!isNaN(Number(c))?Number(c)-1:b.loop-1,-1==b.obj.d&&(b.obj.d=1E7),b.obj.play())};this.playPauseSound=function(a){d.isPlaying(a)?d.pauseSound(a):d.playSound(a)};this.pauseSound=function(a){if("_main"==a){for(a=0;a<r.length;a++)r[a].obj.pause();for(a=0;a<x.length;a++)x[a].obj.pause()}else(a=m(a))&&a.obj.pause()};this.stopSound=function(a){if("_main"==a){for(a=0;a<r.length;a++)r[a].obj.pause(),r[a].obj.currentTime=0;for(a=0;a<x.length;a++)x[a].obj.pause(),
- x[a].obj.currentTime=0}else if(a=m(a))a.obj.pause(),a.obj.currentTime=0};this.setVolume=function(a,c){var b=Number(c);1<b&&(b=1);0>b&&(b=0);if("_main"==a){P=b;for(b=0;b<r.length;b++)r[b].obj.volume=r[b].b*P;for(b=0;b<x.length;b++)x[b].obj.volume=x[b].b*P}else{var d=m(a);d&&(d.b=b,d.obj.volume=b*P)}};this.changeVolume=function(a,c){if("_main"==a){var b=P,b=b+Number(c);1<b&&(b=1);0>b&&(b=0);P=b;for(b=0;b<r.length;b++)r[b].obj.volume=r[b].b*P}else{var d=m(a);d&&(b=d.b,b+=Number(c),1<b&&(b=1),0>b&&(b=
- 0),d.b=b,d.obj.volume=b*P)}};this.removeHotspots=function(){for(var a;0<G.length;)a=G.pop(),a.obj&&(C.removeChild(a.obj.__div),delete a.obj),a.obj=n};this.setFullscreen=function(a){d.isFullscreen!=a&&(d.isFullscreen=a,d.dirty=l);if(d.isFullscreen){try{B.webkitRequestFullScreen?B.webkitRequestFullScreen():B.mozRequestFullScreen?B.mozRequestFullScreen():B.requestFullScreen?B.requestFullScreen():B.requestFullscreen&&B.requestFullscreen()}catch(c){$(c)}B.style.position="absolute";a=yb();B.style.left=
- window.pageXOffset-a.x+ha+"px";B.style.top=window.pageYOffset-a.y+ia+"px";document.body.style.overflow="hidden";d.divSkin&&d.divSkin.ggEnterFullscreen&&d.divSkin.ggEnterFullscreen()}else{try{document.webkitIsFullScreen?document.webkitCancelFullScreen():document.mozFullScreen?document.mozCancelFullScreen():document.fullScreen&&(document.cancelFullScreen?document.cancelFullScreen():document.exitFullscreen&&document.exitFullscreen())}catch(b){$(b)}B.style.position="relative";B.style.left="0px";B.style.top=
- "0px";document.body.style.overflow="";d.divSkin&&d.divSkin.ggExitFullscreen&&d.divSkin.ggExitFullscreen()}Ea()};this.toggleFullscreen=function(){d.setFullscreen(!d.isFullscreen)};this.enterFullscreen=function(){d.setFullscreen(l)};this.exitFullscreen=function(){d.setFullscreen(y)};this.startAutorotate=function(a,c,b){ca=hb=l;Sa=(new Date).getTime();a&&0!=a&&(ra=a);c&&(Ob=c);b&&(tb=b)};this.stopAutorotate=function(){hb=ca=y};this.toggleAutorotate=function(){(ca=hb=!ca)&&(Sa=(new Date).getTime())};
- this.createLayers=function(a){d.A=document.getElementById(a);d.A?(d.A.innerHTML="",B=document.createElement("div"),B.setAttribute("style","top: 0px;left: 0px;position:relative;"),d.A.appendChild(B),F=document.createElement("div"),a="top: 0px;left: 0px;width: 100px;height: 100px;overflow: hidden;position:absolute;z-index: 0;"+(M+"user-select: none;"),F.setAttribute("style",a),B.appendChild(F),C=document.createElement("div"),a="top: 0px;left: 0px;width: 100px;height: 100px;overflow: hidden;position:absolute;z-index: 1000;",
- 0<=navigator.userAgent.indexOf("MSIE")&&(a+="background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);"),a+=M+"user-select: none;",C.setAttribute("style",a),B.appendChild(C),R=document.createElement("canvas"),a="top: 0px;left: 0px;width: 1000px;height: 1000px;overflow: hidden;position:absolute;z-index: 900;"+(M+"user-select: none;"),R.setAttribute("style",a),B.appendChild(R),J=document.createElement("div"),J.setAttribute("style","top: 0px;left: 0px;position:absolute;padding: 3px;visibility: hidden;z-index: 1100;"),
- J.innerHTML=" Hotspot text!",B.appendChild(J),d.divSkin=C):alert("container not found!")};this.createCube=function(){var a;fa=document.createElement("div");a="position:absolute;"+(M+"user-select: none;");a+=M+"transform-style: preserve-3d;";fa.setAttribute("style",a+"z-Index: 100;");F.appendChild(fa);ma=document.createElement("div");a=M+"transform-style: preserve-3d;";a+=M+"transform-origin: 0 0;";a=a+"position:absolute;"+(M+"user-select: none;");ma.setAttribute("style",a+"z-Index: 100;");fa.appendChild(ma);
- var c,b;Pa=l;var e=128;nb>e&&(e=nb);for(b=0;6>b;b++)c=document.createElement("img"),Pa?""!=ta[b]&&c.setAttribute("src",Z(ta[b])):c.setAttribute("src",Z(Ua[b])),a="position:absolute;",a+="left: 0px;",a+="top: 0px;",a+="width: "+e+"px;",a+="height: "+e+"px;",a+="z-index: 100;",a+=M+"transform-origin: 0 0;",a+=M+"transform: ",a=4>b?a+("rotateY("+-90*b+"deg)"):a+("rotateX("+(4==b?-90:90)+"deg)"),a+=" scale("+Wa+") translate3d("+-e/2+"px,"+-e/2+"px,"+-e/2+"px);",c.setAttribute("style",a),ma.appendChild(c),
- d.cubeFaces.push(c),d.checkLoaded.push(c),""!=ec[b]&&(c=document.createElement("img"),c.setAttribute("src",Z(ec[b])),a="position:absolute;",a+="left: 0px;",a+="top: 0px;",a+="width: "+e/1.1+"px;",a+="height: "+e/1.1+"px;",a+="z-index: 100;",a+=M+"transform-origin: 0 0;",a+=M+"transform: ",a=4>b?a+("rotateY("+-90*b+"deg)"):a+("rotateX("+(4==b?-90:90)+"deg)"),a+=" scale("+Wa+") translate3d("+-e/2.2+"px,"+-e/2.2+"px,"+-e/2.2+"px);",c.setAttribute("style",a),c.style.opacity=0,ma.appendChild(c),d.cubeFacesOverlay.push(c),
- d.checkLoaded.push(c))};this.ia=function(){var a;ma=fa=n;var c,b;Pa=l;var e=128;nb>e&&(e=nb);for(b=0;6>b;b++){c=document.createElement("img");Pa?""!=ta[b]&&c.setAttribute("src",Z(ta[b])):c.setAttribute("src",Z(Ua[b]));a="position:absolute;";a+="left: 0px;";a+="top: 0px;";a+="width: "+e+"px;";a+="height: "+e+"px;";a+="z-index: 100;";a+=M+"-transform-style: preserve-3d;";a+=M+"transform-origin: 0 0;";a+=M+"transform: ";var g;g="";g=4>b?g+("rotateY("+-90*b+"deg)"):g+("rotateX("+(4==b?-90:90)+"deg)");
- g+=" scale("+Wa+") translate3d("+-e/2+"px,"+-e/2+"px,"+-e/2+"px)";a+=g+";";c.W=g;c.setAttribute("style",a);F.appendChild(c);d.cubeFaces.push(c);d.checkLoaded.push(c)}};this.finalPanorama=function(){var a;if(Bb)for(a=0;6>a;a++)d.cubeFaces[a].setAttribute("src",Z(Ua[a]))};this.setOverlayOpacity=function(a){var c;if(Bb)for(c=0;6>c;c++)d.cubeFacesOverlay[c]&&d.cubeFacesOverlay[c].style&&(d.cubeFacesOverlay[c].style.opacity=a)};this.removePanorama=function(){var a;if(Bb){for(a=0;a<d.cubeFaces.length;a++)d.cubeFaces[a].setAttribute("src",
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYBgeACDAAADIAAE3iTbkAAAAAElFTkSuQmCC"),d.cubeFacesOverlay[a]&&d.cubeFacesOverlay[a].setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYBgeACDAAADIAAE3iTbkAAAAAElFTkSuQmCC");fa&&F.removeChild(fa);fa=ma=n;d.cubeFaces=[];d.cubeFacesOverlay=[]}if(e&&Y)for(;0<Y.length;)e.deleteTexture(Y.pop());
- for(a=0;a<x.length;a++)C.removeChild(x[a].obj);for(a=0;a<La.length;a++)C.removeChild(La[a].obj);var c=[];for(a=0;a<r.length;a++){var b=r[a];if(0==b.mode||1==b.mode||b.ua)c.push(b);else{try{b.obj.pause()}catch(h){$(h)}B.removeChild(b.obj)}}r=c;x=[];La=[]};this.getScreenResolution=function(){var a=1,c=-1!=navigator.userAgent.indexOf("Mac");window.devicePixelRatio&&c&&(a=window.devicePixelRatio);return{w:screen.width*a,h:screen.height*a}};this.getMaxScreenResolution=function(){var a=d.getScreenResolution();
- return a.w>a.h?a.w:a.h};this.readConfigString=function(a){window.DOMParser?(parser=new DOMParser,xmlDoc=parser.parseFromString(a,"text/xml")):(xmlDoc=new ActiveXObject("Microsoft.XMLDOM"),xmlDoc.async="false",xmlDoc.loadXML(a));d.readConfigXml(xmlDoc)};this.readConfigUrl=function(a,c){try{var b;b=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");b.open("GET",a,y);b.send(n);if(b.responseXML){var e=a.lastIndexOf("/");0<=e&&(Va=a.substr(0,e+1));2<=arguments.length&&(Va=
- c);d.readConfigString(b.responseText)}else alert("Error loading panorama XML")}catch(g){alert("Error:"+g)}};var Db=l;d.readConfigXml=function(a){var c=a.firstChild;ob=[];gb=[];if("tour"==c.nodeName){var a="",b;(b=c.getAttributeNode("start"))&&(a=b.nodeValue.toString());""!=this.startNode&&(a=this.startNode,this.startNode="");for(c=c.firstChild;c;){b="";if("panorama"==c.nodeName&&(b=c.getAttributeNode("id")))b=b.nodeValue.toString(),""==a&&(a=b),ob[b]=c,gb.push(b);c=c.nextSibling}d.S(ob[a]);t("{"+
- a+"}");d.Q=l}else d.Q=y,d.S(c),t("")};d.S=function(a){d.removeHotspots();d.removePanorama();d.R=0;for(var a=a.firstChild,c,b,h,g=1E6;a;){if("view"==a.nodeName){(b=a.getAttributeNode("fovmode"))&&(dc=Number(b.nodeValue));b=a.getAttributeNode("pannorth");zc=1*(b?b.nodeValue:0);for(c=a.firstChild;c;)"start"==c.nodeName&&(b=c.getAttributeNode("pan"),bc=q=Number(b?b.nodeValue:0),b=c.getAttributeNode("tilt"),cc=p=Number(b?b.nodeValue:0),b=c.getAttributeNode("fov"),ub=u=Number(b?b.nodeValue:70)),"min"==
- c.nodeName&&(b=c.getAttributeNode("pan"),Ra=1*(b?b.nodeValue:0),b=c.getAttributeNode("tilt"),va=1*(b?b.nodeValue:-90),b=c.getAttributeNode("fov"),ka=1*(b?b.nodeValue:5),1.0E-8>ka&&(ka=1.0E-8)),"max"==c.nodeName&&(b=c.getAttributeNode("pan"),Qa=1*(b?b.nodeValue:0),b=c.getAttributeNode("tilt"),ua=1*(b?b.nodeValue:90),b=c.getAttributeNode("fov"),ja=1*(b?b.nodeValue:120),180<=ja&&(ja=179.9)),c=c.nextSibling}"autorotate"==a.nodeName&&((b=a.getAttributeNode("speed"))&&(ra=1*b.nodeValue),(b=a.getAttributeNode("delay"))&&
- (Ob=1*b.nodeValue),(b=a.getAttributeNode("returntohorizon"))&&(tb=1*b.nodeValue),(b=a.getAttributeNode("nodedelay"))&&(Nb=1*b.nodeValue),Db&&0!=ra&&(ca=hb=l,Sa=(new Date).getTime()));"input"==a.nodeName&&(h||(h=a));if(h)for(c=0;6>c;c++)b=h.getAttributeNode("prev"+c+"url"),ta[c]=b?new String(b.nodeValue):"";"altinput"==a.nodeName&&(c=0,(b=a.getAttributeNode("screensize"))&&(c=1*b.nodeValue),0<c&&c>=d.getMaxScreenResolution()&&c<g&&(g=c,h=a));"control"==a.nodeName&&Db&&((b=a.getAttributeNode("simulatemass"))&&
- (Ib=1==b.nodeValue),(b=a.getAttributeNode("locked"))&&(U=1==b.nodeValue),b&&(wb=1==b.nodeValue),(b=a.getAttributeNode("lockedmouse"))&&(U=1==b.nodeValue),(b=a.getAttributeNode("lockedkeyboard"))&&(wb=1==b.nodeValue),(b=a.getAttributeNode("lockedwheel"))&&(Wb=1==b.nodeValue),(b=a.getAttributeNode("invertwheel"))&&(sc=1==b.nodeValue),(b=a.getAttributeNode("speedwheel"))&&(tc=1*b.nodeValue),(b=a.getAttributeNode("invertcontrol"))&&(Ca=1==b.nodeValue),(b=a.getAttributeNode("dblclickfullscreen"))&&(Sb=
- 1==b.nodeValue));"overlay"==a.nodeName&&((b=a.getAttributeNode("blendspeed"))&&(Ta=1*b.nodeValue),(b=a.getAttributeNode("auto"))&&(jc=1==b.nodeValue),(b=a.getAttributeNode("delay"))&&(kc=1*b.nodeValue));if("userdata"==a.nodeName)if(b=a.getAttributeNode("title"),d.userdata.title=b?b.nodeValue.toString():"",b=a.getAttributeNode("description"),d.userdata.description=b?b.nodeValue.toString():"",b=a.getAttributeNode("author"),d.userdata.author=b?b.nodeValue.toString():"",b=a.getAttributeNode("datetime"),
- d.userdata.datetime=b?b.nodeValue.toString():"",b=a.getAttributeNode("copyright"),d.userdata.copyright=b?b.nodeValue.toString():"",b=a.getAttributeNode("source"),d.userdata.source=b?b.nodeValue.toString():"",b=a.getAttributeNode("info"),d.userdata.information=b?b.nodeValue.toString():"",b=a.getAttributeNode("comment"),d.userdata.comment=b?b.nodeValue.toString():"",b=a.getAttributeNode("tags")){b=b.nodeValue.toString().split("|");for(c=0;c<b.length;c++)""==b[c]&&(b.splice(c,1),c--);d.userdata.tags=
- b}else d.userdata.tags=[];if("hotspots"==a.nodeName)for(c=a.firstChild;c;){if("label"==c.nodeName){var f=O;if(b=c.getAttributeNode("enabled"))f.enabled=1==b.nodeValue;if(b=c.getAttributeNode("width"))f.width=1*b.nodeValue;if(b=c.getAttributeNode("height"))f.height=1*b.nodeValue;if(b=c.getAttributeNode("textcolor"))f.aa=1*b.nodeValue;if(b=c.getAttributeNode("textalpha"))f.$=1*b.nodeValue;if(b=c.getAttributeNode("background"))f.background=1==b.nodeValue;if(b=c.getAttributeNode("backgroundalpha"))f.t=
- 1*b.nodeValue;if(b=c.getAttributeNode("backgroundcolor"))f.u=1*b.nodeValue;if(b=c.getAttributeNode("border"))f.U=1*b.nodeValue;if(b=c.getAttributeNode("bordercolor"))f.z=1*b.nodeValue;if(b=c.getAttributeNode("borderalpha"))f.v=1*b.nodeValue;if(b=c.getAttributeNode("borderradius"))f.T=1*b.nodeValue;if(b=c.getAttributeNode("wordwrap"))f.wordwrap=1==b.nodeValue}"polystyle"==c.nodeName&&((b=c.getAttributeNode("mode"))&&(T=1*b.nodeValue),(b=c.getAttributeNode("bordercolor"))&&(Ac=1*b.nodeValue),(b=c.getAttributeNode("backgroundcolor"))&&
- (Cc=1*b.nodeValue),(b=c.getAttributeNode("borderalpha"))&&(Bc=1*b.nodeValue),(b=c.getAttributeNode("backgroundalpha"))&&(Dc=1*b.nodeValue));"hotspot"==c.nodeName&&(f={type:"point",pan:0,tilt:0,url:"",target:"",id:"",skinid:"",w:100,h:20,wordwrap:y,obj:n,H:n},b=c.getAttributeNode("pan"),f.pan=1*(b?b.nodeValue:0),b=c.getAttributeNode("tilt"),f.tilt=1*(b?b.nodeValue:0),(b=c.getAttributeNode("url"))&&(f.url=b.nodeValue.toString()),(b=c.getAttributeNode("target"))&&(f.target=b.nodeValue.toString()),(b=
- c.getAttributeNode("title"))&&(f.title=b.nodeValue.toString()),(b=c.getAttributeNode("id"))&&(f.id=b.nodeValue.toString()),(b=c.getAttributeNode("skinid"))&&(f.skinid=b.nodeValue.toString()),(b=a.getAttributeNode("width"))&&(f.w=b.nodeValue.toString()),(b=a.getAttributeNode("height"))&&(f.h=b.nodeValue.toString()),(b=a.getAttributeNode("wordwrap"))&&(f.wordwrap=1==b.nodeValue),G.push(f));if("polyhotspot"==c.nodeName){f={type:"poly",url:"",target:"",id:"",skinid:"",w:100,h:20,wordwrap:y,obj:n,H:n,
- c:0,k:0};(b=c.getAttributeNode("url"))&&(f.url=b.nodeValue.toString());(b=c.getAttributeNode("target"))&&(f.target=b.nodeValue.toString());(b=c.getAttributeNode("title"))&&(f.title=b.nodeValue.toString());(b=c.getAttributeNode("id"))&&(f.id=b.nodeValue.toString());f.z=Ac;f.u=Cc;f.v=Bc;f.t=Dc;if(b=c.getAttributeNode("bordercolor"))f.z=1*b.nodeValue;if(b=c.getAttributeNode("backgroundcolor"))f.u=1*b.nodeValue;if(b=c.getAttributeNode("borderalpha"))f.v=1*b.nodeValue;if(b=c.getAttributeNode("backgroundalpha"))f.t=
- 1*b.nodeValue;f.H=[];for(var k=c.firstChild;k;){if("vertex"==k.nodeName){var m={pan:0,tilt:0};b=k.getAttributeNode("pan");m.pan=1*(b?b.nodeValue:0);b=k.getAttributeNode("tilt");m.tilt=1*(b?b.nodeValue:0);f.H.push(m)}k=k.nextSibling}G.push(f)}c=c.nextSibling}if("sounds"==a.nodeName||"media"==a.nodeName)for(c=a.firstChild;c;){if("sound"==c.nodeName){k={id:"",url:"",loop:0,b:1,s:0,mode:1,field:10,pan:0,tilt:0,e:0,r:0,url:[]};if(b=c.getAttributeNode("id"))k.id=b.nodeValue.toString();(b=c.getAttributeNode("url"))&&
- k.url.push(b.nodeValue.toString());if(b=c.getAttributeNode("level"))k.b=Number(b.nodeValue);if(b=c.getAttributeNode("loop"))k.loop=Number(b.nodeValue);if(b=c.getAttributeNode("mode"))k.mode=Number(b.nodeValue);if(b=c.getAttributeNode("field"))k.field=Number(b.nodeValue);if(b=c.getAttributeNode("ambientlevel"))k.s=Number(b.nodeValue);if(b=c.getAttributeNode("pan"))k.pan=Number(b.nodeValue);if(b=c.getAttributeNode("tilt"))k.tilt=Number(b.nodeValue);if(b=c.getAttributeNode("pansize"))k.e=Number(b.nodeValue);
- if(b=c.getAttributeNode("tiltsize"))k.r=Number(b.nodeValue);for(f=c.firstChild;f;)"source"==f.nodeName&&(b=f.getAttributeNode("url"))&&k.url.push(b.nodeValue.toString()),f=f.nextSibling;S(k)}if("video"==c.nodeName){k={id:"",url:"",loop:0,b:1,s:0,mode:1,field:10,pan:0,tilt:0,e:0,r:0,i:0,j:0,F:0,B:50,g:0,url:[]};if(b=c.getAttributeNode("id"))k.id=b.nodeValue.toString();(b=c.getAttributeNode("url"))&&k.url.push(b.nodeValue.toString());if(b=c.getAttributeNode("level"))k.b=Number(b.nodeValue);if(b=c.getAttributeNode("loop"))k.loop=
- Number(b.nodeValue);if(b=c.getAttributeNode("mode"))k.mode=Number(b.nodeValue);if(b=c.getAttributeNode("field"))k.field=Number(b.nodeValue);if(b=c.getAttributeNode("ambientlevel"))k.s=Number(b.nodeValue);if(b=c.getAttributeNode("pan"))k.pan=Number(b.nodeValue);if(b=c.getAttributeNode("tilt"))k.tilt=Number(b.nodeValue);if(b=c.getAttributeNode("pansize"))k.e=Number(b.nodeValue);if(b=c.getAttributeNode("tiltsize"))k.r=Number(b.nodeValue);if(b=c.getAttributeNode("rotx"))k.i=Number(b.nodeValue);if(b=c.getAttributeNode("roty"))k.j=
- Number(b.nodeValue);if(b=c.getAttributeNode("rotz"))k.F=Number(b.nodeValue);if(b=c.getAttributeNode("fov"))k.B=Number(b.nodeValue);if(b=c.getAttributeNode("width"))k.n=Number(b.nodeValue);if(b=c.getAttributeNode("height"))k.m=Number(b.nodeValue);b=c.getAttributeNode("stretch");k.J=b?Number(b.nodeValue):1;if(b=c.getAttributeNode("clickmode"))k.g=Number(b.nodeValue);for(f=c.firstChild;f;)"source"==f.nodeName&&(b=f.getAttributeNode("url"))&&k.url.push(b.nodeValue.toString()),f=f.nextSibling;L(k)}if("image"==
- c.nodeName){k={id:"",url:"",loop:0,b:1,s:0,mode:1,field:10,pan:0,tilt:0,e:0,r:0,i:0,j:0,F:0,B:50,g:0};if(b=c.getAttributeNode("id"))k.id=b.nodeValue.toString();if(b=c.getAttributeNode("url"))k.url=b.nodeValue.toString();if(b=c.getAttributeNode("pan"))k.pan=Number(b.nodeValue);if(b=c.getAttributeNode("tilt"))k.tilt=Number(b.nodeValue);if(b=c.getAttributeNode("rotx"))k.i=Number(b.nodeValue);if(b=c.getAttributeNode("roty"))k.j=Number(b.nodeValue);if(b=c.getAttributeNode("rotz"))k.F=Number(b.nodeValue);
- if(b=c.getAttributeNode("fov"))k.B=Number(b.nodeValue);if(b=c.getAttributeNode("width"))k.n=Number(b.nodeValue);if(b=c.getAttributeNode("height"))k.m=Number(b.nodeValue);b=c.getAttributeNode("stretch");k.J=b?Number(b.nodeValue):1;if(b=c.getAttributeNode("clickmode"))k.g=Number(b.nodeValue);for(f=c.firstChild;f;){if("source"==f.nodeName&&(b=f.getAttributeNode("url")))k.url=b.nodeValue.toString();f=f.nextSibling}D(k)}c=c.nextSibling}a=a.nextSibling}if(h){for(c=0;6>c;c++)(b=h.getAttributeNode("tile"+
- c+"url"))&&(Ua[c]=new String(b.nodeValue)),b=h.getAttributeNode("tile"+c+"url1"),ec[c]=b?new String(b.nodeValue):"";for(c=0;6>c;c++)(b=h.getAttributeNode("prev"+c+"url"))&&(ta[c]=new String(b.nodeValue));(b=h.getAttributeNode("tilesize"))&&(nb=1*b.nodeValue);(b=h.getAttributeNode("tilescale"))&&(Wa=1*b.nodeValue)}Xa?e&&(wc(Wa),xc()):(Bb=l,0<=navigator.userAgent.indexOf("MSIE")?d.ia():d.createCube(),d.R=0);d.addHotspotElements();d.dirty=l;Db&&d.divSkin&&d.divSkin.ggViewerInit&&d.divSkin.ggViewerInit();
- Db=y;d.hasConfig=l;Ea()};this.openUrl=function(a,c){0<a.length&&(-1==a.indexOf("://")&&"/"!=a.substr(0,1)&&(a=Va+a),".xml"==a.substr(a.length-4)||".swf"==a.substr(a.length-4)||"{"==a.charAt(0)?d.openNext(a,c):window.open(a,c))};this.openNext=function(a,c){d.isLoaded=y;d.hasConfig=y;d.checkLoaded=[];d.divSkin&&d.divSkin.ggReLoaded&&d.divSkin.ggReLoaded();rb=0;d.skinObj&&d.skinObj.hotspotProxyOut&&d.skinObj.hotspotProxyOut(d.hotspot.id);".swf"==a.substr(a.length-4)&&(a=a.substr(0,a.length-4)+".xml");
- var b="";c&&(b=c.toString());b=b.replace("$cur",q+"/"+p+"/"+u);b=b.replace("$ap",q);b=b.replace("$an",d.getPanNorth());b=b.replace("$at",p);b=b.replace("$af",u);if(""!=b){var e=b.split("/");3<e.length&&""!=e[3]&&(d.startNode=e[3])}if("{"==a.charAt(0))if(e=a.substr(1,a.length-2),ob[e])d.S(ob[e]),t(a);else{$("invalid node id: "+e);return}else d.readConfigUrl(a);""!=b&&(e=b.split("/"),0<e.length&&d.setPan(Number(e[0])),1<e.length&&d.setTilt(Number(e[1])),2<e.length&&d.setFov(Number(e[2])));I()};d.detectBrowser();
- d.createLayers(g);d.ga()}window.ggHasHtml5Css3D=gc;window.ggHasWebGL=hc;window.pano2vrPlayer=pano2vrPlayer;
Add Comment
Please, Sign In to add comment