boxWid = 350;      // fader width: pixel integer
boxHgt = 30;       // fader height: pixel integer
backCol = "white"  // fader bgcolor: color name or #RRGGBB
blendInt = 5;      // headline display time: seconds
blendDur = 0.5;      // duration of blend/fade: seconds
maxLoops = 99;      // maximum headline sets displayed: integer

txtDec = "none";   // text decoration: none | underline
txtAln = "center";   // text alignment: left | right | center | justify
fntCol = "black";  // font color: color name or #RRGGBB
fntSiz = "8pt";    // font size: points or pixels recommended
fntWgh = "bold";   // font weight: normal | bold
fntSty = "normal"; // font style: normal | italic
fntFam = "Geneva,Arial,sans-serif";
                   // font family
linHgt = "9pt";    // line height (leading): normal or points/pixels

slideInc = 2;      // NN GIF move increment: pixels

arTXT = new Array(
  "<img src=\"./images/clear.gif\" width=90 height=20 border=0>\"Nationally&ndash;Recognized&nbsp;Accreditation\"",
  "<img src=\"./images/clear.gif\" width=110 height=20 border=0>\"Extensive Onsite Capabilities\"",
  "<img src=\"./images/clear.gif\" width=118 height=20 border=0>\"Internet Access to Records\""
)

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
semi = ";";
sp = " ";
styleStr = "<STYLE TYPE='text/css'>"
 + "#elAll {"
 + "position:relative;"
 + "width:" + boxWid + semi
 + "height:" + boxHgt + semi
 + "background-color:" + backCol + semi
 + "layer-background-color:" + backCol + semi
 + "clip:rect(0 "+ boxWid + sp + boxHgt + " 0)" + semi
 + "}"
 + "#elNews {"
 + "position:absolute;"
 + "height:" + boxHgt + semi
 + "background-color:" + backCol + semi
 + "layer-background-color:" + backCol + semi
 + "clip:rect(0 "+ boxWid + sp + boxHgt + " 0)" + semi
 + "}"
 + "#elGif {position:absolute}"
 + "#elNoDHTML {position:absolute; visibility:hidden}"
 + "A.newslink {"
 + "text-decoration:"+ txtDec + semi
 + "text-align:"+ txtAln + semi
 + "color:"+ fntCol + semi
 + "font-size:"+ fntSiz + semi
 + "font-weight:"+ fntWgh + semi
 + "font-style:"+ fntSty + semi
 + "font-family:"+ fntFam + semi
 + "line-height:"+ linHgt + semi
 + "}"
 + "</STYLE>";

document.write(styleStr);

finite = (maxLoops > 0) ? 1 : 0;
slideInt = (blendDur/(boxHgt/slideInc))*1000;

arNews = new Array();
for (i=0; i<arTXT.length; i++) {
    arNews[i] = new Array();
    arNews[i][1] = arTXT[i];
}

window.onload = initIt;

function initIt(){
    if (NS4) {
        if (!document.elAll) return;
        elAll = document.elAll;
        elNews = elAll.document.elNews;
        elGif = elAll.document.elGif;
        imStr = "<IMG SRC='fade.gif'>"
        elGif.document.write(imStr);
        elGif.document.close();
    }
    else {
        elNews.style.filter = "blendTrans(duration=" + blendDur + ")";
    }

    newsCount = 0;
    if (finite) loopCount = 0;
    doIt();
    blendTimer = setInterval("doIt()",blendInt*1000)
}

function doIt() {
    if (finite && loopCount==maxLoops) {
        clearInterval(blendTimer);
        return;
    }
    if (NS4) elGif.top = 0;

    newsStr = arNews[newsCount][1]

    if (NS4) {
        with (elNews.document) {
            write(newsStr);
            close();
        }
    }
    else {
        elNews.filters.blendTrans.Apply();
        elNews.innerHTML = newsStr;
        elNews.filters.blendTrans.Play();
    }

    newsCount++;
    if (newsCount == arNews.length) {
        newsCount=0;
        if (finite) loopCount++;
    }

    if (NS4) slideIt();
}

function slideIt(){
    elGif.top += slideInc;
    if (elGif.top >= boxHgt) return;
    setTimeout("slideIt()",slideInt);
}
