numTest=0;

//Do not go past the longest testimonial provided. It will be cut off at the end.
testArray = new Array(numTest);



testArray[0]="<p class=\"highlight\">Posted: 11.01.2008</p><p>Field of Grey to announce breaking news at 11:11pm November 2, 2008</p>";

testShowing=-1;

function nextTest()
{
  // restart at 0 if done
  if (testShowing >= numTest) testShowing=-1;
  testShowing++;

  // assign the value in the textbox to the new quote
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

function prevTest()
{
  // restart at end if on 0
  if (testShowing <= 0) testShowing=numTest+1;
  testShowing--;
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

function randTest()
{
  // Make sure you don't show the same quote 2x in a row
 // prevTestShowing = testShowing;
 // while(testShowing == prevTestShowing)
 //   testShowing = Math.ceil(Math.random() * numTest);
	testShowing = numTest-0;
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

addLoadEvent(randTest);
