/***********************************************
* 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 horizontaldelayb4scroll=1500 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var horizontalmarqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var horizontapauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var horizontalcopyspeed=horizontalmarqueespeed
var horizontalpausespeed=(horizontapauseit==0)? horizontalcopyspeed: 0
var actualwidth=''

function scrollHorizontalMarquee(){
if (parseInt(horizontal_cross_marquee.style.right)>(actualwidth*(-1)+8))
	horizontal_cross_marquee.style.right=parseInt(horizontal_cross_marquee.style.right)-horizontalcopyspeed+"px"
else
	horizontal_cross_marquee.style.right=parseInt(marqueeWidth)+8+"px"
}

function initializeHorizontalMarquee(){
	horizontal_cross_marquee=document.getElementById("hmarquee")
	horizontal_cross_marquee.style.right=0
	marqueeWidth=document.getElementById("horizonalMarqueeContainer").offsetWidth
	actualwidth=horizontal_cross_marquee.offsetWidth
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
		horizontal_cross_marquee.style.height=marqueeWidth+"px"
		horizontal_cross_marquee.style.overflow="scroll"
		return
	}
	setTimeout('lefttime=setInterval("scrollHorizontalMarquee()",50)', horizontaldelayb4scroll)
}

if (window.addEventListener)
	window.addEventListener("load", initializeHorizontalMarquee, false)
else if (window.attachEvent)
	window.attachEvent("onload", initializeHorizontalMarquee)
else if (document.getElementById)
	window.onload=initializeHorizontalMarquee

