(function(){Array.prototype.map||(Array.prototype.map=function(n,t){var e,u,i,r,f,o,s;if(this==null)throw new TypeError(" this is null or not defined");if(r=Object(this),f=r.length>>>0,typeof n!="function")throw new TypeError(n+" is not a function");for(t&&(e=t),u=new Array(f),i=0;i<f;)i in r&&(o=r[i],s=n.call(e,o,i,r),u[i]=s),i++;return u});Array.prototype.filter||(Array.prototype.filter=function(n){"use strict";var i,f,r,e,t,u;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),f=i.length>>>0,typeof n!="function")throw new TypeError;for(r=[],e=arguments.length>=2?arguments[1]:void 0,t=0;t<f;t++)t in i&&(u=i[t],n.call(e,u,t,i)&&r.push(u));return r});Array.prototype.indexOf||(Array.prototype.indexOf=function(n){for(var t=0;t<this.length;t++)if(this[t]===n)return t;return-1});Array.prototype.update||(Array.prototype.update=function(n){this.length=0;this.push.apply(this,n)});Array.prototype.swap||(Array.prototype.swap=function(n,t){var i=this[n];return this[n]=this[t],this[t]=i,this})})(),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}(),function(){Number.prototype.formatMoney||(Number.prototype.formatMoney=function(n,t,i,r){r=r==undefined?"$":r;n=isNaN(n=Math.abs(n))?2:n;t=t==undefined?".":t;i=i==undefined?",":i;var u=this,o=u<0?"(":"",s=u<0?")":"",e=parseInt(u=Math.abs(+u||0).toFixed(n))+"",f=(f=e.length)>3?f%3:0;return o+r+(f?e.substr(0,f)+i:"")+e.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?t+Math.abs(u-e).toFixed(n).slice(2):"")+s})}(),function(){String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});String.prototype.trim||typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}(),function(n,t){function i(){var i=n.location.href,t={};return i.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,i,r){i=decodeURIComponent(i);r=decodeURIComponent(r);t[i]=r}),t}function r(n){var i=0;for(var t in n)t&&Object.prototype.hasOwnProperty.call(n,t)&&!isNaN(parseFloat(t))&&isFinite(t)&&i++;return i}function u(t){var r=n.menuObject.menu.GL.subMenu,u,o,f,i,e;for(u in r)for(o in r[u].actions)if(f=r[u].actions[o],f.reportId===t)return f.dialog;i=n.menuObject.menu.Dashboards.actions;for(e in i)if(i[e].reportId===t)return i[e].dialog;return null}function f(n){var i;return t("div[id^=Panel-"+n+"-]").each(function(r){if(t("#Panel-"+n+"-"+r)[0].style.display!=="none"){i=n+"-"+r;return}}),i}function e(n){return typeof n=="number"?n:n.split("-")[0]}function o(n,t){var i=Math.abs(n);return n=i/1e9>=1?(n/1e9).toFixed(t)+"B":i/1e6>=1?(n/1e6).toFixed(t)+"M":i/1e3>=1?(n/1e3).toFixed(t)+"K":n.toFixed(t),"$"+n}function s(n){return n.replace(/\s(.)/g,function(n){return n.toUpperCase()}).replace(/\s/g,"").replace(/^(.)/,function(n){return n.toLowerCase()})}function h(n,t){return n&&n.length&&n.length>t?n.substring(0,t-3)+"...":n}function c(n,t){var i=document.createElement("table"),r=document.createElement("tbody");return i.style.width=t,n.forEach(function(n){var t=document.createElement("tr");n.forEach(function(n){var i=document.createElement("td");i.appendChild(document.createTextNode(n));i.style.fontWeight="normal";i.style.textAlign="left";i.style.width="50%";t.appendChild(i)});r.appendChild(t)}),i.appendChild(r),i}function l(t){n.top.bankID<0&&t.hide()}function a(n,i){var u=t("#divDialogLoading"),f=t("#loadingOverlay"),r=t("#loadingCaption");r.hide();n?(f.show(),u.show(),i&&(r.find("span").text(i),r.show())):(u.hide(),f.hide())}function v(n,t,i,r){if(n.length===0)return"";if(n.length===1)return n[0][t];var u=n.map(function(n){return n[t]}),f=u.pop();return i=i||", ",r=r||" and ",u.join(i)+r+f}t.extend(n.dlx||(n.dlx={}),{utilities:{getUrlVariables:i,getObjectNumericPropertyCount:r,getReportDialogById:u,getCurrentSubPanel:f,getCurrentMainPanel:e,formatBalanceToShortenedFormat:o,convertToCamelCase:s,truncateString:h,createTable:c,hideElement:l,loadingOverlay:a,toReadableString:v}});t.fn.tableScroll=function(n){function i(i){var r=i.find("thead"),u;r.find("tr").clone().appendTo(r).addClass("hidden-header");i.addClass("table-scroll");i.find("tr:nth-child(odd)").addClass(".table-row-alt");i.find("th").wrapInner('<div class="th-inner"><\/div>');i.outerHeight()>n.height&&(i.find("tbody > tr").append('<td class="scroll-spacer"><\/td>'),i.find("thead > tr").append('<th class="scroll-spacer"><\/th>'));u=t('<div class="fixed-table-container"><\/div>');u.css({width:n.width?+n.width+n.unit:"100%",height:n.height+n.unit});i.wrap(u).before('<div class="header-background"><\/div>').wrap('<div class="fixed-table-container-inner"><\/div>');r.hasClass("double")&&(t(".header-background").css("height","60px"),t(".fixed-table-container").css("padding-top","60px"))}return n=t.extend({width:400,height:300,headerHeight:30,unit:"px",tableClass:"table-scroll"},n),this.each(function(){var n=t(this);i(n)})};t.fn.outerHTML=function(){return t("<div />").append(this.clone()).html()};t.fn.disable=function(n){return n===undefined&&(n=!0),this.prop("disabled",!!n),this};t.fn.enable=function(){return this.prop("disabled",!1),this}}(window,window.jQuery)