var current = playlist[0].hole;	//the hole number for the current video

//videoId: video to play
//holeNum: the hole number for the video we would like to play
function playVideo(videoId, holeNum) {
	TURNERPLAYER.play(videoId);
	swapOnOff(holeNum);
}

//onHole: hole number of the video thumbnail we want to turn 'on'
function swapOnOff(onHole) {
	if(current != 0) {	//before there is a hole video to watch, we may feature some other video which is going to carry a hole num of '0'
		document.getElementById('imgHole'+previousRound+'_'+current).src = 'http://i.cdn.turner.com/pgatour/.element/img/3.0/sect/tournaments/r470/tiger_returns/thumbs/rnd'+previousRound+'/'+current+'_off.gif';
		document.getElementById('imgHole'+selectedRound+'_'+onHole).src = 'http://i.cdn.turner.com/pgatour/.element/img/3.0/sect/tournaments/r470/tiger_returns/thumbs/rnd'+selectedRound+'/'+onHole+'_on.gif';
	}
	current = onHole;	//this way we'll know what video to turn 'off' after the next playVideo call
	previousRound = selectedRound;
}
