var timer;
var i=0;
var imgR = 'http://www.wohntec.de/templates/Wohntec/img/buttons/de/wt-crossscroll-r.png';
var imgRStopp = 'http://www.wohntec.de/templates/Wohntec/img/buttons/de/wt-crossscroll-r-stopp.png';
var imgL = 'http://www.wohntec.de/templates/Wohntec/img/buttons/de/wt-crossscroll-l.png';
var imgLStopp = 'http://www.wohntec.de/templates/Wohntec/img/buttons/de/wt-crossscroll-l-stopp.png';

function CrossScrollR()
 {
 zvScrTatR = document.getElementById('wtccr');
 zvScrTatL = document.getElementById('wtccl');
 zvScrTatL.src = imgL;
 clearTimeout(timer);
 d=document.getElementById('wtcross')
 y=d.scrollLeft;
 if(y<d.scrollWidth-d.offsetWidth)
  {
  y++;
  d.scrollLeft=y;
  timer=setTimeout('CrossScrollR()',10);
  } else
    {
    zvScrTatR.src = imgRStopp;
    clearTimeout(timer);
    }
 }

function CrossScrollL()
 {
 zvScrTatR = document.getElementById('wtccr');
 zvScrTatL = document.getElementById('wtccl');
 zvScrTatR.src = imgR;
 clearTimeout(timer);
 d=document.getElementById('wtcross')
 y=d.scrollLeft;
 if(y>0)
  {
  y--;
  d.scrollLeft=y;
  timer=setTimeout('CrossScrollL()',10);
  } else
   {
   zvScrTatL.src = imgLStopp;
   clearTimeout(timer);
   }
 }
