var j=!0,k=null,q=!1; function object2vrPlayer(Ca){function fc(){var a;u=document.createElement("div");u.innerHTML=gc("PGRpdiBzdHlsZT0icG9zaXRpb246IHJlbGF0aXZlOyBsZWZ0OiAwcHg7IHJpZ2h0OiAwcHg7IHRvcDogNDAlOyBib3R0b206IDYwJTsgbWFyZ2luOiBhdXRvOyB3aWR0aDogMThlbTsgaGVpZ2h0OiA0ZW07IGJvcmRlcjogM3B4IHNvbGlkICM1NTU7IGJveC1zaGFkb3c6IDVweCA1cHggMTBweCAjMzMzOyBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsgZGlzcGxheTogdGFibGU7IGZvbnQtZmFtaWx5OiBWZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IDEwcHQ7IG9wYWNpdHk6IDAuOTU7IGJvcmRlci1yYWRpdXM6IDE1cHg7Ij48cCBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBkaXNwbGF5OiB0YWJsZS1jZWxsOyB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOyAiPkNyZWF0ZWQgd2l0aCA8YSBocmVmPSJodHRwOi8vb2JqZWN0MnZyLmNvbS8iIHRhcmdldD0iX2JsYW5rIj5PYmplY3QyVlI8L2E+PC9wPjwvZGl2Pg==");a= "top:\t0px;left: 0px;width: 100px;height: 100px;overflow: hidden;z-index: 5000;position:relative;";"-webkit-"==H&&(a+=H+"transform: translateZ(99999999999999px);");u.setAttribute("style",a);c.c.insertBefore(u,c.c.firstChild);u.style.width=0+E+Xa+A+"px";u.style.height=0+F+Ya+B+"px";u.onclick=function(){u&&(c.c.removeChild(u),u=k)};u.oncontextmenu=u.onclick}function yb(){setTimeout(function(){c.setFullscreen(0)},10);setTimeout(function(){c.setFullscreen(0)},100)}function Da(){zb?setTimeout(function(){Da()}, 1E3/60):Ab(function(){Da()});Za=0;if(0<=p){if(2==$a){var a=R-ab,f=S-bb;cb(a*ka/300,f*ka/300)}else if(3==$a){var f=la(),b;T?(a=(R-f.x)/A,b=(S-f.y)/B):(b=(R-f.x)/A,a=(S-f.y)/B);db&&(b=1-b);eb&&(a=1-a);f=Math.floor((1-b)*e.f);a=Math.floor((1-a)*e.k);0>f&&(f=0);f>=e.f&&(f=e.f-1);0>a&&(a=0);a>=e.k&&(a=e.k-1);c.showObjectImage(f,a)}else U=0.4*(R-Ea),V=0.4*(S-Fa),Ea+=U,Fa+=V,cb(U*ka/10,V*ka/10),Bb&&c.changeFov(0.4*(0-100*g.a));c.b=j}if(0!=ca)switch(ca){case 16:c.changeFovLog(-1,j);c.b=j;break;case 17:case 18:case 91:c.changeFovLog(1, j),c.b=j}if(fb&&(0!=U||0!=V)&&0>p)U*=0.9,V*=0.9,0.1>U*U+V*V?V=U=0:(cb(U,V),c.b=j);if(!c.isLoaded&&c.hasConfig){for(a=f=0;a5*ra?ra/a:0.2,e.g*=a,e.m*=a,I*=a);e.x+=1*e.g;e.y+=1*e.m;e.x>=e.f&&(e.x-=e.f,fa-=e.f);0>e.x&&(e.x+=e.f,fa+=e.f);e.y>=e.k&&(e.y-=e.k,ga-=e.k);0>e.y&&(e.y+=e.k,ga+=e.k);g.a+=I/10;if(0I){var i;b=0.5-g.d/e.width;i=0.5-g.e/e.height;a=(Db-b)/Y;f=(Eb-i)/Y;console.log("Center: "+b+","+i+" "+a+","+f);g.d=(0.5-b-a)*e.width;g.e=(0.5-i-f)*e.height;console.log(g); Y--;Y&&(ma=j)}a=new Date;ib=a.getTime();c.b=j}else if(Z){e.g=0.95*e.g+0.05*ha;e.x+=e.g;if(jb&&(0>e.x||e.x>=e.f))ha=-ha,e.g=-e.g,e.x+=2*e.g;c.b=j}else if(ia&&(a=new Date,a=a.getTime()-ib,0>p&&01E3*Ga&&(Z=j,e.g=0,e.m=0)),fb&&0==ca&&0>p&&(0!=e.g||0!=e.m||0!=I))e.g*=0.9,e.m*=0.9,I*=0.9,e.x+=e.g,e.y+=e.m,c.changeFovLog(I),1.0E-4>e.g*e.g+e.m*e.m&&(e.g=0,I=e.m=0),c.b=j;if(0f.p?(f.p+=0.05,f.t f.p&&(f.p=f.t)),c.b=j);3==s&&$!=L&&($>L?(L+=0.05,$L&&(L=$)),c.b=j)}c.b&&(c.b=q,c.updateObject(),sa&&hc())}function Fb(){setTimeout(function(){Fb()},200);5C!=p.y>C&&c<(p.x-x.x)*(C-x.y)/(p.y-x.y)+x.x&&(o=!o);o&&(b= l)}}}}return 0<=b?y[b]:q}function hc(){if(c.i){var a,f;lb!=s&&(lb=s,c.i.style.visibility=0e.x;)e.x+=e.f;for(;e.x>=e.f;)e.x-=e.f}else 0>e.x&&(e.x=0),e.x>=e.f&&(e.x=e.f-1);if(Jb){for(;0>e.y;)e.y+=e.k;for(;e.y>=e.k;)e.y-=e.k}else 0>e.y&&(e.y=0),e.y>=e.k&&(e.y=e.k-1);e.state>=e.G&&(e.state=e.G-1);0>e.state&&(e.state=0);g.a=Math.max(g.min, Math.min(g.max,g.a));Kb&&(W=1=g.viewport*g.a*e.width)g.d=0;else{var a=(e.width*g.viewport*g.a-A)/(2*g.a*g.viewport);g.d=Math.max(-a,g.d);g.d=Math.min(+a,g.d)}B>=g.viewport*g.a*e.height?g.e=0:(a=(e.height*g.viewport*g.a-B)/(2*g.a*g.viewport),g.e=Math.max(-a,g.e),g.e=Math.min(+a,g.e))}function Lb(){ca=0;va||m()}function Mb(){ca=0;va||m()}function Nb(a){if(!va){a=a?a:window.event;ca=a.keyCode;if(0!=ca){switch(ca){case 37:W?g.d+=10/g.a:c.changePan(1,j);break;case 38:W?g.e+=10/g.a:c.changeTilt(1, j);break;case 39:W?g.d+=-10/g.a:c.changePan(-1,j);break;case 40:W?g.e-=10/g.a:c.changeTilt(-1,j);break;case 43:case 107:case 187:c.changeFovLog(-1,j);break;case 109:case 45:case 189:c.changeFovLog(1,j)}c.b=j}m()}}function Ob(a){D||(Bb=q,P(a.target)&&(a.preventDefault(),m(),pa&&pa.reset()))}function ic(a){D||(a.preventDefault(),1!=a.scale&&(Na*=a.scale,c.setZoom(Na*g.V),m()))}function jc(a){!D&&P(a.target)&&(a.preventDefault(),c.setZoom(event.scale*g.V),m())}function ob(a){Oa=j;Na=1;D||(a.touches? (c.o=a.touches.target,c.o==c.control&&(a.preventDefault(),m())):(a.preventDefault(),m()))}function kc(a){pa||(pa=new MSGesture,pa.target=c.i);pa.ma(a.sa)}function lc(a){D||(a.preventDefault(),p=-1)}function mc(a){if(!D){0<=p&&(a.preventDefault(),m());var f=(new Date).getTime(),b=-1,b=Math.abs(Pb-wa)+Math.abs(Qb-xa);if(0<=b&&20>b&&P(a.target)){var e=q;if(c.o)for(b=c.o;b&&b!=c.control;)b.onclick&&!e&&(b.onclick(),e=j),b=b.parentNode;if((b=kb(c.mouse.x,c.mouse.y))&&!e)Gb(b),e=j;na&&!e&&Hb();e&&a.preventDefault(); b=Math.abs(Rb-wa)+Math.abs(Sb-xa);if(700>f-c.K&&0<=b&&20>b&&!e){c.o==c.control&&pb&&setTimeout(function(){c.toggleFullscreen()},10);if(c.o){b=c.o;for(e=q;b&&b!=c.control;)b.ondblclick&&!e&&(b.ondblclick(),e=j),b=b.parentNode;e&&a.preventDefault()}c.K=0}else c.K=f;Rb=wa;Sb=xa}if(c.o){b=c.o;for(e=q;b&&a!=c.control;){if(b.onmouseout)b.onmouseout();a.onmouseup&&!e&&(b.onmouseup(),e=j);b=b.parentNode}e&&a.preventDefault()}c.o=k;p=-1}}function nc(a){a||(a=window.event);var f=a.touches,b=la();c.mouse.x= f[0].pageX-b.x+E;c.mouse.y=f[0].pageY-b.y+F;if(!D){if(1==f.length&&f[0]&&(wa=f[0].pageX,xa=f[0].pageY,0<=p)){a.preventDefault();for(b=0;bp&&f[0]){Ra=(new Date).getTime();Pb=f[0].pageX;Qb=f[0].pageY;wa=f[0].pageX;xa=f[0].pageY;c.o=f[0].target;P(f[0].target)&&(a.preventDefault(),qb(f[0].pageX,f[0].pageY),p=f[0].identifier,m());if(c.o){b=c.o;for(flag=q;b&&!P(b);){if(b.onmouseover)b.onmouseover();b.onmousedown&&!flag&&(b.onmousedown(),flag=j);b=b.parentNode}flag&&a.preventDefault()}Ia(f[0].pageX,f[0].pageY)}1f-Ra&&0<=b&&20>b&&P(a.target)){var b=Math.abs(Xb-R)+Math.abs(Yb-S),e=kb(c.mouse.x,c.mouse.y);e&&Gb(e);Xb=R;Yb=S;na&&(Ia(a.pageX,a.pageY),Hb());700>f-c.K&&0<=b&&20>b&&!e?(pb&&setTimeout(function(){c.toggleFullscreen()},10),c.K=0):c.K=f}m()}}function za(a){var f=la(),a=a?a:window.event,a=Sa(a);rb()?(c.mouse.x=a.screenX+E,c.mouse.y=a.screenY+F):(c.mouse.x=a.pageX-f.x+E,c.mouse.y=a.pageY-f.y+F);if(!D&&(0<=p&&(f=a.pageY,Pa=a.pageX,Qa=f,R=Pa,S=Qa,m(),a.preventDefault? a.preventDefault():a.returnValue=q),na&&P(a.target)?(Ia(a.pageX,a.pageY),0g.a)N.clear?N.clear():N.clearRect(0,0,r.width,r.height);if(0=C+2&&e.l[C+1].width>b;)C++;for(var m=C,p=q;!p;){p=j;l=e.l[m];var o=-a/b*(l.width/e.n);h=-f/i*(l.height/e.n);var s=(-a+A)/b*(l.width/e.n),t=(-f+B)/i*(l.height/e.n),o=Math.min(Math.max(0,Math.floor(o)),l.v-1);h=Math.min(Math.max(0,Math.floor(h)),l.O-1);s=Math.min(Math.max(0,Math.floor(s)), l.v-1);t=Math.min(Math.max(0,Math.floor(t)),l.O-1);for(z=h;z<=t;z++)for(h=o;h<=s;h++){var u=h+z*l.v,x=l.z[u];!x||!x.j?p=q:x.j.complete||(p=q)}p||(m+1=C;){l=e.l[m];o=-a/b*(l.width/e.n);h=-f/i*(l.height/e.n);s=(-a+A)/b*(l.width/e.n);t=(-f+B)/i*(l.height/e.n);o=Math.min(Math.max(0,Math.floor(o)),l.v-1);h=Math.min(Math.max(0,Math.floor(h)),l.O-1);s=Math.min(Math.max(0,Math.floor(s)),l.v-1);t=Math.min(Math.max(0,Math.floor(t)),l.O-1);for(z=h;z<=t;z++)for(h=o;h<=s;h++)u=h+z* l.v,(x=l.z[u])||(x=l.z[u]={}),!x.j&&5>ba&&(x.j=new Image,x.j.setAttribute("src",mb(e.r,e.s,e.u,m,h,z)),x.j.onload=qc,x.j.onerror=$b,x.j.onabort=$b,0==ba&&c.divSkin&&c.divSkin.ggReLoadedLevels&&c.divSkin.ggReLoadedLevels(),ba++),x.j&&x.j.complete&&(N.drawImage(x.j,a+(-e.da+e.n*h)*b/l.width,f+(-e.da+e.n*z)*i/l.height,x.j.width*b/l.width,x.j.height*i/l.height),sa=j);m--}g.J=g.a;g.T=g.d;g.U=g.e}else""!=n.src&&n.complete?(N.clear?N.clear():N.clearRect(0,0,r.width,r.height),N.drawImage(n,a,f,b,i),g.J=g.a, g.T=g.d,g.U=g.e,sa=j):c.b=j;if(sa)for(a=0;a=Va?ac(a):"rgba("+(a>>16&255)+","+(a>>8&255)+","+(a&255)+","+c+")"}var Aa,s,L,$,tb,ub,vb,wb,lb;function rc(a,c){var b=this;b.ka=a;b.hotspot=c;b.__div=document.createElement("div");b.j=document.createElement("img");var e;b.j.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.j.setAttribute("style","position: absolute;top: -14px;left: -14px;");b.__div.appendChild(b.j);e="position:absolute;"+(H+"user-select: none;");b.__div.setAttribute("style",e);b.__div.onclick=function(){b.ka.openUrl(c.url,c.target)};var g=Aa;g.enabled&&(b.text=document.createElement("div"),e="position:absolute;"+("left: -"+g.width/2+"px;"),e=e+"top:\t 20px;"+("width: "+g.width+"px;"),e=0==c.h?e+"height: auto;":e+("height: "+g.height+"px;"),c.wordwrap?e=e+"white-space: pre-wrap;"+("width: "+g.width+ "px;"):(e=0==g.height?e+"width: auto;":e+("width: "+g.width+"px;"),e+="white-space: nowrap;"),e+=H+"transform-origin: 50% 50%;",b.text.setAttribute("style",e+"visibility: hidden;border: 1px solid #000000;background-color: #ffffff;text-align: center;overflow: hidden;padding: 0px 1px 0px 1px;"),b.text.style.color=O(g.Y,g.X),b.text.style.backgroundColor=g.background?O(g.B,g.A):"transparent",b.text.style.border="solid "+O(g.D,g.C)+" "+g.Q+"px",b.text.style.borderRadius=g.P+"px",b.text.style.textAlign= "center",b.text.style.width=0>4,e=(e&15)<<4|h>>2,g=(h&3)<<6|m,c+=String.fromCharCode(b),64!=h&&(c+=String.fromCharCode(e)),64!=m&&(c+=String.fromCharCode(g));while(ng.max?g.max:a);c.b=j};c.setFov=function(a){m();c.setZoom(a/100)};c.changeFov=function(a){c.setFov(c.getFov()-10*a)};c.changeFovLog=function(a){c.setFov(c.getFov()*Math.exp(-a/50))};c.getX=function(){return e.r};c.getY=function(){return e.s};c.getState=function(){return e.u};c.setCenter=function(a,f){g.d=(0.5-a)*e.width;g.e=(0.5-f)*e.height;c.b=j};c.getCenter=function(){var a={};a.x=0.5-g.d/e.width;a.y=0.5-g.e/e.height;return a};c.setPanTilt=function(a,e){m();isNaN(a)||c.setPan(a);isNaN(e)|| c.setTilt(e);c.b=j};c.setPanTiltFov=function(a,e,b){m();isNaN(a)||c.setPan(a);isNaN(e)||c.setTilt(e);!isNaN(b)&&0=Y&&(Y=1)):Y=0};c.moveToDefaultView=function(a){c.moveTo(e.M,e.N,100*g.S,a)};var pa,Na=1,ob=function(a){Oa=j;!D&&P(a.target)&&(a.preventDefault(),g.V=g.a,m())};c.changeViewState=function(a,f){m();if(e.state!=a){e.state=a;if(0>","U"!=a.charAt(2))?(fc(),q):j}};c.setFullscreen=function(a){c.isFullscreen!=a&&(c.isFullscreen=a,c.b=j,c.F=j);if(c.isFullscreen){try{c.c.webkitRequestFullScreen? c.c.webkitRequestFullScreen():c.c.mozRequestFullScreen?c.c.mozRequestFullScreen():c.c.msRequestFullscreen?c.c.msRequestFullscreen():c.c.requestFullScreen?c.c.requestFullScreen():c.c.requestFullscreen&&c.c.requestFullscreen()}catch(e){}c.c.style.position="absolute";var a=la(),b=0,g=0;if("number"==typeof window.pageYOffset)g=window.pageYOffset,b=window.pageXOffset;else if(document.body&&(document.body.scrollLeft||document.body.scrollTop))g=document.body.scrollTop,b=document.body.scrollLeft;else if(document.documentElement&& (document.documentElement.scrollLeft||document.documentElement.scrollTop))g=document.documentElement.scrollTop,b=document.documentElement.scrollLeft;c.c.style.left=Math.round(b-a.x+E)+"px";c.c.style.top=Math.round(g-a.y+F)+"px";document.body.style.overflow="hidden";c.divSkin&&c.divSkin.ggEnterFullscreen&&c.divSkin.ggEnterFullscreen()}else{try{document.webkitIsFullScreen?document.webkitCancelFullScreen():document.mozFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen(): document.fullScreen&&(document.cancelFullScreen?document.cancelFullScreen():document.exitFullscreen&&document.exitFullscreen())}catch(h){}c.c.style.position="relative";c.c.style.left="0px";c.c.style.top="0px";document.body.style.overflow="";c.divSkin&&c.divSkin.ggExitFullscreen&&c.divSkin.ggExitFullscreen()}qa()};c.toggleFullscreen=function(){c.setFullscreen(!c.isFullscreen)};c.exitFullscreen=function(){c.setFullscreen(q)};c.startAutorotate=function(a,c,b){Z=ia=j;a&&0!=a&&(ha=a);c&&(Ga=c);b&&(jb= 1==b)};c.stopAutorotate=function(){ia=Z=q};c.toggleAutorotate=function(){Z=ia=!Z};var u;c.createLayers=function(a){var e;c.I=document.getElementById(a);c.I?(c.I.innerHTML="",e="max-width: none !important;max-height: none !important;min-width: none !important;min-height: none !important;padding 0px !important;margin 0px !important;",c.c=document.createElement("div"),c.c.setAttribute("style","top:\t0px;left: 0px;-ms-touch-action: none;position:relative;"+e),c.I.appendChild(c.c),t=document.createElement("div"), a="top:\t0px;left: 0px;overflow: hidden;position:absolute;"+(H+"user-select: none;"),t.setAttribute("style",a+e),c.c.appendChild(t),G=document.createElement("img"),G.setAttribute("galleryimg","false"),a="top:\t0px;left: 0px;position:absolute;visibility: hidden;"+(H+"user-select: none;"),G.setAttribute("style",a+e),t.appendChild(G),n=document.createElement("img"),n.setAttribute("galleryimg","false"),a="top:\t0px;left: 0px;position:absolute;"+(H+"user-select: none;"),n.setAttribute("style",a+e),t.appendChild(n), ea=n,Q=document.createElement("canvas"),a="top:\t0px;left: 0px;width: 100px;height: 100px;visibility: hidden;position:absolute;"+(H+"user-select: none;"),Q.setAttribute("style",a+e),t.appendChild(Q),r=document.createElement("canvas"),a="top:\t0px;left: 0px;width: 100px;height: 100px;position:absolute;"+(H+"user-select: none;"),r.setAttribute("style",a+e),t.appendChild(r),h=document.createElement("div"),h.setAttribute("style","top:\t0px;left: 0px;position:absolute;padding: 3px;visibility: hidden;z-index: 1100;"), h.innerHTML=" Hotspot text!",t.appendChild(h),M=document.createElement("div"),a="top:\t0px;left: 0px;width: 100px;height: 100px;overflow: hidden;position:absolute;z-index: 1000;"+(H+"user-select: none;"),M.setAttribute("style",a+e),c.c.appendChild(M),c.i=document.createElement("canvas"),a="top:\t0px;left: 0px;width: 100px;height: 100px;overflow: hidden;position:absolute;z-index: 900;"+(H+"user-select: none;"),c.i.setAttribute("style",a+e),c.c.appendChild(c.i),c.divSkin=M):alert("container not found!")}; c.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));c.readConfigXml(xmlDoc)};c.readConfigUrl=function(a){try{var e;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.open("GET",a,q);e.send(k);var b=e.responseXML;if(b){var g=a.lastIndexOf("/");0<=g&&(sb=a.substr(0,g+1));c.readConfigXml(b)}else alert("Error loading XML")}catch(h){alert("Error XML:"+ h)}};var Wa=j;c.readConfigXml=function(a){var f=a.firstChild,a=f.firstChild;a==k&&(a=f.nextSibling.firstChild);for(var b;a;){if("view"==a.nodeName)for(f=a.firstChild;f;){"start"==f.nodeName&&(b=f.getAttributeNode("column"),e.M=Number(b?b.nodeValue:0),e.x=e.M,b=f.getAttributeNode("row"),e.N=Number(b?b.nodeValue:0),e.y=e.N,b=f.getAttributeNode("state"),e.W=Number(b?b.nodeValue:0),e.state=e.W);"zoom"==f.nodeName&&(b=f.getAttributeNode("min"),g.min=1*(b?b.nodeValue:1),b=f.getAttributeNode("default"), g.S=1*(b?b.nodeValue:1),g.a=g.S,b=f.getAttributeNode("max"),g.max=1*(b?b.nodeValue:1),b=f.getAttributeNode("centerx"),g.d=1*(b?b.nodeValue:0),b=f.getAttributeNode("centery"),g.e=1*(b?b.nodeValue:0));if("viewer"==f.nodeName&&((b=f.getAttributeNode("background"))&&(bc=1==b.nodeValue),(b=f.getAttributeNode("backgroundcolor"))&&(cc=1*b.nodeValue),b=f.getAttributeNode("imagescaling")))g.fa=1*b.nodeValue;f=f.nextSibling}if("autorotate"==a.nodeName&&(Wa&&(ia=q),(b=a.getAttributeNode("start"))&&(ia=1==b.nodeValue), (b=a.getAttributeNode("pingpong"))&&(jb=1==b.nodeValue),(b=a.getAttributeNode("speed"))&&(ha=1*b.nodeValue),(b=a.getAttributeNode("delay"))&&(Ga=1*b.nodeValue),Z=ia,(b=a.getAttributeNode("onlyonce"))&&0