/***** Alle Rechte vorbehalten: Rainer Wagener, wagener [ed] rohschnitt.de *****/

var xB = 0;
var yB = 0;
var nun = false;

function initmove()
{
   if(document.getElementById('stripback'))
   {
      document.getElementById('stripback').onmouseover=headback;
      document.getElementById('stripback').onmouseout=stop;
      document.getElementById('stripvor').onmouseover=headvor;
      document.getElementById('stripvor').onmouseout=stop;
      document.getElementById('stripback').onfocus=headback;
      document.getElementById('stripback').onblur=stop;
      document.getElementById('stripvor').onfocus=headvor;
      document.getElementById('stripvor').onblur=stop;
   }
}

  function headback()
  {
    if(nun)
      return;
    else
      nun = window.setInterval("moveback()",10);
  }

  function moveback()
  {
    if(xB < -845)
      xB= 0;
    else
      xB = xB - 1;

    var z = xB + "px";
    document.getElementById('strip').style.left=z;
  }

  function headvor()
  {
    if(nun)
      return;
    else
      nun = window.setInterval("move()",10);
  }

  function move()
  {
    if(xB > -1)
      xB= -845;
    else
      xB = xB + 1;

    var z = xB + "px";
    document.getElementById('strip').style.left=z;
  }

  function stop()
  {
    window.clearInterval(nun);
    nun = false;
  }


 function leer()
 {
   return;
 }

 var counter = 0;
 tmpmove = window.onload;
 window.onload = function()
 {
   if(counter == 0)
   {
     if(typeof tmpmove == "function")
        tmpmove();

     initmove();
     counter++;
   }
 }