﻿var max=6;
            var thisText=1;
            var text=new MakeTextArray(max);

            function MakeTextArray(n)
                {
                    this.length=n;
                    for (var i=1; i<=n;i++)
                        {
                            this[i]="";
                        }
                    return this;
                }
               
                    text[1]='A fertile cat can produce 3 litters in one year with an average of 4-6 kittens per litter.<br /><span class="citation"> <a href="http://www.hsus.org/pets/issues_affecting_our_pets/pet_overpopulation_and_ownership_statistics/hsus_pet_overpopulation_estimates.html">The Humane Society of the United States Pet Overpopulation Fact Sheet</a></span>';
                    text[2]='71% of cats and kittens and 56% of dogs and puppies entering U.S. animal shelters are killed.<br /><span class="citation"><a href="http://www.petpopulation.org/statsurvey.html">National Council on Pet Population Study and Policy Shelter Statistics Survey (1997 data)</a></span>';
                    text[3]='30% of animals surrendered to U.S. shelters are purebred.<br /><span class="citation">Journal of Applied Animal Welfare Science Volume 1, Number 3, page 213</span>';
                    text[4]='It costs U.S. taxpayers an estimated $2 billion each year to round up, house, kill, and dispose of homeless animals.<br /><span class="citation">USA Today 6/23/98</span>';
                    text[5]='176 is the average cost to care for an animal in a U.S. shelter.<br /><span class="citation">Journal of Applied Animal Welfare Science.</span>';
                    text[6]='55% of dogs and 47% of cats surrendered to U.S. shelters aren’t spayed or neutered.<br /><span class="citation">Journal of Applied Animal Welfare Science Volume 1, Number 3, page 213</span>';
                                 
                function randText(n)
                  {
                  rnum=Math.floor(n*Math.random())+1;
                  return rnum;
                  } 

                        function setText()
                  {
                  thisText=randText(max);
                  }