

	

if (document.images) {

		//These are the button images
		
		HomeUp = new Image();
		HomeUp.src ='pix/buttons/Home_up.gif';

		HomeDown = new Image();
		HomeDown.src ='pix/buttons/Home_Down.gif';
		
		PoliciesUp = new Image();
		PoliciesUp.src ='pix/buttons/Policies_up.gif';

		PoliciesDown = new Image();
		PoliciesDown.src ='pix/buttons/Policies_Down.gif';
		
		LittleStarsUp = new Image();
		LittleStarsUp.src ='pix/buttons/Little_up.gif';

		LittleStarsDown = new Image();
		LittleStarsDown.src ='pix/buttons/Little_Down.gif';
		
		MiddleburgHtsUp = new Image();
		MiddleburgHtsUp.src ='pix/buttons/lsgmh_Up.gif';
		
		MiddleburgHtsDown = new Image();
		MiddleburgHtsDown.src ='pix/buttons/lsgmh_Down.gif';

		SevenHillsUp = new Image();
		SevenHillsUp.src ='pix/buttons/lsg7h_Up.gif';

		SevenHillsDown = new Image();
		SevenHillsDown.src ='pix/buttons/lsg7h_Down.gif';
		
		MiddleburgHtsBUp = new Image();
		MiddleburgHtsBUp.src ='pix/buttons/lsgmh_Up.gif';
		
		MiddleburgHtsBDown = new Image();
		MiddleburgHtsBDown.src ='pix/buttons/lsgmh_Down.gif';

		SevenHillsBUp = new Image();
		SevenHillsBUp.src ='pix/buttons/lsg7h_Up.gif';

		SevenHillsBDown = new Image();
		SevenHillsBDown.src ='pix/buttons/lsg7h_Down.gif';
		
		AdultFitnessUp = new Image();
		AdultFitnessUp.src ='pix/buttons/AdultFitness_Up.gif';

		AdultFitnessDown = new Image();
		AdultFitnessDown.src ='pix/buttons/AdultFitness_Down.gif';

		RegistrationUp = new Image();
		RegistrationUp.src ='pix/buttons/Registration_up.gif';

		RegistrationDown = new Image();
		RegistrationDown.src ='pix/buttons/Registration_Down.gif';

		DescriptionsUp = new Image();
		DescriptionsUp.src ='pix/buttons/Descriptions_up.gif';

		DescriptionsDown = new Image();
		DescriptionsDown.src ='pix/buttons/Descriptions_down.gif';
		
		CampsUp = new Image();
		CampsUp.src ='pix/buttons/Camps_Up.gif';
		
		CampsDown = new Image();
		CampsDown.src ='pix/buttons/Camps_Down.gif';
		
		testimonialsUp = new Image();
		testimonialsUp.src = 'pix/buttons/testimonials_up.gif';
		
		testimonialsDown = new Image();
		testimonialsDown.src = 'pix/buttons/testimonials_down.gif';
		
		LittleUp = new Image();
		LittleUp.src = 'pix/buttons/Little_up.gif';

		LittleDown = new Image();
		LittleDown.src = 'pix/buttons/Little_down.gif';
		
		

		StarUp = new Image();
		StarUp.src = 'pix/slideShow/Star_Up.gif';
		
		StarDown = new Image();
		StarDown.src = 'pix/slideShow/Star_Down.gif';
		
		testUp = new Image();
		testUp.src = 'pix/slideShow/test_up.jpg';

		testDown = new Image();
		testDown.src = 'pix/slideShow/test_down.jpg';

		
		pix0 = new Image();
		pix0.src = 'pix/slideShow/pix1.jpg';

		pix1 = new Image();
		pix1.src = 'pix/slideShow/pix2.jpg';

		pix2 = new Image();
		pix2.src = 'pix/slideShow/pix3.jpg';

		pix3 = new Image();
		pix3.src = 'pix/slideShow/pix4.jpg';

		pix4 = new Image();
		pix4.src = 'pix/slideShow/pix5.jpg';

		pix5 = new Image();
		pix5.src = 'pix/slideShow/pix6.jpg';

		pix6 = new Image();
		pix6.src = 'pix/slideShow/pix7.jpg';
			
		
		}
		
		
		/* End of Images */		
		
		
		function buttondown ( buttonname )
		{
			
			if ( document.images ) 
			{
			document[ buttonname ].src=eval( buttonname + "Down.src" );
			}
			
		}

		function buttonup ( buttonname )
		{
			if ( document.images ) 
			{
			document[ buttonname ].src=eval( buttonname + "Up.src" );
			}
		}

	function salePopup()
		{
		salesWindow=window.open("sale_popup.html", "littleWindow", "location=no,null,width=500,height=400,scrollbars=yes, left=+50,top=+50"); 
		}

	function popUpClose()
		{
		self.close();
		fwd();
		}

	function popup()
		{		
  		TestimonialsWindow = window.open("testimonials_popup.html", "littleWindow", "location=no,null,width=500,height=400,scrollbars=yes, left=+50,top=+50"); 
		}

	function swapit (pix)
		{
			var randomNumber=Math.floor(Math.random()*8);
			/*alert(randomNumber);This alert box is only for testing*/
			if (document.images)
				{
				document.getElementById(pix).src = eval( "pix" + randomNumber + ".src");
				return;
				}
		}
	
	
			var testimonial = new Array();
				
				testimonial[0]="I was hesitant about taking a class because I had never taken one before.Well after the first class, I knewI made the right decision.The instructors makethe class easy to follow,you can feel the energyfrom the entire groupand after class,I always feel better about myself.";
				
				testimonial[1]= "I went down 4 holes in my belt and 10 pounds in a month and a half!";

				testimonial[2]= "I love the class, if I miss a class I feel I missed alot! The class has great instuctors and energy that makes the class exciting! My clothes are fitting different!";

				testimonial[3]= "I absolutely love the class.The positive, friendly, inclusive attitude always puts me in a great mood.The way you teach allows for all levels of ability, and keeps challenging me even as I get stronger.";

				testimonial[4]= "<P>I really didn't think this class was for me, but I gave it a try and realized how good it was making me feel and actually look.</p><p>At the time I was only able to make class 1 day a week. Back in April, when I started coming to this class I had also just joined Weight Watchers with the hopes of losing 30 lbs. With dedication to this class and WW, I achieved my goal in August. As I was losing weight I was seeing the results of this class by the way my body was toning up.</p><p>Over the summer I received compliments on how\"sculpted\" my arms were and I loved it!!! I'm glad there are more time offerings because I now try to come 3 times a week. </p><p>Other work out classes I've taken became boring over time, but this class is ever changing and different every session and I love that!  It's weird for me to saythat I \"enjoy\" coming to a class that kicks your butt - but I love what it's doing to my body!  </p><p>Thanks Sophia - I love ya, but you'll never make me LOVE triceps-even though they look pretty good!!";
				
				testimonial[5]= "I just had to go buy new pants, a size 2.  YAHOO!!!!!!!  When I started your class I was a size 6. THANK YOU, you are the best."
				
				testimonial[6]="It's  been six months since I started pump and i have noticed changes in both the shape and strength of my body. I was a bit skeptic at first when you said just the strength training would give flat abs and I was thinking how could that be without doing a hundred crunches . But it is true what you said and now although my abs are not as flat as I would like them to be they are definitely getting stronger.You have converted me."
				
				testimonial[7]="This is the best exercise class I have joined, the instructors are great and the mix of step cardio and strengthening exercises  have really worked for me . I can see a definite change in my body and my clothes fit much better . The weekly tips on nutrition and exercise are also a useful reminder to maintain what I have achieved."

		
		var testimonialAuthor = new Array ();
				testimonialAuthor[0] = "Mari L.";
				testimonialAuthor[1] = "Kim";
				testimonialAuthor[2] = "Lisa";
				testimonialAuthor[3] = "Lynda";
				testimonialAuthor[4] = "desiree";
				testimonialAuthor[5] = "Dee P.";
				testimonialAuthor[6] = "Mimi";
				testimonialAuthor[7] = "Mimi";
	

			var i = Math.floor(8*Math.random());


		var timeInMs=3500;
var advanceShow;
var slideShow = new Array(7);
var indexPlus=0;
var indexMinus=0;
slideShow[0]="pix/slideshow/pix0.jpg";
slideShow[1]="pix/slideshow/pix1.jpg";
slideShow[2]="pix/slideshow/pix2.jpg";
slideShow[3]="pix/slideshow/pix4a.jpg";
slideShow[4]="pix/slideshow/pix5a.jpg";
slideShow[5]="pix/slideshow/pix5.jpg";
slideShow[6]="pix/slideshow/pix6.jpg";
slideShow[7]="pix/slideshow/pix1a.jpg";
slideShow[8]="pix/slideshow/pix2a.jpg";
slideShow[9]="pix/slideshow/pix3a.jpg";

function stepFwd()
	{
		indexMinus=9;
		if (indexPlus == 9)
			indexPlus = 0;
		else
			++indexPlus;
		document.getElementById('pix').src = slideShow[indexPlus];
		return;
	}

function fwd()
	{
		if (advanceShow != null)
			clearinterval(advanceShow);
		advanceShow = setInterval("stepFwd()", timeInMs);
	return;
	}

function stepRev()
	{
		indexPlus=0;
		if (indexMinus == 0)
			indexMinus = 9;
		else
			--indexMinus;
		document.getElementById('pix').src = slideShow[indexMinus];
	return;
	}

function rev()
	{
		if (advanceShow != null)
			clearinterval(advanceShow);
		advanceShow = setInterval("stepRev()", timeInMs);
	return;
	}

function stop()
{
clearInterval(advanceShow);
advanceShow = null;
}

	