var t = 0;

function rotatequote(el)
{
	thequote = myquotes.shift(); //Pull the top one
	myquotes.push(thequote); //And add it back to the end
	
	document.getElementById(el).innerHTML = thequote;
	t=setTimeout('rotatequote("' + el + '")',6000);
}

function rotatenext(el)
{
	clearTimeout(t);
	rotatequote(el);
}

function rotateprevious(el)
{
	clearTimeout(t);
	thequote = myquotes.pop(); //Pull the last one
	myquotes.unshift(thequote); //And add it back to the front
	thequote = myquotes.pop(); //Pull the last one
	myquotes.unshift(thequote); //And add it back to the front
	rotatequote(el);
	
}