Application.SliderDataSourceProperty = function() {
	this._property = false;
	this._iterator = 0;
}

Application.SliderDataSourceProperty.prototype.getNext = function() {
	if (this._property === false || typeof(imagesPerProperty[this._property]) == 'undefined') {
		var nextIterator = this._iterator;
		while (nextIterator == this._iterator && allImages.length > 1) nextIterator = Math.floor(Math.random() * allImages.length);
		this._iterator = nextIterator;
		
		return allImages[this._iterator];
	} else {
		var image = imagesPerProperty[this._property][this._iterator];
		
		this._iterator++;
		if (this._iterator == imagesPerProperty[this._property].length) this._iterator = 0;
		
		return image;
	}
}

Application.SliderDataSourceProperty.prototype.getLength = function() {
	if (this._property === false || typeof(imagesPerProperty[this._property]) == 'undefined') {
		return allImages.length;
	} else {
		return imagesPerProperty[this._property].length;
	}
}

Application.SliderDataSourceProperty.prototype.setProperty = function(property) {
	this._property = property;
	this._iterator = 0;
}
