function startScroller() {
	startScroll();
	loadVisibleDiv();
}

function makeData(Width) {
	this.Width = Width;
	return true;
}

function startScroll() {
  TimeOutID = window.setInterval('doIt();',50);
}

function stopScroll() {
  clearInterval(TimeOutID);
}

function loadVisibleDiv() {
	if (document.layers) {
      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
	    eval("oVisDiv" + iCnt + " = document.layers['scroll" + iCnt + "']")
	  }
  }
  else if (document.all) {
      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
	    eval("oVisDiv" + iCnt + " = document.all['scroll" + iCnt + "'].style")
	  }
  }
  else if (document.getElementById) {
      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
	    eval("oVisDiv" + iCnt + " = document.getElementById('scroll" + iCnt + "').style")
	  }
  }
}

function doIt() {
	var iLa,iLb,iLc,iLd,iAddIncr,iLocal,il;
	iLocal=iLeader;
	iAddIncr=0;
	for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++) {
		eval("oVisDiv" + iLocal + ".left=" + (iLeft + iAddIncr));
			iAddIncr += scrollImage[iLocal].Width; // + 1 is the spacer
		iLocal+=1;
		if (iLocal>m_ImageWidth) {
		  iLocal=0;
		}
   }  
  if (iLeft<=-(scrollImage[iLeader].Width+1)) {  
		iLeft=0;
		m_iSeq+=1;
		if (m_iSeq > NumberOfImages-1) {
		  m_iSeq=0;
		}
		iLeader+=1;
		if (iLeader > m_ImageWidth) {
		   iLeader=0;
		}
  }
  iLeft-=1;
}
