var test_array = [];
test_array.push({quote:"Everything was beyond anything I could have anticipated. You were ALL wonderful and I think you will see a lot of me because I now have hope that my teeth can be helped and look better. Thanks for being you and taking care of me! ", name:"Diann Tisdale"});
test_array.push({quote:"Trista is always comfortable with the staff… She actually looks forward to her dentist appointments! Thank you very much for making her feel special.", name:"Kari Williams"});
test_array.push({quote:"I just love this dentist office... everyone ALWAYS has a smile & goes out of their way to make sure all your needs are met. The office staff makes you feel like family & not just another appointment. Keep up the good work!", name:"Brandy Byfield"});
test_array.push({quote:"Most wonderful time I've had with a cleaning. So relaxed, I actually fell asleep…", name:"Chris Truesdell"});
test_array.push({quote:"Your practice is phenomenal! Your stateoftheart equipment allowed you to find a problem not visible to the naked eye or xrays, which left untreated could have had very serious health implications. Mere words cannot express my gratitude for you and your staff. Thank you for being different! God bless you all.", name:"Jack Stallings"});
test_array.push({quote:"We love everybody there... The staff is always so friendly. We can say “We love our Dentist!”", name:"Donna Martin"});
test_array.push({quote:"The team at Dr. Maltsberger's office cares; [they] treat the patient as if they are the most important person at the time. The care rendered is better than I have received from any other dental office.", name:"Rachel Heyer"});
test_array.push({quote:"Everyone is always kind and wearing a smile, very professional and always accommodating.", name:"Leonda McClure"});
test_array.push({quote:"Always appreciate the small town atmosphere, and the genuine care given the patient by the staff.", name:"Michael Tolley"});
test_array.push({quote:"Your office is exemplary in everything!! Extremely friendly, efficient, and on the cutting edge of technology... I would recommend you to anyone with much pleasure and I commend you for your excellent care!!", name:"Cathey Johnson"});
test_array.push({quote:"The best service I have ever received by any dentist and any doctor that I’ve been to. The staff is amazing... Dr Joe is great.", name:"Chris Farmer"});
test_array.push({quote:"The entire staff was friendly as usual. Dr. Joe is incredible. He always works very hard to get things absolutely correct. Great place with great service.", name:"Jerry"});
test_array.push({quote:"My best experience I've had at a Dentist office ANYWHERE, EVER!", name:"Lindsey Renfroe"});
test_array.push({quote:"Everyone was very nice and I appreciated the explanation of my dental situation.", name:" Margaret Brunk"});
test_array.push({quote:"There are good reasons why I continue to drive all the way from South Tulsa to see you all!", name:"Steve Heinen"});
test_array.push({quote:"Everyone makes you feel like they have known you all of your life. They know your name and they make you feel like you are the only patient they have! I also noticed the Christian music playing. I loved that. Everything and everyone gets A++++ as far as I am concerned! ", name:"Linda Hudspeth"});
test_array.push({quote:"I love you guys! You are the very best – please keep up all the good that you do!", name:"Cathey Sewell"});
test_array.push({quote:"Thanks so much for getting me in so quickly when my cap fell off. I really appreciate it! Keep up the good work!", name:"Iretha Parker"});
test_array.push({quote:"Everyone was great. Even though I had such a toothache, this was the best experience I have had. ", name:"Alisha Widdoes"});
test_array.push({quote:"All of your staff are so warm and friendly and I greatly appreciate the extra care for Alyssa and her special needs. You are all fabulous!", name:"Debbie Johnston"});
test_array.push({quote:"I really adore all of the staff and always appreciate the way that I am treated like a friend, not just a patient. People think I’m silly for driving from Tulsa to Oologah to see my dentist but I tell them that if they had one visit with Dr. Joe & his staff they would understand.", name:"Tracy Burk"});
test_array.push({quote:"Everything has been truly wonderful. Your office has given me the best experience I have ever had!", name:"Lindsey Renfroe"});
test_array.push({quote:"Everyone is extremely nice at your practice. Please don't change anything!", name:"Doug Kooken"});
test_array.push({quote:"This was the first time I've had a cleaning in your office and WOW!! …this was the BEST we've ever experienced (and the most gentle).  I just can't get over how very nice and skilled the folks in this office are.", name:"Kim Floyd"});
test_array.push({quote:"We would be happy to spend every day in your office!", name:"Scott Pruett"});
test_array.push({quote:"The best dentist and staff ever!", name:"Kourtney Sellers"});
test_array.push({quote:"Dr. Maltsberger and his staff went above and beyond the call of duty to insure complete comfort and care… I have already referred your services to anyone who will listen to my ranting praises. Again I cannot say thank you enough please don't change a thing.", name:"Tammy Donaldson"});
test_array.push({quote:"You guys make me feel like you care about me. Thanks for being warm.", name:"Robert Paeper"});
test_array.push({quote:"This was the GREATEST experience I have ever had at a dentist. You make your patients feel like they are among family. I will let everyone know about Dr Joe and his staff. God Bless.", name:"Cheryl Jensen"});


var current_item = 0;

test_array.sort();
function shuffle(list) {
  var i, j, t;
  for (i = 1; i < list.length; i++) {
    j = Math.floor(Math.random()*(1+i));  // choose j in [0..i]
    if (j != i) {
      t = list[i];                        // swap list[i] and list[j]
      list[i] = list[j];
      list[j] = t;
    }
  }
}

shuffle(test_array);

function rotateT()
{
	var this_item = test_array[current_item];
	
	$("#testimonial_body").html(this_item.quote);
	$("#testimonial_name").html("-" + this_item.name);
	
	if (current_item >= test_array.length-1)
	{
		current_item = 0;
	}
	else
	{
		current_item += 1;
	}
}

$(document).ready(function() {
	rotateT();
	setInterval("rotateT()",8000);
});


