<!--
function RollBar(intWidth, intHeight, strBGColor, strContent)
{
   var strResult = new String()

   strResult += '<span id="scrollerholder" style="visibility: hidden; position: absolute; top: -100px; left: -9000px">' + strContent + '</span>'
   strResult += '<div class="scroller" style="width: ' + intWidth + 'px; height: ' + intHeight + 'px; overflow: hidden; background-color: ' + strBGColor + '">'
   strResult += '<div style="vertical-align: middle; position: relative; width: 50000px; height: ' + intHeight + 'px; text-align: left" id="marquee" class="marquee" style="position: absolute; left: 0px; top: 0px"></div>'
   strResult += '</div>'

   return strResult
}

function PopulateRollBar(intWidth, intSpeed)
{
   if (intSpeed == undefined) { intSpeed = 20 } 

   var objMarquee = document.getElementById ? document.getElementById("marquee") : document.all.marquee
   objMarquee.style.left=parseInt(intWidth) + 8 + "px"
   objMarquee.innerHTML = document.getElementById("scrollerholder").innerHTML
   lefttime = setInterval("ScrollRollBar(" + intWidth + ", 1)", intSpeed)
}
    
function ScrollRollBar(intWidth)
{
   var objMarquee = document.getElementById("marquee")
   var intActualWidth = document.getElementById("scrollerholder").offsetWidth
   var intSpeed = 1

   if (parseInt(objMarquee.style.left) > intActualWidth * (-1) + 8)
   {
      objMarquee.style.left = parseInt(objMarquee.style.left) - intSpeed + "px"
   }
   else
   {
      objMarquee.style.left = parseInt(intWidth) + 8 + "px"
   }
}
//-->
