setTimeout(rotate, 5000);
function rotate()
{
	for (var i = 1; i < 16; i++)
	{
		if ($('#headimage_box' + i).is(':visible'))
		{
			$('#headimage_box' + i).fadeOut(2000);

			var next = i + 1;
			if (next > 15)
			{
				next = 1;
			}

			$('#headimage_box' + next).fadeIn(2000, function() { setTimeout(rotate, 5000); });
			break;
		}
	}
}