function addHover() { if (document.all&&document.getElementById) { var divs = document.getElementsByTagName("div"); for (i=0; i= 0) document.getElementById("offset").innerHTML = offset; if (offset >= 0) document.getElementById("startRecord").setAttribute('value', offset - 1); if (itemscount >= 0) document.getElementById("itemscount").firstChild.nodeValue = itemscount; document.getElementById("totalcount").firstChild.nodeValue = totalcount; if (document.getElementById("localResourceSize") != null) document.getElementById("localResourceSize").firstChild.nodeValue = localResourceSize; if (document.getElementById("remoteResourceSize") != null) document.getElementById("remoteResourceSize").firstChild.nodeValue = remoteResourceSize; if (document.getElementById("remoteIndexCount") != null) document.getElementById("remoteIndexCount").firstChild.nodeValue = remoteIndexCount; if (document.getElementById("remotePeerCount") != null) document.getElementById("remotePeerCount").firstChild.nodeValue = remotePeerCount; // compose page navigation if (document.getElementById("progressbar").getAttribute('class') != "progress-bar progress-bar-success") { var percent = 100 * (itemscount - offset + 1) / itemsperpage; if (percent == 100) { document.getElementById("progressbar").setAttribute('style',"transition:transform 0s;-webkit-transition:-webkit-transform 0s;"); document.getElementById("progressbar").setAttribute('class',"progress-bar progress-bar-success"); window.setTimeout(fadeOutBar, 500); } document.getElementById("progressbar").setAttribute('style',"width:" + percent + "%"); } var resnavElement = document.getElementById("resNav"); if (resnavElement != null) { var resnav = ""; resnavElement.innerHTML = resnav; } }