AdfDhtmlPivotTablePeer.prototype.wc=function(a,b){b==A_a&&(b=A_c);var c=this.b.pj;this.sv=!this.sv;c.innerHTML=a+(this.sv?" ":"");var d=c.style;if(""==d.display||"none"==d.display){d.zIndex=5;d.visibility="hidden";d.display="block";if(b)d.top=Math.floor((this.je-c.offsetHeight)/2)+"px",d.left=Math.floor((this.le-c.offsetWidth)/2)+"px";else{var e=AdfAgent.AGENT.getElementPosition(this.getDomElement());this.Pq&&(d.top=Math.max(0,this.Pq.y-e.y-c.offsetHeight-16)+"px",d.left=Math.max(0,this.Pq.x-e.x-
c.offsetWidth-16)+"px")}d.visibility="visible"}};AdfDhtmlPivotTablePeer.prototype._hideStatus=function(){this.b.pj.style.display="none"};AdfDhtmlPivotTablePeer.oh=function(a){return AdfDhtmlPivotTablePeer.O(a,a.id+"::PPRTarget")};AdfDhtmlPivotTablePeer.O=function(a,b){for(var c=a.childNodes,d=0;d<c.length;d++)if(b==c[d].id)return c[d];return A_};AdfDhtmlPivotTablePeer.JR=function(a,b){for(var c=a.childNodes,d=0;d<c.length;d++)if(c[d].id&&0==c[d].id.indexOf(b))return c[d];return A_};
function A_vf(a,b,c){var d=A_;for(a=a.getDomElement();!d&&b&&b!=a&&1==b.nodeType;)b.tagName==c?d=b:b=b.parentNode;return d}function A_lc(a,b,c){return b.parentNode==A_||b.parentNode.id==a.getComponent().getClientId()?A_:AdfAgent.AGENT.getAttribute(b,c)!=A_?b:A_lc(a,b.parentNode,c)}AdfDhtmlPivotTablePeer.prototype.yj=function(a,b){for(var c=b,d=this.getDomElement();c;){if(c==a)return A_b;if(c==d)break;c=c.parentNode}return A_c};function A_jf(a){try{a.focus()}catch(b){}}
AdfDhtmlPivotTablePeer.Ca=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};function A_9e(a,b){for(var c=AdfAgent.getAgent(),d,e=a.getDomElement(),f=/^INPUT|SELECT|OPTION|TEXTAREA/;A_!=b&&b!=e&&"TD"!=(d=c.getNodeName(b))&&"TH"!=d;){if(d.match(f)&&!b.readOnly)return A_b;b=b.parentNode}return A_c}function A_5g(a,b,c){return b.style!=A_a&&"none"==b.style.display?A_c:b==a.getDomElement()||c!=A_a&&b==c||b.parentNode==A_a?A_b:A_5g(a,b.parentNode,c)}
function A_tf(a,b){var c=AdfAgent.AGENT.getDomDocument(),d=[];if(c.evaluate)for(var c=c.evaluate(".//input|.//select|.//textarea|.//button|.//a|.//INPUT|.//SELECT|.//TEXTAREA|.//BUTTON|.//A",b,A_,XPathResult.ANY_TYPE,A_),e=c.iterateNext();e;)!e.disabled&&((!e.tabIndex||0<e.tabIndex)&&A_5g(a,e,b))&&d.push(e),e=c.iterateNext();else for(var c=b.getElementsByTagName("*"),f=c.length,g=/^INPUT|SELECT|BUTTON|^A\b|TEXTAREA/,h=0;h<f;h++)e=c[h],e.tagName.match(g)&&(!e.disabled&&(!e.tabIndex||0<e.tabIndex)&&
A_5g(a,e,b))&&d.push(e);return d}function A_Kf(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1}function A_Af(a,b){var c=A_9f(a,b.parentNode);return A_6g(b,c)}function A_6g(a,b){var c=a.parentNode,c=AdfAgent.AGENT.getIntAttribute(b,"_startRow")+c.rowIndex-1,d=AdfAgent.AGENT.getIntAttribute(b,"_startCol");return{row:c,col:d+a.cellIndex-1}}function A_ag(a,b){return a.getIntAttribute(b,"_iCol",0)+1}
function A_2e(a,b){var c=A_9f(a,b),d=A_,e=A_;c&&AdfAgent.AGENT.getAttribute(c,"_component")==AdfDhtmlPivotTablePeer.SA&&(d=A_4f(a,b))&&(e=A_7g(d,c));return[e,d]}function A_7g(a,b){var c=A_6g(a,b);return c.row+":"+c.col}function A_4f(a,b){for(var c=A_,d=a.r(AdfPivotTableUtils.Ae),e=a.r(AdfPivotTableUtils.Vd),f=a.r(AdfPivotTableUtils.ze);!c&&b;)"TD"==b.tagName?A_k.ja(b,d)||A_k.ja(b,e)||A_k.ja(b,f)?c=b:b=A_vf(a,b.parentNode,"TD"):b=A_vf(a,b,"TD");return c}
function A_9f(a,b){for(var c=AdfAgent.AGENT,d=b,e=A_,f=a.getDomElement();!e&&d&&d!=f&&1==d.nodeType;)c.getAttribute(d,"_component")?e=d:d=d.parentNode;return e}function A_$f(a,b){for(var c=a.length,d=-1,e=0;e<c;e++)a[e]==b&&(d=e);return d}function A_8g(a){for(var b=a.length,c=0;c<b;c++){var d=a[c];if(!d._placeholder)return d}return A_}function A_9g(a,b,c,d,e,f){d+=e;A_3(a.b,c.childNodes[0],d+f,b);A_3(a.b,c,d,b)}
AdfDhtmlPivotTablePeer.prototype.r=function(a){if(this.Z==A_a){var b=AdfAgent.AGENT;this.Z={};var c=this.getDomElement();this.Z[AdfPivotTableUtils.Vd]=b.getAttribute(c,AdfPivotTableUtils.Vd);this.Z[AdfPivotTableUtils.ze]=b.getAttribute(c,AdfPivotTableUtils.ze);this.Z[AdfPivotTableUtils.Ae]=b.getAttribute(c,AdfPivotTableUtils.Ae);this.Z[AdfPivotTableUtils.Mi]=b.getAttribute(c,AdfPivotTableUtils.Mi);this.Z[AdfPivotTableUtils.ui]=b.getAttribute(c,AdfPivotTableUtils.ui);this.Z[AdfPivotTableUtils.Li]=
b.getAttribute(c,AdfPivotTableUtils.Li);this.Z[AdfPivotTableUtils.ti]=b.getAttribute(c,AdfPivotTableUtils.ti);this.Z[AdfPivotTableUtils.Ki]=b.getAttribute(c,AdfPivotTableUtils.Ki);this.Z[AdfPivotTableUtils.si]=b.getAttribute(c,AdfPivotTableUtils.si);this.Z[AdfPivotTableUtils.To]=b.getAttribute(c,AdfPivotTableUtils.To);this.Z[AdfPivotTableUtils.Uo]=b.getAttribute(c,AdfPivotTableUtils.Uo);this.Z[AdfPivotTableUtils.So]=b.getAttribute(c,AdfPivotTableUtils.So);this.Z[AdfPivotTableUtils.Xo]=b.getAttribute(c,
AdfPivotTableUtils.Xo);this.Z[AdfPivotTableUtils.Vo]=b.getAttribute(c,AdfPivotTableUtils.Vo);this.Z[AdfPivotTableUtils.Wo]=b.getAttribute(c,AdfPivotTableUtils.Wo);this.Z[AdfPivotTableUtils.eo]=b.getAttribute(c,AdfPivotTableUtils.eo);this.Z[AdfPivotTableUtils.fo]=b.getAttribute(c,AdfPivotTableUtils.fo);this.Z[AdfPivotTableUtils.co]=b.getAttribute(c,AdfPivotTableUtils.co);this.Z[AdfPivotTableUtils.bo]=b.getAttribute(c,AdfPivotTableUtils.bo);this.Z[AdfPivotTableUtils.Zn]=b.getAttribute(c,AdfPivotTableUtils.Zn);
this.Z[AdfPivotTableUtils.$n]=b.getAttribute(c,AdfPivotTableUtils.$n);this.Z[AdfPivotTableUtils.Yo]=b.getAttribute(c,AdfPivotTableUtils.Yo);this.Z[AdfPivotTableUtils.ao]=b.getAttribute(c,AdfPivotTableUtils.ao);this.Z[AdfPivotTableUtils.ap]=b.getAttribute(c,AdfPivotTableUtils.ap)}return this.Z[a]};function A_$g(a,b){var c=a.className;-1==A_k.tm(c,b)&&(a.className=c?c+" "+b:b)}
function A_gg(a,b,c){AdfAssert.assertFunction(b);var d=new Function("return AdfDhtmlPivotTablePeer.callbackCaller(arguments);");d.xH=a;d.iG=b;d.ej=c;return d}AdfDhtmlPivotTablePeer.$I=function(a){var b=a.callee;return b.iG.apply(b.xH,b.ej==A_||0==b.ej.length?a:0==a.length?b.ej:b.ej.concat.apply(b.ej,a))};A_h("AdfDhtmlPivotTablePeer.callbackCaller",AdfDhtmlPivotTablePeer.$I);
AdfDhtmlPivotTablePeer.prototype.Er=function(a){var b;if(a==A_||a.constructor==String)b=a;else if(a.constructor==Array)b=a.map(this.Er,this);else if("object"==typeof a){b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=this.Er(a[c]))}else b=a;return b};function A_Cf(a){return AdfAgent.AGENT.getOS()==AdfAgent.MAC_OS?a.metaKey:a.ctrlKey};