Scroll

Scroll Top

function initScrollUp(container, content, speed)
{
	if (container.offsetHeight > content.offsetHeight)
		return false;

	if (container.move)
		window.clearInterval(container.move);

	container.content = content;
	container.content.topPos = 0;
	container.content.innerHTML += container.content.innerHTML;

	container.onmouseover = function() {
		clearInterval(container.move);
	}
	container.onmouseout = function() {
		container.move = setInterval(function () {
			container.content.topPos--;
			container.content.style.top = container.content.topPos + "px";
			if (container.content.topPos * -1 > container.content.offsetHeight / 2) {
				container.content.topPos = 0;
			}
		}, speed);
	}
	container.onmouseout();
}
initScrollUp(document.getElementById("booking-container"), document.getElementById("booking-content"), 100);