// ************************************************************************************
// ** 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/02/" + year
entryContent[0] = "The wire cage holding a Champagne cork onto the bottle is called a 'Muselet'."

entryDate[1] = " 01/10/" + year
entryContent[1] = "An ampelographer is a vine-type researcher."

entryDate[2] = " 01/17/" + 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/24/" + 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/31/" + 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/07/" + 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/14/" + 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/21/" + year
entryContent[7] = "The most important wines of Canada are Ice wines and Late Harvest wines."

entryDate[8] = " 02/28/" + 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/07/" + 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/14/" + 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/21/" + 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/28/" + 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/04/" + 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/11/" + 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/18/" + year
entryContent[15] = "Each of the United States produces wine except for three; Alaska, North  Dakota, and Wyoming."

entryDate[16] = " 04/25/" + 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/02/" + year
entryContent[17] = "The Mesopotamians were credited with producing the first wine in 6,000 B.C."

entryDate[18] = " 05/09/" + 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/16/" + 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/23/" + year
entryContent[20] = "By swirling the wine, oxygen is invited into the glass, which allows the aromas to escape."

entryDate[21] = " 05/30/" + 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/06/" + 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/13/" + 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/20/" + 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/27/" + 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/04/" + 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/11/" + 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/18/" + 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/25/" + 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] = " 08/01/" + year
entryContent[30] = "California, New York, and Florida lead the United States in wine consumption.  Massachusetts ranks 7th."

entryDate[31] = " 08/08/" + year
entryContent[31] = ""

entryDate[32] = " 08/15/" + year
entryContent[32] = ""

entryDate[33] = " 08/22/" + year
entryContent[33] = ""

entryDate[34] = " 08/29/" + year
entryContent[34] = ""

entryDate[35] = " 09/05/" + year
entryContent[35] = ""

entryDate[36] = " 09/12/" + year
entryContent[36] = ""

entryDate[37] = " 09/19/" + year
entryContent[37] = ""

entryDate[38] = " 09/26/" + year
entryContent[38] = ""

entryDate[39] = " 10/03/" + year
entryContent[39] = ""

entryDate[40] = " 10/10/" + year
entryContent[40] = ""

entryDate[41] = " 10/17/" + year
entryContent[41] = ""

entryDate[42] = " 10/24/" + year
entryContent[42] = ""

entryDate[43] = " 10/31/" + year
entryContent[43] = ""

entryDate[44] = " 11/07/" + year
entryContent[44] = ""

entryDate[45] = " 11/14/" + year
entryContent[45] = ""

entryDate[46] = " 11/21/" + year
entryContent[46] = "Beaujolais should in fact be served cool."

entryDate[47] = " 11/28/" + year
entryContent[47] = ""

entryDate[48] = " 12/05/" + year
entryContent[48] = ""

entryDate[49] = " 12/12/" + year
entryContent[49] = ""

entryDate[50] = " 12/19/" + year
entryContent[50] = ""

entryDate[51] = " 12/26/" + 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)