﻿<!--

var activeIndex = 0;

function stopTimer() {
	timerStopped = true;
}

function startTimer() {
    timerSwitch( -1);
}

function timerSwitch( curIndex) {
	if( timerStopped == true) return;
  nextIndex = curIndex + 1;
  if( nextIndex > lastIndex - 1) {
    nextIndex = 0;
  }
  switchPage( nextIndex);
  activeIndex = nextIndex;
  window.setTimeout("timerSwitch(" + nextIndex + ")", 6000);
}

// -->

