ScrollerV3Controller =
{
	_sliders: [],
	
	initialize: function(sliders)
	{
		var self = this;
		$.history.init(function(hash)
		{
			if (self._sliders.length > 0)
			{
				$(self._sliders).each(function(item)
				{
					if ((this.getHashStageValue() != -1) && (this.isBrowsable()))
					{
						if ((this.getCurrentStage() != this.getHashStageValue()) || (this.getCurrentId() != this.getHashIdValue()))
						{
							this.goToStage(this.getHashStageValue(), true);
						}
					}
				});
			}
		});
	},
	
	manage: function(sliders)
	{
		var self = this;
		
		$(document).bind("keydown", function(event)
		{
			self._dispatchEvent(event);
		});
		
		this._sliders = sliders;
	},
	
	_dispatchEvent: function(event)
	{
		$(this._sliders).each(function(index)
		{
			this.processKeyboardEvent(event);
		});
	}
}
