// ************************************************************************************
// ** This file has been created with the Rotating Content Tool by Amesbury Web.     **
// ** For more information, visit us on the web:                                     **
// **                                                                                **
// **     Rotating Content Tool   -- http://rotatecontent.com/                       **
// **     Company: Amesbury Web   -- http://amesburyweb.com/                         **
// **     Author:  Randy Hoyt     -- http://randyhoyt.com/                           **
// **                                                                                **
// ************************************************************************************

today = new Date()
month = today.getMonth() + 1
year = today.getFullYear()

selectedDate = new Date("01/01/1900")
selectedContent = ""

varLength = 52
var entryDate = new Array(varLength)
var entryContent = new Array(varLength)

entryDate[0] = "01/01/" + year
entryContent[0] = "The wire cage holding a Champagne cork onto the bottle is called a 'Muselet'."

entryDate[1] = " 01/09/" + year
entryContent[1] = "An ampelographer is a vine-type researcher."

entryDate[2] = " 01/16/" + year
entryContent[2] = "'Toast' refers to the burning of the inside of the barrel.  'High toast' gives the wine caramel-like flavors."

entryDate[3] = " 01/23/" + year
entryContent[3] = "Believe it or not, China is the world's 6th largest wine producer.  The Napa model of wine tourism is being copied with spas and tourist facilities."

entryDate[4] = " 01/30/" + year
entryContent[4] = "The Petit Verdot grape used in Bordeaux is a minor grape used in small amounts.  It helps to add alcohol and backbone."

entryDate[5] = " 02/06/" + year
entryContent[5] = "Italians will first pour a small amount of wine into their clean glasses, swirl it around, then throw this wine out.  They will tell you they are preparing the glass to receive the wine!"

entryDate[6] = " 02/13/" + year
entryContent[6] = "For one week, French school children go on a field trip to 3-star restaurants in order to taste foié gras, Bresse chickens, cheese, and other famous French products including wines."

entryDate[7] = " 02/20/" + year
entryContent[7] = "The most important wines of Canada are Ice wines and Late Harvest wines."

entryDate[8] = " 02/27/" + year
entryContent[8] = "'Free run' is a term applied to the juice that runs freely as a result of the weight of the grapes, before any mechanical pressure is applied in a press."

entryDate[9] = " 03/06/" + year
entryContent[9] = "In Austria, it is impossible to find a winery or restaurant (no matter how humble) that does NOT use Riedel glassware."

entryDate[10] = " 03/13/" + year
entryContent[10] = "The grapes of the northern Rhone regions of France are the easiest to remember.  All red wines come from only one red grape: Syrah."

entryDate[11] = " 03/20/" + year
entryContent[11] = "Many wine drinkers find an intriguing kiwi aroma in Albariño wine.  In fact, kiwi is a major agriculture crop in Spain, and many bodegas have orchards of them."

entryDate[12] = " 03/27/" + year
entryContent[12] = "Wine for Orthodox Jews must be kosher, meaning it must not be touched at any point in its process (from picking of the grapes to bottling), by either a 'Gentile' or non-observant Jew, and it must contain only kosher ingredients."

entryDate[13] = " 04/03/" + year
entryContent[13] = "In the whole of the Biblical Old Testament, only the Book of Jonah has no reference to the vine or wine."

entryDate[14] = " 04/10/" + year
entryContent[14] = "Attempts to produce wine in the state of Virginia began in 1607 - the earliest record of American wine production."

entryDate[15] = " 04/17/" + year
entryContent[15] = "Each of the United States produces wine except for three; Alaska, North  Dakota, and Wyoming."

entryDate[16] = " 04/24/" + year
entryContent[16] = "Americans consume, on average, approximately 2.39 gallons of wine per year, with a total of 716 million gallons sipped (and occasionally gulped) nationwide."

entryDate[17] = " 05/01/" + year
entryContent[17] = "The Mesopotamians were credited with producing the first wine in 6,000 B.C."

entryDate[18] = " 05/08/" + year
entryContent[18] = "Labels were first put on wine bottles in the early 1700s, but it wasn't until 1860 that suitable glues were developed to actually hold them on the bottles."

entryDate[19] = " 05/15/" + year
entryContent[19] = "Chilling a wine tones down some of its sweetness, while a red wine that has become too warm will lose some of its flavor."

entryDate[20] = " 05/22/" + year
entryContent[20] = "By swirling the wine, oxygen is invited into the glass, which allows the aromas to escape."

entryDate[21] = " 05/29/" + year
entryContent[21] = "As early as the 6th century, the Greeks were toasting to the health of their friends to assure them that the wine wasn't poisoned."

entryDate[22] = " 06/05/" + year
entryContent[22] = "The lip of a red wine glass is sloped inward to capture the aromas of the wine, and deliver them to your nose."

entryDate[23] = " 06/12/" + year
entryContent[23] = "American wines are named after the grape that it is made from, while many European wines are named after the region from which they derive."

entryDate[24] = " 06/19/" + year
entryContent[24] = "The purpose of the indention at the bottom of the bottle is to strengthen the structure of the bottle."

entryDate[25] = " 06/26/" + year
entryContent[25] = "Thucydides wrote that the people of the Mediterranean began to 'emerge from barbarism when they leanred to cultivate the oil and the vine'"

entryDate[26] = " 07/03/" + year
entryContent[26] = "There is increasing scientific evidence that moderate, regular wine drinking can reduce the risk of heart disease, Alzherimer's disease, stroke, and gum disease."

entryDate[27] = " 07/10/" + year
entryContent[27] = "Texas is one of the oldest wine regions in the U.S.  In land mass it is bigger than France!"

entryDate[28] = " 07/17/" + year
entryContent[28] = "Early Roman women were forbidden to drink wine, and a husband who found his wife drinking was at liberty to kill her.  Divorce on the same grounds was last recorded in Rome in 194 B.C."

entryDate[29] = " 07/24/" + year
entryContent[29] = "The world's oldest bottle of wine dates back to A.D. 325, and was found near the town of Speyer, Germany, inside one of two Roman sarcophaguses.  It is on display at the town's Historisches Museum der Pfalz."

entryDate[30] = " 07/31/" + year
entryContent[30] = "California, New York, and Florida lead the United States in wine consumption.  Massachusetts ranks 7th."

entryDate[31] = " 08/07/" + year
entryContent[31] = "There are 96 American Viticulture Areas (AVAs) in Californi"

entryDate[32] = " 08/14/" + year
entryContent[32] = "The first corkscrew was invented in the mid 1800s."

entryDate[33] = " 08/21/" + year
entryContent[33] = "It takes about 600 grapes to produce a bottle of wine."

entryDate[34] = " 08/28/" + year
entryContent[34] = "Despite most of Spain's wine being red, 61.5% of Spain's vineyards are white.  This is because Spain also makes a lot of brandy and sherry."

entryDate[35] = " 09/04/" + year
entryContent[35] = "Fermenting grape juice has approximately 6,000 yeast cells per ounce."

entryDate[36] = " 09/11/" + year
entryContent[36] = "Spain is the third leading country in the world for wine production, behind France and Italy."

entryDate[37] = " 09/18/" + year
entryContent[37] = "The Mesopotamians were credited with making the first wine in 6000 B.C."

entryDate[38] = " 09/25/" + year
entryContent[38] = "The longest recorded champagne cork flight was 177 feet and 9 inches, four feet from level ground at Woodbury Vineyards in New York State."

entryDate[39] = " 10/02/" + year
entryContent[39] = "California accounts for over 90% of total U.S. wine production and approximately two out of every three bottles of wine sold in the United States was produced in California."

entryDate[40] = " 10/09/" + year
entryContent[40] = "Cork was developed as a bottle closure in the late 17th century. It was only after this that bottles were lain down for aging, and the bottle shapes slowly changed from short and bulbous to tall and slender."

entryDate[41] = " 10/16/" + year
entryContent[41] = "The most expensive bottle of wine was sold at an auction at Christies, London, in December 1985. The buyer paid £105 000 for a bottle of 1787 Chateau Lafitte claret that was engraved with the initials of Thomas Jefferson. Eleven months after the sale, the cork dried out, slipped into the bottle and spoiled the wine, making it the most expensive bottle of vinegar!"

entryDate[42] = " 10/23/" + year
entryContent[42] = "The word 'ton' (metric tonne) is derived from a tun, a wine barrel. It gets its name from the French 'tonnerre', or 'thunder', from the sound the barrels made when rolled."

entryDate[43] = " 10/30/" + year
entryContent[43] = "During prohibition, an interesting product called the 'Grape Brick' was sold to thousands of wine-parched households across America. Attached to the 'brick' of dried and pressed winegrape concentrate was a packet of yeast, and the stern warning, 'Do not add yeast or fermentation will result.'"

entryDate[44] = " 11/06/" + year
entryContent[44] = "The wreck of the Titanic, holds the oldest wine cellar in the world and despite the depth and wreckage, the bottles are still intact."

entryDate[45] = " 11/13/" + year
entryContent[45] = "30 million gallons of wine were lost in the 1906 San Francisco earthquake."

entryDate[46] = " 11/20/" + year
entryContent[46] = "Beaujolais should in fact be served cool."

entryDate[47] = " 11/27/" + year
entryContent[47] = "Wine has so many organic chemical compounds it is considered more complex than blood serum."

entryDate[48] = " 12/04/" + year
entryContent[48] = "Asked when she drinks champagne, Madam Lilly Bollinger replied, 'I drink it when I'm happy and when I'm sad. Sometimes I drink it when I'm alone. When I have company, I consider it obligatory. I trifle with it if I'm not hungry and drink it when I am. Otherwise, I never touch it----unless I'm thirsty.'"

entryDate[49] = " 12/11/" + year
entryContent[49] = "The soil of the famed Clos de Vougeot (A vineyard in the Burgundy district of France) is considered so precious that vineyard workers are required to scrape it from their shoes before they leave for home each night."

entryDate[50] = " 12/18/" + year
entryContent[50] = "The 19th century American poet, Henry Wadsworth Longfellow, mentions wine more than 300 times in his works."

entryDate[51] = " 12/25/" + year
entryContent[51] = "The word 'champagne' is named after a province in France, meaning 'open country'.  Due to the Protected Designation of Origin (PDO) law in  Europe, sparkling wine made outside the Champagne region of France can no longer be called 'champagne'."

if (typeof display == "undefined") { var display = "date" }

if (display == "random")
{
  var randomNumber = Math.random()
  randomNumber *= varLength
  randomNumber = parseInt(randomNumber)
  if(isNaN(randomNumber)) randomNumber = 0
  else randomNumber %= varLength
  selectedContent = entryContent[randomNumber]
}
else
{
  for (x=0; x<(entryContent.length); x++)
  {
    tempDate = new Date(entryDate[x])
    tempContent = entryContent[x]
    if ((tempDate <= today) && (tempDate > selectedDate))
    {
      selectedContent = tempContent
      selectDate = tempDate
    }
  }
}

document.write (selectedContent)
