// JavaScript Document//alert("File Found!")

var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

sideimage = new StringArray(45)
sideimage[0] = 'John Massis of Belgium has the strongest teeth in the world. With his teeth biting on a bit attached to a rope, he pulled two railroad cars weighing 80 tons along the rails.'
sideimage[1] = 'The blue whale, which is the largest mammal on earth, has no upper teeth. Instead, they have a series of 260-400 fringed overlapping plates that measure about 20 inches in length toward the front of the mouth and about 40-inches at the rear.'
sideimage[2] = 'The land mammal with the most teeth is the Giant Armadillo. It has up to 100 teeth!'
sideimage[3] = 'The sea mammal with the most teeth is the Long-snouted Spinner Dolphin. It has up to 252 teeth!'
sideimage[4] = 'Elephants have the largest teeth. Their tusks are actually modified incisors. The largest pair weighed 465 lbs.!'
sideimage[5] = 'Vampire bats have fewer teeth than any other bats.'
sideimage[6] = 'Giraffes and humans have the same number of teeth - 32!'
sideimage[7] = 'As far as dinosaurs go, the T. Rex had 50-60 teeth while Hadrosaurs (duck-billed dinosaur) had up to 960 cheek teeth!'
sideimage[8] = 'Rodents, such as rats, guinea pigs and hamsters, need to constantly gnaw on something. Their teeth continue to grow throughout their lives, so they need to keep their teeth trimmed.'
sideimage[9] = 'Sharks lose their teeth frequently but new ones grow in. They can have over 20,000 teeth in a lifetime!'
sideimage[10] = 'Flamingos eat with their heads upside down.'
sideimage[11] = 'Snails have over 25,000 teeth but a mouth no bigger than a pinhead!'
sideimage[12] = 'When humans chew, only their lower jaw moves.'
sideimage[13] = 'Most reptiles and many fish have just one type (homodont) of teeth that is primarily for catching prey.'
sideimage[14] = 'Scientists use teeth to find out about an animal\'s life - whether it was a carnivore or herbivore, how it protected itself, and sometimes how it groomed itself or got a mate.'
sideimage[15] = 'Only animals with bones (vertebrates) have true teeth - enamel outside and dentine inside. The exceptions are turtles and birds.'
sideimage[16] = 'Teeth are harder than bones and make better fossils!'
sideimage[17] = 'Dinosaurs would grow new teeth to replace a lost or broken tooth.'
sideimage[18] = 'Within most species, there is little difference in their teeth.'
sideimage[19] = 'Rodents do not have canine teeth.'
sideimage[20] = 'The number of teeth usually have been reduced during a mammal\'s evolution.'
sideimage[21] = 'Enamel, which covers the outside of a tooth, is the hardest thing in the human body!'
sideimage[22] = 'Toothbrush bristles used to be made of cow or hog hair!'
sideimage[23] = 'A Chinese dentist used 28,000 human teeth to build a tower!'
sideimage[24] = 'It is not true that George Washington had wooden teeth. His dentures had a metal or ivory base with human (possibly his own) or animal teeth inserted with metal rods or wires.'
sideimage[25] = 'Your teeth feel fuzzy when they have a large amount of plaque on them!'
sideimage[26] = 'Poisonous snakes eject their poison through hollow fangs!'
sideimage[27] = 'A dolphin\'s age can be determined by the rings on its teeth!'
sideimage[28] = 'Snowshoe rabbits use their teeth as weapons!'
sideimage[29] = 'Carnivores (meat-eaters) have sharp teeth. Herbivores (plant-eaters) have flat teeth. Animals that eat both types of food have sharp teeth in the front and flat teeth in the back.'
sideimage[30] = 'Most mammals have two or more types of teeth (heterodont). Incisors and canines to bite or tear food and molars to chew it.'
sideimage[31] = 'Most mosquitos have 47 teeth!'
sideimage[32] = 'The famous gunfighter, Doc Holliday, began his career as a dentist. He received his dental degree in 1872 from the Pennsylvania College of Dental Surgery.'
sideimage[33] = 'Paul Revere made dentures as well as silverware.'
sideimage[34] = 'The toothpaste tube was invented by Dr. Washington W. Sheffield, a Connecticut dentist, and put on the market in 1892.'
sideimage[35] = 'Small twigs that were mashed on one end were the first toothbrushes. Some tribes in Australia and Africa still use them!'
sideimage[36] = 'Hesi-Re (3000 B.C.), an Egyptian, was the first known dentist.'
sideimage[37] = 'Ohaguro is the old Japanese custom of blackening teeth. A black ink, made of powdered nutgall and rusty water, was brushed on the teeth at least once a day. It was believed that a woman was more beautiful with black teeth!'
sideimage[38] = 'In 1000 a.d., Abulcasis, a Cordovan dentist, invented 14 dental tools.'
sideimage[39] = 'Scientists have found 25,000 year old bones that showed cavemen had dental problems.'
sideimage[40] = 'In the Middle Ages, Barber-Surgeons performed surgery, dentistry, and cut hair.'
sideimage[41] = 'In 100 a.d., Pliny the Elder wrote a textbook on medicine called "Natural History". For a loose tooth he prescribed tying a frog to your jaw to make it firm again.'
sideimage[42] = 'In ancient Greece, dentures were made by wiring together real and fake teeth.'
sideimage[43] = 'Hesi-Re, aka "Chief of the Toothers", believed that tooth worms caused cavities.'
sideimage[44] = 'In 1977, a 13 year-old boy discovered a tooth growing on his left foot.'
sideimage[45] = 'Betsy Ross was supposed to have been born with a full set of teeth.'

var ran = 60/sideimage.length

function funFactRan() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
  
    return(sideimage[core])
}

//document.write("<img src=/skin1/images/"+ranimage()+">");

//document.getElementById("funFact").style.backgroundImage = "url(skin1/images/sideImages/"+ransideimage()+")";
document.getElementById("ffMid").innerHTML = "<p>"+funFactRan()+"</p>";

