var southbeach__attention_c = function()
{
	this.item_a = [];
	this.item_index_i = 1000;

	this.getItem = function()
	{
		return new southbeach__attention_item_c();
	};

	this.setItem = function(item_o)
	{
		this.item_a[this.item_a.length] = item_o;
	};

	this.getIsValid = function()
	{
		return document.getElementById('attention_previous');
	};

	this.setSelector = function()
	{
		var selector_b = (this.item_a.length > 3);

		if (selector_b)
		{
			document.getElementById('attention_previous').style.display = '';
			document.getElementById('attention_next').style.display = '';
		}
	};

	this.setPlaceholder = function()
	{
		var element_o = document.getElementById('attention_item');

		if (element_o)
		{
			var count_i = (this.item_a.length > 3) ? 3 : this.item_a.length;

			for (var index_i = 0; index_i < count_i; index_i++)
			{
				var duplicate_o = element_o.cloneNode(true);
					duplicate_o.id = 'attention_item_' + index_i;

				element_o.parentNode.appendChild(duplicate_o);
			}

			element_o.parentNode.removeChild(element_o);
		}
	};

	this.setGroup = function()
	{
		var count_i = (this.item_a.length > 3) ? 3 : this.item_a.length;

		for (var index_i = 0; index_i < 3; index_i++)
		{
			this.item_a[(this.item_index_i + index_i) % this.item_a.length].setDisplayAtIndex(index_i);
		}
	}

	this.setPrevious = function()
	{
		this.item_index_i--;
		this.setGroup();
	};

	this.setNext = function()
	{
		this.item_index_i++;
		this.setGroup();
	};

	this.setAttention = function()
	{
		var valid_b = this.getIsValid();

		if (valid_b)
		{
			this.setSelector();
			this.setPlaceholder();
			this.setGroup();
		}
	};
};
