// JavaScript Document
var updates = ['The pre-test is rescheduled for November 18th, after the Belt Test.<br/> The changes are due to the Rocky Mountain Open Championship scheduled for Nov.12th.<br/> M. Santos','Littleton Taekwondo Iphone and Ipad APP coming soon!','Belt test is on October 21, 2011 <br/> eligibility required','Schedule as of September 19th uploaded<br/> navigate to class schedule to view and download pdf','Halloween Movie Night<br/>Saturday 29th<br/>There will be regular classes on Monday the 29th "Halloween night"','November<br/>-Thanksgiving week:<br/>classes on Monday and Tuesday only! No classes on Wed. Thur. or Fri.','Happy Halloween'];
var updatesIndex = 0;
var rotateUpdates = function(){
	updatesID = document.getElementById('updates');
	setTimeout(function(){updatesID.className = 'fadeOut';},10);
	updatesIndex++;
	if(updatesIndex >= updates.length){
		updatesIndex = 0;
	}
	setTimeout(function(){
						updatesID.innerHTML = updates[updatesIndex];
						updatesID.className = 'fadeIn';},1000);
}

generateUpdates = function(){
	updatesID = document.getElementById('updates');
	updatesID.innerHTML = updates[updatesIndex];
	updatesID.className = 'fadeOut';
	setTimeout(function(){updatesID.className = 'fadeIn';},10);
	setInterval('rotateUpdates()',10000);
}
