// ************************************************************************************
// ** 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 = 30
var entryDate = new Array(varLength)
var entryContent = new Array(varLength)

entryDate[0] = "08/14/2009"
entryContent[0] = " The \"Read and Respond\" (blog commenting) assignments cannot be completed early, since you need to wait until people have had a chance to do their blog posts. The <strong>Week 1 \"Read and Respond\" assignment </strong>will be available on <strong>Friday, January 22</strong>- so please check back then! "

entryDate[1] = "01/22/2010"
entryContent[1] = " <p>The <strong>Week 1 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available today, Friday. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the <strong>Week 1 Introduction</strong> post AND the <strong>Week 1 Aesop's Fable </strong>posts of those two people = total of four comments, <strong>each comment a minimum of 60 words in length</strong>. <em>If the person is missing one of these blog posts</em>, see if they have the Storybook Favorites post, and comment on that. <em>If there is only one post to comment on</em>, leave an extra-long comment on the one post. <em>If the person has no posts</em>, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[2] = "01/26/2010"
entryContent[2] = " The <strong>Week 2 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Friday, after people have had a chance to complete their blog posts. Please check back then. "

entryDate[3] = "01/29/2010"
entryContent[3] = " <p>The <strong>Week 2 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 2 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[4] = "02/02/2010"
entryContent[4] = " The <strong>Week 3 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Friday, after people have had a chance to complete their blog posts. Please check back then. "

entryDate[5] = "02/05/2010"
entryContent[5] = " <p>The <strong>Week 3 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 3 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[6] = "02/09/2010"
entryContent[6] = " The <strong>Week 4 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Friday, after people have had a chance to complete their blog posts. Please check back then. "

entryDate[7] = "02/12/2010"
entryContent[7] = " <p>The <strong>Week 4 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 4 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[8] = "02/16/2010"
entryContent[8] = " The <strong>Week 5 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 5 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[9] = "02/19/2010"
entryContent[9] = " <p>The <strong>Week 5 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 5 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 5 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[10] = "02/23/2010"
entryContent[10] = " The <strong>Week 6 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 6 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[11] = "02/26/2010"
entryContent[11] = " <p>The <strong>Week 6 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 6 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 6 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[12] = "03/02/2010"
entryContent[12] = " The <strong>Week 7 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 7 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[13] = "03/05/2010"
entryContent[13] = " <p>The <strong>Week 7 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 7 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 7 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[14] = "03/09/2010"
entryContent[14] = " The <strong>Week 8 \"Read and Respond\" assignment </strong>will be available on THURSDAY (note special schedule because of OU-Texas Weekend). (Meanwhile, the Week 8 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[15] = "03/12/2010"
entryContent[15] = " <p>The <strong>Week 8 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 8 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 8 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[16] = "03/23/2010"
entryContent[16] = " The <strong>Week 9 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 9 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[17] = "03/26/2010"
entryContent[17] = " <p>The <strong>Week 9 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 9 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 9 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[18] = "03/30/2010"
entryContent[18] = " The <strong>Week 10 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 10 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[19] = "04/02/2010"
entryContent[19] = " <p>The <strong>Week 10 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now - and you have <font color=\"red\"><strong>NEW BLOG GROUPS</strong></font> this week. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 10 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p> In addition, if you have not completed the <strong>Week 10 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[20] = "04/06/2010"
entryContent[20] = " The <strong>Week 11 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 11 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment.) "

entryDate[21] = "04/09/2010"
entryContent[21] = " <p>The <strong>Week 11 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 11 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p> In addition, if you have not completed the <strong>Week 11 Internet assignment </strong>(commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[22] = "04/13/2010"
entryContent[22] = " The <strong>Week 12 \"Read and Respond\" assignment </strong>will be available on Friday, after people have had a chance to complete their blog posts. (Meanwhile, the Week 12 Internet assignment, commenting on people's Storybooks, IS available now if you want to get started on that assignment. Week 12 is the last week for Storybook comments!) "

entryDate[23] = "04/16/2010"
entryContent[23] = " <p>The <strong>Week 12 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 12 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p> <p>In addition, if you have not completed the <strong>Week 12 Internet assignment </strong>(the last time you will be commenting on people's Storybooks), make sure you complete that assignment on Friday or over the weekend.</p>"

entryDate[24] = "04/20/2010"
entryContent[24] = " The <strong>Week 13 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Friday, after people have had a chance to complete their blog posts. Please check back then. "

entryDate[25] = "04/23/2010"
entryContent[25] = " <p>The <strong>Week 13 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the Thanksgiving break. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 13 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[26] = "04/27/2010"
entryContent[26] = " The <strong>Week 14 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Friday, after people have had a chance to complete their blog posts. Please check back then. "

entryDate[27] = "04/30/2010"
entryContent[27] = " <p>The <strong>Week 14 \"Read and Respond\" assignment </strong>(commenting on people's blogs) is available starting now. You need to complete this assignment on Friday or over the weekend. You will be reading the blogs of TWO PEOPLE in your assigned blog group. </p> <p><strong>Four blog comments</strong>: You need to read the Week 14 Storytelling and Essay posts of those two people = total of four comments, <em>each comment a minimum of 60 words in length</em>. If they do not have these two particular blog posts available, respond to any two posts you can find in their blog that you have not read before. If you cannot find two posts to respond to in their blog, pick someone else at random from your class and respond to two of their blog posts.</p>"

entryDate[28] = "05/04/2010"
entryContent[28] = " The <strong>Week 15 \"Read and Respond\" assignment </strong>(commenting on people's blogs) will be available on Thursday, May 6. "

entryDate[29] = "05/06/2010"
entryContent[29] = " The <strong>Week 15 \"Read and Respond\" assignment </strong> is available starting now. There are not very many people posting in their blogs this week, so here is a different assignment - something easy and nice! <em><strong>Please just PROMISE that you will smile at two total strangers today as you are out and about in the world. </strong></em>That is all you need to do to complete the Declaration. "

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)
