function slideshow(i) {
	slideshow_getImages();
	slideshow_shiftImages(i);
}
function slideshow_getImages() {
	$.ajax({
		type: "GET",
		url: '/templates/cc_main/header.xml',
		dataType: "xml",
		success: function(xml) {
			var content = '';
			$(xml).find('image').each(function(i){
				var width = $(this).width();
				var height = $(this).height();
				content += '<img src="../Copy of cc_main/' +$(this).text()+ '" />';
			});
			$('#current_series').prepend(content);
			$('#current_series img').css({
				'display' : 'block',
				'position' : 'absolute',
				'top' : '0',
				'left' : '0'
			});
		},
		error: function (xhr, ajaxOptions, thrownError, request, error){
			alert('xrs.status = ' + xhr.status + '\n' + 
				'thrown error = ' + thrownError + '\n' +
				'xhr.statusText = '  + xhr.statusText + '\n' +
				'request = ' + request + '\n' +
				'error = ' + error);
		}
	});
}
function slideshow_shiftImages(i) {
	var element = '#current_series img:last-child';
	$(element).clone().prependTo('#current_series');
	$(element).remove();
	setTimeout("slideshow_shiftImages("+i+")", i*1000);
}