function assignArray(text,delay) {
     this.text=text
     this.delay=delay
}

function createArray() {
//set color HERE
     fadecolor=new Array("#000000","#333333","#666666","#999999","#CCCCCC","#5074B8")
/* set phrases HERE ... you can add new phrases by following the format below
eg. msg[3]=new assignArray("PHRASES", delay between phrase)
*/
createSotoOffers()
     setTimeout("typeIt()", 3000)
}

var msgNo=0
var character=1
var colorNo=0
var fixColor=1
var colorCheck=0

function typeIt() {
var insertHTML=""
     if(msgNo <= msg.length-1) {

        if(character <= msg[msgNo].text.length || colorCheck < msg[msgNo].text.length) {

            colorCheck=0

                for(var charCheck=0; charCheck<character; charCheck++,colorNo--,fixColor--){

                    if(fixColor>5)colorNo=5
                    if(colorNo==5)colorCheck+=1

                    insertHTML += '<SPAN style="font-family:Arial Black; font-size:12pt; color:'+fadecolor[colorNo]+'">' + msg[msgNo].text.substring(charCheck, charCheck+1) + '</SPAN>'

                }

                if(document.layers) {
                    document.typeWriter.document.write(insertHTML)
                    document.typeWriter.document.close()
                } else if (document.all) {
                    document.all.typeWriter.innerHTML = insertHTML
                }

            setTimeout("typeIt()", 50)
            character++
            colorNo=character-1
            fixColor=character
        }
        else {
            character=1
            colorNo=character-1
            fixColor=character
            setTimeout("typeIt()", msg[msgNo].delay)
            msgNo++
        }
     }

else {
	msgNo=0
        setTimeout("typeIt()", msg[msgNo].delay)
	}
}

