﻿    var current = 0
    var x = 0
    var speed = 12
    var speed2 = 5300

    function initArray(n) {
    this.length = n;
    for (var i =1; i <= n; i++) {
    this[i] = ' '
    }
    }

    typ = new initArray(2) //Numero de mensagens a exibir.

    typ[0]=" -  A D E D O   C O N T A C T   C E N T E R"
    typ[1]=" -  É   C O M   C A R I N H O   E   A T E N Ç Ã O   Q U E   C U I D A M O S   D O   S E U   C L I E N T E !"

    function typewrite() {
    var m = typ[current]
    window.status = m.substring(0, x++) + ""
        if (x == m.length + 1) {
            x = 4
            current++
            if (current > typ.length - 1) {
                current = 0
            }

        setTimeout("typewrite()", speed2)
        }
    else {

    setTimeout("typewrite()", speed)

    }

    }

    typewrite()
