//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
var tickercontents=new Array()
tickercontents[0]='\"There is nothing mystical about impact, impact is a direct product of input, and you cannot get out of life more than what you are willing to put into it\”'
tickercontents[1]='\“You can never be a champion when you keep dodging challenge\”'
tickercontents[2]='\“Whatever you can’t dare or whatever you won’t dare you can’t damn\”'
tickercontents[3]='\“Until you react against where you are, you never have a change of position, whatever you can tolerate you cannot change\" :Bishop Oyedepo'
tickercontents[4]='\“Don’t be ashamed to be original\”'
tickercontents[5]='\“Covenant University is committed to a radical departure, don’t let it be reduced to a slogan or a working principle; we are committed to a radical departure and you can’t be in the midst of possibilities and be struggling with impossibilities\”'
tickercontents[6]='\“Until your perspective is changed, your destiny is at stake\”'
tickercontents[7]='\“A leader sees ahead, goes ahead and motivates others to take steps along\”'
tickercontents[8]='\“No matter how bright the vision, no matter how intense the intercession, no matter how great the revelation and no matter how dogged the perspiration, it will never become a tree until you are truly planted in the cause from which you claim to believe in\”'
tickercontents[9]='\“Lack of dedication to mission is the greatest reason behind the frustration of the black man\”'

var persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".

//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var tickdelay=8000

////Do not edit pass this line////////////////

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
var currentmessage=0

function changetickercontent(){
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Apply()
crosstick.innerHTML=tickercontents[currentmessage]
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Play()
currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1
var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
setTimeout("changetickercontent()",tickdelay+filterduration)
}

function beginticker(){
if (persistlastviewedmsg && get_cookie("lastmsgnum")!="")
revivelastmsg()
crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker
changetickercontent()
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savelastmsg(){
document.cookie="lastmsgnum="+currentmessage
}

function revivelastmsg(){
currentmessage=parseInt(get_cookie("lastmsgnum"))
currentmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg

if (document.all||document.getElementById)
document.write('<div id="memoryticker" '+divonclick+'></div>')
if (window.addEventListener)
window.addEventListener("load", beginticker, false)
else if (window.attachEvent)
window.attachEvent("onload", beginticker)
else if (document.all || document.getElementById)
window.onload=beginticker
