function rotator() {
	setTimeout(function() {
		var images = $('#rotator img');
		$(images).each(function(i) {
			if (i == images.length-1) {
				$(this).fadeOut(500, function() {
					var this_el = $(this);
					this_el.remove();
					this_el.show();
					$('#rotator').prepend(this_el);
				});
			}
		});
		rotator();
	}, '5000');
}
function reorder() {
	$('#rotator img').each(function() {
		var this_el = $(this);
		this_el.remove();
		$('#rotator').prepend(this_el);
	});
}
$(function() {
	reorder();
	rotator();
});
