// JavaScript Document
var staffTitle = 'Staff Insight';
var staff = [
	{'title':staffTitle, 'description':'"When people are successful, they gain an incredible amount of self-confidence, this leads to improvements in all areas of their life."<br /> - Chris Schild', 'link':'/about/trainers.shtml#chris'},
	{'title':staffTitle, 'description':'Accepting a challenge or stepping into the unknown can be very rewarding. "I am truly blessed to have a job where I help people realize their potential."<br /> - Jenny Schild', 'link':'/about/trainers.shtml#jenny'},
	{'title':staffTitle, 'description':'"I have a passion for assisting people in health and well being. Massage therapy brings relief to everybody you touch."<br /> - Julie Cauvin', 'link':'/services/massage.shtml'},
	{'title':staffTitle, 'description':'The screening process measures your ability to generate and transfer speed efficiently throughout your body. We isolate any physical limitations and prescribe a custom-conditioning program.', 'link':'/services/tpifitness.shtml'},
	{'title':staffTitle, 'description':'"Exercise provides stress management, health benefits, sustained energy, self-confidence and me-time."<br /> - Belinda Wirth', 'link':'/about/trainers.shtml#belinda'}
];

var highlightTitle = 'Highlights';
var highlights = [
	{'title':highlightTitle, 'description':'No equipment, no problem! We bring everything necessary for an effective workout and provide the exclusive service that can only come from a private fitness professional.', 'link':'/service/index.shtml'},
	{'title':highlightTitle, 'description':'"Body Within is always very accommodating to our changing corporate needs by offering customized workouts and flexible availability..."<br /> - Osprey', 'link':'/service/corporate.shtml'},
	{'title':highlightTitle, 'description':'All of our trainers are degreed and certified and are 100% focused on YOU and your goals. We work around your schedule to make your exercise needs fit back into your life!', 'link':'/index.shtml'},
	{'title':highlightTitle, 'description':'Benefits of Massage:<ul><li>Relaxes Muscles</li><li>Improves Circulation</li><li>Lessens Swelling in Joints</li><li>Alleviates Pain</li><li>Helps Flush Out Toxins</li>', 'link':'/services/massage.shtml'},
	{'title':highlightTitle, 'description':'Training sessions are a great way to get the stress out, fitness level up and everyone\'s well-being on track for a life changing experience.', 'link':'/benefits/index.shtml'},
	{'title':highlightTitle, 'description':'Resistance training raises your basal metabolism which causes you to burn more calories 24 hours a day. You\'ll even burn more calories while you\'re sleeping!', 'link':'/benefits/resistance.shtml'}
];

var testimonialTitle = 'Client Feedback';
var testimonies = [
	{'title':testimonialTitle, 'description':'"I have lost 32 pounds of fat and gained 9 pounds of muscle in ten months.  I feel incredible and I am in the best shape of my life at age 57!"<br /> - Stan', 'link':'/about/testimonials.shtml#stan'},
	{'title':testimonialTitle, 'description':'"My arthritis has improved!  The stiffness is gone.  I have more energy throughout the day.  I am more alert and have more stamina..."<br /> - Muriel', 'link':'/about/testimonials.shtml#muriel'},
	{'title':testimonialTitle, 'description':'"The days of my workouts I am up and ready for my trainer at 5:25 a.m.  Knowing that he is coming is the difference between sleeping in and getting in shape."<br /> - Bill', 'link':'/about/testimonies.shtml#bill'},
	{'title':testimonialTitle, 'description':'"Other than the increase in strength, the best improvement has been in my flexibility. My hamstrings were extremely tight. The added flexibility has made everything easier!"<br /> - Frank', 'link':'/about/testimonies.shtml#frank'},
	{'title':testimonialTitle, 'description':'"I would recommend using Body Within to anyone who wants to better themselves and lose weight without resorting to diet fads."<br /> - Scott', 'link':'/about/testimonies.shtml#scott'},
	{'title':testimonialTitle, 'description':'"I can now keep up with my wife when walking and shopping around town. I can even complete 8 real push-ups at 82 years old."<br /> - Dr. C', 'link':'/about/testimonies.shtml#drc'},
	{'title':testimonialTitle, 'description':'"By 2006 and I lost over 20 pounds reduced my body fat by 6% , quit smoking, lowered my cholesterol, and strenghtened my lower back."<br /> - Dave', 'link':'/about/testimonies.shtml#dave'},
	{'title':testimonialTitle, 'description':'"I have experienced weight loss, better stamina, and loss of body inches. I am down a dress size! My health is much better overall..."<br /> - Judy', 'link':'/about/testimonies.shtml#judy'},
	{'title':testimonialTitle, 'description':'"The biggest benefit I have experienced from working with a personal trainer is having a permanent focus on better health."<br /> - LeAnn', 'link':'/about/testimonies.shtml#leann'},
	{'title':testimonialTitle, 'description':'"At first I was not sure about the gift certificate. A year later I wished I would have started this program 20 years ago."<br /> - chuck', 'link':'/about/testimonies.shtml#chuck'}
];

// An Array shuffler
Array.implement({
	shuffle: function() {
		for(var j, x, i = this.length; i; j = parseInt(Math.random() * i), x = this[--i], this[i] = this[j], this[j] = x);
		return this;
	}
});

var newsItems = [staff.getRandom(), highlights.getRandom(), testimonies.getRandom()].shuffle();
window.addEvent('domready', function() {
	new DivSlideShow($('sideBox'),{
		'slidesData': newsItems,
		'interval': 10000,
		'transitionTime': 2000
	});
});