function staffWidget(entries)
{
	this.set = function()
	{
		var o = document.getElementById("stafftext");
		while(o.firstChild)
			o.removeChild(o.firstChild);
		o.appendChild(document.createTextNode(this.entries[this.current].text));
		document.getElementById("staffimage").src = this.entries[this.current].image;
		document.getElementById("stafflink").href = this.entries[this.current].href;
	}

	this.prev = function()
	{
		if(this.current)
			this.current--;
		else
			this.current = this.entries.length - 1;
		this.set();
	}
	
	this.next = function()
	{
		this.current++;
		if(this.current == this.entries.length)
			this.current = 0;
		this.set();
	}
	
	this.preloadImages = function()
	{
		for(var i = 1; i < this.entries.length; i++)
		{
			this.imageObjects[i] = new Image;
			this.imageObjects[i].src = this.entries[i].image;
		}
	}

	this.imageObjects = new Array();
	this.current = 0;
	this.entries = entries;
	if(this.entries.length)
		this.set();
}
