text: AdHocTable.initOverlays=function(){AdHocTable.columnLazyInitState={},designerBase.clearOverlaySet(AdHocTable.columnResizers),designerBase.clearOverlaySet(AdHocTable.columnOverlays),designerBase.clearOverlaySet(AdHocTable.summaryOverlays);var e=function(){var e=jQuery(this).index();AdHocTable.columnLazyInitState[e]!==!0&&(AdHocTable.columnLazyInitState[e]=!0,AdHocTable.initOverlayById(e))};jQuery(adhocDesigner.overlayParent).on("mouseover","td",e),jQuery(adhocDesigner.overlayParent).on("mouseover","th",e)},AdHocTable.initOverlayById=function(e){AdHocTable.initColumnOverlay(e),AdHocTable.initColumnResizer(e),AdHocTable.initSummaryOverlay(e)},AdHocTable.initRowDependentDimensions=function(){AdHocTable.lastRow=AdHocTable.theRows.length-1,"NoDataRow"==AdHocTable.theRows[AdHocTable.lastRow].id&&(AdHocTable.lastRow=AdHocTable.lastRow-1),AdHocTable.columnHeaderRow=$("columnHeaderRow")},AdHocTable.initNewRows=function(){return AdHocTable.state.endOfFile=$("endOfFileRow")||AdHocTable.existingRowCount==AdHocTable.theRows.length,AdHocTable.theRows=$("canvasTable").rows,window.status="total rows = "+AdHocTable.theRows.length,this.shouldFetchMoreRows()?(setTimeout("localContext.fetchMoreRows()",100),void setTimeout("localContext.fetchMoreRows()",100)):(AdHocTable.initRowDependentDimensions(),AdHocTable.initOverlays(),AdHocTable.existingRowCount=AdHocTable.theRows.length,void(AdHocTable.fetchingRows=!1))},AdHocTable.initColumnResizer=function(e){var t=3,a=AdHocTable.columnHeaderRow.cells;if(!(a.length<=e||jQuery("#columnSizer_"+e).length>0)){var o=this.getTableTop(),l=this.getTableHeight(),n=a[e],i=$(n).cumulativeOffset()[0]-$("mainTableContainer").cumulativeOffset()[0]-t,r=i+n.offsetWidth+"px",c=designerBase.createDomObject("DIV","columnSizer");c.writeAttribute("id","columnSizer_"+e),c.setStyle({left:r,top:o,height:l}),AdHocTable.columnResizers[e]=c,adhocDesigner.overlayParent.appendChild(c)}},AdHocTable.initColumnOverlay=function(e){var t=AdHocTable.columnHeaderRow.cells;if(!(t.length<=e||jQuery("#columnOverlay_"+e).length>0)){var a=this.getTableTop(),o=this.getTableHeight(),l=t[e];if($(l).hasClassName("label")){var n=$(l).cumulativeOffset()[0]-$("mainTableContainer").cumulativeOffset()[0]+"px",i=l.offsetWidth+"px",r=designerBase.createDomObject("DIV","overlay col");r.writeAttribute("id","columnOverlay_"+e),r.setStyle({left:n,width:i,top:a,height:o}),AdHocTable.columnOverlays[e]=r,adhocDesigner.overlayParent.appendChild(r)}}},AdHocTable.initSummaryOverlay=function(e){if($("grandSummaryRow")){var t=$("grandSummaryRow").cells;if(t.length<=e)return;var a=$(t[e]),o=a.cellIndex;if(jQuery("#grandSummaryOverlay_"+o).length>0)return;var l=a.offsetTop+$("canvasTable").offsetTop,n=a.cumulativeOffset()[0]-$("mainTableContainer").cumulativeOffset()[0],i=a.offsetWidth-2,r=a.offsetHeight,c=designerBase.createDomObject("DIV","overlay summary button");c.writeAttribute("id","grandSummaryOverlay_"+o),c.writeAttribute("data-summaryIndex",o),c.setStyle({left:n+"px",width:i+"px",top:l+"px",height:r+"px"}),AdHocTable.summaryOverlays[e]=c,adhocDesigner.overlayParent.appendChild(c)}};