var Testimonials = {
	index: 0,
	content:[
	{descr:"The principles found in Simpleology are the same that I followed to become a 3 time Olympian.", user:"Ruben Gonzalez, 3 Time Olympian (Luge)", image:'/images/layout01-02/testi-rubengonzales.gif'},
	{descr:"Hi, since beginning the Simpleology program I have received a promotion, purchased a brand new Dodge Charger (fun car).  These are all results of an increased level of concentration, drive, and self control, as a result of  Simpleology.", user:"Mark Brown, Anchorage, Alaska", image:'/images/layout01-02/testi-markbrown.gif'},
	{descr:"As my focused energy and attention has increased over the 3 weeks I've been doing the program, I have lost approximately 10 pounds. How can this be so? Simple, I don't think about eating anymore.", user:"Adam Dudley, Orland, Florida", image:''},
	{descr:"Within a month, I had begun building a new business and had started earning income online. Less than 3 months later, Id gone from less than $70 in August to $3,485 per month in October. Its great the way life works when you use Simpleology to focus your life.", user:"D'Arcy Mayo, Sydney Australia", image:'/images/layout01-02/testi-darcymayo.gif'},
	{descr:"BTW, on a personal note (if you could please share/forward this along to Mark, after completing the Simpleology 102 course I had an immediate 25% increase in salary and now make well over 6 figure salary! WOW! Life is Going GREAT! Thank You Mark and Simpleology!", user:"Daniel Harris, San Jose, California", image:''},
	{descr:"I am now 2kg lighter, my debt is halved, my relationship saved and i am indomitable. Very many thanks for saving my life ...", user:"David Dowrick", image:''},
	{descr:"This is the best thing to keep me focused that I have ever found.", user:"Bob Moody, bobmoody.org", image:''},
	{descr:"I'm telling everyone about this! Since I have been doing my Daily Target Praxes, I have been getting SO much more done, I mean ten times as much done in terms of my daily output as a freelance editor ...", user:"Marlo Garnsworthy, createakidsbookusa.com", image:''},
	{descr:"I thank God for the Simpleology course. I had prayed for more energy, more time to do things, and better organization in my life. The answer came.", user:"Stuart Farm", image:''},
	{descr:"Thirteen days so far. I feel more energy, much more than I started with and I'm just starting the Power Praxes! Already that 15 minutes is altering my actions (from little to more and growing).", user:"Dr. Cliffor Tedder", image:''},
	{descr:"Last year when I started using Simpleology I focused on just one business and specifically on marketing as prompted by Simpleology 102 and the effect of that was that my sales doubled that very month!", user:"Melody Williams", image:'/images/layout01-02/testi-melodywilliams.gif'},
	{descr:"I am only on Day 15 of Simpleology 101, but this is the best process ever!  And I have done so many different programs.  I am so excited to see such a clear path for regaining my power and achieving my goals.", user:"Nancy Hearn, Certified Nutrition and Weight Management Consultant", image:''},
	{descr:"I have noticed a remarkable change in my outlook on life after only three days of following his guidelines.Let this program bless your life as it has blessed mine.You have EVERYTHING to gain..", user:"Pamela Zahm, Boise, Idaho", image:'/images/layout01-02/testi-pamelazahm.gif'},
	{descr:"I wish I had this detailed, concise information 20 years ago. I am recommending Simple-ology to all my friends and family, and I am teaching it to my kids.  My kids will be eons ahead of the game ...", user:"Greg Whitehead, gwhitehead.com", image:''},
	{descr:"Mark, I LOVE how you teach! I wish all subjects is taught this way, then all our kids will become a lot smarter!", user:"Linda Yo", image:''},
	{descr:"Everyone in the Simpleology team has been a superb pleasure to work with, answering questions promptly. And that's only Simpleology 101. My goals have become achievable realities - ALL OF THEM.", user:"Philip Hardy, risingphoenixfoundation.org", image:''},
	{descr:"I strongly believe it is the most effective life and time management system I have ever encountered.", user:"Koray", image:''},
	{descr:"Simpleology gives you the discipline you need to accomplish ANY Goal you can image.", user:"Dave Button, Varden Alaska", image:''},
	{descr:"This is excellent. It is improving my productivity after the first day. I am now on day 4. It is also one of the best web applications that I have ever seen. I am a web developer and I am very impressed - and jealous!", user:"Chris Adams, 407x.com", image:''},
	{descr:"I really like going through each day and completing each step. Doing this fulfills me each and every day! Sometimes I'll think of something and put it down in the My Ultimate Life section.", user:"Colin Dinsdale", image:''},
	{descr:"Thank you! Thank you! Thank you!", user:"Anthony Dowling, amazinggolfsecretsrevealed.com", image:''},
	{descr:"The desktop cockpit rocks!", user:"Finn Peacock", image:'/images/layout01-02/testi-finn.gif'},
	{descr:"I would never has suspected how this could change me. Absolutely marvelous!!", user:"Tulika Bhalla, Toronto Canada", image:''},
	{descr:"Great, this is simple and what's the best, fun. This way it feels really simple to find and keep my target and eventually hit it and hit it again. Thank you!!!! Thank you. Thank you!!!", user:"Hanelle Tampio", image:''},
	{descr:"This is pure genius you have created something incredible here.", user:"Kerry Leggett, Perth WA", image:''},
	{descr:"What can you say about something so simple and quick - 15 minutes a day - that builds up to change habits, patterns and beliefs that have been holding me back for three decades?", user:"Ronald Doherty, Melbourne Australia", image:''},
	{descr:"Just started this course 2 days ago and I am already feeling more ergergy and enthusiasm towards my daily activities.", user:"Tasha Abdou, Glenolden PA", image:''},
	{descr:"I have more energy, I have started to lose weight, I have much more focus and I haven't felt this good in years.", user:"Ross Goldberg", image:'/images/layout01-02/testi-rossgoldberg.gif'},
	{descr:"We have literally thousands of these stories you can enjoy that have been posted by our members in our community.   Come inside and see for yourself.  It's free!", user:"", image:''},
	]
};

window.addEvents({
	domready:function(){
		if ($('span_descr')){
			$('span_descr').innerHTML = Testimonials.content[Testimonials.index].descr;
			$('span_user').innerHTML = Testimonials.content[Testimonials.index].user;
		}

		/*
		howdoesitwork = new Slidey({pause: 5500});
		$$(".sbutton").each(function(el){
			el.fx = el.effects({duration: 800, transition:Fx.Transitions.Sine.easeOut, wait:true});
			el.addEvents({
				mouseleave:function(){
				},
				mouseenter:function(){
					el.fx.start({
						'opacity': [.3, 1]
					});
				},
				mousedown:function(){
					this.setStyle('opacity', .3);
				},
				mouseup:function(){
					this.setStyle('opacity', 1);
				}

			});

		});//end each
		*/

		if ($('div_testimonials')) {

			$('div_testimonials').set('morph',{
				duration: 1000,
				transition:'sine:out',
				onStart:function(){

					$('span_descr').innerHTML = Testimonials.content[Testimonials.index].descr;
					$('span_user').innerHTML = Testimonials.content[Testimonials.index].user;
					if ($('div_testimonials').hasClass('bgimage')) {
						$('div_testimonials').setStyle('background-image', 'url('+Testimonials.content[Testimonials.index].image+')');
					}
				}
			});

			$('a_testimonials').addEvent("click", function(){
				Testimonials.index = (Testimonials.index < (Testimonials.content.length-1))?Testimonials.index + 1: Testimonials.content.length-1;
				$('div_testimonials').morph({
					'opacity': [.3, 1]
				});

			});
		}


		SqueezeBox.initialize();

		SqueezeBox.assign($$('a[class=a_howdoesitwork][href^=#]'), {
			size: {x: 500, y: 180}
		});

		$('exitpopup_trigger').addEvents({
			'repos': function(){
				var maxp = document.getCoordinates(), scroll = document.getScroll();

				maxp.left += scroll.x;
				maxp.right += scroll.x;
				maxp.top += scroll.y;
				maxp.bottom += scroll.y;

				this.setStyles({
					top: maxp.top
				});

			},
			'mouseenter': function(){
				SqueezeBox.open($('exitpopup'), { handler: 'clone', size: {x: 500, y: 400} });
				$('exitpopup_trigger').destroy();
			}
		});

	},
	load:function(){
		var repos = function(){
			try { $('exitpopup_trigger').fireEvent('repos'); } catch(err) {};
		};

		window.addEvents({
			'scroll': repos,
			'resize': repos
		});

	}
});