var tickercontents=new Array()
//tickercontents[0]=' <a href="#"><Angola University - Be Part of History!</a>'
//tickercontents[1]=' <a href="#">SHARE 2007 Accomplishments</a>'
//tickercontents[2]=' <a href="#">Online Donation</a>'
//tickercontents[3]=' <a href="#">Make the Gift of Stock</a>'
//tickercontents[4]=' <a href="#">Making the University Dream come true</a>'
//tickercontents[5]=' <a href="#">New Board of Trustees</a>'

tickercontents[0]=' <a href="http://www.sharecircle.org/Angolauniversity/">Angola University - Be Part of History!</a>'
tickercontents[1]=' <a href="http://www.sharecircle.org/2007accomplishments.html">SHARE 2007 Accomplishments</a>'
tickercontents[2]=' <a href="http://www.sharecircle.org/help/onlinedonation.html">Online Donation</a>'
tickercontents[3]=' <a href="http://www.sharecircle.org/giftofstock.html">Make the Gift of Stock</a>'
tickercontents[4]=' <a href="http://www.sharecircle.org/getinvolved/index.html">Get Involved</a>'
tickercontents[5]='<a href="http://www.sharecircle.org/Angolauniversity/">Making the University Dream come true</a>'
tickercontents[6]=' <a href="http://www.sharecircle.org/Angolauniversity/Board%20of%20Trustees/trustees.html">New Board of Trustees</a>'
tickercontents[7]=' <a href="http://www.chicagopublicradio.org/Content.aspx?segmentID=16542#">Best of Global Activism</a>'

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=3000

////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('<span id="memoryticker" '+divonclick+'></span>')
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
