var firstCycle = true;

function onAfter(curr, next, opts) {
    var index = opts.currSlide;
	var anchors = $("#imageBtns ul li a");
	if (!firstCycle){
		index ++;	
		if (index > anchors.size() -1)
		{
			index = 0;
		}
	}
	firstCycle = false;
	$(anchors).css('backgroundPosition', 'left bottom');
	$(anchors[index]).css('backgroundPosition', 'left top');
}

function resetTitles()
{
	var anchors = $("#imageBtns ul li a");
	$(anchors).css('backgroundPosition', 'left bottom');
	
}

function highlightTitle(paramLink)
{
	resetTitles();
	$(paramLink).css('backgroundPosition', 'left top');
}
