// ************************************************************************************
// ** 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/01/" + year
entryContent[0] = " Write without pay until somebody offers to pay.&ndash;Mark Twain"

entryDate[1] = "  01/08/" + year
entryContent[1] = "I love talking about nothing. It is the only thing I know anything about.&ndash;Oscar Wilde"

entryDate[2] = "  01/15/" + year
entryContent[2] = "Writing is an exploration. You start from nothing and learn as you go.&ndash;E. L. Doctorow"

entryDate[3] = "  01/22/" + year
entryContent[3] = " I write down everything I want to remember. That way, instead of spending a lot of time trying to remember what it is I wrote down, I spend the time looking for the paper I wrote it down on.&ndash;Beryl Pfizer"

entryDate[4] = "  01/29/" + year
entryContent[4] = "What a lot we lost when we stopped writing letters. You can't reread a phone call.&ndash;Liz Carpenter"

entryDate[5] = "  02/05/" + year
entryContent[5] = "Writing a book is an adventure. To begin with, it is a toy and an amusement; then it becomes a mistress, and then it becomes a master, and then a tyrant. The last phase is that just as you are about to be reconciled to your servitude, you kill the monster, and fling him out to the public.&ndash;Winston Churchill"

entryDate[6] = "  02/12/" + year
entryContent[6] = "Writing is thinking on paper.&ndash;William Zinsser"

entryDate[7] = "  02/19/" + year
entryContent[7] = "The important thing in writing is the capacity to astonish. Not shock - shock is a worn-out word - but astonish.&ndash;Octavia Butler"

entryDate[8] = "  02/26/" + year
entryContent[8] = "The important thing in writing is the capacity to astonish. Not shock - shock is a worn-out word - but astonish.&ndash;Terry Southern"

entryDate[9] = "  03/05/" + year
entryContent[9] = "Writing only leads to more writing.&ndash;Sidonie Gabrielle"

entryDate[10] = "  03/12/" + year
entryContent[10] = "One writes to make a home for oneself, on paper, in time and in others' minds.&ndash;Alfred Kazin"

entryDate[11] = "  03/19/" + year
entryContent[11] = "Don't get it right, just get it written.&ndash;James Thurber"

entryDate[12] = "  03/26/" + year
entryContent[12] = "The act of writing requires a constant plunging back into the shadow of the past where time hovers ghostlike.&ndash;Ralph Ellison"

entryDate[13] = "  04/02/" + year
entryContent[13] = " Writing is the hardest way of earning a living, with the possible exception of wrestling alligators.&ndash;Olin Miller"

entryDate[14] = "  04/09/" + year
entryContent[14] = "You must stay drunk on writing so reality cannot destroy you.&ndash;Ray Bradbury"

entryDate[15] = "  04/16/" + year
entryContent[15] = "There's nothing to writing. All you do is sit down at a typewriter and open a vein.&ndash;Walter Wellesley Smith"

entryDate[16] = "  04/23/" + year
entryContent[16] = "All of us learn to write in the second grade. Most of us go on to greater things.&ndash;Bobby Knight"

entryDate[17] = "  04/30/" + year
entryContent[17] = "Writing gives you the illusion of control, and then you realize it's just an illusion, that people are going to bring their own stuff into it.&ndash;David Sedaris"

entryDate[18] = "  05/07/" + year
entryContent[18] = "The best way to become acquainted with a subject is to write a book about it.&ndash;Benjamin Disraeli"

entryDate[19] = "  05/14/" + year
entryContent[19] = "I must write it all out, at any cost. Writing is thinking. It is more than living, for it is being conscious of living.&ndash;Anne Morrow Lindberg"

entryDate[20] = "  05/21/" + year
entryContent[20] = "So often is the virgin sheet of paper more real than what one has to say, and so often one regrets having marred it.&ndash;Harold Acton"

entryDate[21] = "  05/28/" + year
entryContent[21] = "Substitute &quot;damn&quot; every time you're inclined to write &quot;very;&quot; your editor will delete it and the writing will be just as it should be.&ndash;Mark Twain"

entryDate[22] = "  06/04/" + year
entryContent[22] = "Writing became such a process of discovery that I couldn't wait to get to work in the morning: I wanted to know what I was going to say.&ndash;Sharon O'Brien"

entryDate[23] = "  06/11/" + year
entryContent[23] = "It is necessary to write, if the days are not to slip emptily by. How else, indeed, to clap the net over the butterfly of the moment? For the moment passes, it is forgotten; the mood is gone; life itself is gone. That is where the writer scores over his fellows: he catches the changes of his mind on the hop.&ndash;Vita Sackville-West"

entryDate[24] = "  06/18/" + year
entryContent[24] = "The act of putting pen to paper encourages pause for thought, this in turn makes us think more deeply about life, which helps us regain our equilibrium.&ndash;Norbet Platt "

entryDate[25] = "  06/25/" + year
entryContent[25] = "What I like in a good author is not what he says, but what he whispers.&ndash;Logan Pearsall Smith"

entryDate[26] = "  07/02/" + year
entryContent[26] = "If there's a book you really want to read, but it hasn't been written yet, then you must write it.&ndash;Toni Morrison"

entryDate[27] = "  07/09/" + year
entryContent[27] = "I try to leave out the parts that people skip.&ndash;Elmore Leonard"

entryDate[28] = "  07/16/" + year
entryContent[28] = "The worst enemy to creativity is self-doubt.&ndash;Sylvia Plath "

entryDate[29] = "  07/23/" + year
entryContent[29] = "A word is not the same with one writer as with another. One tears it from his guts. The other pulls it out of his overcoat pocket.&ndash;Charles Peguy"

entryDate[30] = "  07/30/" + year
entryContent[30] = "The role of a writer is not to say what we all can say, but what we are unable to say.&ndash;Ana&iuml;s Nin<br> Writing is a socially acceptable form of schizophrenia.&ndash;E.L. Doctorow"

entryDate[31] = "  08/06/" + year
entryContent[31] = "The wastebasket is a writer's best friend.&ndash;Isaac Bashevis Singer"

entryDate[32] = "  08/13/" + year
entryContent[32] = "Fill your paper with the breathings of your heart.&ndash;William Wordsworth"

entryDate[33] = "  08/20/" + year
entryContent[33] = "The pages are still blank, but there is a miraculous feeling of the words being there, written in invisible ink and clamoring to become visible.&ndash;Vladimir Nabakov"

entryDate[34] = "  08/27/" + year
entryContent[34] = "Don't tell me the moon is shining; show me the glint of light on broken glass.&ndash;Anton Chekhov"

entryDate[35] = "  09/03/" + year
entryContent[35] = "Easy reading is damn hard writing.&ndash;Nathaniel Hawthorne"

entryDate[36] = "  09/10/" + year
entryContent[36] = " Ink and paper are sometimes passionate lovers, oftentimes brother and sister, and occasionally mortal enemies.&ndash;Emme Woodhull-B&auml;che"

entryDate[37] = "  09/17/" + year
entryContent[37] = "The story I am writing exists, written in absolutely perfect fashion, some place, in the air. All I must do is find it, and copy it.&ndash;Jules Renard"

entryDate[38] = "  09/24/" + year
entryContent[38] = "The difference between the right word and the almost right word is the difference between lightning and a lightning bug.&ndash;Mark Twain"

entryDate[39] = "  10/01/" + year
entryContent[39] = " Proofread carefully to see if you any words out.&ndash;Author Unknown"

entryDate[40] = "  10/08/" + year
entryContent[40] = "When once the itch of literature comes over a man, nothing can cure it but the scratching of a pen. But if you have not a pen, I suppose you must scratch any way you can.&ndash;Samuel Lover "

entryDate[41] = "  10/15/" + year
entryContent[41] = "I love being a writer. What I can't stand is the paperwork.&ndash;Peter De Vries"

entryDate[42] = "  10/22/" + year
entryContent[42] = "To me, the greatest pleasure of writing is not what it's about, but the inner music the words make.&ndash;Truman Capote"

entryDate[43] = "  10/29/" + year
entryContent[43] = "Be yourself. Above all, let who you are, what you are, what you believe, shine through every sentence you write, every piece you finish.&ndash;John Jakes"

entryDate[44] = "  11/05/" + year
entryContent[44] = "Write to be understood, speak to be heard, read to grow...&ndash;Lawrence Clark Powell"

entryDate[45] = "  11/12/" + year
entryContent[45] = "What I want and what I fear.&ndash;Joan Didion"

entryDate[46] = "  11/19/" + year
entryContent[46] = "I put all my genius into my life; I put only my talent into my works.&ndash;Oscar Wilde"

entryDate[47] = "  11/26/" + year
entryContent[47] = "I write entirely to find out what I'm thinking, what I'm looking at, what I see and what it means. What I want and what I fear.&ndash;Joan Didion"

entryDate[48] = "  12/03/" + year
entryContent[48] = "I lived to write, and wrote to live.&ndash;Samuel Rogers"

entryDate[49] = "  12/10/" + year
entryContent[49] = "Writing is making sense of life. You work your whole life and perhaps you've made sense of one small area.&ndash;Nadine Gordimer"

entryDate[50] = "  12/17/" + year
entryContent[50] = "Most of us can read the writing on the wall; we just assume it's addressed to someone else.&ndash;Ivern Ball"

entryDate[51] = "  12/24/" + year
entryContent[51] = "The difficulty of literature is not to write, but to write what you mean.&ndash;Robert Louis Stevenson"

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)