//Start comment

function rotate() 

{
    rotateStats();
    //rotateTestimonial();
}  
/*
function makeTestimonial(c,l,t,n,loc){
	this.copy = '"' + c + '"';
	this.link = l;
	this.type = t;
	this.name = n;
	this.location = loc;
	this.write = writeTestimonial;
}

function writeTestimonial(){
	var str = '';
    str +=  '<a class=link-testimonials href="' + this.link + '">' + this.copy + '</a>';
    str += '<br><br>- '+ this.name + '<br>&nbsp;&nbsp;' + this.type + '<br>&nbsp;&nbsp;' + this.location;
	return str;
}

var nIndex = 0;
var timerID = null;
function rotateTestimonial(){
	var len = testimonialArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('testimonial').innerHTML = testimonialArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateTestimonial()',15000);
}
function pauseTestimonial() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playTestimonial() {
	if (timerID == null) {
		timerID = setTimeout('rotateTestimonial()', 15000);
	}
}
*/
//   end script hiding -->


function makeStat(c,l,citation){
	this.copy = '"' + c + '"';
	this.link = l;
	this.cite = citation;
	this.write = writeStats;
}

function writeStats(){
	var str = '';
    str +=  '<a class=link-stats href="' + this.link + '">' + this.copy + '</a>';
    str += '<br><br>~'+ this.cite;
	return str;
}

var sIndex = 0;
var timer2ID = null;
function rotateStats(){
	var len = statsArray.length;
	if(sIndex >= len)
		sIndex = 0;
	document.getElementById('stat').innerHTML = statsArray[sIndex];
	sIndex++;
	timer2ID = setTimeout('rotateStats()',15000);
}
function pauseStats() {
	if (timer2ID != null) {
		clearTimeout(timer2ID);
		timer2ID = null;
	}
}

function playStats() {
	if (timer2ID == null) {
		timer2ID = setTimeout('rotateStats()', 15000);
	}
}
