var Quotes = {
	data: [
		{
			body: "You can sleep soundly knowing you are filing with eXFILE.",
			name: "M. Fish, CFO",
			company: "Datawatch Corporation"
		},
		{
			body: "Great customer service. They do whatever it takes to meet our deadlines.",
			name: "Derek Carlson",
			company: "Chattem, Incorporated"
		},
		{
			body: "The team is the best - responsive, great to work with and they sure know their stuff.",
			name: "B. Minde Kornfield",
			company: "Independent Counsel"
		}
	],
	body_field: '',
	name_field: '',
	counter: 0,
	updateEvery: 5,
	init: function () {
		Quotes.body_field = document.getElementById('body');
		Quotes.name_field = document.getElementById('name');
		Quotes.update();
	},
	update: function () {
		this.body_field.innerHTML = this.data[this.counter].body;
		this.name_field.innerHTML = this.data[this.counter].name+'<br>'+this.data[this.counter].company;
		setTimeout("Quotes.update();", this.updateEvery*1000);
		this.counter = (this.counter+1)%this.data.length;
	}
}

if (window.addEventListener)
	window.addEventListener('load', Quotes.init, false);
else if (window.attachEvent)
	window.attachEvent('onload', Quotes.init);