step = 1; nextMessage = 1; function initTSV1() { tsvDisplay = document.getElementById("tsvcont"); for (var a = 0; a < 2; a++) { newDiv = document.createElement("DIV"); newDiv.setAttribute("id", "tsvdiv" + a); newDiv.onmouseover = function() { clearTimeout(timer) }; newDiv.onmouseout = function() { scrollTSV1() }; newDiv.style.position = "absolute"; newDiv.style.padding = "0 0 0 0"; tsvDisplay.appendChild(newDiv) } tsvDv0 = document.getElementById("tsvdiv0"); tsvDv1 = document.getElementById("tsvdiv1"); tsvDv0.innerHTML = info[0]; tsvDv1.innerHTML = info[1]; tsvDv0.style.top = tsvDisplay.offsetHeight; tsvDv1.style.top = tsvDisplay.offsetHeight + tsvDv0.offsetHeight + "px"; scrollTSV1() } function scrollTSV1() { tsvDv0Pos = parseInt(tsvDv0.style.top); tsvDv1Pos = parseInt(tsvDv1.style.top); tsvDv0Pos -= step; tsvDv1Pos -= step; tsvDv0.style.top = tsvDv0Pos + "px"; tsvDv1.style.top = tsvDv1Pos + "px"; if (tsvDv0Pos < -tsvDv0.offsetHeight) { nextMessage++; if (nextMessage == info.length) { nextMessage = 0 } tsvDv0.innerHTML = info[nextMessage]; if (tsvDv1.offsetHeight < tsvDisplay.offsetHeight) { if (tsvDv1.offsetTop < tsvDisplay.offsetHeight - tsvDv1.offsetHeight) { tsvDv0.style.top = tsvDisplay.offsetHeight + "px" } else { tsvDv0.style.top = tsvDv1.offsetTop + tsvDv1.offsetHeight + "px" } } else { tsvDv0.style.top = tsvDv1.offsetTop + tsvDv1.offsetHeight + "px" } } if (tsvDv1Pos < -tsvDv1.offsetHeight) { nextMessage++; if (nextMessage == info.length) { nextMessage = 0 } tsvDv1.innerHTML = info[nextMessage]; if (tsvDv0.offsetHeight < tsvDisplay.offsetHeight) { if (tsvDv0.offsetTop < tsvDisplay.offsetHeight - tsvDv0.offsetHeight) { tsvDv1.style.top = tsvDisplay.offsetHeight + "px" } else { tsvDv1.style.top = tsvDv0.offsetTop + tsvDv0.offsetHeight + "px" } } else { tsvDv1.style.top = tsvDv0.offsetTop + tsvDv0.offsetHeight + "px" } } timer = setTimeout("scrollTSV1()", 1) } var scroll_speed = logoScroll; var scroll_dR = false; function addScrollers(aImgs) { a = '<img height="38" src="Images/Logos/1.gif" /><br><br><img height="38" src="Images/Logos/2.gif" /><br><br><img height="38" src="Images/Logos/3.gif" /><br><br><img height="38" src="Images/Logos/4.gif" /><br><br><img height="38" src="Images/Logos/5.gif" /><br><br><img height="38" src="Images/Logos/6.gif" /><br><br><img height="38" src="Images/Logos/7.gif" /><br><br>'; a += '<img height="38" src="Images/Logos/8.gif" /><br><br><img height="38" src="Images/Logos/10.gif" /><br><br><img height="38" src="Images/Logos/11.jpg" /><br><br><img height="38" src="Images/Logos/12.jpg" /><br><br><img height="38" src="Images/Logos/13.gif" /><br><br><img height="38" src="Images/Logos/14.gif" /><br><br><img height="38" src="Images/Logos/15.gif" /><br><br><img height="38" src="Images/Logos/17.gif" />';startScroll("tsvcont", aImgs) } var scroll_step = 1; function objWidth(a) { if (a.offsetWidth) { return a.offsetWidth } if (a.clip) { return a.clip.width } return 0 } function objHeight(a) { if (a.offsetHeight) { return a.offsetHeight } if (a.clip) { return a.clip.height } return 0 } function scrF(c, b, d) { var a = parseInt(c.top) + (scroll_dR ? scroll_step : -scroll_step); if (scroll_dR && a > b) { a = -d } else { if (a < 2 - d) { a = b } } c.top = a + "px" } function startScroll(f, a) { var e = document.getElementById(f); var g = objWidth(e) - 6; var c = objHeight(e); e.innerHTML = '<div id="' + f + 'in" style="position:absolute; left:3px; width:' + g + ';">' + a + "</div>"; var b = document.getElementById(f + "in"); var d = objHeight(b); b.style.top = (scroll_dR ? -d : c) + "px"; b.style.clip = "rect(0," + g + "px," + d + "px,0)"; setInterval(function() { scrF(b.style, c, d) }, 1000 / scroll_speed) };
