var arrayInfo = new Array();

//add items to the array; the function below will randomly choose one to display
arrayInfo[0] = "In the 18th century, the cotton gin revolutionized the cotton industry, and allowed cotton growers to supply larger amounts of cotton fiber each year to the growing textile industry";
arrayInfo[1] = "U.S. money is woven from cotton and linen";
arrayInfo[2] = 'Khaki is a Hindu word meaning "dust color"';
arrayInfo[3] = "Thomas Edison used a carbonized cotton thread in his first light bulbs";

function generateDidYouKnow(){
	var theRandomNumber = Math.floor(Math.random()*arrayInfo.length);
	document.getElementById("cc_footer_factoid_content").innerHTML = "<p>" + arrayInfo[theRandomNumber] + "</p>";
}