// Javascript for Wellspoint Navigation Functions
var recentNav = 0;

// Functions for the recent podcasts arrows.
function recentLeft()
{
	if (recentNav > 0)
		recentNav--;
		recentRedraw();	
}

function recentRight(max)
{
	if (recentNav < (max -1))
		recentNav++;
		recentRedraw();	
}

function recentRedraw()
{
	$("#recent-podcast-list > li").each(function(i) {
		//alert("Recent Nav: " + recentNav);
		//alert("I: " + i);
		if (i < recentNav)
			$(this).addClass('hide');
		else if (recentNav <= i && i <= (recentNav+1))
			$(this).removeClass('hide');
		else
			$(this).addClass('hide');
	}
		);
}