
  /***************************************************
  * Original:    Kelly Johnson
  * WebSite:     http://js-articles.8m.net
  * Email:       steelersfan47@comcast.net

  * Name:        Text Scroller
  * Description: Scrolls any amount of text
                 > showing a constant number of
                 > characters at a constant rate
  ***************************************************/

  /*** EDIT THESE VALUES ONLY, BELOW THIS POINT ***/

    // these are the messages that are scrolled, edit them, be sure not
    // to change the format they are in, always str[#], where the 
    // numbers increment as messages increase
    var str = new Array()
      str[0] = "List your Carolina company Product or Service for FREE!"
      str[1] = "List today and Major Search Engines will index your ad!"
      str[2] = "Upgrade your Carolina ad [optional] at affordable rates."
      str[3] = "Carolina Yellow Pages Ads WILL bring you NEW customers!"

    var charsToShow = 60  // number of characters to show when scrolling at once
    var milliFrame = 125  // number of milliseconds to pause between scrolls
    var joinChar = " - "   // character used to join different elements of str

  /*** EDIT THESE VALUES, ABOVE THIS POINT ***/  


  /*** MAY BE NO NEED TO EDIT BEYOND THIS POINT ***/

    str[str.length - 1] += joinChar
    str = new String(str.join(joinChar))
    var show = str.substr(0,charsToShow)
    var scrolling;

    function scroll() {
      // show the current scroll
      document.getElementById('scroller').firstChild.nodeValue = show

      // set up scroll for next loop
      str = str.substr(1,str.length) +""+ str.charAt(0)
      show = str.substr(0,charsToShow)
      scrolling = setTimeout('scroll()',milliFrame)
    } 

    function copyright() {
      // create link for first the line break
      document.getElementById('scroller').appendChild(document.createElement('br'));

      // now the link
      var link = document.getElementById('scroller').appendChild(document.createElement('a')); 
      link.href = 'http://www.carolinayellow.com/listing_how_to_improve.php' 
      link.appendChild(document.createTextNode('Click for exciting Carolina Yellow Pages Listing Opportunities!'));
    }

    function stopScroll() {
      // stop scrolling
      clearTimeout(scrolling)
    }

    function startScroll() {
      // start scrolling again
      scrolling = setTimeout('scroll()',milliFrame)
    }

  /*** MAY BE NO NEED TO EDIT ABOVE THIS POINT ***/
