var today = new Date();
var todayString = today.toLocaleDateString();
var then = new Date();
then.setFullYear(2012, 02, 17);
var diff = then.getTime() - today.getTime();
diff = Math.floor(diff / (1000 * 60 * 60 * 24));

var banner = new Array();
function group(title,quote,author,source,pic) {
	this.title = title;
    this.quote = quote;
    this.author = author;
    this.source = source;
    this.pic = pic;
}
banner[0] = new group("", "There's a difference between knowing the path and walking the path.", "Morpheus","The Matrix", "");
banner[1] = new group("", "Oliver, this is your life.  Right now.  It doesn't wait for you to get back on your feet.", "Ty Giordano, as Graham Martin", "A Lot Like Love", "");
banner[2] = new group("What would you do if you knew you couldn't fail?", "", "Unknown", "", "");
banner[3] = new group("", "In our youths, our hearts were touched with fire.", "Oliver Wendell Holmes, Jr.", "American Jurist and Civil War Veteran", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/holmes_ow_jr_100x127.jpg' alt='photo'/>");
banner[4] = new group("", "The secret of education is respecting the pupil.", "- Ralph Waldo Emerson", "American Essayist and Poet", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/emerson_80.jpg' alt='photo'/>");
banner[5] = new group("", "There is a tide in the affairs of men<br />Which, taken at the flood, leads on to fortune;<br />Omitted, all the voyage of their life<br />Is bound in shallows and in miseries.", "- William Shakespeare", "Julius Caesar, act 4, sc.2", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Shakespeare_William_120x131.jpg' alt='photo'/>");
banner[6] = new group("", "It is difficult to get a man to understand something when his salary depends upon his not understanding it.", "- Upton Sinclair", "", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/upton_sinclair_80x123.jpg' alt='photo'/>");
banner[7] = new group("", "You can never cross the ocean unless you have the courage to lose sight of the shore.", "- Christopher Columbus", "Italian Explorer", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/columbus_100x116.jpg' alt='photo'/>");
banner[8] = new group("Pluralitas non est ponenda sine necessitate.", "", "- William of Occam", "", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/occam_100x122.jpg' alt='photo'/>");
banner[9] = new group("", "Anyone can steer the ship when the sea is calm.", "- Publius Syrus", "Roman Author, 1st Century BC", "");
banner[10] = new group("Y = f(X)", "", "", "", "");
banner[11] = new group("Success is never final." ,"", "- Winston Churchill", "British Prime Minister during WW-II", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/churchill_winston_100x121.jpg' alt='photo'/>");
banner[12] = new group("The cheaper the crook, the gaudier the patter." ,"", "- Humphrey Bogart", "The Maltese Falcon", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/bogart_humphrey_100x100.jpg' alt='photo'/>");
banner[13] = new group("" ,"It is not the mountain we conquer, but ourselves.", "- Sir Edmund Hillary", "First man to reach the summit<br /> of Mt. Everest", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/hillary_edmund_100x100.jpg' alt='photo'/>");
banner[14] = new group("WARNING.  Due dates are closer than they appear." ,"", "", "", "");
banner[15] = new group("" ,"I think there's a world market for about five computers.", "- attrib. to Thomas J. Watson", "Chairman of IBM", "");
banner[16] = new group("" ,"Nothing in the world can take the place of persistence.  Talent will not; nothing is more common than unsuccessful men with talent.  Genius will not; unrewarded genius is almost a proverb.  Education alone will not; the world is full of educated derelicts.  Persistence and determination alone are omnipotent.", "- Calvin Coolidge", "30th U.S. President", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/coolidge_calvin_100x126.jpg' alt='photo'/>");
banner[17] = new group("" ,"He is the best sailor who can steer within the fewest points of the wind, and exact a motive power out of the greatest obstacles.", "Henry David Thoreau", "American Author and Philosopher", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/thoreau_80x122.jpg' alt='photo'/>");
banner[18] = new group("" ,"We do not stop playing because we are old; we grow old because we stop playing.", "- Unknown", "", "");
banner[19] = new group("" ,"Each problem that I solved became a rule which served afterwards to solve other problems.", "- Rene Descartes", "French Philosopher", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/descartes80x114.jpg' alt='photo'/>");
banner[20] = new group("" ,"I find the great thing in this world is not so much where we stand, as in what direction we are moving: to reach the port of heaven, we must sail sometimes with the wind and sometimes against it - but we must sail, and not drift, nor lie at anchor.", "- Oliver Wendell Holmes", "The Autocrat of the Breakfast Table", "");
banner[21] = new group("" ,"How far that little candle throws his beams!  So shines a good deed in a weary world.", "- William Shakespeare", "", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Shakespeare_William_120x131.jpg' alt='photo'/>");
banner[22] = new group("" ,"Facts do not cease to exist because they are ignored.", "- Aldous Huxley", "", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/huxley_80x107.jpg' alt='photo'/>");
banner[23] = new group("" ,"I never got around to it, OK?  I always thought there'd be plenty of time.", "- Matthew Broderick", "War Games", "");
banner[24] = new group("Too soon old, too late smart.","", "- Charleton Heston", "Will Penny", "");
banner[25] = new group("I don't know who discovered water, but I know it wasn't a fish.","", "- Marshall McLuhan", "", "");
banner[26] = new group("","Our doubts are traitors,<br />and make us lose the good<br />we oft might win,<br />by fearing to attempt.", "- William Shakespeare", "Measure for Measure<br />Act 1, scene 5", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Shakespeare_William_120x131.jpg' alt='photo'/>");
banner[27] = new group("","What lies behind us and what lies before us are small matters compared to what lies within us.", "- Ralph Waldo Emerson", "American Essayist and Poet", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/emerson_80.jpg' alt='photo'/>");
banner[28] = new group("I figured I had to stay.","", "- Gary Cooper", "High Noon", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Cooper_Gary_100x151.jpg' alt='photo'/>");
banner[29] = new group("", "The true measure of a man is how he treats someone who can do him absolutely no good.", "- Samuel Johnson", "English Author", "");
banner[30] = new group("", "It is not enough to have a good mind.  The main thing is to use it well.", "- Rene Descartes", "French Philosopher", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/descartes80x114.jpg' alt='photo'/>");
banner[31] = new group("", "You have to do your own growing, no matter how tall your grandfather was.", "- Irish Proverb", "", "");
banner[32] = new group("", "A liberally educated person meets new ideas with curiosity and fascination.  An illiberally educated person meets new ideas with fear.", "- Vice Admiral James B. Stockdale", "Medal of Honor Recipient", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Stockdale_James_100x143.jpg' alt='photo'/>");
banner[33] = new group("There's always free cheese in a mouse trap.","", "- Benicio del Toro", "The Way of the Gun", "");
banner[34] = new group("", "That was Wilson alright, Joey.  He was fast - fast on the draw.", "- Alan Ladd", "Shane", "");
banner[35] = new group("", "The test of a first-rate intelligence is the ability to hold two opposed ideas in the mind at the same time, and still retain the ability to function.", "- F. Scott Fitzgerald", "The Crack-Up", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Fitzgerald_FScott_100x125.jpg' alt='photo'/>");
banner[36] = new group("", "Fairy tales do not tell children that dragons exist.  Children already know dragons exist.  Fairy tales tell children that dragons can be killed.", "- G. K. Chesterton", "English Author", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Chesterton_GK_100x130.jpg' alt='photo'/>");
banner[37] = new group("", "The whole modern world has divided itself into Conservatives and Progressives. The business of Progressives is to go on making mistakes. The business of Conservatives is to prevent mistakes from being corrected.", "- G. K. Chesterton", "English Author<br />Illustrated London News, 1924", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Chesterton_GK_100x130.jpg' alt='photo'/>");
banner[38] = new group("", "There's something heartening in the notion that when faced with challenges, no animal, however small or ugly or overmatched, seems content to just throw in the towel.", "- Neil Genzlinger", "The New York Times", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Frog_Stork_160x192.jpg' alt='photo'/>");
banner[39] = new group("Boredom is a self-inflicted wound.", "", "- Kevin Latham", "", "");
banner[40] = new group("", "The law, in its majestic equality, forbids the rich as well as the poor to sleep under bridges, to beg in the streets, and to steal bread.", "- Anatole France", "French Novelist and<br />Nobel Laureate in Literature", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/France_Anatole_100x140.jpg' alt='photo'/>");
banner[41] = new group("", "Human history becomes more an more a race between education and catastrophe.", "- H.G. Wells", "British Author", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/Wells_HG_100x143.jpg' alt='photo'/>");
banner[42] = new group("In a closed system, entropy increases.", "", "- 2nd Law of Thermodynamics", "", "");
banner[43] = new group("", "It is not the same to speak of bulls as to stand in the ring.", "- Spanish Proverb", "", "<img src='http://sp.stmarysannapolis.org/highschool/klatham/BannerImages/BullCloseup_120x84.jpg' alt='photo'/>");

var min = 0;
var max = 43;
var j = min + Math.floor(Math.random() * (max - min + 1));;

function runHomePageScript() {
	document.getElementById("dateField").innerHTML = "Today is " + todayString + "<br />";
	document.getElementById("dateDifference").innerHTML = "There are " + diff + " days until St. Patrick's Day";
    document.getElementById("title").innerHTML = banner[j].title;
    document.getElementById("quote").innerHTML = banner[j].quote;
    document.getElementById("author").innerHTML = banner[j].author;
    document.getElementById("source").innerHTML = banner[j].source;
    document.getElementById("pic").innerHTML = banner[j].pic;
}
_spBodyOnLoadFunctionNames.push("runHomePageScript");




