// 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. function _v31(_b6k, _544, _xqm, _mzl){this._904=_544;this._k1n=[];this._zim=_xqm||32;this._rql=_mzl||32;var _0gl=this._92d();_v31.baseConstructor.call(this, _b6k, _0gl);};_olk._vjl(_v31, _rc8);_v31.prototype._92d=function(){var _83m=_erh._vtc();var _iqi=_frh._53g("ReportTemplates");var _fyd=_8qn._woh(_83m.ownerDocument, _iqi.selectSingleNode("template[@name='GeneratedBackground']/report"), true);_fyd.setAttribute( "expressionLocale", _83m.getAttribute( "expressionLocale" ) );var _kxj=_fyd.selectSingleNode(".//pageBody/contents");var _18c=_8qn._cqh(_kxj, "block");var _tkn=_18c.selectSingleNode("style/CSS");_tkn.setAttribute( "value", "width:" + this._zim + "px;height:" + this._rql + "px" );for(var i=0;i=0;i--){_8qn._c6g(nl.item(i), "gradientColor");}break;case "v2_image":var _s28=_c05.appendChild(d.createElement("backgroundImages"));_8qn._c6g(_s28.appendChild(_9rm.cloneNode(true)), "backgroundImage");_8qn._c6g( _s28.selectSingleNode( ".//v2_imagePosition" ), "backgroundImagePosition" );var _s58=_s28.selectSingleNode(".//v2_manualPosition");if(_s58){_s58.setAttribute( "tile", ( _s58.getAttribute( "tile" )=="both" )?"true":"false" );_8qn._c6g(_s58, "manualPosition");break;}var _az6=_s28.selectSingleNode(".//v2_stretchPosition");if(_az6){_8qn._c6g(_az6, "stretchPosition");break;}var _415=_s28.selectSingleNode(".//v2_automaticPosition");if(_415){var _i3l=_8qn._w6b(_415.parentNode, 'automaticPosition');_i3l.setAttribute( "tile", ( _415.getAttribute( "tile" )=="both" )?"true":"false" );var _4x2=_415.getAttribute("imageAutomaticPosition");if(_4x2){var o={centerLeft:"leftMiddle",centerCenter:"centerMiddle",centerRight:"rightMiddle",topLeft:"leftTop",topCenter:"centerTop",topRight:"rightTop",bottomLeft:"leftBottom",bottomCenter:"centerBottom",bottomRight:"rightBottom"};_i3l.setAttribute("automaticPosition", o[_4x2]);}_415.parentNode.removeChild(_415);break;}break;case "v2_pattern":var _39n=_c05.appendChild(d.createElement("fill"));_39n.appendChild(_9rm.cloneNode(true));_8qn._c6g(_39n.selectSingleNode(_tic), _tic.substr("v2_".length));break;}return _c05;};_v31.prototype._d3=function(_d8h){var d=_d8h.ownerDocument;var _c05=d.createElement("generatedBackground");var _9rm=_d8h.selectSingleNode("*");var _tic=_9rm.nodeName;switch(_tic){case "v2_color":var _lmi=_c05.appendChild( d.createElement( "fill" ) ).appendChild( d.createElement( "fillColor" ) );_8qn._q5b(_lmi, _9rm, null, true);break;case "v2_linearGradient":var _39n=_c05.appendChild(d.createElement("fill"));_8qn._c6g(_39n.appendChild(_9rm.cloneNode(true)), _tic.substr("v2_".length));var nl=_39n.selectNodes("*/v2_gradientColor");var _tzl=nl.length;for(var i=_tzl-1;i>=0;i--){_8qn._c6g(nl.item(i), "gradientColor");}break;}return _c05;};