var strFacts = "The average coffee farmer earns less then 3$ a day. \n" +
"Coffee is the second most heavily traded commodity after oil. \n" +
"Coffee is grown on 26 million acres in 80 countries. \n" +
"Globally, the coffee industry requires the labor of 25 million people. \n" +
"130 million Americans drink coffee, buying 450 million cups daily. \n" +
"The United States is the world's largest consumer of coffee, importing 16 to 20 million bags annually (25 million pounds), representing one-third of all coffee exported. More than half of the United States population consumes coffee. \n" +
"Americans spend 18 billion a year on coffee. \n" +
"An acre of coffee trees can produce up to 10,000 pounds of coffee cherries. That amounts to approximately 2,000 pounds of beans after hulling or milling. \n" +
"With the exception of Hawaii and Puerto Rico, no coffee is grown in the United States or its territories. \n" +
"Up until the 1870's most coffee was roasted at home in a frying pan over a charcoal fire. It wasn't until recent times that batch roasting became popular. \n" +
"Each year some 7 million tons of green beans are produced worldwide. Most of which is hand picked. \n" +
"An average 7-ounce cup of brewed coffee has between 115-145mg of caffeine. \n" +
"The coffee tree produces its first full crop when it is about 5 years old. Thereafter it produces consistently for 15 or 20 years. \n" +
"A mature coffee tree will produce one pound of coffee per growing season. \n" +
"Flavored coffees are created after the roasting process by applying flavored oils specially created to use on coffee beans. \n" +
"Ground coffee loses its flavor immediately unless it is specially packaged or brewed. Plastic-and-paper combinations are used to protect freshly roasted and ground coffee. \n" +
"Brazil the world's largest producer grows approximately 35% of the world's coffee. \n";

function showFactoid()
{
var intRandom = new Number(Math.round(Math.random() * (strFacts.split("\n").length-1)));
document.write(strFacts.split("\n")[intRandom]);

}