/* krpano Embedding Script krpano 1.17 (build 2014-04-03) */ function createPanoViewer(e){function ot(e){return(""+e)[nt]()}function ut(e,t){return e[d](t)>=0}function at(){var t,r,i,s,o,u,a=n.location;a=a.search||a.hash;if(a){t=a[W](1)[I]("&");for(r=0;r=10.1&&(o=m),l=N(),c=C(),h=ot(t.platform),v=0,g=0,y=0,b=i[d]("firefox/"),b<0&&(b=i[d]("gecko/")),b>=0&&(v=parseInt(i[R](1+i[d]("/",b)),10)),b=i[d](K),b>0&&(y=parseInt(i[R](b+7),10)),b=i[d](Q),b>0&&(g=parseInt(i[R](b+8),10),v>=18&&(g=4)),l&&(g>0&&g<4&&(l=p),v>3&&v<18&&g>1&&(c=l=p),c||(h[d](G)<0&&v>3&&g<1&&(l=p),y>9&&y<20&&(l=p)));if(l||c){a=m,E=i[d]("blackberry")>=0||i[d]("rim tablet")>=0||i[d]("bb10")>=0,S=(t.msMaxTouchPoints|0)>1;if(g>=4||E||S)f=m}}s=m}}var t,n,r,i,s,o,u,a,f,l,c,h,p=!1,d="indexOf",v="addEventListener",m=!0,g="externalMouseEvent",y="target",b="wmode",w=null,E="targetelement",S="onerror",x="length",T="getElementById",N="bgcolor",C="onmousewheel",k="flashbasepath",L="enable_mousewheel_js_bugfix",A="createElement",O="html5",M="useHTML5",_="mimeTypes",D="params",P="passQueryParameters",H="always",B="consolelog",j="srcElement",F="never",I="split",q="onready",R="slice",U="xml",z="externalMouseEvent2",W="substring",X="undefined",V="vars",$="basepath",J="mwheel",K="chrome",Q="android",G="mac",Y="plugins",Z="stopPropagation",et="lastIndexOf",tt="preventDefault",nt="toLowerCase",rt="addVariable",it='" />',st="only";return t=navigator,n=document,r=window,i=ot(t.userAgent),s=p,o=p,u=0,a=p,f=p,e||(e={}),l=e[P]===m,e.swf||(e.swf="krpano.swf"),e.js||(e.js=w),e[U]===undefined&&(e[U]=e.swf[I](".swf").join(".xml")),e.id||(e.id="krpanoSWFObject"),e.width||(e.width="100%"),e.height||(e.height="100%"),e[N]||(e[N]="#000000"),e[b]||(e[b]=w),e[y]||(e[y]=w),e[O]||(e[O]="auto"),e[J]===undefined&&(e[J]=m),e[V]||(e[V]=[]),e[D]||(e[D]=[]),e[q]||(e[q]=w),e[$]?e[k]=e[$]:(c="./",h=e.swf[et]("/"),h>=0&&(c=e.swf[R](0,h+1)),e[$]=c),e.isDevice=function(e){var t,n,r,s="all",o=["ipad","iphone","ipod",Q];for(t in o)i[d](o[t])>=0&&(s+="|"+o[t]);e=ot(e)[I]("|");if(e==w)return m;n=e[x];for(t=0;t=0)return m}return p},e[rt]=function(t,n){t=ot(t),t=="pano"||t==U?e[U]=n:e[V][t]=n},e.addParam=function(t,n){e[D][ot(t)]=n},e[M]!==undefined&&(e[O]=e[M]),e[M]=function(t){e[O]=t},e.isHTML5possible=function(){return lt(),a},e.isFlashpossible=function(){return lt(),o},e[S]||(e[S]=function(t){var n=e[E];n?n.innerHTML='
ERROR:

'+t+"

":alert("ERROR: "+t)}),e.embed=function(s){var c,h,M,P,I,W,$,Q,rt;s&&(e[y]=s),e[E]=n[T](e[y]);if(!e[E])e[S]("No Embedding Target");else{l&&at(),e[J]==p&&(e[V]["control.disablewheel"]=m),e[B]&&(e[V][B]=e[B]),lt(),c=ot(e[O]),h=o,M=a,P=a&&(!r[K]||n.domain!=""||!o),c==F?M=p:ut(c,st)&&(h=p),ut(c,H)?(o=h=p,a=M=m):M&&(c=="whenpossible"||ut(c,"prefer")&&P||ut(c,"auto")&&f)&&(h=p);if(h&&o){function ft(e){function S(e){function a(){r[v]?(r[v]("DOMMouseScroll",c,p),r[v]("mousewheel",c,p),n[v]("mousedown",f,p),n[v]("mouseup",l,p)):(r.opera?r.attachEvent(C,c):r[C]=n[C]=c,n.onmousedown=f,n.onmouseup=l)}function f(e){e||(e=r.event,e[y]=e[j]),u=e?e[y]:w}function l(e){var t,i,s,a,f,l,c,h;e||(e=r.event,e[y]=e[j]),t=0,i=o[x];for(t=0;t=f.left&&e.clientX=f.top&&e.clientY=0,o=r._krpMW,u=w;o||(o=r._krpMW=new Array,a()),i=e[b],o.push({id:e.id,needfix:s||!!r[K]||i=="opaque"||i=="transparent"})}var i,s,o,u,a,f="",l=e[V],c=e[D],h=e.id;for(;;){s=n[T](h);if(!s)break;h+=String.fromCharCode(48+Math.floor(9*Math.random())),e.id=h}e[b]&&(c[b]=e[b]),e[N]&&(c[N]=e[N]),e[U]!==undefined&&(l[U]=e[U]),e[b]=ot(c[b]),c.allowfullscreen="true",c.allowscriptaccess=H;for(i in l)f!=""&&(f+="&"),f+=encodeURIComponent(i)+"="+encodeURIComponent(l[i]);c.flashvars=f,e[k]&&(c.base=e[k]),o="",u=' id="'+h+'" width="'+e.width+'" height="'+e.height+'" style="outline:none;" ',a="_krpcb_"+h,!e[q]||(r[a]=function(){try{delete r[a]}catch(t){r[a]=w}e[q](n[T](h))});if(t[Y]&&t[_]&&t[_][x]){o='"}e[E].innerHTML=o,S(e)}u>=11.4&&(I=m,ot(t.platform)[d](G)>=0&&ot(t.vendor)[d]("apple")>=0&&(W=i[d]("webkit/"),W>0&&(W=parseFloat(i[R](W+7)),!isNaN(W)&&W>0&&W<534&&(I=p))),I&&e[b]==w&&!e[D][b]&&(e[b]="direct")),ft(e)}else if(M&&a){function ct(t){function i(e,t,r){var i,s=n.getElementsByTagName("head");s&&(s=s[0]),s||(s=n.body),s?(i=n[A]("script"),i.type="text/javascript",i.async=m,i.onload=t,i[S]=r,i.src=e,s.appendChild(i)):r()}function s(){return typeof embedpanoJS!==X}function o(){s()?(e[V][U]=e[U],e[D]=e,e.htmltarget=e[y],embedpanoJS(t)):u()}function u(){t[S]("HTML5 Version not available!")}var r=t.js;r||(r=t.swf,r=r[R](0,r[nt]()[et](".swf")+1)+"js"),s()?o():i(r,o,u)}ct(e)}else $="",Q=c!=F,rt=o==p&&(c==F||!ut(c,H)&&!ut(c,st)),rt&&($+="Adobe Flashplayer 10.1 (or higher)"),rt&&Q&&($+=" or a
"),Q&&($+="HTML5 Browser with CSS 3D Transforms or WebGL support"),rt&&Q&&($+=" are"),$+=" required!",e[S]($)}},ft(e)}function removepano(e){var t,n,r,i,s=document.getElementById(e);if(s){t=window._krpMW;if(t)for(n=0;n