
/* //:::::::::::   TICKERTAPE  :::::::::::\\
                  by Micah Goulart

        This script can be used as long as this
        disclaimer is left untouched.
        
        For bug reports or custom scripts, email me at:
        micahgoulart@mailbr.com.br
                
   //:::::::::::   copyright 1999   :::::::::::\\ */

//default speed is 4.5 seconds, Change that as desired
var speed=5500

var news = new Array()
news[0]="Welcome to the GVS 2000 Website";
news[1]="<A HREF='http://www.guidetobham.com/gvs/gvs2000/announcement.htm'>NOTICE: GVS will not be performing at the Botanical Gardens.</A>";
news[2]="<A HREF='http://www.guidetobham.com/gvs/gvs2000/mailinglist.htm'>Join the Garden Variety Mailing List</A>";
news[3]="<A HREF='http://www.guidetobham.com/gvs/gvs2000/shakespeak.htm'>Shakespeak - Understanding Shakespeare</A>";
news[4]="<A HREF='http://www.guidetobham.com/gvs/gvs1999/'>The 1999 Garden Variety Shakespeare Web Site</A>";
//expand or shorten this list of messages as desired

var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;

i=0
if (IE4) or (NS6)
{       tickerObj = subtickerTapeLayer.style    }

else
{       tickerObj = document.tickerTapeLayer.document   }

function resizeFix()
{       window.location.reload()        }

function resizeFix2()
{       if (NS4) 
        setTimeout("window.onresize=resizeFix",450)     }


function update()
{       BgFade(0xff,0xff,0xff,0x00,0x00,0x00,10);
        if (NS4)
        {       document.tickerTapeLayer.document.subtickerTapeLayer.document.write(
                        '<span class="tickerTapefont">'+news[i]+'</span>')
                document.tickerTapeLayer.document.subtickerTapeLayer.document.close()   }
        else
        {       subtickerTapeLayer.innerHTML = news[i]  }
        
        if (i < news.length - 1)
                i++
        else
                i=0
        
        setTimeout("update()",speed)            }

function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps)
{       sred = red1; sgrn = grn1; sblu = blu1;
        ered = red2; egrn = grn2; eblu = blu2;
        inc = steps;
        step = 0;
        RunFader();     }
        
function RunFader()
{       var epct = step/inc; 
        var spct = 1 - epct; 
        
        if (NS4)
        tickerObj.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn *
                spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); 
        
        else tickerObj.backgroundColor = Math.floor(sred * spct + ered * epct)*256*256 +
                Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct);
 
        if ( step < inc )
        {       setTimeout('RunFader()',50);    }
        
        step++;
}

window.onload = new Function ("resizeFix2();update();");
//-->

