/*
   Flywheel Website JavaScript Functions
   
   Author: Becky Moore
   Date: 6/10/2011
   Last Updated: 7/22/2011

   Function List:
   rotateNewsFeed()
      Used to rotate the images in the news feed
	  
*/


function rotateNewsFeed() {
		imageNum = imageNum + 1;
		if (imageNum == (newsFeedArray.length)){
				imageNum = 0;
		}
		document.newsFeed.src = newsFeedArray[imageNum];
}

function changeRosterDisplay(num) {
	document.rosterDisplay.src = rosterArray[num];
}

function nextmediaPhoto() {
	picNum = picNum + 1;
	if (picNum == (mediaPhotoArray[albumNum].length)){
		picNum = 0;
	}
	document.mediaPhotos.src = mediaPhotoArray[albumNum][picNum];
}

function previousmediaPhoto() {
	picNum = picNum - 1;
	if (picNum < 0) {
		picNum = (mediaPhotoArray[albumNum].length) - 1;
	}
	document.mediaPhotos.src = mediaPhotoArray[albumNum][picNum];
}

function changemediaAlbum(choice) {
	albumNum = choice;
	document.mediaPhotos.src = mediaPhotoArray[albumNum][0];
}


