// Licensed Materials - Property of IBM
// IBM Cognos Products: rs
// (C) Copyright IBM Corp. 2003, 2022.
// US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
var _055=new _lcm("_055");_055._jgn=function(_yrm){this._6jm=_yrm;this._4le();};_055._src=function(){this._v3i=new _jgk(this._2oh("cboDirection"), _frh._53g("Direction"), null, this);this._3sk=new _pgk(this._2oh("divPattern"), _frh._53g("PatternBlack"), this);this._s2n=new _lfn(this._2oh("deckMain"));this._wgd="black";this._pv7="black";this._cfa="white";this._ov7="black";this._mv7="white";this._y7a=["#993333", "#CC9933", "#339966"];this._4l6=[33.33, 66.66];};_055._fdm=function(){if(this._v3i){this._v3i._fdm();delete this._v3i;}if(this._3sk){this._3sk._fdm();delete this._3sk;}if(this._s2n){this._s2n._fdm();delete this._s2n;}};_055._5z2=function(){this._oze=new _ozf();this._prb=_frh._53g("NamedChartPalettes").selectSingleNode( "*" );this._y2n=new _pgk(this._2oh("divList"), _frh._53g("ChartPalette"), this);this._slj=this._2oh("trTop");this._f3f=this._2oh("trBottom");this._4id=this._2oh("trHighLow");this._3k7(this._6jm.selectSingleNode("numericChartPalette"));this._y2n._wfn();this._y2n._gwc(0);this._jse();this._3bg();};_055._o46=function(){this._y2n._fdm();delete this._y2n;delete this._6jm;delete this._oze;delete this._prb;if(this._hfd){this._hfd._fdm();delete this._hfd;}};_055._bgn=function(){if(this._y2n._tfe().length>0){_erh._ybb();_8qn._cqh(this._6jm, "numericChartPalette");if(!this._nr8()){var _33m=_erh._h56(this._6jm, "numericChartPalette");this._2o8(_33m);}_erh._iee();this._3le();}else{_67j("IDS_MSG_ONE_PALETTE", null, _2dm._bfm);}};_055._3wc=function(e){if(e.keyCode==_4qn._qrh){e.stopPropagation();}};_055._5ab=function(e){switch(e.keyCode){case _4qn._x8j:_4qn._w0g(e);this._2oh("btnOK").focus();break;default:_4qn._yo3(e, !this._2oh("chkPercent").checked, 'decimal');}};_055._pe4=function(_a6k,_mzj,_zdf){if(_a6k._ezm()=="_055_divList"){if(this._ys7){if(this._ys7.getAttribute("type")=="numeric"){this._9k6(this._ys7);}}this._xth(_mzj.getAttribute("type"));this._jse();this._ys7=_mzj;}else if(_a6k._ezm()=="_055_divPattern"){var _dvd=this._y2n._885();_dvd.setAttribute("patternType", _mzj.getAttribute("value"));this._86a(_dvd);this._y2n._wfn();this._3bg();this._v0a();}};_055._g67=function(_35k,_a58){if(_35k._ezm()=="_055_cboDirection"){var _dvd=this._y2n._885();_dvd.setAttribute("direction", _a58.getAttribute("value"));this._86a(_dvd);this._y2n._wfn();this._3bg();}};_055._a5g=function(){var _84k=this._y2n._tfe();var _soj=this._2oh("radDiscrete").checked;if(_soj&&(_84k.length>0)&&_84k.item(0).getAttribute("type")=="numeric"){_84k.item(0).parentNode.removeChild(_84k.item(0));}else if (!_soj&&( _84k.length>0 )&&_84k.item( 0 ).getAttribute("type") != "numeric"){var _tyl;for(var i=0; i<_84k.length; i++){var _pen=_84k.item(i).getAttribute("type");if (_pen!="numeric"&&_pen != "color"){if(i+1<_84k.length){_84k.item(i+1).parentNode.removeChild(_84k.item(i+1));}_84k.item(i).parentNode.removeChild(_84k.item(i));}else if(_pen=="numeric"){_tyl=isNaN(_tyl)?parseFloat(_84k.item(i).getAttribute("value")):_tyl;}var _ini=this._y2n._5g8();if(this._y2n._tfe().length==0){var _crm=_ini.ownerDocument.createElement("listItem");_crm.setAttribute("type", "color");_crm.setAttribute("COLOR", "#993333");_ini.appendChild(_crm);this._86a(_crm);var _46l=_ini.ownerDocument.createElement("listItem");_46l.setAttribute("type", "numeric");_46l.setAttribute("value", 100);_46l.setAttribute("label", this._wp8(100));_ini.appendChild(_46l);_crm=_ini.ownerDocument.createElement("listItem");_crm.setAttribute("type", "color");_crm.setAttribute("COLOR", "#339966");_ini.appendChild(_crm);this._86a(_crm);}}var _zvl=false;if(this._2oh("chkPercent").checked){if(_tyl==0){if(_84k.length>0){_84k.item(0).parentNode.removeChild(_84k.item(0));}}else{_zvl=true;_tyl=0;}}else{_tyl=_tyl>0?0:_tyl-1;_zvl=true;}if(_zvl){var _iln=this._y2n._eq9().ownerDocument.createElement("listItem");_iln.setAttribute("type", "numeric");_iln.setAttribute("value", _tyl);_iln.setAttribute("label", this._wp8(_tyl));this._y2n._5g8().insertBefore(_iln, this._y2n._5g8().selectSingleNode("*"));}}this._y2n._wfn();this._y2n._gwc(0);this._jse();this._3bg();};_055._m7j=function(){if(this._2oh("radDiscrete").checked){this._2oh("radDiscrete").checked=true;}else{this._2oh("radContinuous").checked=true;}};_055._y0g=function(_pvm){var _y1k=this._y2n._885();this._jv7=_pvm;_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, _y1k.getAttribute(_pvm), _frh._c6j( "IDS_LBL_" + _pvm ), this );};_055._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":var _y1k=this._y2n._885();var _pvm=_e5m._6ik();if(_pvm==""){switch(this._jv7){case "COLOR":_pvm=this._wgd;break;case "TOCOLOR":_pvm=this._cfa;break;case "FROMCOLOR":_pvm=this._pv7;break;case "FORECOLOR":_pvm=this._ov7;break;case "BACKCOLOR":_pvm=this._mv7;break;}}_y1k.setAttribute(this._jv7, _pvm);this._86a(_y1k);this._jse();this._y2n._wfn();this._3bg();}};_055._0qh=function(){if(!this._hfd){this._hfd=new _3ce(this._53g("MenuPopupSetNumericChartPalette"), this);}var _ymn=_0jl._47b("_055_btnNew", false);this._hfd._pxc( this._2oh( "radDiscrete" ).checked?"mnuNumericPalettePopup":"mnuNumericPaletteContinuousPopup", _ymn.left, _ymn.top );};_055._1qh=function(_rxi){var _ini=this._y2n._5g8();var _a58=this._y2n._885();var _9an=_a58?_a58.previousSibling:null;var _87n;var _77n;var _njn=0;var _46l=null;var _wai=this._y2n._tfe().length==0;if(!_wai){while(_9an){if(_9an.getAttribute("type")=="numeric"){_87n=parseFloat(_9an.getAttribute("value"));break;}_9an=_9an.previousSibling;}_9an=_a58;while(_9an){if(_9an.getAttribute("type")=="numeric"){_77n=parseFloat(_9an.getAttribute("value"));break;}_9an=_9an.nextSibling;}if(!isNaN(_87n)&&!isNaN(_77n)){_njn=(_87n+_77n)/ 2;}else if(isNaN(_87n)&&!isNaN(_77n)){if(this._2oh("chkPercent").checked){_njn=_77n / 2;}else{_njn=_77n-1;}}else if(!isNaN(_87n)&&isNaN(_77n)){if(this._2oh("chkPercent").checked){_njn=(_87n+100)/ 2;}else{_njn=_87n+1;}}else{_njn=50;}if(_njn==0&&_77n==0){_67j("IDS_MSG_ZERO_PROBLEM");return;}_46l=_ini.ownerDocument.createElement("listItem");_46l.setAttribute("type", "numeric");_46l.setAttribute("value", _njn);_46l.setAttribute("label", this._wp8(_njn));}else if(this._2oh("radContinuous").checked){var _njn=50;var _46l=_ini.ownerDocument.createElement("listItem");_46l.setAttribute("type", "numeric");_46l.setAttribute("value", _njn);_46l.setAttribute("label", this._wp8(_njn));}var _crm=_ini.ownerDocument.createElement("listItem");if(_a58&&_a58.getAttribute("type")=="numeric"){_a58=_a58.previousSibling;}_ini.insertBefore(_crm, _a58?_a58.nextSibling:null);if(_46l){_ini.insertBefore(_46l, _crm);}_crm.setAttribute("type", _rxi);switch(_rxi){case "color":_crm.setAttribute("COLOR", this._wgd);_crm.setAttribute("selected", "true");break;case "gradient":_crm.setAttribute("FROMCOLOR", this._pv7);_crm.setAttribute("TOCOLOR", this._cfa);_crm.setAttribute("direction", "left");_crm.setAttribute("selected", "true");break;case "pattern":_crm.setAttribute("FORECOLOR", this._ov7);_crm.setAttribute("BACKCOLOR", this._mv7);_crm.setAttribute("patternType", "horizontal");_crm.setAttribute("selected", "true");}this._86a(_crm);this._xth(_crm.getAttribute("type"));this._jse();this._y2n._wfn();this._3bg();this._y2n._uab(_crm);};_055._ovc=function(){var _y1k=this._y2n._885();var _g4m=this._y2n._tfe();if(_y1k){if(_y1k.getAttribute("type")=="numeric"){_y1k.nextSibling.parentNode.removeChild(_y1k.nextSibling);}else{if(_y1k.previousSibling){_y1k.previousSibling.parentNode.removeChild(_y1k.previousSibling);}else if(_y1k.nextSibling){_y1k.nextSibling.parentNode.removeChild(_y1k.nextSibling);}}_y1k.parentNode.removeChild(_y1k);this._y2n._wfn();if(this._y2n._tfe().length>0){this._y2n._gwc(0);}this._jse();this._3bg();var _mzj=this._y2n._885();if(_mzj){this._xth(_mzj.getAttribute("type"));}}};_055._a7j=function(e){if(e.ctrlKey){switch(e.keyCode){case "X".charCodeAt(0):this._mhe();break;case "C".charCodeAt(0):this._nvc();break;case "V".charCodeAt(0):this._z9b();break;}}else if(e.keyCode==_4qn._qrh){this._ovc();}this._1f7(e);};_055._mhe=function(){this._y2n._bzm();this._jse();this._y2n._wfn();this._3bg();this._nvc();};_055._nvc=function(){var _flf=this._6jm.ownerDocument.createElement("numericChartPalette");this._2o8(_flf);_4aj._3bb([_flf]);};_055._z9b=function(){var _rlm=_4aj._z6b();if(_rlm&&_rlm[0]&&_rlm[0].nodeName=="numericChartPalette"){this._ml5(_rlm[0]);}};_055._ia6=function(){this._9k6(this._ys7);};_055._yem=function(_5qm){this._y2n._gwc(_5qm);};_055._0ab=function(){var _soj=this._2oh("radDiscrete").checked;var _0f9=this._y2n._tfe();var _aoa=this._y2n._5g8().selectNodes("listItem[@type='numeric']").length;var _6pm=_soj?100 /(_aoa+1):100 / _aoa;var _8pm;var _52l=_soj?1:0;for(var i=0; i<_0f9.length; i++){var _irm=_0f9.item(i);if(_irm.getAttribute("type")=="numeric"){if(this._2oh("chkPercent").checked){_8pm=_6pm*_52l++;}else{_8pm=parseFloat(_irm.getAttribute("value"));}_irm.setAttribute("value", _8pm);_irm.setAttribute("label", this._wp8(_8pm));}}this._y2n._wfn();this._3bg();_4qn._1je( this._2oh("lblNumeric"), _frh._c6j(this._2oh("chkPercent").checked?"IDS_LBL_NUMERIC_PERCENTAGE":"IDS_LBL_NUMERIC_ABSOLUTE") );};_055._0a5=function(){if(!this._324){var _yua=this._prb.selectNodes("namedChartPalette[numericChartPalette]");var _ozj=_frh._53g("EmptyList");var _ini=_ozj.selectSingleNode("listItems");_ozj.setAttribute("smallIconWidth", "48px");var d=_ozj.ownerDocument;for(var i=0; i<_yua.length; i++){var n=_yua.item(i);var _mzj=_ini.appendChild(d.createElement("listItem"));_mzj.setAttribute( "value", n.getAttribute( "id" ) );_8qn._9rc(_mzj, n, "idsLabel");_8qn._9rc(_mzj, n, "label");_8qn._9rc(_mzj, n, "idsTooltip");_8qn._9rc(_mzj, n, "tooltip");_8qn._9rc(_mzj, n, "smallIcon");}this._324=_ozj;}_u0n._2a6(this, this._2oh("btnNamed"), "numericChartPalette", null, this._324, NaN, this._2oh("divList").offsetWidth * 1.7);};_055._xm=function(_xgc,_5en,_uxm){var _uvd=this._prb.selectSingleNode("namedChartPalette[@id=" + _cgm._zxc( _uxm ) + "]/numericChartPalette");this._ml5(_uvd);};_055._86a=function(_mzj){switch(_mzj.getAttribute("type")){case "color":var _pvm=_mzj.getAttribute("COLOR")||"transparent";_mzj.setAttribute( "html", '
' );break;case "gradient":var _5dn=this._oze._dq9(_mzj.getAttribute("FROMCOLOR"), _mzj.getAttribute("TOCOLOR"), _mzj.getAttribute("direction"));_mzj.setAttribute("html", _5dn);break;case "pattern":var _7yi=_mzj.getAttribute("FORECOLOR")||"transparent";var _2wi=_mzj.getAttribute("BACKCOLOR")||"transparent";_mzj.setAttribute( "html", '' );break;}this._vp4(_mzj);};_055._jse=function(){var _y1k=this._y2n._885();if(_y1k){this._2oh("rightside").style.visibility = "inherit";switch(_y1k.getAttribute("type")){case "color":_u0n._2b5(this._2oh("btnColor"), _y1k.getAttribute("COLOR"));break;case "gradient":_u0n._2b5(this._2oh("btnToColor"), _y1k.getAttribute("TOCOLOR"));_u0n._2b5(this._2oh("btnFromColor"), _y1k.getAttribute("FROMCOLOR"));this._v3i._hwc(_y1k.getAttribute("direction"));break;case "pattern":_u0n._2b5(this._2oh("btnForeColor"), _y1k.getAttribute("FORECOLOR"));_u0n._2b5(this._2oh("btnBackColor"), _y1k.getAttribute("BACKCOLOR"));this._3sk._hwc(_y1k.getAttribute("patternType"));break;case "numeric":this._2oh("txtNumeric").value = _8gm._fd7( _y1k.getAttribute("value") );_4qn._1je( this._2oh("lblNumeric"), _frh._c6j(this._2oh("chkPercent").checked?"IDS_LBL_NUMERIC_PERCENTAGE":"IDS_LBL_NUMERIC_ABSOLUTE") );break;}}else{if(this._2oh("rightside")){this._2oh("rightside").style.visibility = "hidden";}}this._8lb();};_055._8lb=function(){var _y1k=this._y2n._885();this._pj8("btnDelete", _y1k);};_055._xth=function(_ncn){switch(_ncn){case "gradient":this._s2n._ujk(0);break;case "pattern":this._s2n._ujk(1);break;case "color":this._s2n._ujk(2);break;case "numeric":this._s2n._ujk(3);break;}};_055._nr8=function(_by7){var _0f9=this._y2n._tfe();if(_0f9.length!=(this._4l6.length+this._y7a.length)){return false;}for(var i=0; i<_0f9.length; i++){if(_0f9.item(i)){switch(_0f9.item(i).getAttribute("type")){case "numeric":if(!this._4l6[(i-1)/2]||_0f9.item(i).getAttribute("value")!=this._4l6[(i - 1)/2]){return false;}break;case "color":if(!this._y7a[i/2]||_0f9.item(i).getAttribute("COLOR")!=this._y7a[i/2]){return false;}break;case "gradient":case "pattern":return false;}}else{return false;}}if(_by7){return true;}return this._2oh("chkPercent").checked&&this._2oh("radDiscrete").checked;};_055._v0a=function(){var _y1k=this._y2n._885();var _7yi=_y1k.getAttribute("FORECOLOR");var _2wi=_y1k.getAttribute("BACKCOLOR");var _m9h=this._3sk._tfe();for(var i=0; i<_m9h.length; i++){var _mzj=_m9h.item(i);_mzj.setAttribute( "html", '' );}this._3sk._wfn();};_055._2o8=function(_33m){_33m.setAttribute("percentValues", this._2oh("chkPercent").checked?"true":"false");var _0f9=this._y2n._tfe();if(this._2oh("radDiscrete").checked){var _wxj=_erh._u0g(_33m, "discreteChartPalette");for(var i=0; i<_0f9.length; i++){var _l6l=_0f9.item(i);var _f9c=_erh._u0g(_wxj, "discreteChartPaletteEntry");switch(_l6l.getAttribute("type")){case "color":var _crm=_erh._u0g(_f9c, "chartColor");_crm.setAttribute("value", _l6l.getAttribute("COLOR")?_l6l.getAttribute("COLOR"):this._wgd);break;case "gradient":var _syj=_erh._u0g(_f9c, "chartGradient");_syj.setAttribute("direction", _l6l.getAttribute("direction"));_syj.setAttribute("fromColor", _l6l.getAttribute("FROMCOLOR")||this._pv7);_syj.setAttribute("toColor", _l6l.getAttribute("TOCOLOR")||this._cfa);break;case "pattern":var _n6l=_erh._u0g(_f9c, "chartPattern");_n6l.setAttribute("patternType", _l6l.getAttribute("patternType"));_n6l.setAttribute("foregroundColor", _l6l.getAttribute("FORECOLOR")||this._ov7);_n6l.setAttribute("backgroundColor", _l6l.getAttribute("BACKCOLOR")||this._mv7);}if(i+1<_0f9.length){i++;_f9c.setAttribute("paletteValue", _0f9.item( i ).getAttribute("value"));}}}else{var _o2h=_erh._u0g(_33m, "continuousChartPalette");var _uxm;for(var i=0; i<_0f9.length; i++){var _l6l=_0f9.item(i);switch(_l6l.getAttribute("type")){case "color":var _hb9=_erh._u0g(_o2h, "continuousChartPaletteEntry");_hb9.setAttribute("paletteEntryValue", _uxm);_hb9.setAttribute("paletteEntryColor", _l6l.getAttribute("COLOR"));break;case "numeric":_uxm=_l6l.getAttribute("value");}}}};_055._ml5=function(_l6l){if(_l6l.nodeName=="numericChartPalette"){this._3k7(_l6l);this._jse();this._y2n._wfn();this._3bg();}};_055._3k7=function(_l6l){this._y2n._bzm();if(_l6l){this._2oh("chkPercent").checked = _l6l.getAttribute("percentValues")=="true";var _wxj=_l6l.selectSingleNode("discreteChartPalette");if(_wxj){this._2oh("radDiscrete").checked=true;var _o3k=_wxj.selectNodes("discreteChartPaletteEntry");for(var i=0; i<_o3k.length; i++){var _v1m=_o3k.item( i ).selectSingleNode("chartColor | chartPattern | chartGradient");var _e3h=this._y2n._767();switch(_v1m.nodeName){case "chartColor":_e3h.setAttribute("type", "color");_e3h.setAttribute("COLOR", _v1m.getAttribute("value"));break;case "chartGradient":_e3h.setAttribute("type", "gradient");_e3h.setAttribute("direction", _v1m.getAttribute("direction"));_e3h.setAttribute("FROMCOLOR", _v1m.getAttribute("fromColor"));_e3h.setAttribute("TOCOLOR", _v1m.getAttribute("toColor"));break;case "chartPattern":_e3h.setAttribute("type", "pattern");_e3h.setAttribute("patternType", _v1m.getAttribute("patternType"));_e3h.setAttribute("FORECOLOR", _v1m.getAttribute("foregroundColor"));_e3h.setAttribute("BACKCOLOR", _v1m.getAttribute("backgroundColor"));}this._86a(_e3h);var _uxm=_o3k.item(i).getAttribute("paletteValue");if(_uxm){var _kjf=this._y2n._767();_kjf.setAttribute("type", "numeric");_kjf.setAttribute("value", _uxm);_kjf.setAttribute("label", this._wp8(parseFloat(_uxm), _l6l.getAttribute("percentValues")=="true"));}}this._y2n._wfn();this._y2n._gwc(0);this._3bg();return;}var _o2h=_l6l.selectSingleNode("continuousChartPalette");if(_o2h){this._2oh("radContinuous").checked=true;var _o3k=_o2h.selectNodes("continuousChartPaletteEntry");for(var i=0; i<_o3k.length; i++){var _uxm=_o3k.item(i).getAttribute("paletteEntryValue");var _kjf=this._y2n._767();_kjf.setAttribute("type", "numeric");_kjf.setAttribute("value", _uxm);_kjf.setAttribute("label", this._wp8(parseFloat(_uxm), _l6l.getAttribute("percentValues")=="true"));var _fli=this._y2n._767();_fli.setAttribute("type", "color");_fli.setAttribute("COLOR", _o3k.item( i ).getAttribute("paletteEntryColor"));this._86a(_fli);}this._y2n._wfn();this._y2n._gwc(0);this._3bg();return;}}else{this._iz();this._2oh("chkPercent").checked=true;this._2oh("radDiscrete").checked=true;}};_055._9k6=function(_5ua){if(_5ua.getAttribute("type")=="numeric"){var _uxm=this._2oh("txtNumeric").value;var _uyl=_cgm._6qh(_uxm);if(isNaN(_uyl)){_67j("IDS_HAL_ERR_INVALID_NUMBER");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );return;}if(this._2oh("chkPercent").checked&&(_uyl<0||_uyl>100)){_67j("IDS_ERR_BAD_PERCENT");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );return;}var _m9h=this._y2n._tfe();for(var i=0; i<_m9h.length; i++){if(_m9h.item(i)==_5ua){if(i>2){var _87n=parseFloat(_m9h.item(i-2).getAttribute("value"));if(_uyl<=_87n){_67j("IDS_ERR_LESS_THEN_PREV");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );return;}}if(i+2<_m9h.length){var _77n=parseFloat(_m9h.item(i+2).getAttribute("value"));if(_uyl>=_77n){_67j("IDS_ERR_GREATER_THEN_NEXT");this._2oh("txtNumeric").value = _8gm._fd7( _5ua.getAttribute("value") );return;}}break;}}this._2oh("txtNumeric").value=_8gm._fd7(_uyl);_5ua.setAttribute("label", this._wp8(_uyl));_5ua.setAttribute("value", _uyl.toString());this._y2n._wfn();this._3bg();}};_055._3bg=function(){while(this._slj.cells.length>0){this._slj.deleteCell(0);}while(this._f3f.cells.length>0){this._f3f.deleteCell(0);}if(this._2oh("radDiscrete").checked){this._bg5();}else{this._bu3();}this._oze._3fm();};_055._bu3=function(){var _1ul=[];var _4vl=[];var _fyk=this._2oh("chkPercent").checked;this._4y3(_4vl, _1ul, true);var _cyg=parseFloat(_4vl[0]);var _hyg=parseFloat(_4vl[_4vl.length-1]);for(var i=1; i<_1ul.length; i++){var _ibl=this._slj.insertCell(this._slj.cells.length);var _bah=this._f3f.insertCell(this._f3f.cells.length);var _eyg;var _90l=parseFloat(_4vl[i]);var _otj=i>0?parseFloat(_4vl[i-1]):_cyg;if(_fyk){_eyg=_90l-_otj;}else{_eyg=(_90l-_otj)/(_hyg-_cyg)*100;}_eyg=_eyg>5?_eyg:5;_bah.style.width=_eyg+"%";_ibl.style.width=_eyg+"%";_n0n._0k8(_ibl,_1ul[i-1].getAttribute("COLOR"), _1ul[i].getAttribute("COLOR"), "right");this._0eg(this._wp8(_4vl[i-1]), _bah);}if(_1ul.length>1){var _o3j=this._f3f.cells[this._f3f.cells.length-1];_4qn._1je(_o3j, "");this._e6a(_o3j, parseFloat(_4vl[_4vl.length-2]), parseFloat(_4vl[_4vl.length-1]));}};_055._bg5=function(){var _m4n=[];var _4vl=[];var _fyk=this._2oh("chkPercent").checked;this._4y3(_4vl, _m4n, false);var _jhi=0;var _rrd=1;var _cyg=_fyk?Math.min(parseFloat(_4vl[0]), 0):parseFloat(_4vl[0]);var _hyg=_fyk?Math.max(parseFloat(_4vl[_4vl.length-1]), 100):parseFloat(_4vl[_4vl.length-1]);var _wqm=0;for(var i=0; i<_m4n.length; i++){var _ibl=this._slj.insertCell(this._slj.cells.length);var _bah=this._f3f.insertCell(this._f3f.cells.length);var _39n=_m4n[i];switch(_39n.getAttribute("type")){case "color":_ibl.style.backgroundColor=_39n.getAttribute("COLOR");break;case "gradient":_n0n._0k8(_ibl, _39n.getAttribute("FROMCOLOR"), _39n.getAttribute("TOCOLOR"), _39n.getAttribute("direction"));break;case "pattern":_ibl.style.backgroundImage=_q0d._ub4(_39n.getAttribute("patternType"), _39n.getAttribute("FORECOLOR"), _39n.getAttribute("BACKCOLOR"));}_ibl.style.cursor="pointer";_ibl.onclick=Function('_055._yem(' + _jhi + ')');_bah.style.borderRight="solid black 1px";var _men=i==0?0:_4vl[_wqm++];if(i==_m4n.length-1&&_fyk){this._e6a(_bah, parseFloat(_4vl[_4vl.length-1]), 100);}else if(!(i==0&&!_fyk)){this._0eg(this._wp8(_men), _bah);}var _eyg;var _90l=parseFloat(_4vl[_wqm]);var _otj=i>0?parseFloat(_4vl[_wqm-1]):_cyg;if(_fyk){_eyg=_90l-_otj;}else{_eyg=i==0||i==_m4n.length-1?10:(_90l - _otj)/(_hyg-_cyg)*100;}if(!isNaN(_eyg)){if(_fyk||i!=_m4n.length-2){_bah.style.width=_eyg+"%";_ibl.style.width=_eyg+"%";}}_bah.onclick=Function('_055._yem(' + _rrd + ')');_bah.style.cursor="pointer";_jhi+= 2;_rrd+= 2;}if(this._slj.cells.length==0){this._slj.insertCell(this._slj.cells.length);}if(this._f3f.cells.length==0){this._f3f.insertCell(this._f3f.cells.length);}};_055._wp8=function(_uyl,_fyk){var _c0l=Math.round(_uyl*100)/ 100;if(this._2oh("chkPercent").checked||_fyk){return _frh._c6j("IDS_HAL_CSS_LENGTH_UNIT_PERCENTAGE", _8gm._fd7(_c0l));}return _8gm._fd7(_c0l);};_055._iz=function(){for(var i=0;i0){_4vl.push("0");_xod=true;}_4vl.push(_uxm);break;case "gradient":case "pattern":case "color":if(_xod){_xod=false;_flm.push(_o3k.item(i));}_flm.push(_o3k.item(i));}}if(_zs6&&_fyk&&parseFloat(_4vl[_4vl.length-1])<100){_4vl.push("100");_flm.push(_o3k.item(_o3k.length-1));}};_055._e6a=function(_pbm,_9yg,_3cf){_pbm.className="clsDialogText clsNumPaletteCell";var _tsn=_pbm.ownerDocument.createElement("table");_tsn.className="clsDialogText";_tsn.style.width="100%";_tsn.setAttribute( "cellSpacing", "0" );_tsn.setAttribute( "cellPadding", "0" );_tsn.style.borderCollapse="collapse";_k0d._9q3(_tsn);_pbm.appendChild(_tsn);var _bfn=_tsn.ownerDocument.createElement("tbody");_tsn.appendChild(_bfn);var _cun=_bfn.ownerDocument.createElement("tr");_bfn.appendChild(_cun);var _ilh=_cun.ownerDocument.createElement("td");_cun.appendChild(_ilh);_ilh.className="clsNumPaletteCellLeft";_4qn._1je(_ilh, this._wp8(_9yg));_ilh.title=_4qn._ofe(_ilh);var _ryf=_cun.ownerDocument.createElement("td");_cun.appendChild(_ryf);_ryf.className="clsNumPaletteCellRight";_4qn._1je(_ryf, this._wp8(_3cf));_ryf.title=_4qn._ofe(_ryf);};_055._vp4=function(_mzj){if(!_zpn._qsh["hal"]["enableAccessibility"]){return;}var _yvi;switch(_mzj.getAttribute("type")){case "color":_yvi=_4qn._087(_mzj.getAttribute("COLOR"));break;case "gradient":_yvi=_u0n._z41(_mzj);break;case "pattern":_yvi=_u0n._7e1(_mzj);break;}if(_yvi){_mzj.setAttribute("sAriaLabel", _yvi);}};