
function _html(text) {
	this.handle.innerHTML = text;
};

function _nextSlider() {
	if (this.index < this.list.length-1) {
		this.index++;
		this.refresh();
	};
};

function _prevSlider() {
	if (this.index > 0) {
		this.index--;
		this.refresh();
	}
};

function _refresh() {
	this.html(this.list[this.index].quote+"\n<em>"+this.list[this.index].author+"</em>");
}

function _slider(id, _list){
	this.handle = document.getElementById(id);
	this.index = 0;
	this.list = _list;
	this.html = _html;
	this.next = _nextSlider;
	this.prev = _prevSlider;
	this.refresh = _refresh;
	this.refresh();
};
