//==============================================================
// Chado.js 
//
// Utility routines needed for the Chado website
//
// Copyright 2007 Chado Software, Inc.  All Rights Reserved.
//==============================================================

var curr_testa;
var arr_testas = new Array();

function add_testa(sTestamonial)
{
  arr_testas.push (sTestamonial);
}

function start_testas()
{
  setInterval('testas_timer_func()', 10000);
	curr_testa = 0;
	testas_timer_func();
}

function testas_timer_func()
{
  // Show the testamonial
  var the_test = arr_testas[curr_testa];
	
	var testa = document.getElementById('testa');
	testa.innerHTML = the_test;
	
	curr_testa++;
	if (curr_testa >= arr_testas.length)
	  curr_testa = 0;
}