
function randomMessage()
{
  var message=new Array(23)
    message[0] = "Very informative sessions that explain in detail many aspects of hazmat response. Can be used for hazmat response teams debriefing and training sessions&hellip;. This program can be used to replace or augment the current &hellip; Ops course taught in the Firefighter 1 curriculum.<span> - County Hazmat/WMD<br />Response Team Coordinator</span>";
    message[1] = "Given the popularity of video games, I think people will enjoy the interactive simulations.<span> - Fire Department<br />Special Operations Captain</span>";
    message[2] = "I liked the way the program brings all aspects of hazmat response under one umbrella to address all of the critical tasks that are evaluated during hazmat exercises, from EMS to decon procedures.<span> -  County Hazmat/WMD<br />Response Team Coordinator</span>";
    message[3] = "This was the most interesting computer-based instruction I have ever experienced. The instructors teach in a manner that starts with the basics and moves up from there. The simulations were extremely informative and entertaining. We sat for hours without knowing it.<span> - Federal Law Enforcement Tester</span>";
    message[4] = "Enjoyed the <q>Ops-for WMD Hazmat.</q> I thought it was a interesting learning experience. It\'s nice that you are able to go at your own pace and move around the academy to any area you are interested in. I was excited about the simulations and enjoyed them.<span> - Fire Department<br />Special Operations Captain</span>";
    message[5] = "This course should be issued to all counties in the state for in-house training and refresher training sessions. It would be a great addition to any training library in all emergency response arenas.<span> -  County Hazmat/WMD<br />Response Team Coordinator</span>";
    message[6] = "The firefighters loved the program and had fun evaluating it. It has a lot of potential for terrorism training but also for basic awareness and operations levels as well as specific topics such as instrumentation, basic chemistry, risk assessment, etc.<span> - Fire Chief</span>";
    message[7] = "I loved the visual teaching line for the metering unit.  What a great resource tool to expose others to [the material] and to periodically perform self-review.<span> - Deputy Chief, County EMS Officer</span>";
    message[8] = "I see this as not only a great tool for training oneself in hazmat Ops-plus &mdash; it has a great classroom value. The material is well presented and clear.<span> - Law Enforcement Tester</span>";
    message[9] = "I would love to make your game my [public-safety students\'] final examination. It\'s great.<span> - Veteran Instructor</span>";
    message[10] = "The extras are very informative and can be used to assist in teaching ICS and other segments of emergency response.<span> -  County Hazmat/WMD<br />Response Team Coordinator</span>";
    message[11] = "&hellip;This program is great. I have really enjoyed using it.<span> - State Office of Fire Prevention and Control</span>";
    message[12] = "The first thing I did was take the test - I'm trained to the tech level - and failed. I spent a good bit of time in the Learning Lab. It was a very good review. Passed the test on 2nd try. Did the first sim and was impressed with the graphics and the way you moved and looked around, very videogame-like.<span> - Law Enforcement Tester</span>";
    message[13] = "The [firefighters] &hellip; found it enjoyable to sit there and do the program together.<span> - Fire Chief</span>";
    message[14] = "A really great tool - you guys did a great job with the speakers, interaction, video, content&hellip;and so on.  I look forward to spreading the word to first responders.<span> - Federal WMD Coordinator</span>";
    message[15] = "I love this and cannot wait [to] use it with my students.<span> - Academy Instructor</span>";
    message[16] = "Very good training that is very detailed for its level.  The videogame simulations and testing throughout the lectures keep it interactive and therefore [keep] the trainee involved in the training by testing their knowledge throughout the training.<span> - State Training Officer</span>";
    message[17] = "I really enjoyed the scenarios. Thanks!<span> - Federal Law Enforcement Tester</span>";
    message[18] = "&hellip;A great learning tool that I enjoyed using. I plan to continue to play with this.<span> - Law Enforcement Tester</span>";
    message[19] = "The program is great. I was extremely impressed with the smooth flow and realistic nature of both the simulations and learning exercises. Well done.<span> - WMD Coordinator</span>";
    message[20] = "I have played with this product quite a bit and am impressed.<span> - Law Enforcement Tester</span>";
    message[21] = "You have done an excellent job on the program. I really enjoyed [working] with the different meters. I also like the interaction of video and graphics. The program impressed me.<span> - Firefighter/Specialist, Homeland Security Technician</span>";
    message[22] = "As the Education and Outreach Coordinator for our state hazardous material responders, I highly recommend this program.  This would be excellent for both smaller and larger teams to [keep] team members better prepared [for hands-on] training and to keep them refresh.<span> - State Training Coordinator</span>";

  var index = Math.floor( Math.random() * message.length );
  return( message[index] );

}

function nextMessage() {

  var msgbox = $("#testimonialbox p").get(0);
  var oldMessage = $(msgbox).html();
  var newMessage = randomMessage();

  while ( newMessage == oldMessage ) {
    newMessage = randomMessage();
  }

  /* Define the viewing time for this message
  allow 6/100 second for each character
  but not less than 3 seconds nor more
  than 15 seconds */

  var sleepTime = 0.06 * newMessage.length;
  if ( sleepTime < 3 ) { sleepTime = 3; }
  if ( sleepTime > 20 ) { sleepTime = 20; }

  sleepTime = Math.round(sleepTime * 1000);
  $(msgbox).fadeOut('slow', function() {
    $(msgbox).html( newMessage ).fadeIn('slow');
  });

  /* Just before we finish, set a timer for
  changing the message again in a bit.  */
  return window.setTimeout('nextMessage();', sleepTime);

}

$(document).ready(function() {
  var t = nextMessage();
});

