// Specify poem.
var line = new Array()
line[1]  = "i carry your heart with me(i carry it in"
line[2]  = "my heart)i am never without it(anywhere"
line[3]  = "i go you go my dear;and whatever is done"
line[4]  = "by only me is your doing,my darling)"
line[5]  = "i fear   "
line[6]  = "no fate(for you are my fate,my sweet)i want"
line[7]  = "no world(for beautiful you are my world,my true)      "
line[8]  = "and it's you are whatever a moon has always meant"
line[9]  = "and whatever a sun will always sing is you      "
line[10] = "here is the deepest secret nobody knows   "
line[11] = "(here is the root of the root and the bud of the bud"
line[12] = "and the sky of the sky of a tree called life;which grows"
line[13] = "higher than soul can hope or mind can hide)      "
line[14] = "and this is the wonder that's keeping the stars apart      "
line[15] = "i carry your heart(i carry it in my heart)      "
line[16] = "                                e e cummings      "
line[17] = "                  "

// Specify form with banner control but not for Netscape(s).
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="51"'
if (okWithStyle) {
    html += ' STYLE="border: none; font-family: verdana;'
    html += ' font-size: 14px; font-weight: bold; color: teal"'
}
    html += "/></FORM>"
document.write(html)

// Specify i carry your heart work variables.
function seticarryyourheartWorkVariables() {
   show    = ""
   newChar = -1
   newLine =  1
}

// 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.
seticarryyourheartWorkVariables()
window.onload = nextLine

// Laurence - LP&A 6/1/2010

