var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' ';
  }
}

testimonial = new StringArray(5);
testimonial[0] =  "Jeremy has a great sense of patience...I typically have complicated clients and projects where I need and expert like Jeremy. He adapts to change, is quick in his response time and has a great ability to explain what he needs or how things work. He also proposes innovative solutions that make projects more efficient. He is the first person I go to when I need web programming.";
testimonial[1] = "Thanks so much for all your help.  You have done a great job on our website!  Everything we have asked has been taken care of immediately and you have always presented yourself in a professional and businesslike manner.  We are extremely pleased with what you have been able to do for us.  Additionally, you have been a pleasure to work with.  Keep up the good work.";
testimonial[2] = "As Sheriff of York County , I would like to thank you for the redesign and development of the Sheriff's office website, your ability is reflected in your work."
testimonial[3] = "I have worked on several projects with Jeremy and he is always receptive to my and my client's needs. He knows how to think critically and is incredibly resourceful and a quick learner. And all this without a single complaint!"
testimonial[4] = "I worked with Jeremy in his role as web developer at United Printing & Mailing. I provided some search engine marketing and optimization training for the company. Jeremy is a talented web developer and learned the strategies and techniques quickly. He was able to quickly translate the information into actionable tactics and improve the performance of the company website. Jeremy is not only skilled technically, he is also a great communicator and team player. It was a pleasure to work with Jeremy."

testnames = new StringArray(5);
testnames[0] = "Bri Smathers";
testnames[1] = "Trask Performance";
testnames[2] = "Richard P Keuerleber";
testnames[3] = "Melissa Balkon";
testnames[4] = "Sheila Kloefkorn";


business = new StringArray(5);
business[0] = "Gould Evans";
business[1] = "";
business[2] = "York County Sheriff";
business[3] = "Strong Design Studios";
business[4] = "President, KEO Marketing";

var ran = 60/testimonial.length;

function gettestimonial() {
currentdate = new Date();
core = currentdate.getSeconds();
core = Math.floor(core/ran);
var thetestimonial = "<p id='thetestimonial'>"+testimonial[core]+"</p><p id='testimonialname'>- "+testnames[core]+" -";
if (business[core] != "") {
thetestimonial = thetestimonial+"<br/ ><span id='testimonialcomp'>"+business[core]+"</span>";
}
thetestimonial = thetestimonial+"<p>"
thetestimonial = thetestimonial.toString();

return(thetestimonial);
}
