var includedFiles_vector = true;

function vector() 
{
	var itemCount = 0;
	
	this.add = _add;
	this.remove = _remove;
	this.isEmpty = _isEmpty;
	this.size = _size;
	this.clear = _clear;
	
	function _add(newValue)
	{
		if (newValue != null)
		{
			this[itemCount] = newValue;
			itemCount++;
		}
	}
	
	function _remove(index) 
	{
		if (index > 0 && index < this.length - 1)
		{
			this[index] = null;
			
			for (var i = index; i <= itemCount; i++)
			{
				this[i] = this[i + 1];
			}
			
			itemCount--;
		}
	}
	
	function _isEmpty()
	{
		return itemCount == 0;
	}
	
	function _size()
	{
		return itemCount;
	}
	
	function _clear()
	{
		for (var i = 0; i < itemCount; i++)
		{
			this[i] = null;
		}
		
		itemCount = 0;
	}
}