
var speed=25;		/* Sets the speed in milliseconds at which the link or text scrolls. */
var divpause=4000;	/* Sets how long to pause in milliseconds before scrolling the next link or text. */
var divheight=50;	/* Sets the height of the div or layer in pixels.  Same as above. */

var divname1='bodd';	/* div for articles 1,3,5,7,9 */
var divname2='beven';/* div for articles 2,4,6,8,10 */


var divincbt=1;
var divinc;
var stopposa;
var stopposb;
var scrollmsga;
var scrollmsgb;
var thediva;
var thedivb;
var posa;
var posb;

var i;
var firsttime=true;
var divprop;
var whichdiv=divname1;

stopposa=-1;
stopposb=divheight*-1;

divinc=divincbt;

function initNews(myarr, div1, div2)
{
	msg = myarr;
	i=myarr.length;

	news_ticker();
}

/* For the XHTML DOM, positions must be declared with "px" or scroller fails to run */

function news_ticker()
	{
	i++;
	if(i>=msg.length)
		{
		i=0;
		}

	elma=document.getElementById(divname1);
	elma.innerHTML=msg[i];
	setTimeout('news_ticker()',divpause);

	}
