<!--

// setup the arrays

function makePhotoArray(len) {
    for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

function makeQuoteArray(len) {
    for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

// initialize the  pictures and reference

fallpics = new makePhotoArray(9);
fallpics[0] = "graphics/fall01.jpg"
fallpics[1] = "graphics/fall02.jpg"
fallpics[2] = "graphics/fall03.jpg"
fallpics[3] = "graphics/fall04.jpg"
fallpics[4] = "graphics/fall05.jpg"
fallpics[5] = "graphics/fall06.jpg"
fallpics[6] = "graphics/fall07.jpg"
fallpics[7] = "graphics/fall08.jpg"
fallpics[8] = "graphics/fall09.jpg";

winterpics = new makePhotoArray(9);
winterpics[0] = "graphics/winter01.jpg"
winterpics[1] = "graphics/winter02.jpg"
winterpics[2] = "graphics/winter03.jpg"
winterpics[3] = "graphics/winter04.jpg"
winterpics[4] = "graphics/winter05.jpg"
winterpics[5] = "graphics/winter06.jpg"
winterpics[6] = "graphics/winter07.jpg"
winterpics[7] = "graphics/winter08.jpg"
winterpics[8] = "graphics/winter09.jpg";

springpics = new makePhotoArray(9);
springpics[0] = "graphics/spring01.jpg"
springpics[1] = "graphics/spring02.jpg"
springpics[2] = "graphics/spring03.jpg"
springpics[3] = "graphics/spring04.jpg"
springpics[4] = "graphics/spring05.jpg"
springpics[5] = "graphics/spring06.jpg"
springpics[6] = "graphics/spring07.jpg"
springpics[7] = "graphics/spring08.jpg"
springpics[8] = "graphics/spring09.jpg";

summerpics = new makePhotoArray(9);
summerpics[0] = "graphics/summer01.jpg"
summerpics[1] = "graphics/summer02.jpg"
summerpics[2] = "graphics/summer03.jpg"
summerpics[3] = "graphics/summer04.jpg"
summerpics[4] = "graphics/summer05.jpg"
summerpics[5] = "graphics/summer06.jpg"
summerpics[6] = "graphics/summer07.jpg"
summerpics[7] = "graphics/summer08.jpg"
summerpics[8] = "graphics/summer09.jpg";

// initialize the quotations

fallquote = new makeQuoteArray(9);
fallquote[0] = "&quot;The dews of the evening most carefully shun,--Those tears of the sky for the loss of the sun.&quot;  <i>Advice to a Lady in Autumn.</i><br>- Earl of Chesterfield (1694-1773)"
fallquote[1] = "&quot;It was one of those perfect English autumnal days which occur more frequently in memory than in life.&quot;<br>- P.D. James"
fallquote[2] = "&quot;Now it is autumn and the falling fruit and the long journey towards oblivion...&quot;  <i>The Ship of Death</i><br>- D.H. Lawrence (1885-1930)"
fallquote[3] = "&quot;And the starry night; Autumn evening and the morn, When the golden mists are born.&quot;<br>- Percy Bysshe Shelly (1792-1822)"
fallquote[4] = "&quot;I saw old Autumn in the misty morn, Stand shadowless like Silence, listening, To silence.&quot;<br>- Thomas Hood (1799-1845)"
fallquote[5] = "&quot;Autumn nodding o'er the yellow plain, Comes jovial on.&quot;  <i>Autumn</i><br>- James Thompson (1700-1748)"
fallquote[6] = "&quot;I stood within the City disinterred; And heard the autumnal leaves like light footfalls, Of spirits passing through the streets.&quot;  <i>Ode to Naples</i><br>- Percy Bysshe Shelly (1792-1822)"
fallquote[7] = "&quot;How well I know what I mean to do, When the long dark autumn-evenings come.&quot;  <i>By the Fireside</i><br>- Robert Browning (1812-1889)"
fallquote[8] = "&quot;O wild West Wind, thou breath of Autumn's being, Thou, from whose unseen presence the leaves dead are driven...&quot; <i>Ode to the West Wind</i><br>- Percy Bysshe Shelly (1792-1822)";

winterquote = new makeQuoteArray(9);
winterquote[0] = "&quot;In the depths of winter I finally learned there was in me an invincible summer.&quot;  <br>- Albert Camus (1913-1960)"
winterquote[1] = "&quot;Winter, the paragon of art, That kills all forms of life and feeling, Save what is pure and will survive.&quot; <i>Autumn.</i><br>- Roy Campbell"
winterquote[2] = "&quot;Winter kept us warm, covering Earth in a forgetful snow, feeding A little life with dried tubers.&quot; <i>The  Waste Land.</i><br>- T. S. Eliot (1888-1965)"
winterquote[3] = "&quot;If we had no winter, the spring would not be so pleasant: if we did not sometimes taste of adversity, prosperity would not be so welcome.&quot;<br>- Anne Bradstreet (1612-1672)"
winterquote[4] = "&quot;Now is the winter of our discontent<br>Made glorious summer by this sun of York...&quot; <i>Richard III.</i><br>- William Shakespeare (1564-1616)"
winterquote[5] = "&quot;His house is in the village though;<br>He will not see me stopping here,<br>To watch his woods fill up with snow.&quot; <i>Stopping by Woods on a Snowy Evening.</i><br>- Robert Frost (1874-1963)"
winterquote[6] = "&quot;Runs the troika with its dreary<br>Toneless jangling sleigh-bell on<br>Over dismal snow I'm weary,<br>Hungry, frozen to the bone.&quot; <i>Winter Road.</i><br>-  Alexander Pushkin (1799-1837)"
winterquote[7] = "&quot;Spring was good, and Summer better, But the best of all is waiting, Madame Winter--don't forget her.&quot; <i>Skating.</i><br>- e. e. cummings (1894-1962)"
winterquote[8] = "&quot;Spring was good, and Summer better, But the best of all is waiting, Madame Winter--don't forget her.&quot; <i>Skating.</i><br>- e. e. cummings (1894-1962)";

springquote = new makeQuoteArray(9);
springquote[0] = "&quot;April is the cruellest month, breeding Lilacs out of the dead land, mixing Memory out of desire, stirring Dull roots with spring rain.&quot;  <i>The Waste Land.</i><br>- T.S. Eliot (1888-1965)"
springquote[1] = "&quot;Italy, and the spring and first love all together should suffice to make the gloomiest person happy. &quot; <i></i><br>- Bertrand Russell "
springquote[2] = "&quot;Happiness is like a sunbeam, which the least shadow intercepts, while adversity is often as the rain of spring. &quot; <i></i><br>- Chinese Proverb "
springquote[3] = "&quot;If we had no winter, the spring would not be so pleasant; if we did not sometimes taste of adversity, prosperity would not be so welcome.&quot; <i></i><br>- Anne Dudley Bradstreet (1612-72)"
springquote[4] = "&quot;Long stormy spring-time, wet contentious April, winter chilling the lap of very May; but at length the season of summer does come.&quot; <i></i><br>- Thomas Carlyle (1795-1881)"
springquote[5] = "&quot;Those who contemplate the beauty of the earth find reserves of strength that will endure as long as life lasts.&quot; <i>Silent Spring.</i><br>- Rachel Louise Carson (1907-64)"
springquote[6] = "&quot;To be interested in the changing seasons is a happier state of mind than to be hopelessly in love with spring. &quot; <i></i><br>- George Santayana (1863-1952) "
springquote[7] = "&quot;Measure your health by your sympathy with morning and Spring.&quot; <i></i><br>- Henry David Thoreau"
springquote[8] = "&quot;Measure your health by your sympathy with morning and Spring.&quot; <i></i><br>- Henry David Thoreau";

summerquote = new makeQuoteArray(9);
summerquote[0] = "&quot;The dews of summer nights did fall, The moon, sweet regent of the sky, Silvered the walls of Cumnor Hall, And many an oak that grew thereby. &quot;  <i>Cumnor Hall.</i><br>- W. J. Mickle (1734-1788)"
summerquote[1] = "&quot;This dead of midnight is the noon of thought, And Wisdom mounts her zenith with the stars.&quot; <i>A Summer's Evening Meditation.</i><br>- Mrs. Barbauld (1743-1825)"
summerquote[2] = "&quot;'T is now the summer of your youth. Time has not cropt the roses from your cheek, though sorrow long has washed them.&quot; <i>The Gamester.</i><br>- Edward Moore (1712-1757)"
summerquote[3] = "&quot;A pleasing land of drowsyhed it was, Of dreams that wave before the half-shut eye, And of gay castles in the clouds that pass, Forever flushing round a summer sky.&quot; <i>The Castle of Indolence.</i><br>- James Thomson (1700-1748)"
summerquote[4] = "&quot;Thou who didst waken from his summer dreams,  The blue Mediterranean, where he lay, Lulld by the coil of his crystalline streams Beside a pumice isle in Baiæ's bay.&quot; <i>Ode to the West Wind.</i><br>- Percy Bysshe Shelley (1792-1822)"
summerquote[5] = "&quot;This many summers in a sea of glory,  But far beyond my depth: my high-blown pride, At length broke under me and now has left me.&quot; <i>King Henry VIII.</i><br>- William Shakespeare"
summerquote[6] = "&quot;This bud of love, by summer's ripening breath, May prove a beauteous flower when next we meet. &quot; <i>Romeo and Juliet.</i><br>- William Shakespeare"
summerquote[7] = "&quot;A summer's day - and with the setting sun Dropp'd from the Zenith like a falling star.&quot; <i>Paradise Lost.</i><br>- John Milton (1608-1674)"
summerquote[8] = "&quot;A summer's day - and with the setting sun Dropp'd from the Zenith like a falling star.&quot; <i>Paradise Lost.</i><br>- John Milton (1608-1674)";

// The random number generator.

function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
}
        
var now = new Date()
var seed = now.getTime() % 0xffffffff

// actual statement

var fall=fallquote[rand(fallquote.length)];
var winter=winterquote[rand(winterquote.length)];
var spring=springquote[rand(springquote.length)];
var summer=summerquote[rand(summerquote.length)];

var fallimage="<IMG SRC="+fallpics[rand(fallpics.length)]+" HEIGHT=160 WIDTH=115 BORDER=0>";
var winterimage="<IMG SRC="+winterpics[rand(winterpics.length)]+" HEIGHT=160 WIDTH=115 BORDER=0>";
var springimage="<IMG SRC="+springpics[rand(springpics.length)]+" HEIGHT=160 WIDTH=115 BORDER=0>";
var summerimage="<IMG SRC="+summerpics[rand(summerpics.length)]+" HEIGHT=160 WIDTH=115 BORDER=0>";

// Find out what season it is from JS in head of home.html and pick appropriate quote to return

var seasonquote;

if (season=="fall")
	seasonquote=fall;
else if (season=="winter")
	seasonquote=winter;
else if (season=="spring")
	seasonquote=spring;
else 
	seasonquote=summer;

// Find out what season it is from JS in head of home.html and pick appropriate image to return
	
var seasonimage;
var seasontitle;
var seasonicon;

if (season=="fall")
	{ seasontitle="Fall";
	seasonimage=fallimage;
	seasonicon="icn-fall01.gif"; }
else if (season=="winter")
	{ seasontitle="Winter";
	seasonimage=winterimage; 
	seasonicon="icn-winter01.gif"; }
else if (season=="spring")
	{ seasontitle="Spring";
	seasonimage=springimage;
	seasonicon="icn-spring01.gif"; }
else if (season=="summer")
	{ seasontitle="Summer";
	seasonimage=summerimage;
	seasonicon="icn-summer01.gif"; }
else 
	seasontitle="Season";

// Change season label text to Title Case

if (isnMonths[today.getMonth()+1]=="December" && today.getDate()=="25")
	{ seasonimage = "<IMG SRC="+"graphics/holiday01.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol01.gif";
	seasonquote = "&quot;The stockings were hung by the chimney with care, In hopes that St. Nicholas soon would be there...&quot; <i>'Twas the Night Before Christmas.</i><br>- Clement Clarke Moore  ( 1779-1863 )"; }
else if (isnMonths[today.getMonth()+1]=="December" && today.getDate()=="24")
	{ seasonimage = "<IMG SRC="+"graphics/holiday01.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol01.gif";
	seasonquote = "&quot;The stockings were hung by the chimney with care, In hopes that St. Nicholas soon would be there...&quot; <i>'Twas the Night Before Christmas.</i><br>- Clement Clarke Moore  ( 1779-1863 )"; }
else if (isnMonths[today.getMonth()+1]=="November" && (today.getDate()=="10" |  today.getDate()=="11"))
	{ seasonimage = "<IMG SRC="+"graphics/holiday02.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonquote = "&quot;Short days ago; We lived, felt dawn, saw sunset glow; Loved, and were loved, and now we lie; In Flanders fields.&quot; <i>In Flanders Fields.</i><br>- John McCrae (1872-1918)";
	seasonicon = "icn-hol03.gif"; }
else if (isnMonths[today.getMonth()+1]=="October" && today.getDate()=="30")
	{ seasonimage = "<IMG SRC="+"graphics/holiday03-2.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol03-2.gif"; }
else if (isnMonths[today.getMonth()+1]=="October" && today.getDate()=="31")
	{ seasonimage = "<IMG SRC="+"graphics/holiday03.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonquote = "&quot;Deep into the darkness peering, long I stood there wondering fearing. Doubting, dreaming dreams no mortal ever dared to  dream before...&quot; <i>The Raven.</i><br>- Edgar Allan Poe (1809-1849)";
	seasonicon = "icn-hol03-2.gif"; }
else if (isnMonths[today.getMonth()+1]=="February" && today.getDate()=="14")
	{ seasonimage = "<IMG SRC="+"graphics/holiday04.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol04.gif";
	seasonquote = "&quot;Oh, my luve 's like a red, red rose, That's newly sprung in June; Oh, my luve 's like the melodie, That 's sweetly played in tune. &quot; <i>A Red, Red Rose.</i><br>- Robert Burns (1759-1796)"; }
else if (isnMonths[today.getMonth()+1]=="March" && today.getDate()=="15")
	{ seasonimage = "<IMG SRC="+"graphics/holiday05.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol05.gif";
	seasonquote = "&quot;C&aelig;sar: What sayst thou to me now? Speak once againe. <br>Soothsayer:  Beware the Ides of March.&quot;<br><i>Julius C&aelig;sar.</i><br>- William Shakespeare (1564-1616)"; }
else if (isnMonths[today.getMonth()+1]=="March" && today.getDate()=="17")
	{ seasonimage = "<IMG SRC="+"graphics/holiday06.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol06.gif";
	seasonquote = "&quot;When Irish eyes are smiling, sure it's like a morn in spring. In the lilt of Irish laughter, you can hear the angels sing.&quot;<br><i>When Irish Eyes Are Smiling</i><br>- Chauncey Olcott and Geore Graff, Jr."; }
else if (isnMonths[today.getMonth()+1]=="January" &&  today.getDate()=="25")
	{ seasonimage = "<IMG SRC="+"graphics/holiday08.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonquote = "&quot;The birth place of Valour, the country of Worth; Wherever I wander, wherever I rove,; The hills of the Highlands for ever I love.&quot; <i>My Heart's In The Highlands.</i><br>- Robert Burns (1759-1796)"; }
else if (isnMonths[today.getMonth()+1]=="May" && today.getDate()=="24")
	{ seasonimage = "<IMG SRC="+"graphics/holiday07.jpg"+" HEIGHT=160 WIDTH=115 BORDER=0>";
	seasonicon = "icn-hol07.gif";
	seasonquote = "&quot;We are not interested in the possibilities of defeat; they do not exist.&quot;<br>- Queen Victoria (1819-1901)"; }
else
	seasonimage = seasonimage;


//-->
