rem: x=null,Sa=[0,20,32,38,50,70],Ta=[0,20,44,64],Ia=6,La="#000000",qa=null,Ja=0,Ka=0,J=null,T=0,z=null,U=0,da=0,ra=!1,r=null,la=[0,38,50,134,146,184],Ra=[64,134,160,234],ea=28,Da=64,oa=30,pa=30,S=oa+pa,ha="#000000",Ba="rgba(27,82,225,1.0)",Ca="rgba(68,137,246,0.7)",ya="#FFFFFF",na="lightgray",W="68,137,246",X="27,82,225",G=null,ja=null,D=0,n=0,M=0,I=0,y=null,t=null,ia=0,aa="Arial",E=0,K="normal",u=0,v=0,sa=!0,ma="Arial",V=16,fa="normal",N=10,Ma=!1,L="webkitTransform",Fa="-webkit-background-size";this.registerplugin= function(a,b,g){j=a;c=g;if("1.16">j.version)j.trace(3,"Combobox Plugin - too old krpano version (min. version 1.16)"),c=j=null;else{k=j.device;k.realDesktop&&(a=navigator.userAgent,0<a.indexOf("Safari/")&&0<a.indexOf("Version/")&&(Ma=!0));L=k.browser.css.transform;Fa=k.browser.css.backgroundsize;a=window.devicePixelRatio;k.pixelratio&&(a=k.pixelratio);p=k.tablet&&1<a?2:1;k.androidstock&&(ka=a);k.realDesktop&&(p=2);c.registerattribute("native","false");c.registerattribute("customstyle",null);c.registerattribute("cbfont", "auto",function(a){aa="auto"==String(a).toLowerCase()?"Arial":a;H()},function(){return aa});c.registerattribute("cbfontsize","auto",function(a){E=parseInt(a);if(isNaN(E)||0>=E)E=j.isphone?16:14;H()},function(){return E});c.registerattribute("cbfontstyle","normal",function(a){K=String(a).toLowerCase()},function(){return K});c.registerattribute("cbpadding","auto",function(a){u=parseInt(a);if(isNaN(u)||0>=u)u=8;H()},function(){return u});c.registerattribute("cbdesignscale","auto",function(a){v=parseInt(a); if(isNaN(v)||0>=v)v=j.device.mobile?2:1;H()},function(){return v});c.registerattribute("cbtoosmallfix",!0,function(a){sa="true"==String(a).toLowerCase()},function(){return sa});c.registerattribute("itemfont","Arial",function(a){ma="auto"==String(a).toLowerCase()?"Arial":a},function(){return ma});c.registerattribute("itemfontsize",16,function(a){V=parseInt(a);if(isNaN(V)||0>=V)V=16},function(){return V});c.registerattribute("itemfontstyle","normal",function(a){fa=String(a).toLowerCase()},function(){return fa}); c.registerattribute("itempadding",10,function(a){N=parseInt(a);if(isNaN(N)||0>N)N=10},function(){return N});z=c.createarray("item");c.additem=Ua;c.addiditem=ta;c.addnameditem=ta;c.removeall=Va;c.selectitem=Wa;c.selectiditem=Na;c.selectnameditem=Na;c.openlist=Xa;c.closelist=Ya;a=String(c["native"]).toLowerCase();s="auto"==a?k.desktop:"true"==a;if(!1==s){var f=new Image;a=!1;f.addEventListener("load",function(){J=f;ca()},!1);null!=c.customstyle&&""!=c.customstyle&&(b=c.customstyle.split("|"),8==b.length&& (a=!0,f.src=j.parsePath(b[0]),La=$(Number(b[1])),ha=$(Number(b[2])),Ba=$(Number(b[3])),Ca="rgba("+(Number(b[3])>>16&255)+","+(Number(b[3])>>8&255)+","+(Number(b[3])&255)+",0.3)",ya=$(Number(b[4])),W=""+(Number(b[5])>>16&255)+","+(Number(b[5])>>8&255)+","+(Number(b[5])&255),X=""+(Number(b[6])>>16&255)+","+(Number(b[6])>>8&255)+","+(Number(b[6])&255),na=$(Number(b[7]))));!1==a&&(f.src=Za);x=document.createElement("canvas");x.onselectstart=function(){return!1};A(x,"down",Qa,!0);qa=x.getContext("2d"); c.sprite.appendChild(x);H(!0)}else Y();j.set("events[_combobox_"+c.name+"].keep",!0);j.set("events[_combobox_"+c.name+"].onresize",function(){!1==s&&(C(),ra&&(c._width=null,H(!0)))})}};var O=!1,ba=0,q=0,ga=0,R=null,F=[],B=0,P=null,Q=null;this.unloadplugin=function(){j&&c&&(C(),s&&x&&c.sprite.removeChild(x),j.set("events[_combobox_"+c.name+"].name",null),j=c=null)};this.onresize=function(a){if(s){if(c.sprite&&c.sprite.childNodes&&1<=c.sprite.childNodes.length){var b=c.sprite.childNodes[0];b&&(b.style.width= 
add: this.registerplugin = function(a, b, g) {console.log(g); j = a; c = g; if ("1.16" > j.version) j.trace(3, "Combobox Plugin - too old krpano version (min. version 1.16)"), c = j = null; else { k = j.device; k.realDesktop && (a = navigator.userAgent, 0 < a.indexOf("Safari/") && 0 < a.indexOf("Version/") && (Ma = !0)); L = k.browser.css.transform; Fa = k.browser.css.backgroundsize; a = window.devicePixelRatio; k.pixelratio && (a = k.pixelratio); p = k.tablet && 1 < a ? 2 : 1; k.androidstock && (ka = a); k.realDesktop && (p = 2); c.registerattribute("native", "false"); c.registerattribute("customstyle", null); c.registerattribute("cbfont", "auto", function(a) { aa = "auto" == String(a).toLowerCase() ? "Arial" : a; H() }, function() { return aa }); c.registerattribute("cbfontsize", "auto", function(a) { E = parseInt(a); if (isNaN(E) || 0 >= E) E = j.isphone ? 16 : 14; H() }, function() { return E }); c.registerattribute("cbfontstyle", "normal", function(a) { K = String(a).toLowerCase() }, function() { return K }); c.registerattribute("cbpadding", "auto", function(a) { u = parseInt(a); if (isNaN(u) || 0 >= u) u = 8; H() }, function() { return u }); c.registerattribute("cbdesignscale", "auto", function(a) { v = parseInt(a); if (isNaN(v) || 0 >= v) v = j.device.mobile ? 2 : 1; H() }, function() { return v }); c.registerattribute("cbtoosmallfix", !0, function(a) { sa = "true" == String(a).toLowerCase() }, function() { return sa }); c.registerattribute("itemfont", "Arial", function(a) { ma = "auto" == String(a).toLowerCase() ? "Arial" : a }, function() { return ma }); c.registerattribute("itemfontsize", 16, function(a) { V = parseInt(a); if (isNaN(V) || 0 >= V) V = 16 }, function() { return V }); c.registerattribute("itemfontstyle", "normal", function(a) { fa = String(a).toLowerCase() }, function() { return fa }); c.registerattribute("itempadding", 10, function(a) { N = parseInt(a); if (isNaN(N) || 0 > N) N = 10 }, function() { return N }); z = c.createarray("item"); c.additem = Ua; c.addiditem = ta; c.addnameditem = ta; c.removeall = Va; c.selectitem = Wa; c.selectiditem = Na; c.selectnameditem = Na; c.openlist = Xa; c.closelist = Ya; a = String(c["native"]).toLowerCase(); s = "auto" == a ? k.desktop : "true" == a; if (!1 == s) { var f = new Image; a = !1; f.addEventListener("load", function() { J = f; ca() }, !1); null != c.customstyle && "" != c.customstyle && (b = c.customstyle.split("|"), 8 == b.length && (a = !0, f.src = j.parsePath(b[0]), La = $(Number(b[1])), ha = $(Number(b[2])), Ba = $(Number(b[3])), Ca = "rgba(" + (Number(b[3]) >> 16 & 255) + "," + (Number(b[3]) >> 8 & 255) + "," + (Number(b[3]) & 255) + ",0.3)", ya = $(Number(b[4])), W = "" + (Number(b[5]) >> 16 & 255) + "," + (Number(b[5]) >> 8 & 255) + "," + (Number(b[5]) & 255), X = "" + (Number(b[6]) >> 16 & 255) + "," + (Number(b[6]) >> 8 & 255) + "," + (Number(b[6]) & 255), na = $(Number(b[7])))); !1 == a && (f.src = Za); x = document.createElement("canvas"); x.onselectstart = function() { return !1 }; A(x, "down", Qa, !0); qa = x.getContext("2d"); c.sprite.appendChild(x); H(!0) } else Y(); j.set("events[_combobox_" + c.name + "].keep", !0); j.set("events[_combobox_" + c.name + "].onresize", function() { !1 == s && (C(), ra && (c._width = null, H(!0))) }) } }; 
context: x=null,Sa=[0,20,32,38,50,70],Ta=[0,20,44,64],Ia=6,La="#000000",qa=null,Ja=0,Ka=0,J=null,T=0,z=null,U=0,da=0,ra=!1,r=null,la=[0,38,50,134,146,184],Ra=[64,134,160,234],ea=28,Da=64,oa=30,pa=30,S=oa+pa,ha="#000000",Ba="rgba(27,82,225,1.0)",Ca="rgba(68,137,246,0.7)",ya="#FFFFFF",na="lightgray",W="68,137,246",X="27,82,225",G=null,ja=null,D=0,n=0,M=0,I=0,y=null,t=null,ia=0,aa="Arial",E=0,K="normal",u=0,v=0,sa=!0,ma="Arial",V=16,fa="normal",N=10,Ma=!1,L="webkitTransform",Fa="-webkit-background-size";this.registerplugin=function(a,b,g){j=a;c=g;if("1.16">j.version)j.trace(3,"Combobox Plugin - too old krpano version (min. version 1.16)"),c=j=null;else{k=j.device;k.realDesktop&&(a=navigator.userAgent,0<a.indexOf("Safari/")&&0<a.indexOf("Version/")&&(Ma=!0));L=k.browser.css.transform;Fa=k.browser.css.backgroundsize;a=window.devicePixelRatio;k.pixelratio&&(a=k.pixelratio);p=k.tablet&&1<a?2:1;k.androidstock&&(ka=a);k.realDesktop&&(p=2);c.registerattribute("native","false");c.registerattribute("customstyle",null);c.registerattribute("cbfont","auto",function(a){aa="auto"==String(a).toLowerCase()?"Arial":a;H()},function(){return aa});c.registerattribute("cbfontsize","auto",function(a){E=parseInt(a);if(isNaN(E)||0>=E)E=j.isphone?16:14;H()},function(){return E});c.registerattribute("cbfontstyle","normal",function(a){K=String(a).toLowerCase()},function(){return K});c.registerattribute("cbpadding","auto",function(a){u=parseInt(a);if(isNaN(u)||0>=u)u=8;H()},function(){return u});c.registerattribute("cbdesignscale","auto",function(a){v=parseInt(a);if(isNaN(v)||0>=v)v=j.device.mobile?2:1;H()},function(){return v});c.registerattribute("cbtoosmallfix",!0,function(a){sa="true"==String(a).toLowerCase()},function(){return sa});c.registerattribute("itemfont","Arial",function(a){ma="auto"==String(a).toLowerCase()?"Arial":a},function(){return ma});c.registerattribute("itemfontsize",16,function(a){V=parseInt(a);if(isNaN(V)||0>=V)V=16},function(){return V});c.registerattribute("itemfontstyle","normal",function(a){fa=String(a).toLowerCase()},function(){return fa});c.registerattribute("itempadding",10,function(a){N=parseInt(a);if(isNaN(N)||0>N)N=10},function(){return N});z=c.createarray("item");c.additem=Ua;c.addiditem=ta;c.addnameditem=ta;c.removeall=Va;c.selectitem=Wa;c.selectiditem=Na;c.selectnameditem=Na;c.openlist=Xa;c.closelist=Ya;a=String(c["native"]).toLowerCase();s="auto"==a?k.desktop:"true"==a;if(!1==s){var f=new Image;a=!1;f.addEventListener("load",function(){J=f;ca()},!1);null!=c.customstyle&&""!=c.customstyle&&(b=c.customstyle.split("|"),8==b.length&&(a=!0,f.src=j.parsePath(b[0]),La=$(Number(b[1])),ha=$(Number(b[2])),Ba=$(Number(b[3])),Ca="rgba("+(Number(b[3])>>16&255)+","+(Number(b[3])>>8&255)+","+(Number(b[3])&255)+",0.3)",ya=$(Number(b[4])),W=""+(Number(b[5])>>16&255)+","+(Number(b[5])>>8&255)+","+(Number(b[5])&255),X=""+(Number(b[6])>>16&255)+","+(Number(b[6])>>8&255)+","+(Number(b[6])&255),na=$(Number(b[7]))));!1==a&&(f.src=Za);x=document.createElement("canvas");x.onselectstart=function(){return!1};A(x,"down",Qa,!0);qa=x.getContext("2d");c.sprite.appendChild(x);H(!0)}else Y();j.set("events[_combobox_"+c.name+"].keep",!0);j.set("events[_combobox_"+c.name+"].onresize",function(){!1==s&&(C(),ra&&(c._width=null,H(!0)))})}};var O=!1,ba=0,q=0,ga=0,R=null,F=[],B=0,P=null,Q=null;this.unloadplugin=function(){j&&c&&(C(),s&&x&&c.sprite.removeChild(x),j.set("events[_combobox_"+c.name+"].name",null),j=c=null)};this.onresize=function(a){if(s){if(c.sprite&&c.sprite.childNodes&&1<=c.sprite.childNodes.length){var b=c.sprite.childNodes[0];b&&(b.style.width=
meta: 8161	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8161/5e662936c67491895fae4768ed7f4394486f2ad5/combobox.js/clean/demo/huifengshangxueyuan/plugins/combobox.js