var message = " FINAL EXITS - The Illustrated Encyclopaedia of How We Die"
var character = 0;
var to_print = "";
var ypos = 200;
var next = 0 ;
var fade = 100 ;
var next_message = new Array() ;
next_message[0] = "How many are buried in the Brooklyn Bridge and Hoover Dam?"
next_message[1] = "According to a recent Gallup poll, 100 million Americans think aliens have visited the earth – <br>have 13, 645 been found deceased from botched abductions?"
next_message[2] = "The U.S. law particularly states: “toads may not be licked.” Learn why."
next_message[3] = "Seven hundred thousand people got at least one untraditional piercing last year — <br>how many died from adding metal studs to eyelids, nostrils, tongues, <br>lips, belly buttons, nipples, and genitalia?"
next_message[4] = "Toothpicks or lightning, which is most hazardous to longevity?"
next_message[5] = "In the United States cheerleading is one of the fastest growing activities for girls and young women. <br>Will it claim more lives than bowling?"
next_message[6] = "Cockroaches have been known to chew the fingernails and devour the eyelashes of sleeping children. <br>They are attracted to uncleaned faces and have even nibbled on the remains of food from unbrushed teeth.  <br>Learn the insect that causes the most deaths."
next_message[7] = "The smallest, tallest or fattest human on record—who lived longer?"
next_message[8] = "Elevators, escalators or revolving doors—which is most fatal?"
next_message[9] = "Many suppose flesh eating viruses are something only seen in low budget sci fi flicks, but they are very real, <br>spread quickly, and show up in all regions of the country."
next_message[10] = "A motorist was killed in California when a flying cow crashed through the windshield of his pickup truck."
next_message[11] = "Men die of freezing three times more than women."
next_message[12] = "A woman was communicating in sign language with her fiancée as they drove to dinner, <br>when another car carrying gang members approached the same stoplight. <br>The gang thought the woman was flashing a rival’s gang signs and shot her."
next_message[13] = "The most popular sporting activity for people over 50 is golf. <br>Most deaths on the golf course are health related; only 2 percent are caused by golf clubs or golf balls."
next_message[14] = "Americans spend $2 billion on toothpaste, toothbrushes, oral care gum, mouthwash, and breath mints, yet 31,987 die of bad breath."
next_message[15] = "Holidays to die for—Christmas, Halloween or July 4th—learn the best days to stay indoors."
next_message[16] = "Hiccups have only been reported as the secondary cause of death 14 times in the last 10 years. <br>Prior to 1900, hiccup deaths averaged 3,245 per year."
next_message[17] = "A tapeworm can grow inside the large intestine to obscene lengths, thriving undetected inside a person for 20 years. <br>In the 1900s the standard practice was to deny a patient food for 3–5 days and then place a bowl of aromatic soup <br>at the opened mouth of the tapeworm afflicted individual. Learn how many die from worms today."
next_message[18] = "At the mall more people die as “circlers,” those who drive around and around until an open space is found, <br>instead of the “stand by” variety of drivers who follow someone with packages heading to their car."
next_message[19] = "Avoid death from scratched pots and pans by keeping parakeets and canaries in the kitchen."
next_message[20] = "Book the OR Early in the Week According to the Institute of Medicine, 98,000 deaths occur annually from medical errors.  <br>Monday is the best day to have surgery:  it’s the day of the week with the lowest fatalities."

function doText(text) {
 if (document.all) {
   if (character <= text.length - 1) {
     to_print += text.charAt(character); 
     teletext.innerHTML = to_print;
     character++;
   }
   else
    scrollIt();
 }

 setTimeout("doText(message)", 50);
}

function scrollIt() {
  if (ypos >= 40) {
    ypos -= 1;
    fade -= 4;
    if (ypos < 45) {
      teletext.innerHTML = "" ;
    }
  }
  else {
    ypos = 200;
    character = 0;
    to_print = "";
    nextMessage();
    fade = 100;
  }
  teletext.style.top = ypos;
  teletext.filters.alpha.opacity = fade;
}

function nextMessage() {
  message = next_message[next]
  if (next == (next_message.length - 1)) {
    next = 0;
  }
  else
    next++;
}