/***********************************************
 * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
 * This notice MUST stay intact for legal use
 * Visit http://www.dynamicdrive.com/ for this script and 100s more.
 ***********************************************/

var delayb4scroll = 1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed = 2.6 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit = 0 //Pause marquee onMousever (0=no. 1=yes)?

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

var copyspeed = marqueespeed
var copyspeed2 = 6;
var pausespeed = (pauseit == 0) ? copyspeed : 0
var actualheight = ''

function scrollHorizontal()
{
	var x = 8;
	if (parseInt(cross_marquee.style.left) > (actualwidth * (-1) + x))
		cross_marquee.style.left = parseInt(cross_marquee.style.left) - copyspeed + "px"
	else
		cross_marquee.style.left = parseInt(marqueewidth) + x + "px"
}

function scrollHorizontal2()
{
	var x = 8;
//	alert(parseInt(cross_marquee2.style.left) + ' ' + (actualwidth2 * (-1) + x));
//	alert(marqueewidth2);

	if (parseInt(cross_marquee2.style.left) > (actualwidth2 * (-1) + x))
	{
		cross_marquee2.style.left = parseInt(cross_marquee2.style.left) - copyspeed2 + "px"
	}
	else
		cross_marquee2.style.left = parseInt(marqueewidth2) + x + "px"
}

function initializeScrollHorizontal()
{
	cross_marquee = document.getElementById("vmarquee");
	cross_marquee.style.left = 0;
	marqueewidth = document.getElementById("marqueecontainer").offsetWidth
	actualwidth = cross_marquee.offsetWidth
	setTimeout('lefttime=setInterval("scrollHorizontal()",90)', delayb4scroll) // LUCA 90 was 30
}

function initializeScrollHorizontal2()
{
	cross_marquee2 = document.getElementById("vmarquee2");
	cross_marquee2.style.left = 0;
	marqueewidth2 = document.getElementById("marqueecontainer2").offsetWidth
	actualwidth2 = cross_marquee2.offsetWidth
	setTimeout('lefttime=setInterval("scrollHorizontal2()",90)', delayb4scroll) // LUCA 90 was 30
}

/*
if (window.addEventListener)
	window.addEventListener("load", initializeScrollHorizontal, false)
else if (window.attachEvent)
	window.attachEvent("onload", initializeScrollHorizontal)
else if (document.getElementById)
	window.onload = initializeScrollHorizontal
*/
