// ************************************************************************************
// ** This file has been created with the Rotating Content Tool by Randy Hoyt.       **
// ** For more information, visit us on the web:                                     **
// **                                                                                **
// **     Rotating Content Tool   -- http://www.rotatecontent.com/                   **
// **     Author: Randy Hoyt      -- http://www.randyhoyt.com/                       **
// ************************************************************************************

today = new Date()
month = today.getMonth() + 1
year = today.getFullYear()

selectedDate = new Date("01/01/1900")
selectedContent = ""

varLength = 31
var entryDate = new Array(varLength)
var entryContent = new Array(varLength)

entryDate[0] = "  " + month + "/01/" + year
entryContent[0] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing wander? Then remember to <strong>speak your truth</strong>. </p> <p class=\"style5\">1. Look at some photographs.<br> 2. Think about what you believe is true about people or the world.<br> 3. Explain your truth&mdash;map it out with an idea organizer.<br> 4. Write a kernel sentence for each idea in your idea organizer. </p> <p class=\"style5\">For more on this tip, see pages 218&ndash;225 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[1] = "    " + month + "/02/" + year
entryContent[1] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Do you run out of things to say? Then remember to <strong>get into an argument</strong>. </p> <p class=\"style5\">1. Imagine that someone is challenging you to prove your ideas.<br> 2. Reveal your sources to prove your ideas.<br> 3. Figure out where to add details. </p> <p class=\"style5\">For more on this tip, see pages 226&ndash;231 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[2] = "    " + month + "/03/" + year
entryContent[2] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Do you run out of things to say? Then remember to add a <strong>Ba-Da-Bing</strong>. A Ba-Da-Bing answers these questions about an event:</p> <p class=\"style5\">1. Where were you? What physically were you doing?<br> 2. What, exactly, were you seeing?<br> 3. What words went through your head as it was happening? </p> <p class=\"style5\">For more on this tip, see pages 232&ndash;233 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[3] = "    " + month + "/04/" + year
entryContent[3] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing bumpy or disconnected? Then remember to <strong>add transitions</strong>.</p> <p class=\"style5\">1. Choose the right transitions between sentences.<br> 2. Repeat key words.<br> 3. Connect your paragraphs. </p> <p class=\"style5\">For more on this tip, see pages 234&ndash;239 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[4] = "    " + month + "/05/" + year
entryContent[4] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing, um, boring? Then remember to use the <strong>Intensity Scale</strong>.</p> <p class=\"style5\">1. Create a scale with the most boring, general, vague word on the left. Then add more precise words to the right until you get to the most specific word or phrase you can.<br> 2. Replace general words and vague details in your writing with words and phrases from the right side of the Intensity Scale. </p> <p class=\"style5\">For more on this tip, see pages 240&ndash;243 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[5] = "    " + month + "/06/" + year
entryContent[5] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too vague? Then remember to add <strong>snapshots</strong> and <strong>thoughtshots</strong>.</p> <p class=\"style5\">1. Pick one moment from your writing and visualize it. What do you see, hear, smell, and taste? Write down every detail.<br> 2. Revisit this moment, but this time, write down everything you thought about at that moment. </p> <p class=\"style5\">For more on this tip, see pages 244&ndash;245 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[6] = "    " + month + "/07/" + year
entryContent[6] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too vague? Then remember to use a <strong>target diagram</strong> to write in layers.</p> <p class=\"style5\">1. In the center of the target, write a memory.<br> 2. In the next circle, write details about that memory.<br> 3. In the next circle, write your feelings.<br> 4. In the outer circle, write the life lesson that is dawning on you. </p> <p class=\"style5\">For more on this tip, see pages 246&ndash;247 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[7] = "    " + month + "/08/" + year
entryContent[7] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing sound like a list? Then remember to <strong>add meat to the bones</strong>.</p> <p class=\"style5\">1. Use dialogue.<br> 2. Use sensory details&mdash;help your reader feel like he or she is there.<br> 3. Use snapshots&mdash;give a complete description of the scene.<br> 4. Use thoughtshots&mdash;tell what the narrator or the characters are thinking. </p> <p class=\"style5\">For more on this tip, see pages 248&ndash;251 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[8] = "    " + month + "/09/" + year
entryContent[8] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing sound like a list? Then remember to <strong>zero in on the moment</strong>. First, choose the most important moment in your writing, and then try index-card narrowing.</p> <p class=\"style5\">1. Summarize the story on index cards&mdash;one sentence per card.<br> 2. Choose the best card.<br> 3. Collapse the cards that fall before and after the best card.<br> 4. Zero in on the best card. </p> <p class=\"style5\">For more on this tip, see pages 252&ndash;253 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[9] = "    " + month + "/10/" + year
entryContent[9] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too wordy? Then remember these strategies. </p> <p class=\"style5\">1. <strong>Take out throwaway writing</strong>. Identify useless phrases that announce the writer&rsquo;s intention, e.g., &ldquo;Now I will tell you about....&rdquo;<br> 2. <strong>Use fewer words</strong>. Don&rsquo;t say the same thing again, and take out extra words that clutter up your writing. </p> <p class=\"style5\">For more on this tip, see pages 254&ndash;259 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[10] = "    " + month + "/11/" + year
entryContent[10] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then vary them! Follow this recipe.</p> <p class=\"style5\">1. Prepare some longer sentences.<br> 2. Mix with some shorter sentences.<br> 3. For extra crunchiness, add a fragment or two. </p> <p class=\"style5\">For more on this tip, see pages 260&ndash;263 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[11] = "    " + month + "/12/" + year
entryContent[11] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then spice up your verbs, and pepper your writing with prepositional phrases.</p> <p class=\"style5\">1. <strong>Use action verbs</strong>, especially spicy ones. Instead of &ldquo;eats,&rdquo; try &ldquo;munches&rdquo; or &ldquo;gulps&rdquo; or &ldquo;devours.&rdquo;<br> 2. <strong>Add prepositional phrases</strong> to give juicy details&mdash; who, what, when, where, and how. </p> <p class=\"style5\">For more on this tip, see pages 264&ndash;265 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[12] = "    " + month + "/13/" + year
entryContent[12] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>add adjectives and adverbs</strong>&mdash;in different places.</p> <p class=\"style5\">1. Add adjectives before a noun, after a noun, at the beginning of a sentence, and at the end of a sentence.<br> 2. Add adverbs after a verb, before the verb at the beginning of a sentence, or all the way at the end of a sentence. </p> <p class=\"style5\">For more on this tip, see pages 266&ndash;267 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[13] = "    " + month + "/14/" + year
entryContent[13] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>elaborate with participles</strong>.</p> <p class=\"style5\">1. Ask an interesting question about a noun.<br> 2. Answer with a participle or participial phrase.</p> <p class=\"style5\">For more on this tip, see pages 268&ndash;269 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[14] = "    " + month + "/15/" + year
entryContent[14] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>elaborate with clauses</strong>.</p> <p class=\"style5\">1. Add an adjective clause to tell about a person, place, or thing.<br> 2. Add an adverb clause to tell when and why.</p> <p class=\"style5\">For more on this tip, see pages 270&ndash;271 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[15] = "    " + month + "/16/" + year
entryContent[15] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>elaborate with absolutes</strong>.</p> <p class=\"style5\">1. Combine sentences to create an absolute.<br> 2. Or add an absolute to create a long, full-bodied sentence at the beginning, the middle, or at the end of a sentence. </p> <p class=\"style5\"> For more on this tip, see pages 272&ndash;273 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[16] = "    " + month + "/17/" + year
entryContent[16] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing wander? Then remember to <strong>speak your truth</strong>. </p> <p class=\"style5\">1. Look at some photographs.<br> 2. Think about what you believe is true about people or the world.<br> 3. Explain your truth&mdash;map it out with an idea organizer.<br> 4. Write a kernel sentence for each idea in your idea organizer. </p> <p class=\"style5\">For more on this tip, see pages 218&ndash;225 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[17] = "    " + month + "/18/" + year
entryContent[17] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Do you run out of things to say? Then remember to <strong>get into an argument</strong>. </p> <p class=\"style5\">1. Imagine that someone is challenging you to prove your ideas.<br> 2. Reveal your sources to prove your ideas.<br> 3. Figure out where to add details. </p> <p class=\"style5\">For more on this tip, see pages 226&ndash;231 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[18] = "    " + month + "/19/" + year
entryContent[18] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Do you run out of things to say? Then remember to add a <strong>Ba-Da-Bing</strong>. A Ba-Da-Bing answers these questions about an event:</p> <p class=\"style5\">1. Where were you? What physically were you doing?<br> 2. What, exactly, were you seeing?<br> 3. What words went through your head as it was happening? </p> <p class=\"style5\">For more on this tip, see pages 232&ndash;233 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[19] = "    " + month + "/20/" + year
entryContent[19] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing bumpy or disconnected? Then remember to <strong>add transitions</strong>.</p> <p class=\"style5\">1. Choose the right transitions between sentences.<br> 2. Repeat key words.<br> 3. Connect your paragraphs. </p> <p class=\"style5\">For more on this tip, see pages 234&ndash;239 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[20] = "    " + month + "/21/" + year
entryContent[20] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing, um, boring? Then remember to use the <strong>Intensity Scale</strong>.</p> <p class=\"style5\">1. Create a scale with the most boring, general, vague word on the left. Then add more precise words to the right until you get to the most specific word or phrase you can.<br> 2. Replace general words and vague details in your writing with words and phrases from the right side of the Intensity Scale. </p> <p class=\"style5\">For more on this tip, see pages 240&ndash;243 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[21] = "    " + month + "/22/" + year
entryContent[21] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too vague? Then remember to add <strong>snapshots</strong> and <strong>thoughtshots</strong>.</p> <p class=\"style5\">1. Pick one moment from your writing and visualize it. What do you see, hear, smell, and taste? Write down every detail.<br> 2. Revisit this moment, but this time, write down everything you thought about at that moment. </p> <p class=\"style5\">For more on this tip, see pages 244&ndash;245 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[22] = "    " + month + "/23/" + year
entryContent[22] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too vague? Then remember to use a <strong>target diagram</strong> to write in layers.</p> <p class=\"style5\">1. In the center of the target, write a memory.<br> 2. In the next circle, write details about that memory.<br> 3. In the next circle, write your feelings.<br> 4. In the outer circle, write the life lesson that is dawning on you. </p> <p class=\"style5\">For more on this tip, see pages 246&ndash;247 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[23] = "    " + month + "/24/" + year
entryContent[23] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing sound like a list? Then remember to <strong>add meat to the bones</strong>.</p> <p class=\"style5\">1. Use dialogue.<br> 2. Use sensory details&mdash;help your reader feel like he or she is there.<br> 3. Use snapshots&mdash;give a complete description of the scene.<br> 4. Use thoughtshots&mdash;tell what the narrator or the characters are thinking. </p> <p class=\"style5\">For more on this tip, see pages 248&ndash;251 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[24] = "    " + month + "/25/" + year
entryContent[24] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Does your writing sound like a list? Then remember to <strong>zero in on the moment</strong>. First, choose the most important moment in your writing, and then try index-card narrowing.</p> <p class=\"style5\">1. Summarize the story on index cards&mdash;one sentence per card.<br> 2. Choose the best card.<br> 3. Collapse the cards that fall before and after the best card.<br> 4. Zero in on the best card. </p> <p class=\"style5\">For more on this tip, see pages 252&ndash;253 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[25] = "    " + month + "/26/" + year
entryContent[25] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Is your writing too wordy? Then remember these strategies. </p> <p class=\"style5\">1. <strong>Take out throwaway writing</strong>. Identify useless phrases that announce the writer&rsquo;s intention, e.g., &ldquo;Now I will tell you about....&rdquo;<br> 2. <strong>Use fewer words</strong>. Don&rsquo;t say the same thing again, and take out extra words that clutter up your writing. </p> <p class=\"style5\">For more on this tip, see pages 254&ndash;259 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[26] = "    " + month + "/27/" + year
entryContent[26] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then vary them! Follow this recipe.</p> <p class=\"style5\">1. Prepare some longer sentences.<br> 2. Mix with some shorter sentences.<br> 3. For extra crunchiness, add a fragment or two. </p> <p class=\"style5\">For more on this tip, see pages 260&ndash;263 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[27] = "    " + month + "/28/" + year
entryContent[27] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then spice up your verbs, and pepper your writing with prepositional phrases.</p> <p class=\"style5\">1. <strong>Use action verbs</strong>, especially spicy ones. Instead of &ldquo;eats,&rdquo; try &ldquo;munches&rdquo; or &ldquo;gulps&rdquo; or &ldquo;devours.&rdquo;<br> 2. <strong>Add prepositional phrases</strong> to give juicy details&mdash; who, what, when, where, and how. </p> <p class=\"style5\">For more on this tip, see pages 264&ndash;265 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[28] = "    " + month + "/29/" + year
entryContent[28] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>add adjectives and adverbs</strong>&mdash;in different places.</p> <p class=\"style5\">1. Add adjectives before a noun, after a noun, at the beginning of a sentence, and at the end of a sentence.<br> 2. Add adverbs after a verb, before the verb at the beginning of a sentence, or all the way at the end of a sentence. </p> <p class=\"style5\">For more on this tip, see pages 266&ndash;267 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[29] = "    " + month + "/30/" + year
entryContent[29] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>elaborate with participles</strong>.</p> <p class=\"style5\">1. Ask an interesting question about a noun.<br> 2. Answer with a participle or participial phrase. </p> <p class=\"style5\">For more on this tip, see pages 268&ndash;269 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

entryDate[30] = "    " + month + "/31/" + year
entryContent[30] = " <p class=\"style5\"><strong>TIP OF THE DAY</strong><br>Are your sentences boring? Then <strong>elaborate with clauses</strong>.</p> <p class=\"style5\">1. Add an adjective clause to tell about a person, place, or thing.<br> 2. Add an adverb clause to tell when and why. </p> <p class=\"style5\">For more on this tip, see pages 270&ndash;271 in your <strong>Good Writer&rsquo;s Guide</strong>.</p>"

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)