/***********************************************
* 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=0 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

var slowspeed = 1 //individuality made: scrollspeed changes from marqueespeed to slowspeed at onMouseover

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? slowspeed: 0
var actualheight=''

function scrollmarquee(){
	if (parseInt(cross_marquee.style.left)<(actualwidth*(-1)))
		cross_marquee.style.left=(parseInt(cross_marquee2.style.left)+actualwidth)+"px"
	if (parseInt(cross_marquee2.style.left)<(actualwidth*(-1)))
		cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth)+"px"
	cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed+"px"
	cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
}

function initializemarquee(){
	cross_marquee=document.getElementById("vmarquee")
	cross_marquee2=document.getElementById("vmarquee2")

	marqueewidth=document.getElementById("marqueecontainer").offsetWidth
	actualwidth=cross_marquee.firstChild.offsetWidth

	//individuality made: scrolling starts random somewhere at width of block level element
	startrandom = Math.round(Math.random() * actualwidth ) * (-1)
	cross_marquee.style.left= startrandom + "px"
	cross_marquee2.style.left=actualwidth + startrandom + "px"

	cross_marquee2.innerHTML=cross_marquee.innerHTML
	setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
	window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
	window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
	window.onload=initializemarquee