/***********************************************
* 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 marqueespeed=3 //Specify marquee scroll speed (larger is faster 1-10)
var copyspeed_2=0
var copyspeed_3=0
var actualheight_2=''
var actualheight_3=''
var currentitem=0

function scrollmarquee_2(){
  if ((parseInt(cross_marquee_2.style.top)-copyspeed_2)>((actualheight_2-marqueeheight_2)*(-1)-4)) //if scroller hasn't reached the end of its height
    if ((parseInt(cross_marquee_2.style.top)-copyspeed_2)<=0) //if scroller hasn't reached the end of its height
      cross_marquee_2.style.top=parseInt(cross_marquee_2.style.top)-copyspeed_2+"px" //move scroller upwards
}
function scrollmarquee_3(){
  if ((parseInt(cross_marquee_3.style.top)-copyspeed_3)>((actualheight_3-marqueeheight_3)*(-1)-1)) //if scroller hasn't reached the end of its height
    if ((parseInt(cross_marquee_3.style.top)-copyspeed_3)<=0) //if scroller hasn't reached the end of its height
      cross_marquee_3.style.top=parseInt(cross_marquee_3.style.top)-copyspeed_3+"px" //move scroller upwards
}

function initializemarquee_2()
{
  cross_marquee_2=document.getElementById("vmarquee_2")
  cross_marquee_2.style.top=0
  marqueeheight_2=document.getElementById("marqueecontainer_2").offsetHeight
  actualheight_2=cross_marquee_2.offsetHeight //height of marquee content (much of which is hidden from view)

  if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1)
  { //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_marquee_2.style.height=marqueeheight_2+"px"
    cross_marquee_2.style.overflow="scroll"
    return
  }
  setTimeout('lefttime=setInterval("scrollmarquee_2()",30)', 0)
  if ((0-(19*currentitem-131))>((actualheight_2-marqueeheight_2)*(-1)-1))
  {
    if ((0-(19*currentitem-131))<=0)
        cross_marquee_2.style.top=0-(19*currentitem-131)+2+"px"
  }
  else
    cross_marquee_2.style.top=(actualheight_2-marqueeheight_2)*(-1)-4+"px"
}
function initializemarquee_3()
{
  cross_marquee_3=document.getElementById("vmarquee_3")
  cross_marquee_3.style.top=0
  marqueeheight_3=document.getElementById("marqueecontainer_3").offsetHeight
  actualheight_3=cross_marquee_3.offsetHeight //height of marquee content (much of which is hidden from view)

  if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1)
  { //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_marquee_3.style.height=marqueeheight_3+"px"
    cross_marquee_3.style.overflow="scroll"
    return
  }
  setTimeout('lefttime=setInterval("scrollmarquee_3()",30)', 0)
}

function scrollUp(num)
{
  eval("copyspeed_"+num+"=marqueespeed")
}
function scrollDown(num)
{
  eval("copyspeed_"+num+"=marqueespeed*(-1)")
}

function scrollStop(num)
{
  eval("copyspeed_"+num+"=0")
}
