[if IE]> var callbackTest = { calculateTotalRating:function(opts) { var trs = document.getElementById("theTable").getElementsByTagName("tbody")[0].rows, tot = 0, cnt = 0, cell = document.getElementById("visibleTotal"); for(var i = 0, tr; tr = trs[i]; i++) { // If the row is visible i.e. has not display:none or the className "invisibleRow" (used by the fake filter) if(tr.style.display != "none" && tr.className.search(/(^|\s)invisibleRow($|\s)/) == -1) { tot += Number(fdTableSort.getInnerText(tr.cells[6])); cnt++; }; }; while(cell.firstChild) { cell.removeChild(cell.firstChild); }; cell.appendChild(document.createTextNode(Number(tot / cnt).toFixed(2))); }, displayTextInfo:function(opts) { if(!("currentPage" in opts)) { return; } var p = document.createElement('p'), t = document.getElementById('theTable-fdtablePaginaterWrapTop'), b = document.getElementById('theTable-fdtablePaginaterWrapBottom'); p.className = "paginationText"; p.appendChild(document.createTextNode("Showing page " + opts.currentPage + " of " + Math.ceil(opts.totalRows / opts.rowsPerPage))); t.insertBefore(p.cloneNode(true), t.firstChild); b.appendChild(p); } };