var testimonialGroup=new Array(); // regular array (add an optional integer argument to control array's size)
testimonialGroup[0]="<h5>I have tried other things... yours is the only one that can handle all (data) points.</h5><h6> Alex G <br /> <span>Customer</span> </h6>"; 
testimonialGroup[1]="<h5>My prayers are answered... </h5><h6> Peter Rojas <br /> <span>Engadget.com</span> </h6>";
testimonialGroup[2]="<h5>After 15 days of fussing around with other inferior products, I’ve come home to CompanionLink.</h5><h6> Herb D <br /> <span>Customer</span> </h6>";
testimonialGroup[3]="<h5>The Secure Sync is a dream for me as an on the road sales person.</h5><h6> Buzz B <br /> <span>Customer</span> </h6>";
testimonialGroup[4]="<h5>I use CompanionLink... </h5><h6> Tim Ferriss <br /> <span>Author, 4-Hour Workweek</span> </h6>";
testimonialGroup[5]="<h5>...first Outlook sync product that worked correctly out of the box.</h5><h6> Reuben G <br /> <span>Customer</span> </h6>";
testimonialGroup[6]="<h5>...a fantastic synchronization solution to synchronize with Google Calendar. </h5><h6> David Ciccone <br /> <span>Founder, MobilityToday.com</span> </h6>";
testimonialGroup[7]="<h5>A completely automated method for keeping my calendars in sync. </h5><h6> Jake Ludington <br /> <span>Founder, MediaBlab.com</span> </h6>";
testimonialGroup[8]="<h5>...allows me to sync years of invaluable data between my PC and phone. </h5><h6> Peter R <br /> <span>Customer</span> </h6>";
testimonialGroup[9]="<h5>An answer to my prayers after weeks of trying dozens of applications.</h5><h6> Gary R <br /> <span>Customer</span> </h6>";
testimonialGroup[10]="<h5>...outstanding and accomplishes exactly what I need. Thanks for the 1st class piece of software.</h5><h6> Dale B <br /> <span>Customer</span> </h6>";
testimonialGroup[11]="<h5>Bless you, CompanionLink... All my problems are finally solved. There is no other program that can do what these programs do.</h5><h6> Ken F <br /> <span>Customer</span> </h6>";
testimonialGroup[12]="<h5>VERY professional, easy to use, intuitive, complete, interface is EXCELLENT. Best app I've ever downloaded.</h5><h6> Eddie S <br /> <span>Customer</span> </h6>";
testimonialGroup[13]="<h5>I use CompanionLink on my Atrix, to sync to Outlook calendar and contacts via Google. It works flawlessly, and I highly recommend it.</h5><h6> \"attweco\" <br /> <span>AndroidCentral Forums</span> </h6>";
testimonialGroup[14]="<h5>This has been a great life saver for me since after I gave up my Palm 650.</h5><h6> Barry K <br /> <span>Customer</span> </h6>";
testimonialGroup[15]="<h5>LOVE this application... it has made life so much easier!</h5><h6> Jack B <br /> <span>Customer</span> </h6>";
testimonialGroup[16]="<h5>I've got to say, your people are the best software support I've ever encountered: Quick, detailed, and accurate.</h5><h6> John S <br /> <span>Customer</span> </h6>";
testimonialGroup[17]="<h5>CompanionLink syncs almost everything in almost every way under the sun.</h5><h6> Corey Ames <br /> <span> Founder, SyncDroid.net</span> </h6>";
testimonialGroup[18]="<h5>CompanionLink made it easy to move my 2,000 plus contacts to my phone. This is a very good product that lives up to expectations.</h5><h6> John S <br /> <span>Customer</span> </h6>";
testimonialGroup[19]="<h5>I want to thank all of you for your help and patience. Other companies could take lessons from you on how to talk to, and treat people over the phone.</h5><h6> Jim B <br /> <span>Customer</span> </h6>";
testimonialGroup[20]="<h5>This is a great company! I've been a happy user for about a year now. Had to call tech help today and the problem was quickly solved! Thank you!</h5><h6> Tom M <br /> <span>Customer</span> </h6>";
testimonialGroup[21]="<h5>I found the CompanionLink product to be a life saver...</h5><h6> Yair B <br /> <span>Customer</span> </h6>";
testimonialGroup[22]="<h5>I have found this software to be ideal for syncing my Microsoft Outlook and my Android Apps. Easy to use and effective.</h5><h6> Tom R <br /> <span>Customer</span> </h6>";
testimonialGroup[23]="<h5>...reliable, works as described, is quick and a delight to use.</h5><h6> Geoff A <br /> <span>Customer</span> </h6>";
testimonialGroup[24]="<h5>DejaOffice is an excellent product, and now I can see it comes with great support as well.</h5><h6> Marc C <br /> <span>Customer</span> </h6>";
testimonialGroup[25]="<h5>Your product is a miracle… I am EXTREMELY impressed!</h5><h6> Cynthia L <br /> <span>Customer</span> </h6>";
testimonialGroup[26]="<h5>I never thought my Android would talk to Salesforce! Your product is a lifesaver.</h5><h6> Nick R <br /> <span>Customer</span> </h6>";
testimonialGroup[27]="<h5>I am 100% happy with Companion Link for Outlook/Android.</h5><h6> Mike P <br /> <span>Customer</span> </h6>";
testimonialGroup[28]="<h5>Great software. I have used it for at least 10 years.</h5><h6> Donny H <br /> <span>Customer</span> </h6>";
testimonialGroup[29]="<h5>CompanionLink is great for connecting Outlook to your Droid phone.</h5><h6> Ronald B <br /> <span>Customer</span> </h6>";
testimonialGroup[30]="<h5>Just used this program to sync Outlook with my iPad. So easy it was done in 5 minutes.</h5><h6> Jane S <br /> <span>Customer</span> </h6>";
testimonialGroup[31]="<h5>Great software to link your Android phone with Outlook.</h5><h6> George B <br /> <span>Customer</span> </h6>";


/*
var i=0; //sets a global counter for the testimonial loop
*/
		
function testiSwap() {

	//var testiText="Oh sugar jets!";
	var testiText=testimonialGroup[Math.floor(Math.random()*32)];  	//set this to 1+ the number of testimonial items in the list, stores the random value in a var. value is used to determine which testimonial to show
	
	$('#testimonials').fadeOut(1000, function () {
	
	$('#testimonials').html(testiText);		//Set the content of the testimonials div
	$('#testimonials').fadeIn(700);
	
	});
	

/*	
	// the i counter is old bit of code from when we cycled through them in order
	//
	//

	i++; 									//increment the counter with each pass

	if (i>23) //set this to the number of testimonial items in the list
		{
		i=0;  //reset the counter once it hits max
		}
	
	//alert("Counter has been incremented and is now at " + i);
*/

	
	testiLoop();							//dump back into the loop
}

function testiLoop() {

	setTimeout( "testiSwap();", 6000); //Pause 6 seconds, then call the swap function
}
