// Specify poem.
var line  = new Array()
line[1]   = "e e cummings"
line[2]   = "  "
line[3]   = "i carry your heart with me(i carry it in my heart)"
line[4]   = "  "
line[5]   = "i carry your heart with me(i carry it in"
line[6]   = "my heart)i am never without it(anywhere"
line[7]   = "i go you go my dear;and whatever is done"
line[8]   = "by only me is your doing,my darling)"
line[9]   = "i fear"
line[10]  = "no fate(for you are my fate,my sweet)i want"
line[11]  = "no world(for beautiful you are my world,my true)"
line[12]  = "and it's you are whatever a moon has always meant"
line[13]  = "and whatever a sun will always sing is you"
line[14]  = "here is the deepest secret nobody knows"
line[15]  = "(here is the root of the root and the bud of the bud"
line[16]  = "and the sky of the sky of a tree called life;which grows"
line[17]  = "higher than soul can hope or mind can hide)"
line[18]  = "and this is the wonder that's keeping the stars apart"
line[19]  = "i carry your heart(i carry it in my heart)"

// Specify pause before restarting poem.
line[20]  = "  "
line[21]  = "  "
line[22]  = "  "
line[23]  = "  "
line[24]  = "  "

// Specify form with banner control for Netscape(s) and MSIE.
var okWithStyle   = 1
if (navigator.appName == "Netscape") {
    if (parseFloat(navigator.appVersion) < 5) {
        okWithStyle    =  0
    }
}
var html          = '<FORM  NAME="bannerForm">'
    html         += '<INPUT TYPE="text" NAME="banner" SIZE="56"'
if (okWithStyle) {
    html         += '       STYLE="border: none;'
    html         += '              font-family: verdana;'
    html         += '              font-size: 14px;'
    html         += '              font-weight: bold"'
}
    html         += '></FORM>'
document.write(html);

// Specify work variables.
var newChar       = -1
var newLine       =  1
var show          = ""

// Specify display of next line of poem, or restart of poem.
function nextLine() {
   if (show == line[newLine] & show.length == line[newLine].length) {
      if (newLine != line.length - 1) {
          newLine ++
      }
      else {
          newLine  = 1
      }
      newChar                          = -1
      document.bannerForm.banner.value = show
      show                             = ""
      setTimeout("nextChar()",500)
   }
   else {
      nextChar()
   }
}

// Specify display of next character of current line of poem.
function nextChar() {
   newChar                            ++
   show                               += line[newLine].charAt(newChar)
   document.bannerForm.banner.value    = show
   setTimeout("nextLine()",100)
}

// Animate.
window.onload = nextLine

// Laurence - LP&A 10/18/2006
