// an array to hold the messagesvar rotateMessages_messages = new Array();//add messages hererotateMessages_messages[rotateMessages_messages.length] = "Popcorn makes up 8% of all snack purchases.";rotateMessages_messages[rotateMessages_messages.length] = "The US market for microwave popcorn exceeds $2.7 billion per year.";rotateMessages_messages[rotateMessages_messages.length] = "Butter popcorn is the most popular flavor. ";rotateMessages_messages[rotateMessages_messages.length] = "Kettle corn is one of the fastest growing types of popcorn.";rotateMessages_messages[rotateMessages_messages.length] = "Popcorn is the leading salted snack sold by mass merchandisers.";rotateMessages_messages[rotateMessages_messages.length] = "Americans eat about 17 billion quarts of popcorn each year.";rotateMessages_messages[rotateMessages_messages.length] = "Most of the popcorn consumed throughout the world is grown in the United States.";rotateMessages_messages[rotateMessages_messages.length] = "More than 73 million Americans own microwaves.";rotateMessages_messages[rotateMessages_messages.length] = "Nearly 70% of popcorn consumed is eaten in the home.";rotateMessages_messages[rotateMessages_messages.length] = "Popcorn is one of the only snacks popular with all age groups.";rotateMessages_messages[rotateMessages_messages.length] = "The first electric popcorn popper was introduced in 1907.";rotateMessages_messages[rotateMessages_messages.length] = "The home poppers were first introduced in 1925.";rotateMessages_messages[rotateMessages_messages.length] = "Experiments with popcorn helped give birth to the microwave oven in 1945.";rotateMessages_messages[rotateMessages_messages.length] = "Popcorn sales slumped briefly during the early 1950s when television became popular.";rotateMessages_messages[rotateMessages_messages.length] = "Popcorn's name comes from the \"poppe\" meaning \"explosive sound\".";function rotateMessages_getNextMessage(){	var id = rotateMessages_getNextMessageId();	try{		document.write(rotateMessages_messages[id]);	} catch (e){	}}// expire so that the cookie stays permvar expDays = 30;var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000));function rotateMessages_getNextMessageId(){	var id = GetCookie('rotateMessages_messageId')	if(id == null) {		SetCookie('rotateMessages_messageId','0', exp)		return 0;	} else {				var newCount = 0;				try{			// once we get to the end circle back			newcount = (parseInt(id) + 1) % (rotateMessages_messages.length);		}catch (e){			//ignore and use 0		}				if (isNaN(newCount))		{			newCount = 0;		}		DeleteCookie('rotateMessages_messageId')		SetCookie('rotateMessages_messageId', newcount , exp)		return id	}}