/* Callback function to update the current slide number for the Cycle plugin */
function updateSlideCounter(currSlideElement, nextSlideElement, options, forwardFlag) {
	var slide = $(nextSlideElement);
	var index = slide.index() + 1;
	var count = slide.siblings().length + 1;
	var element = $(options.next).siblings('.count');
	var text = index + ' of ' + count;
	element.text(text);
}

function handleAjaxCompletion(response, status, request) {
	if (status == 'error') {
		$(this).empty().append('<p class="error"><span>Error &ndash; Could not load content</span></p>');
	}
}

