rem: var a=0,b=-(ia-(n-S));q<b?a=q-b:0<q&&(a=q);0!=a&&(a*=-1,B=0>=a*B?B+0.08*a:0.15*a);0==a&&0.05>Math.abs(B)&&(B=0,clearInterval(R),R=null);k.android&&k.firefox?t.style.top=q-2+"px":t.style[L]="translate3d(0px, "+(q-2)+"px, 0px)"}function Qa(){za()}function za(){if(1==U)C();else{void 0!=j._opencombobox_singleton_cb&&j._opencombobox_singleton_cb();j._opencombobox_singleton_cb=C;var a,b;U=1;Y();Q=P=null;var g=j.stagescale;b=Z(0,0);var f=Z(c.pixelwidth*g,c.pixelheight*g);da=j.area.pixelheight*g-f.y>b.y? 0:1;r=document.createElement("div");r.style.position="absolute";r.style.zIndex=1E3;k.ie&&(r.style.zIndex=999999999);!0!=k.androidstock&&(r.style[L]="translateZ(+1000000000000px)");j.control.layer.appendChild(r);G=document.createElement("div");G.style.position="absolute";G.style.left="0px";G.style.top="0px";G.style.overflow="hidden";G.onselectstart=function(){return!1};ja=Array(15);for(a=0;15>a;a++){var e=document.createElement("div");e.style.position="absolute";e.style.overflow="hidden";ja[a]=e;r.appendChild(e)}r.appendChild(G); r.style.opacity=0;a=j.device.mobile?0.5:1;D=Aa(ka)*a+1*(la[1]-la[0]-ea);100>D&&(D=100);M=(b.x+f.x)/2-D/2;0>M&&(M=0);M+D>j.area.pixelwidth*g&&(D=j.area.pixelwidth*g-M);t=document.createElement("div");t.style.position="absolute";t.style.left="0px";t.style.top="0px";t.style.width=(D-1*ea-2*N|0)+"px";k.android&&k.firefox?t.style.top=q-2+"px":(t.style[L+"Style"]="preserve-3d",t.style[L]="translate3d(0px, "+(q-2)+"px, 0px)");var d,h=(99999*Math.random()).toFixed(0),l="font-family:"+ma+";font-size:"+V*ka+ "px;color:"+ha+";padding:"+N+"px;";0<=fa.indexOf("bold")&&(l+="font-weight:bold;");0<=fa.indexOf("italic")&&(l+="font-style:italic;");d="";b=z.count;for(a=0;a<b;a++)if((e=z.getItem(a))&&e.caption){var m=e.caption,u="_krpcbx_"+h+"_"+c.name+"_item"+a,p=T==a?"color:"+Ba+";text-shadow:0px 0px 1px "+Ca+";":"";e._htmlid=u;d+="<div id='"+u+"' style='width:100%;border-bottom:1px solid "+na+";"+(0==a?"border-top:1px solid "+na+";":"")+l+p+"'>"+m+"</div>"}t.innerHTML=d+"";t.style.visibility="hidden";r.appendChild(t); n=oa+t.offsetHeight+pa;n<S&&(n=oa+50*z.count+pa,n<S&&(n=S));120>n&&(n=120);ia=n-S;r.removeChild(t);t.style.visibility="visible";0==da?(I=f.y-4,I+n-10>j.area.pixelheight*g&&(n=j.area.pixelheight*g-I+10)):(I=f.y-24*v*g-n,-15>I&&(n+=I+15,I=-15));G.style.width=D+"px";G.style.height=n+"px";r.style.left=M+"px";r.style.top=I+"px";y=document.createElement("div");y.style.position="absolute";y.style.left=0.5*ea+"px";y.style.top=0.5*Da+"px";y.style.width=(D-1*ea-1|0)+"px";y.style.height=(n-1*Da|0)+"px";y.style.overflow= "hidden";y.style.color="#000";y.style[L+"Style"]="preserve-3d";A(y,"down",Oa,!0);k.topAccess&&A(top,"down",C,!1);r.appendChild(y);y.appendChild(t);b=z.count;for(a=0;a<b;a++)if((e=z.getItem(a))&&e.caption)if(g=document.getElementById(e._htmlid))g._krpcbitemindex=a,0<g.childNodes.length&&(g.childNodes[0].id=e._htmlid+"_text",g.childNodes[0]._krpcbitemindex=a);h=j.stagescale;a=la;g=Ra;f=[];b=[];for(e=0;6>e;e++)f[e]=a[e+1]-a[e];for(d=0;3>d;d++)b[d]=g[d+1]-g[d];d=D|0;e=n|0;h=Z(0.5*c.pixelwidth*h,0).x- M;m=l=0;l=((d-0.5*(f[0]+f[2]+f[4]))/2|0)-(d-0.5*(f[0]+f[4]))/2+Math.floor(h-0.25*f[2]);0>l&&(l=0);m=d-l-0.5*(f[0]+f[2]+f[4])|0;0>m&&(m=0,l=d-m-0.5*(f[0]+f[2]+f[4])|0,0>l&&(l=0));h=[0.5*f[0]|0,l,0.5*f[2]|0,m,0.5*f[4]|0];l=[0.5*b[0]|0,e-(0.5*(b[0]+b[2])|0),0.5*b[2]|0];m=[0,h[0],h[0]+h[1],h[0]+h[1]+h[2],h[0]+h[1]+h[2]+h[3]];u=[0,l[0],l[0]+l[1]];p=null;for(d=0;3>d;d++)for(e=0;5>e;e++){var p=ja[5*d+e],s=e,Ea=d;if((0==d||2==d)&&2==e)if(0==d&&1==da||2==d&&0==da)s=e-1;var x=h[e]/f[s],w=l[d]/b[Ea];p.style.backgroundImage= 'url("'+J.src+'")';p.style[Fa]=J.naturalWidth*x+"px "+J.naturalHeight*w+"px";p.style.backgroundPosition=-a[s]*x+"px "+-g[Ea]*w+"px";p.style.left=m[e]+"px";p.style.top=u[d]+"px";p.style.width=h[e]+"px";p.style.height=l[d]+"px"}Ga(r,1,0.1);A(j.control.layer,"down",C,!1)}}function C(){1==U&&(U=0,null==j||null==c||(Y(),k.topAccess&&A(top,"down",C,!1,!0),A(j.control.layer,"down",C,!1,!0),Ga(r,0,0.1,function(){j.control.layer.removeChild(r)})))}function Ga(a,b,c,f){c*=1E3;var e=0,d=a.style.opacity,h=!1, 
add: function za() { if (1 == U) C(); else { void 0 != j._opencombobox_singleton_cb && j._opencombobox_singleton_cb(); j._opencombobox_singleton_cb = C; var a, b; U = 1; Y(); Q = P = null; var g = j.stagescale; b = Z(0, 0); var f = Z(c.pixelwidth * g, c.pixelheight * g); da = j.area.pixelheight * g - f.y > b.y ? 0 : 1; r = document.createElement("div"); r.style.position = "absolute"; r.style.zIndex = 1E3; k.ie && (r.style.zIndex = 999999999); !0 != k.androidstock && (r.style[L] = "translateZ(+1000000000000px)"); j.control.layer.appendChild(r); G = document.createElement("div"); G.style.position = "absolute"; G.style.left = "0px"; G.style.top = "0px"; G.style.overflow = "hidden"; G.onselectstart = function() { return !1 }; ja = Array(15); for (a = 0; 15 > a; a++) { var e = document.createElement("div"); e.style.position = "absolute"; e.style.overflow = "hidden"; ja[a] = e; r.appendChild(e) } r.appendChild(G); r.style.opacity = 0; a = j.device.mobile ? 0.5 : 1; D = Aa(ka) * a + 1 * (la[1] - la[0] - ea); 100 > D && (D = 100); M = (b.x + f.x) / 2 - D / 2; 0 > M && (M = 0); M + D > j.area.pixelwidth * g && (D = j.area.pixelwidth * g - M); t = document.createElement("div"); t.style.position = "absolute"; t.style.left = "0px"; t.style.top = "0px"; t.style.width = (D - 1 * ea - 2 * N | 0) + "px"; k.android && k.firefox ? t.style.top = q - 2 + "px" : (t.style[L + "Style"] = "preserve-3d", t.style[L] = "translate3d(0px, " + (q - 2) + "px, 0px)"); var d, h = (99999 * Math.random()).toFixed(0), l = "font-family:" + ma + ";font-size:" + V * ka + "px;color:" + ha + ";padding:" + N + "px;"; 0 <= fa.indexOf("bold") && (l += "font-weight:bold;"); 0 <= fa.indexOf("italic") && (l += "font-style:italic;"); d = ""; b = z.count; for (a = 0; a < b; a++) if ((e = z.getItem(a)) && e.caption) { var m = e.caption, u = "_krpcbx_" + h + "_" + c.name + "_item" + a, p = T == a ? "color:" + Ba + ";text-shadow:0px 0px 1px " + Ca + ";" : ""; e._htmlid = u; d += "<div id='" + u + "' style='width:100%;border-bottom:1px solid " + na + ";" + (0 == a ? "border-top:1px solid " + na + ";" : "") + l + p + "'>" + m + "</div>" } t.innerHTML = d + ""; t.style.visibility = "hidden"; r.appendChild(t); n = oa + t.offsetHeight + pa; n < S && (n = oa + 50 * z.count + pa, n < S && (n = S)); 120 > n && (n = 120); ia = n - S; r.removeChild(t); t.style.visibility = "visible"; 0 == da ? (I = f.y - 4, I + n - 10 > j.area.pixelheight * g && (n = j.area.pixelheight * g - I + 10)) : (I = f.y - 24 * v * g - n, -15 > I && (n += I + 15, I = -15)); G.style.width = D + "px"; G.style.height = n + "px"; r.style.left = M + "px"; r.style.top = I + "px"; y = document.createElement("div"); y.style.position = "absolute"; y.style.left = 0.5 * ea + "px"; y.style.top = 0.5 * Da + "px"; y.style.width = (D - 1 * ea - 1 | 0) + "px"; y.style.height = (n - 1 * Da | 0) + "px"; y.style.overflow = "hidden"; y.style.color = "#000"; y.style[L + "Style"] = "preserve-3d"; A(y, "down", Oa, !0); k.topAccess && A(top, "down", C, !1); r.appendChild(y); y.appendChild(t); b = z.count; for (a = 0; a < b; a++) if ((e = z.getItem(a)) && e.caption) if (g = document.getElementById(e._htmlid)) g._krpcbitemindex = a, 0 < g.childNodes.length && (g.childNodes[0].id = e._htmlid + "_text", g.childNodes[0]._krpcbitemindex = a); h = j.stagescale; a = la; g = Ra; f = []; b = []; for (e = 0; 6 > e; e++) f[e] = a[e + 1] - a[e]; for (d = 0; 3 > d; d++) b[d] = g[d + 1] - g[d]; d = D | 0; e = n | 0; h = Z(0.5 * c.pixelwidth * h, 0).x - M; m = l = 0; l = ((d - 0.5 * (f[0] + f[2] + f[4])) / 2 | 0) - (d - 0.5 * (f[0] + f[4])) / 2 + Math.floor(h - 0.25 * f[2]); 0 > l && (l = 0); m = d - l - 0.5 * (f[0] + f[2] + f[4]) | 0; 0 > m && (m = 0, l = d - m - 0.5 * (f[0] + f[2] + f[4]) | 0, 0 > l && (l = 0)); h = [0.5 * f[0] | 0, l, 0.5 * f[2] | 0, m, 0.5 * f[4] | 0]; l = [0.5 * b[0] | 0, e - (0.5 * (b[0] + b[2]) | 0), 0.5 * b[2] | 0]; m = [0, h[0], h[0] + h[1], h[0] + h[1] + h[2], h[0] + h[1] + h[2] + h[3]]; u = [0, l[0], l[0] + l[1]]; p = null; for (d = 0; 3 > d; d++) for (e = 0; 5 > e; e++) { var p = ja[5 * d + e], s = e, Ea = d; if ((0 == d || 2 == d) && 2 == e) if (0 == d && 1 == da || 2 == d && 0 == da) s = e - 1; var x = h[e] / f[s], w = l[d] / b[Ea]; p.style.backgroundImage = 'url("' + J.src + '")'; p.style[Fa] = J.naturalWidth * x + "px " + J.naturalHeight * w + "px"; p.style.backgroundPosition = -a[s] * x + "px " + -g[Ea] * w + "px"; p.style.left = m[e] + "px"; p.style.top = u[d] + "px"; p.style.width = h[e] + "px"; p.style.height = l[d] + "px" } Ga(r, 1, 0.1); A(j.control.layer, "down", C, !1) } } 
context: var a=0,b=-(ia-(n-S));q<b?a=q-b:0<q&&(a=q);0!=a&&(a*=-1,B=0>=a*B?B+0.08*a:0.15*a);0==a&&0.05>Math.abs(B)&&(B=0,clearInterval(R),R=null);k.android&&k.firefox?t.style.top=q-2+"px":t.style[L]="translate3d(0px, "+(q-2)+"px, 0px)"}function Qa(){za()}function za(){if(1==U)C();else{void 0!=j._opencombobox_singleton_cb&&j._opencombobox_singleton_cb();j._opencombobox_singleton_cb=C;var a,b;U=1;Y();Q=P=null;var g=j.stagescale;b=Z(0,0);var f=Z(c.pixelwidth*g,c.pixelheight*g);da=j.area.pixelheight*g-f.y>b.y?0:1;r=document.createElement("div");r.style.position="absolute";r.style.zIndex=1E3;k.ie&&(r.style.zIndex=999999999);!0!=k.androidstock&&(r.style[L]="translateZ(+1000000000000px)");j.control.layer.appendChild(r);G=document.createElement("div");G.style.position="absolute";G.style.left="0px";G.style.top="0px";G.style.overflow="hidden";G.onselectstart=function(){return!1};ja=Array(15);for(a=0;15>a;a++){var e=document.createElement("div");e.style.position="absolute";e.style.overflow="hidden";ja[a]=e;r.appendChild(e)}r.appendChild(G);r.style.opacity=0;a=j.device.mobile?0.5:1;D=Aa(ka)*a+1*(la[1]-la[0]-ea);100>D&&(D=100);M=(b.x+f.x)/2-D/2;0>M&&(M=0);M+D>j.area.pixelwidth*g&&(D=j.area.pixelwidth*g-M);t=document.createElement("div");t.style.position="absolute";t.style.left="0px";t.style.top="0px";t.style.width=(D-1*ea-2*N|0)+"px";k.android&&k.firefox?t.style.top=q-2+"px":(t.style[L+"Style"]="preserve-3d",t.style[L]="translate3d(0px, "+(q-2)+"px, 0px)");var d,h=(99999*Math.random()).toFixed(0),l="font-family:"+ma+";font-size:"+V*ka+"px;color:"+ha+";padding:"+N+"px;";0<=fa.indexOf("bold")&&(l+="font-weight:bold;");0<=fa.indexOf("italic")&&(l+="font-style:italic;");d="";b=z.count;for(a=0;a<b;a++)if((e=z.getItem(a))&&e.caption){var m=e.caption,u="_krpcbx_"+h+"_"+c.name+"_item"+a,p=T==a?"color:"+Ba+";text-shadow:0px 0px 1px "+Ca+";":"";e._htmlid=u;d+="<div id='"+u+"' style='width:100%;border-bottom:1px solid "+na+";"+(0==a?"border-top:1px solid "+na+";":"")+l+p+"'>"+m+"</div>"}t.innerHTML=d+"";t.style.visibility="hidden";r.appendChild(t);n=oa+t.offsetHeight+pa;n<S&&(n=oa+50*z.count+pa,n<S&&(n=S));120>n&&(n=120);ia=n-S;r.removeChild(t);t.style.visibility="visible";0==da?(I=f.y-4,I+n-10>j.area.pixelheight*g&&(n=j.area.pixelheight*g-I+10)):(I=f.y-24*v*g-n,-15>I&&(n+=I+15,I=-15));G.style.width=D+"px";G.style.height=n+"px";r.style.left=M+"px";r.style.top=I+"px";y=document.createElement("div");y.style.position="absolute";y.style.left=0.5*ea+"px";y.style.top=0.5*Da+"px";y.style.width=(D-1*ea-1|0)+"px";y.style.height=(n-1*Da|0)+"px";y.style.overflow="hidden";y.style.color="#000";y.style[L+"Style"]="preserve-3d";A(y,"down",Oa,!0);k.topAccess&&A(top,"down",C,!1);r.appendChild(y);y.appendChild(t);b=z.count;for(a=0;a<b;a++)if((e=z.getItem(a))&&e.caption)if(g=document.getElementById(e._htmlid))g._krpcbitemindex=a,0<g.childNodes.length&&(g.childNodes[0].id=e._htmlid+"_text",g.childNodes[0]._krpcbitemindex=a);h=j.stagescale;a=la;g=Ra;f=[];b=[];for(e=0;6>e;e++)f[e]=a[e+1]-a[e];for(d=0;3>d;d++)b[d]=g[d+1]-g[d];d=D|0;e=n|0;h=Z(0.5*c.pixelwidth*h,0).x-M;m=l=0;l=((d-0.5*(f[0]+f[2]+f[4]))/2|0)-(d-0.5*(f[0]+f[4]))/2+Math.floor(h-0.25*f[2]);0>l&&(l=0);m=d-l-0.5*(f[0]+f[2]+f[4])|0;0>m&&(m=0,l=d-m-0.5*(f[0]+f[2]+f[4])|0,0>l&&(l=0));h=[0.5*f[0]|0,l,0.5*f[2]|0,m,0.5*f[4]|0];l=[0.5*b[0]|0,e-(0.5*(b[0]+b[2])|0),0.5*b[2]|0];m=[0,h[0],h[0]+h[1],h[0]+h[1]+h[2],h[0]+h[1]+h[2]+h[3]];u=[0,l[0],l[0]+l[1]];p=null;for(d=0;3>d;d++)for(e=0;5>e;e++){var p=ja[5*d+e],s=e,Ea=d;if((0==d||2==d)&&2==e)if(0==d&&1==da||2==d&&0==da)s=e-1;var x=h[e]/f[s],w=l[d]/b[Ea];p.style.backgroundImage='url("'+J.src+'")';p.style[Fa]=J.naturalWidth*x+"px "+J.naturalHeight*w+"px";p.style.backgroundPosition=-a[s]*x+"px "+-g[Ea]*w+"px";p.style.left=m[e]+"px";p.style.top=u[d]+"px";p.style.width=h[e]+"px";p.style.height=l[d]+"px"}Ga(r,1,0.1);A(j.control.layer,"down",C,!1)}}function C(){1==U&&(U=0,null==j||null==c||(Y(),k.topAccess&&A(top,"down",C,!1,!0),A(j.control.layer,"down",C,!1,!0),Ga(r,0,0.1,function(){j.control.layer.removeChild(r)})))}function Ga(a,b,c,f){c*=1E3;var e=0,d=a.style.opacity,h=!1,
meta: 8161	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8161/5e662936c67491895fae4768ed7f4394486f2ad5/combobox.js/clean/demo/huifengshangxueyuan/plugins/combobox.js