var tickercontents=new Array()
//tickercontents[0]='Check out our'
//tickercontents[1]='Meetings and Events'
//tickercontents[2]='schedule <a href="http://www.liparentsusafa.org/Meetings%20pg.htm">[Read more]</a>'
tickercontents[0]='Alumni Brunch Sunday March 22nd @1:00pm'
tickercontents[1]='at the US Merchant Marine Academy'
tickercontents[2]='Directions Here <a href="http://www.liparentsusafa.org/Meetings%20pg.htm">[Read more]</a>'


//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='75%' //in "px" or "%"
var tickerbgcolor='white'

//configure the below variable to determine the delay between ticking of messages (in miliseconds
var tickdelay=2800
var currentmessage=0

function changetickercontent(){
if (document.layers){
document.tickernsmain.document.tickernssub.document.write(tickercontents[currentmessage])
document.tickernsmain.document.tickernssub.document.close()
}
else
crosstick.innerHTML=tickercontents[currentmessage]

if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (document.layers)
document.tickernsmain.visibility="show"
else
crosstick=document.getElementById? document.getElementById("tickerie") : document.all.tickerie
changetickercontent()
}

if (document.all||document.getElementById)
document.write('<div id="tickerie" style="width:'+tickerwidth+'; background-color:'+tickerbgcolor+'"></div>')
<!--window.onload=start_ticking-->





/*
Rotating image or text(You can use for changing banners)
Author: Narayan Chand Thakur
Source: http://ncthakur.itgo.com/
This may be used freely as long as this message is intact.
*/
<!--

//you may add your image file or text below
var item=new Array()
item[0]="<a href='#'><img src='PICTURES/z12.jpg' border='0'></a>"
item[1]="<a href='#'><img src='PICTURES/Parade4.jpg' border='0'></a>"
item[2]="<a href='#'><img src='PICTURES/usafa1.jpg' border='0'></a>"
item[3]="<a href='#'><img src='PICTURES/chapel1.jpg' border='0'></a>"
item[4]="<a href='#'><img src='PICTURES/Grad2006.jpg' border='0'></a>"
item[5]="<a href='#'><img src='PICTURES/z12.jpg' border='0'></a>"
item[6]="<a href='#'><img src='PICTURES/chapel2.jpg' border='0'></a>"
item[7]="<a href='#'><img src='PICTURES/USAFA003.jpg' border='0'></a>"
var current=0

var ns6=document.getElementById&&!document.all
function changeItem(){
if(document.layers){
document.layer1.document.write(item[current])
document.layer1.document.close()
}
if(ns6)document.getElementById("div1").innerHTML=item[current]
{
if(document.all){
div1.innerHTML=item[current]
}
}
if (current==7) current=0
else current++
setTimeout("changeItem()",8000)
}
<!--window.onload=changeItem-->


function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}


addLoadEvent(start_ticking);
addLoadEvent(changeItem);
