var Testimonials = {
	items: Array,
	current_index: Number,
	delay: Number,
	
	init: function()
	{
		this.delay = 10000;
		this.items = [
			{
				comment: "I am extremely pleased with the level of service I received from Claim-Easy during my claim for personal injury damages and subsequent settlement. I would not hesitate to recommend your services", 
				person: "Miss D, Cardiff"
			},
			{
				comment: "I was very impressed by the service offered by Claim-Easy in making a successful settlement in my claim for compensation after being injured in a car accident. I was kept well informed at all levels throughout the claim process. Thank you very much.",
				person: "Mr E, Swansea"
			},
			{
				comment: "I never realised how simple and easy is to make a claim until I used Claim-Easy and reached a very satisfactory outcome. The specialist team explained everything in simple terms and stayed in constant touch through what was a very difficult time.",
				person: "Mrs B, Newcastle"
			},
			{
				person: "Miss T, Edinburgh",
				comment: "No jargon, honest open accident compensation service. Claim-Easy has helped me get my life back on track after getting injured at work."
			},
			{
				person: "Mr C, Exeter",
				comment: "Thanks to Claim-Easy, I received maximum compensation for my claim following a slip on a wet floor in a supermarket.  I always felt confident knowing I had such a professional legal team behind me."				
			},
			{
				person: "Mrs G, Nottingham",
				comment: "I wasn’t sure whether I had a claim, but Claim-Easy helped me get significant compensation and treatment for my sports injury"				
			}
			
		
		];
		this.current_index = 0;

	},
	
	next_slide: function()
	{
		if (this.current_index < this.items.length - 1)
		{
			this.current_index++;
		}
		else
		{
			this.current_index = 0;
		}
		return this.items[this.current_index];
	},
	
	switch_slides: function(index)
	{
		var slide = this.next_slide();
		new Effect.Fade('Testimonials', 
			{
				duration:2, 
				from:1, 
				to:0,
				afterFinish: function()
				{
					$('t_comment').innerHTML = "&ldquo;" + slide.comment + "&rdquo";
					$('t_person').innerHTML = slide.person;
					new Effect.Appear('Testimonials', {duration:2, from:0, to:1});
				}
			});
		

	}
};

