///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	Code was created by C. Eton. Statement author unknown.  
 
 	Only 1 item need to be edited:

	1.  The Statements array variable.

*///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// List the statements to display.  Add statements as necessary.  


var Statements = new Array(

	'Popcorn pops because water is stored in a small circle of soft starch in each kernel. As the kernel is heated, the water heats, the 		     droplet of moister turns to steam and the steam builds up pressure until the kernel finally explodes to many times its original 	     volume. ',
	'Americans today consume 17.3 billion quarts of popped popcorn each year! The average American eats about 68 quarts! ', 
	'While the first breakfast cereal was made by adding sugar and milk to popped popcorn, a shortage of baking flours after World War II     forced breadmakers to substitute up to 25% of wheat flour with ground popped popcorn. Over the years, popcorn also has been used as     an ingredient in pudding, candy, soup, salad and entrees', 
	'Popcorn’s nutritional value comes from the fact that, like other cereal grains, its primary function is to provide the body with heat     and energy.', 
	'Microwave popcorn is the same as other popcorn except the kernels are usually larger and the packaging is designed for maximum 			     popability. ', 
	'The same chemicals that give tart cherries their color may relieve pain better than aspirin and ibuprofen in humans.', 
	'Eating about 20 tart cherries a day could reduce inflammatory pain and headache pain.', 
	'There are about 7,000 cherries on an average tart cherry tree (the number varies depending on the age of the tree, weather and     growing conditions). It takes about 250 cherries to make a cherry pie, so each tree could produce enough cherries for 28 pies!', 
	'Lettuce is a member of the sunflower family.', 
	'Darker Green lettuce leaves are more nutritious than lighter green leaves. ', 
	'Americans eat about 30 pounds of lettuce every year. That\'s about five times more than what we ate in the early 1900s.', 
	'Almost all lettuce is packed right in the field.', 
	'About 25% of all iceberg lettuce is made into fresh cut salads. ', 
	'The plant pigment that gives carrots and other vegetables their vivid orange color is Beta-Carotene. Fruits and Vegetables that are     yellow/orange in color contain Beta-Carotene and carrots are one of the richest in this nutrient. Our bodies convert Beta-Carotene     into Vitamin A.', 
	'The bright orange color of carrots tell you they’re an excellent source of Vitamin A which is important for good eyesight, especially     at night. Vitamin A helps your body fight infection, and keeps your skin and hair healthy! ', 
	'Blueberries are the second most popular berry in the United States.', 
	'Michigan and New Jersey produce 66% of all the blueberries in the United States, followed by North Carolina, Oregon and Washington. '     , 
	'Over 200 million pounds of blueberries are grown every year in North America.', 
	'Blueberries are first picked by hand to gather the best of the early fruit. Later, if the fruit is to be mechanically harvested, a     harvesting machine goes through the field and gently shakes each bush so only the ripe blueberries drop off.', 
	'Blueberries are a good source of Vitamin C and fiber.', 
	'In the U.S. in 1998, hens produced 6,657,000,000 dozen eggs - that’s 6.657 billion dozen! After these eggs were laid, about          two-thirds were sold in the shell and one third of them were broken - not by accident, but on purpose. Because after the eggs are broken  out of their shells, they can be made into liquid, frozen, dried and specialty egg products.', 
	'The egg shell may have as many as 17,000 tiny pores over its surface. Through them, the egg can absorb flavors and odors. Storing  them in their cartons helps keep them fresh!', 
	'Eggs age more in one day at room temperature than in one week in the refrigerator.', 
	'Occasionally, a hen will produce double-yolked eggs throughout her egg-laying career. It is rare, but not unusual, for a young hen to produce an egg with no yolk at all.', 
	'It takes 24 to 26 hours for a hen to produce an egg; there is 30 minutes between each egg-producing cycle.', 
	'About 240 million laying hens produce about 5.5 billion dozen eggs per year in the United States.', 
	'Egg yolks are one of the few foods that naturally contain Vitamin D.', 
	'An acre of trees can remove about 13 tons of dust and gases every year from the surrounding environment.', 
	'Almost a third of the world’s total land area is covered by forests.', 
	'Some tissue-making machines can produce as many as 6000 feet of toilet tissue every minute out of trees.', 
	'Every year in the United States each person uses the equivalent of one tree, 100 feet tall and 16 inches in diameter, to fulfill     their wood and paper needs.', 
	'Thirty to 40 gallons of sugar maple sap must be boiled down to make just one gallon of maple syrup.', 
	'Many farmers grow more than just grains, vegetable and livestock. Some farmers grow trees. This is called a woodlot. A woodlot is not   an original forest, because the timber has been cut down before. Sometimes the trees in a woodlot have been cut down four, five, ore even six times. After the trees have been cut down, the farmer lets them grow up again, until they are big enough to be harvested once more.', 	'Not only is the wood on woodlots good to sell to timber companies to make paper, etc., but the timber can also be useful on the farm.    The farmer can cut down the timber and use it to build fences, barns, or other buildings. Some farmers grow specialized woodlots that    are used for a specific purpose. A woodlot may be used to harvest maple syrup or as a Christmas tree farm.', 
	'In a year’s time a dairy cow produces 1,500 gallons or 6,000 quarts of milk. A Jersey cow will give as much as 3 to 4 gallons or around 16 quarts of milk each day.', 
	'Dairy cows provide us with milk and milk by-products like cheese, butter, and ice cream. In addition, milk is also used to manufacture glue, paint, and plastics. ', 
	'Straight from the cow, the temperature of cow’s milk is about 97 degrees Fahrenheit.', 
	'The average U.S. dairy cow produces 22.5 quarts of milk each day. That\'s about 16,000 glasses of milk per year – enough for about 40 people. One cow can give 200,000 glasses of milk in a lifetime.', 
	'It takes approximately 1.4 gallons of milk to make 1 gallon of ice cream.', 
	'Cheese was first made over 4,000 years ago in Asia.', 
	'A cow has 4 stomachs. They are: the rumen, where the food is first stored, the reticulum where food that has been more thoroughly chewed is stored once the cow has chewed the cud and has swallowed it; the omasum where extra water is squeezed out, and finally the food goes to the abomasum. Some of the digested food is then stored in the cow’s udder where it is made into milk.', 
	'Cows are ruminants or cud-chewing animals eating hay, corn, soybeans, grass, wheat, and ensilage. Each cow eats 20 to 25 pounds of grain, 40 to 60 pounds of ensilage, 30 pounds of hay and drinks about 15 to 25 gallons of water a day.', 
	'Cows are sedentary animals spending up to 8 hours a day chewing the cud while standing still or lying down to rest after grazing. When going to be milked, a certain cow in an established herd always leads the others with the weaker and older cattle trailing behind the group.', 
	'A typical, full grown Holstein cow weighs about 1,400 pounds and produces 60 pounds of milk per day.', 
	'One day\'s production is 2.6 pounds of butter or 7 gallons of milk or 6 pounds of cheese', 
	'A dairy cow consumes 35 gallons of water, 20 pounds of grain and concentrated feed and 35 pounds of hay or silage (a mixture of corn and grass) in just one day. ', 
	'It usually takes about 20 minutes for a cow to be milked. On average a cow is milked 2 to 3 times a day.', 
	'Hamburger meat from a single steer will make about 720 quarter pound hamburger patties. That\'s enough for a family of 4 to enjoy hamburgers each day for nearly 6 months.', 
	'Apples are a member of the rose family.', 
	'Washington state grows the most apples in the U.S.', 
	'The apples from one tree can fill 20 boxes every year.', 
	'Fresh apples float because 25 percent of their volume is air.', 
	'In the winter, apple trees need to "rest" for about 900-1,000 hours below 45 degrees Fahrenheit in order to flower and fruit properly.', 
	'If you grew 100 apple trees from the seeds of one tree, they would all be different. ', 
	'Apples are high in fiber.', 
	'There are more than 7,000 varieties of apples grown in the world.', 
	'Pumpkins were once recommended for removing freckles and curing snake bites! ', 
	'Pumpkin flowers are edible.', 
	'Pumpkins are 90% water.', 
	'Pumpkins are used for feed for animals.', 
	'Pumpkin seeds can be roasted as a snack.', 
	'Native Americans used pumpkin seeds for food and medicine.', 
	'In early colonial times, pumpkins were used as an ingredient for the crust of pies, not the filling.', 
	'The name "pumpkin" originated from "pepon", the Greek word for "large melon."', 
	'Pumpkins contain potassium and Vitamin A.', 
	'The most popular sweet pepper in the United States is the bell pepper.', 
	'Most peppers belong to the Capsicum annuum species. ', 
	'As bell peppers mature, their color changes from green to red and they become sweeter.', 
	'Dried chile pepper wreaths are called "Ristras" - a symbol of plenty and hope.', 
	'There are 914 different breeds of sheep in the world. There are 35 breeds in the U.S. ', 
	'Wool is a natural fiber grown from sheep.', 
	'One bushel of corn will sweeten more than 400 cans of pop.', 
	'There are about 600 kernels on each ear of corn.', 
	'Farmers grow corn on every continent except Antarctica.', 
	'Each tassel on a corn plant releases as many as 5 million grains of pollen.', 
	'Pigs can\'t sweat. Pigs have no sweat glands, that is why they roll around in mud to cool off. ', 
	'Heart valves from hogs are used to replace damaged or diseased human heart valves.', 
	'A pig can run a 7-minute mile. ', 
	'A baby pig, or piglet, weighs about 3 1/2 pounds at birth and will double its weight in just 7 days.', 
	'Soy crayons have been created to replace toxic petroleum-wax crayons, soy crayons are sager to use, brighter in color, and less expensive to produce.', 
	'One acre (43,560 square feet) of soybeans can produce 82,368 crayons.', 
	'Soybean oil is the most widely used vegetable oil. It is found in margarine\'s, salad dressings, canned foods, sauces, bakery goods, and processed fried foods. ', 
	'Cows spots are like snowflakes there are never two with the same pattern of spots. ', 
	'All cows are female. The males are called bulls. ', 
	'A cow can’t give milk until she has had a calf.', 
	'Blueberries contain significant quantities of both antibacterial and antiviral compounds, and have a reputation in northern Europe of fighting infections.They may also help protect against heart disease.' 
	);


/*
	GetStatement( ) is the primary function.  It assumes the following:
	
	1.  The HTML file contains a form named "statementform".
	2.  Within the statement form, there is a textarea or textbox named "statement".               */

function GetStatement(outputtype) //modified by javascriptkit.com to either write out result or set innerHTML prop
{
	if(++Number > Statements.length - 1) Number = 0;
	if (outputtype==0)
	document.write(Statements[Number])
	else if (document.getElementById)
	document.getElementById("ponder").innerHTML=Statements[Number];
}


//  The GetRandomNumber( ) function extracts a random number within a given range.


function GetRandomNumber(lbound, ubound) 
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}


// The Number variable keeps track of which statement to display.  It will start at a random point.                

var Number = GetRandomNumber(0, Statements.length - 1);
