window.addEventListener('load', function() { var tbls = document.getElementsByTagName('table'), len = tbls.length, obj = document.createElement('object'); for (var i = 0; i < len; i++) { var t = tbls[i], o = obj.cloneNode(); o.setAttribute('tid', i); o.onload = function(e) { loadTsv(e) }; o.data = t.getAttribute('data'); document.body.appendChild(o); } }); function loadTsv(e) { var o = e.target, tsv = o.contentDocument.body.textContent, rows = tsv.split(/[\n\r]+/), nrow = rows.length, tid = o.getAttribute('tid'), tbl = document.getElementsByTagName('table')[tid], ary = [], s = document.createElement('script'); ary.push('