// JavaScript Document
function Random(N)
{return Math.floor(N*(Math.random()%1));
}
function randSpan(MinN,MaxN)
{
return MinN + Random(MaxN-MinN+1);	
}

function peanutFacts()
{

var factsObj = document.getElementById('peanut_facts');

var peanut_facts = new Array();


peanut_facts[0] = "Peanuts go back many centuries, a fossilized peanut that dated back over 100,000 years was found in China."
peanut_facts[1] = "Peanut Butter was created 1890 by a St. Louis physician for his patients with bad teeth."
peanut_facts[2] = "In 1904 PB was promoted as a health food. In this tradition, Rocky Mountain Peanut Butter contains 13 vitamins and 26 minerals."
peanut_facts[3] = "Each year Americans eat almost 7 pounds of peanuts and peanut butter per capita. By the time the average person graduates from High School, he or she will have eaten 1,500 peanut butter and jelly sandwiches." 
peanut_facts[4] = "A few people suffer from Arachibutyrophobia, the fear that peanut butter will stick to the roof of their mouth. Peanut butter's high protein content draws moisture from the mouth, like a sponge soaks up water. Rocky Mountain Peanut Butter contains 8 grams of protein per serving."
peanut_facts[5] = "It takes about 735 peanuts to make a 16 ounce jar of Rocky Mountain Peanut Butter."
peanut_facts[6] = "One acre of land yields about 30,000 peanut butter sandwiches."
peanut_facts[7] = "What makes natural peanut butter better? Some peanut butters add sugar and other oils to the peanuts to keep the oil from separating. These oils are high in trans fatty acids which can lead to health problems. Rocky Mountain Peanut Butter contains only fresh roasted peanuts and a just enough sea salt to bring out its flavor." 
peanut_facts[8] = "By law Peanut Butter must contain a minimum of 90% peanuts. Rocky Mountain Peanut Butter contains 99.9% peanuts."
peanut_facts[9] = "One of Elvis Presley’s favorite foods was a fried peanut butter and banana sandwich."
peanut_facts[10] = "March is national Peanut Butter month and March 1 is national Peanut Butter lovers’ day. Over Eighty percent of all Americans purchase peanut butter."
peanut_facts[11] = "A fun project is to take a pine cone, smear it with Peanut Butter, dip it in bird seed, and then watch the birds come."
peanut_facts[12] = "One survey reported that creamy peanut butter is preferred on the East Coast and chunky on the West Coast.  Rocky Mountain Peanut Butter tastes a little creamy, a little chunky but its distinctive flavor is unique."
peanut_facts[13] = "Rocky Mountain Peanut Butter is a food that can be used for a quick snack, graham crackers with peanut butter is my grandson’s favorite or a quick meal, peanut butter and jelly sandwich."

factsObj.innerHTML = peanut_facts[ randSpan(0,13) ];
 
return "";
}


function addLoadEvent(func) {
	 
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onLoad = func;  
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}




