/***********************************************
* 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 h_delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var h_marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var h_pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

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

var h_copyspeed=h_marqueespeed
var h_pausespeed=(h_pauseit==0)? h_copyspeed: 0
var h_actualheight=''

function scroll_h_marquee(){
if (parseInt(h_cross_marquee.style.left)<(h_actualwidth*(-1)+4))
h_cross_marquee.style.left=(parseInt(h_cross_marquee2.style.left)+h_actualwidth+4)+"px"
if (parseInt(h_cross_marquee2.style.left)<(h_actualwidth*(-1)+4))
h_cross_marquee2.style.left=(parseInt(h_cross_marquee.style.left)+h_actualwidth+4)+"px"
h_cross_marquee2.style.left=parseInt(h_cross_marquee2.style.left)-h_copyspeed+"px"
h_cross_marquee.style.left=parseInt(h_cross_marquee.style.left)-h_copyspeed+"px"
}

function initialize_h_marquee(){
h_cross_marquee=document.getElementById("hmarquee")
h_cross_marquee2=document.getElementById("hmarquee2")
h_cross_marquee.style.left=0
h_marqueewidth=document.getElementById("h_marqueecontainer").offsetWidth
h_actualwidth=h_cross_marquee.firstChild.offsetWidth
h_cross_marquee2.style.left=h_actualwidth+4+'px'
h_cross_marquee2.innerHTML=h_cross_marquee.innerHTML
setTimeout('lefttime=setInterval("scroll_h_marquee()",30)', h_delayb4scroll)
}

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