// JavaScript Document
// Random Dates

// This function returns an image tag that can be written to the html document
function randomDate(dates) {
  // index to the selected image
  var idx = Math.floor(Math.random() * dates.length);
  var tag = dates[idx];
  return tag;
}

arrDates = new Array();
arrDates[0]="1847: Cartier Diamonds was founded in Paris; their annual sales now surpass $2 billion." ;
arrDates[1]="1849: Moscow’s Kremlin Palace was completed." ;
arrDates[2]="<strong>1847: Edward Guiness, 1st Earl of Iveagh, was born in Ireland</strong>. One of the liberal Lord Iveagh’s great social experiments in the 1880s  was to employ \“daughters of employees\” at the Guinness brewery as clerks. The pioneering movement was \“a great success\” with \“not a single failure\”. ";
arrDates[3]="1847: The Sisters of Mercy were introduced to Dundalk by the Very Rev John Coyne, PP, VG."
arrDates[4]="1847: Brigham Young leads 45,000 Mormons on a Great Trek from New York State to the Salt Lake Basin in Utah."
arrDates[5]="1847: The frontiersmen of Texas and Tennessee are involved in a brutal war of attrition with the Mexican forces of General Santa Ana. Appalled by the Americans disrespect for the Catholic church in Mexico, seventy-two Irishmen desert the Texas Ranegrs and form the \"Heroica Battalion San Patricio\” in defence of Mexico. They are later rounded up and every man in the regiment executed."
arrDates[6]="1847: The British Prime Minister, Lord Palmerston, signs a lease with China giving Britain the right to trade from Hong Kong until 1997. "
arrDates[7]="1847: The Carlsberg Brewery is established in Denmark."
arrDates[8]="1847: The Jacob’s Creek vineyards are established in Australia."
arrDates[9]="1847: 23rd January ­ The first brick of Lisnavagh House, Rathvilly, Co. Carlow is laid by Henry Kingsmill."
arrDates[10]="1847: <a href=\"http://www.ballyvolanehouse.ie\" target=_blank>Ballyvolane House</a>, Castleyons, Co. Cork, undergoes architectural modification. "
arrDates[11]="1847: A famine aid package arrives in County Mayo from the Seminole Indians. "
arrDates[12]="1847: Having lost the war with the USA, General Santa Ana of Mexico hands Texas, California, Arizona, Nevada and New Mexico over to the Americans."
arrDates[13]="1847: John Suter is planting crops on the Californian ranch outside the former Spanish port of San Francisco. Within a year gold will be discovered here leading to the first of the great 19th century Gold Rushes."
arrDates[14]="1847: Inventor Thomas Edison is born in Ohio in February."
arrDates[15]="1847: Gunslinger Jesse James is born in Missouri in September. His father is from Co. Kerry."
arrDates[16]="1847: Argentinean society is shocked when a young upper class Catholic Irish girl called Camila O'Gorman elopes with a priest, Ladislao Gutierrez. Both are subsequently captured and executed by order of Argentine dictator Juan Manuel de Rosas."
arrDates[17]="1847: A settler on San Cristobal Island in the Galapogas claims to have had a personal stock of 300 tortoises available for sale to passing ships."
arrDates[18]="1847 : Emily Bronte’s Wuthering Heights was finished in 1847. She wrote it on thousands of small pieces of paper and then sold it to a publisher by pretending to be a man. "
arrDates[19]="1847: In October, Professer James McCullagh, mathematician and secretary of the Royal Irish Academy, committed suicide in a fit of temporary insanity due to overwork. "
arrDates[20]="1847: The evangelical preacher Basil Maturin was born on 15th February. He was among those drowned when the Lusitania was sunk in 1915. He was last seen standing upon one of the decks, hand upraised, blessing the souls about to enter eternity."
arrDates[21]="1847: On August 25th, King Ludwig of Bavaria bestowed the title Countess of Landsfeld on his mistress, the Sligo-born dancer, Lola Montez (nee Eliza Rosanna Gilbert). The following year, the Bavarians revolted, Ludwig abdicated and Lola fled."
arrDates[22]="1847: One of the American heroes of the 1847 Mexican War was the scout and moutain man, Kit Carson. He hailed from Northern Ireland and was a kinsman of the ultra-Unionist Edward Carson"
arrDates[23]="1847: Bram Stoker, author of Dracula, was born in Dublin."
arrDates[24]="1958: Pamela Drew paints \"The Road to Wamba\"."
arrDates[25]="1891: Carnegie Hall in New York City opened with Tchaikovsky as guest conductor."
arrDates[26]="1764: Numbering houses on the streets of London began."
arrDates[27]="1904: The wristwatch was invented by Louis Cartier."
arrDates[28]="1776: Croatia was the first country to recognise the United States."
arrDates[29]="Ants don't sleep."
arrDates[30]="There are more insects in one square mile of rural land than there are human beings on the entire earth."
arrDates[31]="In 1888, an estimated 300,000 mummified cats were found at Beni Hassan, Egypt. They were sold at $18.43 per ton, and shipped to England to be ground up and used for fertilizer."
arrDates[32]="1847: Gladstone founds Glenalmond College in Perthshire, Scotland."
arrDates[33]="1847: Birth of British Prime Minister Lord Rosebery."
arrDates[34]="On 30 January 3, 1847, the town of Yerba Buena was renamed San Francisco. The city and the rest of California officially became American in 1848 by the Treaty of Guadalupe Hidalgo, which ended the Mexican-American War."