var initialDelay = 1000; //Specify initial delay before marquee starts to scroll on page (1000 = 1 second)
var scrollAmount = 1; //Specify the amount of movement in pixels
var scrollDelay = 40; //Specify delay between the scroll events
var pauseIt = 1; //Pause marquee onMousover (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copySpeed = scrollAmount;
var pauseSpeed = (pauseIt == 0) ? copySpeed : 0;
var actualHeight = '';

function scrollMarquee() {
	if (parseInt(cross_marquee.style.top) > (actualHeight * (-1) + 8))
		cross_marquee.style.top = parseInt(cross_marquee.style.top) - copySpeed + "px";
	else
		cross_marquee.style.top = parseInt(marqueeHeight) + 8 + "px";
}

function initializeMarquee() {
	cross_marquee = document.getElementById("vmarquee");
	cross_marquee.style.top = 0 + "px";
	marqueeHeight = document.getElementById("marqueecontainer").offsetHeight;
	actualHeight = cross_marquee.offsetHeight;
	if (window.opera || navigator.userAgent.indexOf("Netscape/7") != -1) { //if Opera or Netscape 7x, add scrollbars to scroll and exit
		cross_marquee.style.height = marqueeHeight + "px";
		cross_marquee.style.overflow = "scroll";
		return;
	}
	setTimeout('var lefttime = setInterval("scrollMarquee()",' + scrollDelay + ')', initialDelay);
}

if (window.addEventListener)
	window.addEventListener("load", initializeMarquee, false);
else if (window.attachEvent)
	window.attachEvent("onload", initializeMarquee);
else if (document.getElementById)
	window.onload = initializeMarquee;
