

var speed1 = 1; // change scroll speed with this value
/**
 * Initialize the marquee, and start the marquee by calling the marquee function.
 */
function init1(){
  var el1 = document.getElementById("marquee_replacement1");
  el1.style.overflow = 'hidden';
  scrollFromBottom1();
}

var go1 = 0;
/**
 * This is where the scroll action happens.
 * Recursive method until stopped.
 */
function scrollFromBottom1(){
  var el1 = document.getElementById("marquee_replacement1");
  if(el1.scrollTop >= el1.scrollHeight-150){
    el1.scrollTop = 0;
  };
  el1.scrollTop = el1.scrollTop + speed1;
  if(go1 == 0){
    setTimeout("scrollFromBottom1()",50);
  };
}

/**
 * Set the stop variable to be true (will stop the marquee at the next pass).
 */
function stop1(){
  go1 = 1;
}

/**
 * Set the stop variable to be false and call the marquee function.
 */
function startit1(){
  go1 = 0;
  scrollFromBottom1();
}



