//
var numFacts = 54;  // <=== Adjust the number of quotations here
var bf = null;

function initFacts() {
  bf = new initArr(numFacts);
  bf[1] = "<b>1820</b>: The United States boasts 14,000 distilleries, but only 200 breweries, all of which make English-style ale.";
  bf[2] = "<b>1840</b>: Per capita, Americans consume 2.5 gallons of spirits each year and about a gallon of beer.";
  bf[3] = "<b>1844</b>: Phillip Best, a newly arrived German immigrant, and his father and brothers establish Best Brewing in Milwaukee. Fifty years later, it would be the world's largest brewery.";
  bf[4] = "<b>1851</b>: Maine passes the nation's first prohibition law, even as dozens of new breweries open during the decade.";
  bf[5] = "<b>1855</b>: Anti-prohibition, anti-German riots erupt in cities with large German populations.";
  bf[6] = "<b>1857</b>: Saloonkeepers in many cities go on trial for violating Sunday drink laws. One jury after another finds them not guilty on grounds that lager beer is not intoxicating.";
  bf[7] = "<b>1863</b>: A physician studying camp conditions among Union troops recommends that they prevent constipation by drinking plenty of lager.";
  bf[8] = "<b>1864</b>: Phillip Best takes on a partner, his son-in-law Frederick Pabst.";
  bf[9] = "<b>1865</b>: Adolphus Busch buys a share of the brewery owned by his father-in-law, Eberhard Anheuser.";
  bf[10] = "<b>1868</b>: The Uihlein brothers go to work for their uncle, Joseph Schlitz. Like Phillip Best and Eberhard Anheuser, Schlitz makes about 4,000 barrels of beer a year.";
  bf[11] = "<b>1873</b>: The number of American breweries hits its all-time high</b>: 4,131. Frederick Pabst's brewmaster begins experimenting with beers brewed from corn and barley.";
  bf[12] = "<b>1876</b>: Carl Conrad, a St. Louis importer of wine and spirits, introduces Budweiser, a rice-based beer brewed for him by his close friend Adolphus Busch.";
  bf[13] = "<b>1878</b>: Adolphus Busch's St. Louis Lager, a Bohemian-style beer made with rice, wins top honors at the Paris Exposition.";
  bf[14] = "<b>1880</b>: Seventy-five percent of the nation's brewers make fewer than 4,000 barrels a year. The king of American brewers, George Ehret, produces more than 200,000, and his heir apparent, Frederick Pabst, lags by just a few thousand barrels.";
  bf[15] = "<b>1890</b>: The world's three largest breweries are Pabst Brewing (formerly called Best Brewing), Anheuser-Busch, and Schlitz.";
  bf[16] = "<b>1893</b>: Anheuser-Busch files suit to force Miller Brewing of Milwaukee to stop using the name 'Budweiser.' (In 1898, a judge ruled in favor of Anheuser-Busch.) Howard Hyde Russell founds the Anti-Saloon League and launches the crusade that will culminate in Prohibition. There are 1,930 breweries in the U.S.";
  bf[17] = "<b>1896</b>: Americans drink a gallon of spirits per capita, and fifteen gallons of beer.";
  bf[18] = "<b>1909</b>: The Anti-Saloon League's campaign is working</b>: more than fifty percent of the American population lives under some form of state or local prohibition.";
  bf[19] = "<b>1914</b>: The House of Representatives votes on constitutional prohibition. The tally, 197 to 190, is short of the two-thirds needed, but enough to galvanize the anti-alcohol crusade. On New Year's Eve, New York brewer Jacob Ruppert buys the New York Yankees.";
  bf[20] = "<b>1917</b>: The United States enters the World War. There are only 1,237 breweries still open.";
  bf[21] = "<b>1918</b>: In order to conserve grain and fuel, President Woodrow Wilson orders breweries to close their doors on December 1.";
  bf[22] = "<b>1919</b>: New York brewer Jake Ruppert makes Yankees team history when he buys Babe Ruth from the Boston Red Sox.";
  bf[23] = "<b>1920</b>: Constitutional Prohibition goes into effect.";
  bf[24] = "<b>1932</b>: In May, Americans march in 'beer parades,' demanding 'Beer for Taxation.'";
  bf[25] = "<b>1933</b>: Congress modifies the Volstead Act to allow 3.2% beer. At midnight on April 7, beer becomes legal once more. Some seven hundred breweries open their doors.";
  bf[26] = "<b>1935</b>: Canned beer makes its debut in Richmond, Virginia.";
  bf[27] = "<b>1941</b>: The United States declares war on Germany and Japan. Prohibitionists demand an end to all alcohol production, but the federal government declares brewing a vital component of the war effort.";
  bf[28] = "<b>1946</b>: With the war and depression behind them, brewers march into the new era. Pabst, Anheuser-Busch, and Schlitz open new breweries on the east coast. Over the next few years, they will do the same on the west coast.";
  bf[29] = "<b>1949</b>: Beer sales drop by a million barrels, an omen for the grim decade to come, when sales remain flat and per capita consumption drops to historic lows.";
  bf[30] = "<b>1953</b>: Anheuser-Busch buys the St. Louis Cardinals and Miller Brewing president Frederick C. Miller persuades the Boston Braves to relocate to Milwaukee.";
  bf[31] = "<b>1954</b>: Fred C. Miller dies in a plane crash.";
  bf[32] = "<b>1958</b>: With the brewery ailing and near death, Pabst stockholders try to engineer a sale to Pepsi-Cola. The deal falls through. Instead, Pabst buys Blatz Brewing.";
  bf[33] = "<b>1959</b>: Stagnant demand takes its toll: there are only 244 breweries left in the United States.";
  bf[34] = "<b>1965</b>: Fritz Maytag buys Steam Beer Brewing Company, a small--and failing--outfit in San Francisco.";
  bf[35] = "<b>1966</b>: Miller Brewing heiress Lorraine Mulberger sells her controlling shares to W. R. Grace.";
  bf[36] = "<b>1969</b>: W. R. Grace sells Miller Brewing to Philip Morris.";
  bf[37] = "<b>1973</b>: Chicago newspaper columnist Mike Royko complains that American beer tastes like it's been run 'through a horse.' He organizes a taste test. Beer made by tiny Stevens Point (capacity 30,000 barrels) comes in third behind two imports. Two Schlitz brands and Budweiser finish last.";
  bf[38] = "<b>1974</b>: Lager made by Leinenkugel in Chippewa Falls, Wisconsin, ranks second in a taste test sponsored by Oui magazine.";
  bf[39] = "<b>1975</b>: John Murphy and Miller Brewing introduce Miller Lite.";
  bf[40] = "<b>1976</b>: In California, Jack McAuliffe files incorporation papers for his new Sonoma business venture, New Albion Brewing. A Massachusetts man, Larry McAvitt, founds the Committee for Real Ale, which he models after Britain's Campaign for Real Ale.";
  bf[41] = "<b>1977</b>: A California magazine ranks Fritz Maytag's Anchor the best beer in America. In St. Louis, August Busch III has seen the light: He introduces Natural Light.";
  bf[42] = "<b>1978</b>: Ken Grossman, a Chico homebrewer, visits New Albion. Charlie Papazian and Charlie Matzen launch the American Homebrewers Association. The number of American breweries drops to an all-time low: eighty-nine plants owned by forty-one companies.";
  bf[43] = "<b>1979</b>: Ken Grossman and friend Paul Camusi rent a warehouse and begin building a new brewery, which they call Sierra Nevada.";
  bf[44] = "<b>1981</b>: Grossman and Camusi begin selling their beer in and around Chico, 950 barrels worth that first year. Charlie Papazian hosts the first microbrewing conference. Executives at Schlitz close the doors of the Milwaukee brewery.";
  bf[45] = "<b>1982</b>: Jack McAuliffe brews his last vat of New Albion Ale. The Great American Beer Festival debuts in Boulder, Colorado, the brainchild of Charlie Papazian. Stroh of Detroit buys ailing Schlitz.";
  bf[46] = "<b>1983</b>: Michael Laybourn and Norm Franks buy Jack McAuliffe's brewery equipment and open Mendocino Brewing in Hopland, California. Charlie Papazian founds the Institute for Fermentation and Brewing Studies (later the Association of Brewers), an educational organization for microbrewers.";
  bf[47] = "<b>1985</b>: Jim Koch launches Samuel Adams Lager in Boston.";
  bf[48] = "<b>1988</b>: Jake Leinenkugel announces that he has sold his family's brewery to Miller Brewing.";
  bf[49] = "<b>1994</b>: Anheuser-Busch buys a share of Redhook, a Seattle microbrewery. The number of breweries and brewpubs tops one thousand.";
  bf[50] = "<b>1995</b>: Redhook and Jim Koch's Boston Beer Company issue stock offerings.";
  bf[51] = "<b>1996</b>: The owners of Pabst Brewing close the Milwaukee brewery.";
  bf[52] = "<b>1997</b>: Kurt Widmer of Widmer Brothers Brewing in Portland, Oregon, sells part of his company to Anheuser-Busch.";
  bf[53] = "<b>1998</b>: Stroh Brewing of Detroit closes its doors. Dick Yuengling buys the company's Tampa facility.";
  bf[54] = "<b>2000</b>: Sierra Nevada is the nation's tenth largest brewery. Yuengling is number eight, and Boston Beer is number six. In the number one slot is the same company that has occupied the throne for a half century: Anheuser-Busch.";
}

function getRandNum(n) {
//Returns a pseudorandom number between 1 and n
  var today = new Date();
  var bigNum = today.getSeconds() * today.getTime() * Math.sqrt(today.getMinutes());
  var randNum = (bigNum % n) + 1;
  return Math.floor(randNum);
}

function initArr(n) {
  this.length = n;
  for(var i = 1; i <= n; i++) {
    this[i] = "";
    }
  return this;
}

function getRandomFact() {
  var idx = getRandNum(numFacts);
  return bf[idx];
}

function loadFact() {
  var theFact = getRandomFact();
  document.write(theFact);
}

initFacts();

document.write("  <div class=history>");
document.write("   <b>American beer history fact of the day</b> (<a class=leftnav href='other/beerfacts.html' target=_new>see all</a>)");
document.write("   <br/><script type='text/javascript'>loadFact()</script>");
document.write("  </div>");

