rem: c.registercontentsize(b,a?g/p:null);!0==a&&c.updatepluginpos();ca()}}function ca(){var a=j.stagescale;if(J&&J.complete){var b=qa,g=Ja,f=Ka,e="";if(0<z.count){var d=z.getItem(T);d&&d.caption&&(e=d.caption)}d=""+E*v*p+"px "+aa;0<=K.indexOf("italic")&&(d="Italic "+d);0<=K.indexOf("bold")&&(d="Bold "+d);var h=0.5*v*p,a=80>g*a/p;if(1>=v*p||!1==sa)a=!1;a&&(d=""+E*v*p/2+"px "+aa,0<=K.indexOf("italic")&&(d="Italic "+d),0<=K.indexOf("bold")&&(d="Bold "+d));b.clearRect(0,0,g,f);var l,m,k=Sa,q=Ta,t=70*U,n=[], r=[];for(l=0;5>l;l++)n[l]=k[l+1]-k[l];for(m=0;3>m;m++)r[m]=q[m+1]-q[m];var w=a?2:f-n[4]*h-n[2]*h/2-2|0,w=[n[0]*h|0,g-(n[0]+n[2]+n[4])*h-w|0,n[2]*h|0,w,n[4]*h|0],s=[r[0]*h|0,f-((r[0]+r[2])*h|0),r[2]*h|0],x=[0,w[0],w[0]+w[1],w[0]+w[1]+w[2],w[0]+w[1]+w[2]+w[3]],y=[0,s[0],s[0]+s[1]];for(m=0;3>m;m++)for(l=0;5>l;l++)b.drawImage(J,k[l]+t,q[m],n[l],r[m],x[l],y[m],w[l],s[m]);k=a?14*h|0:22*h|0;b.drawImage(J,140,0,22,22,(x[2]+w[2]/2+(x[4]+w[4]-Ia*h))/2-k/2|0,y[1]+s[1]/2-k/2+h|0,k,k);b.font=d;b.fillStyle=La; b.strokeStyle="#FFF";b.textAlign="left";b.textBaseline="middle";b.save();b.beginPath();b.rect(u*v*p/2,u*v*p/2-1,g-(a?36:74)*h-u*v*p,f-u*v*p/2);b.clip();b.scale(c.scale,1);b.fillText(e,u*v*p,f/2+1);b.restore()}}function Ha(){var a=c.name+"_cb"+j.timertick,b="",g;if(c.hasOwnProperty("item")&&(g=c.item,g.hasOwnProperty("getArray"))){var f=g.getArray();g=f.length;var e="";Ma&&(e="background: -webkit-gradient(linear, 0% 5%, 0% 80%, from(rgba(250,250,250,1.0)), to(rgba(220,220,220,0.9))); border-radius:4px; border:1px solid rgba(100,100,100,1.0);"); 
add: function ca() { var a = j.stagescale; if (J && J.complete) { var b = qa, g = Ja, f = Ka, e = ""; if (0 < z.count) { var d = z.getItem(T); d && d.caption && (e = d.caption) } d = "" + E * v * p + "px " + aa; 0 <= K.indexOf("italic") && (d = "Italic " + d); 0 <= K.indexOf("bold") && (d = "Bold " + d); var h = 0.5 * v * p, a = 80 > g * a / p; if (1 >= v * p || !1 == sa) a = !1; a && (d = "" + E * v * p / 2 + "px " + aa, 0 <= K.indexOf("italic") && (d = "Italic " + d), 0 <= K.indexOf("bold") && (d = "Bold " + d)); b.clearRect(0, 0, g, f); var l, m, k = Sa, q = Ta, t = 70 * U, n = [], r = []; for (l = 0; 5 > l; l++) n[l] = k[l + 1] - k[l]; for (m = 0; 3 > m; m++) r[m] = q[m + 1] - q[m]; var w = a ? 2 : f - n[4] * h - n[2] * h / 2 - 2 | 0, w = [n[0] * h | 0, g - (n[0] + n[2] + n[4]) * h - w | 0, n[2] * h | 0, w, n[4] * h | 0], s = [r[0] * h | 0, f - ((r[0] + r[2]) * h | 0), r[2] * h | 0], x = [0, w[0], w[0] + w[1], w[0] + w[1] + w[2], w[0] + w[1] + w[2] + w[3]], y = [0, s[0], s[0] + s[1]]; for (m = 0; 3 > m; m++) for (l = 0; 5 > l; l++) b.drawImage(J, k[l] + t, q[m], n[l], r[m], x[l], y[m], w[l], s[m]); k = a ? 14 * h | 0 : 22 * h | 0; b.drawImage(J, 140, 0, 22, 22, (x[2] + w[2] / 2 + (x[4] + w[4] - Ia * h)) / 2 - k / 2 | 0, y[1] + s[1] / 2 - k / 2 + h | 0, k, k); b.font = d; b.fillStyle = La; b.strokeStyle = "#FFF"; b.textAlign = "left"; b.textBaseline = "middle"; b.save(); b.beginPath(); b.rect(u * v * p / 2, u * v * p / 2 - 1, g - (a ? 36 : 74) * h - u * v * p, f - u * v * p / 2); b.clip(); b.scale(c.scale, 1); b.fillText(e, u * v * p, f / 2 + 1); b.restore() } } 
context: c.registercontentsize(b,a?g/p:null);!0==a&&c.updatepluginpos();ca()}}function ca(){var a=j.stagescale;if(J&&J.complete){var b=qa,g=Ja,f=Ka,e="";if(0<z.count){var d=z.getItem(T);d&&d.caption&&(e=d.caption)}d=""+E*v*p+"px "+aa;0<=K.indexOf("italic")&&(d="Italic "+d);0<=K.indexOf("bold")&&(d="Bold "+d);var h=0.5*v*p,a=80>g*a/p;if(1>=v*p||!1==sa)a=!1;a&&(d=""+E*v*p/2+"px "+aa,0<=K.indexOf("italic")&&(d="Italic "+d),0<=K.indexOf("bold")&&(d="Bold "+d));b.clearRect(0,0,g,f);var l,m,k=Sa,q=Ta,t=70*U,n=[],r=[];for(l=0;5>l;l++)n[l]=k[l+1]-k[l];for(m=0;3>m;m++)r[m]=q[m+1]-q[m];var w=a?2:f-n[4]*h-n[2]*h/2-2|0,w=[n[0]*h|0,g-(n[0]+n[2]+n[4])*h-w|0,n[2]*h|0,w,n[4]*h|0],s=[r[0]*h|0,f-((r[0]+r[2])*h|0),r[2]*h|0],x=[0,w[0],w[0]+w[1],w[0]+w[1]+w[2],w[0]+w[1]+w[2]+w[3]],y=[0,s[0],s[0]+s[1]];for(m=0;3>m;m++)for(l=0;5>l;l++)b.drawImage(J,k[l]+t,q[m],n[l],r[m],x[l],y[m],w[l],s[m]);k=a?14*h|0:22*h|0;b.drawImage(J,140,0,22,22,(x[2]+w[2]/2+(x[4]+w[4]-Ia*h))/2-k/2|0,y[1]+s[1]/2-k/2+h|0,k,k);b.font=d;b.fillStyle=La;b.strokeStyle="#FFF";b.textAlign="left";b.textBaseline="middle";b.save();b.beginPath();b.rect(u*v*p/2,u*v*p/2-1,g-(a?36:74)*h-u*v*p,f-u*v*p/2);b.clip();b.scale(c.scale,1);b.fillText(e,u*v*p,f/2+1);b.restore()}}function Ha(){var a=c.name+"_cb"+j.timertick,b="",g;if(c.hasOwnProperty("item")&&(g=c.item,g.hasOwnProperty("getArray"))){var f=g.getArray();g=f.length;var e="";Ma&&(e="background: -webkit-gradient(linear, 0% 5%, 0% 80%, from(rgba(250,250,250,1.0)), to(rgba(220,220,220,0.9))); border-radius:4px; border:1px solid rgba(100,100,100,1.0);");
meta: 8161	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8161/5e662936c67491895fae4768ed7f4394486f2ad5/combobox.js/clean/demo/huifengshangxueyuan/plugins/combobox.js