// randomFact.js
// Select a random fact from a list of facts about feet and display it...

var facts=new Array();
facts[0]="The average human walks 1,600km every year! That's the equivalent of walking 40 marathons (every year), totalling about 96,000km over an average lifetime.";
facts[1]="The human foot has 26 bones, meaning your feet have 52 of the the total 206 bones in your body. That means over 25% of your bones are in your feet!";


function newFact(div) {
	var rand=Math.ceil(Math.random()*10)-1;
	while(rand>(facts.length-1)) {
		rand=Math.ceil(Math.random()*10)-1;
	}
	if(document.all) document.all[div].innerHTML="<font face='verdana' size='2' color='#ffffff'>"+facts[rand];
	if(document.layers) document.layers[div].innerHTML="<font face='verdana' size='2' color='#ffffff'>"+facts[rand];
	if(document.getElementById) document.getElementById(div).innerHTML="<font face='verdana' size='2' color='#ffffff'>"+facts[rand];
}