// JavaScript Document

var text = 0;

var message=new Array();
  message[0] = "Over half of our orthodontic patients are adults."
  message[1] = "Swish water around your mouth. It'll help wash away those belligerent red wine and coffee stains."
  message[2] = "Eggs are great for maintaining healthy teeth. They contain beta-carotene, zinc, iron and Vitamin A."
  message[3] = "A tanned face will always make your teeth look whiter. And there's nothing wrong with faking it."
  message[4] = "Don't forget that fruit teas can still stain your teeth."
  message[5] = "Bring along a friend or loved one with you if you like."
  message[6] = "Chewable Vitamin C can cause enamel loss from teeth."
  message[7] = "The best vitamins for healthy teeth?  Calcium, Vitamins C & D."
  message[8] = "We know you might feel vulnerable at times. We'll do our best to put you at ease."
  message[9] = "We like to think that scary dentists are a thing of the past."
  message[10] = "It fights bone loss, boosts the immune system and contains more calcium than any other vegetable."
  message[11] = "Tobacco can cause bad breath. We've got a raft of tips to help you give up."
  message[12] = "A bad taste in the mouth can be a sign of periodontal disease. We can help with this."
  message[13] = "We believe in treating your phobia and not just your teeth."
  message[14] = "Puffy, red or tender gums, gums that bleed or persistent bad breath are signs that you need to see your dentist right away."
  message[15] = "They're packed with Vitamin C, iodine and pectin and are also kind on your teeth as they are less acidic."
  message[16] = "75% of the population has some form of gum disease. We can keep you in the happy 25% club."
  message[17] = "If you are needle phobic, we have the pain free WAND for you."
  message[18] = "More teeth are lost to gum disease than decay. We'll help to keep your mouth a happy and healthy place."
  message[19] = "Your teeth will certainly not be the worst that we have ever seen."
  message[20] = "Cheese - the superfood for the teeth. High in calcium and Vitamin D and low in acidity."
  message[21] = "We'll thank you for coming especially if this is your first visit for years."
  message[22] = "Orange and apple juice contains a lot of sugar. Even the kind marked \"no added sugar\"."
  message[23] = "One in five people hide their smile in photographs. We'll have you smiling in photos."
  message[24] = "It's reassuring to be concerned about something that can be fixed."
  message[25] = "Over a quarter of you have had some type of cosmetic dentistry."
  message[26] = "If you suffer from sensitive gag reflex, you could take a nasal decongestant before visiting us. It'll help you breathe though your nose."
  message[27] = "Come in and take a look around the practice. It's a pretty stylish place to pass some time."
  message[28] = "Studies have shown that cheese might help protect your teeth from decay by preventing demineralisation in your teeth."
  message[29] = "Drink plenty of water but not the fizzy stuff. The acid damages your tooth enamel."
  message[30] = "Children aren't born with a sweet tooth. Aim to steer clear of biscuits, cakes and sugary drinks completely."
  message[31] = "Need a small filling? Don't beat yourself up about it."
  message[32] = "Even sugars from natural sources are bad for your teeth. Half a cup of raisins has about 4 teaspoons of sugar."
  message[33] = "People with low intake of calcium and vitamin C are more likely to suffer from periodontal disease."
  message[34] = "90% of bad breath comes from the mouth."
  message[35] = "Eat plenty of oranges and grapefruits. They promote healthy teeth and gums and aid the absorption of iron."
  message[36] = "We have a strict no pressure policy. You are in control all the way."
  message[37] = "Soya milk, yogurts and cheeses and soya beans all help preserve calcium in the body."
  message[38] = "We like to think that judgmental dentists are a thing of the past."
  message[39] = "Making a soya milkshake with strawberries is a perfect drink for healthy teeth. Calcium plus vitamin C."
  message[40] = "Eat salmon, prawns or even sardines to boost your calcium."
  message[41] = "Diet fizzy drinks are still very acidic on your teeth."
  message[42] = "You can treat someone you love to our gift vouchers."
  message[43] = "A can of cola contains the equivalent of 12 cubes of sugar."
  message[44] = "Acidic foods assist the work of bacteria. They attack the teeth and help bacteria decay the teeth more rapidly. Apples, oranges and lemons are bad offenders."
  message[45] = "Only put milk or water in your baby's bottle. Any drink with sugar in it will increase the chance of decay."
  message[46] = "After eating acidic foods, you should wait at least 30 minutes before next cleaning your teeth. This will help prevent acid erosion."
  message[47] = "When brushing, don't scrub from side to side. Small circular motions from your gums to your teeth will do."
  message[48] = "After brushing, just rinse your mouth out with a little water. You don't want to wash away the fluoride from your toothpaste."
  message[49] = "Just brush after the bad stuff and don't beat yourself up about it."
  message[50] = "After brushing, dental floss is the most effective tool for the prevention of decay."
  message[51] = "Exercise can help improve blood flow to your teeth."
  message[52] = "You can treat someone you love to our gift vouchers."
  message[53] = "Snacking is a killer for your teeth. It's better to eat the naughty stuff in one sitting and then brush your teeth immediately afterwards."
  message[54] = "If you don't floss, you miss cleaning up to 35% of each tooth. Next time you're in, we'll show you how to do it like an expert."
  message[55] = "Foods eaten during a meal usually pose less of a threat to teeth because of the additional saliva produced during mealtime eating."
  message[56] = "New toothbrush every 3 months…just what the doctor ordered."
  message[57] = "You're 60 times more likely to get hurt if you don't use a mouthguard for sport. We don't think this includes darts."
  message[58] = "In some cases, fluoride can stop the early stages of decay."
  message[59] = "Chewing gum stimulates saliva production. It helps to dilute nasty acids present in the mouth."
  message[60] = "Saliva contains minerals that can be laid down in the enamel."
  message[61] = "You can treat someone you love to our gift vouchers."
  message[62] = "If your children drink fizzy drinks, give them a straw. The acid will have less contact with their teeth."

var title=new Array();
  title[0] = "NEVER TOO OLD"
  title[1] = "TRADE SECRETS"
  title[2] = "HEALTH ALERT"
  title[3] = "FAKE IT"
  title[4] = "EVERYTHING IN MODERATION"
  title[5] = "ROOM FOR TWO"
  title[6] = "CAREFUL"
  title[7] = "BACKSTAGE SECRETS"
  title[8] = "RELAX"
  title[9] = "WELCOME"
  title[10] = "BROCCOLI IS KING"
  title[11] = "BREATH CLEAN"
  title[12] = "WE CAN HELP"
  title[13] = "WE'RE HERE TO LISTEN"
  title[14] = "RED ALERT"
  title[15] = "STRAWBERRY SUPERFOOD"
  title[16] = "NEWS ALERT"
  title[17] = "NO PAIN, NO PAIN"
  title[18] = "NEWS ALERT"
  title[19] = "WE PROMISE YOU"
  title[20] = "SUPERFOOD ME"
  title[21] = "WELCOME"
  title[22] = "SPOONFULS OF SUGAR"
  title[23] = "SMILE WITH PRIDE"
  title[24] = "WHITE TEETH"
  title[25] = "YOU'RE IN GOOD COMPANY"
  title[26] = "BREATHE EASY"
  title[27] = "AWARD WINNING STYLE"
  title[28] = "EAT UP"
  title[29] = "KEEP STILL"
  title[30] = "SUGAR COATED"
  title[31] = "BE FORGIVING"
  title[32] = "NATURAL DISASTER"
  title[33] = "EAT YOUR ORANGES"
  title[34] = "WE CAN HELP"
  title[35] = "VITAMIN C ALERT"
  title[36] = "NO PRESSURE"
  title[37] = "SOYA GOOD"
  title[38] = "WELCOME"
  title[39] = "STRAWBERRY SOYA"
  title[40] = "YOUR INNER FISH"
  title[41] = "ACID ALERT"
  title[42] = "STUCK FOR A PRESENT?"
  title[43] = "SPOONFULS OF SUGAR"
  title[44] = "ACID ATTACK"
  title[45] = "SUGAR BABY"
  title[46] = "IT'S ALL IN THE WAIT"
  title[47] = "SCRUB UP"
  title[48] = "THE RINSE CYCLE"
  title[49] = "EVERYTHING IN MODERATION"
  title[50] = "BEATING THE BADDIES"
  title[51] = "RUN FOR YOUR LIFE"
  title[52] = "STUCK FOR A PRESENT?"
  title[53] = "SUGAR WARS"
  title[54] = "FLOSSING RULES"
  title[55] = "ALERT"
  title[56] = "BRUSH STROKES"
  title[57] = "SAFE OLYMPIAD"
  title[58] = "FLOURIDE ALERT"
  title[59] = "SUGAR FREE PLEASE"
  title[60] = "FRIENDS IN STRANGE PLACES"
  title[61] = "STUCK FOR A PRESENT?"
  title[62] = "SUGAR BABY"

function changeText() {
  if (message.length > 0) {
	var rand_no = Math.random();
	rand_no = rand_no * 62;
	rand_no = Math.ceil(rand_no);
    document.change.descript.value=message[rand_no];
    document.titulo.title.value=title[rand_no];
  }
  if (text == 62) {text = 0; }
    window.setTimeout("changeText()", 10000); }
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changeText();
});