bnrArray = new Array(
new Array(
	'banner_collegenav.gif',
	'http://nces.ed.gov/collegenavigator/',
	'Image of a four college students looking at a laptop computer.  The banner reads \'Find the right college for you... College Navigator.\' The source for the data is NCES/IPEDS.'
	),
	new Array(
	'ies_REL.jpg',
	'/ncee/edlabs/',
	'The Regional Educational Laboratory Program (REL) consists of a network of ten laboratories that serve the educational needs of a designated region by providing access to high quality scientifically valid education research through applied research and development projects, studies, and other related technical assistance activities.'
	),
	new Array(
	'ncser_ad.jpg',
	'/ncser/projects/',
	'...to address the full range of issues facing children with disbilities, parents of children with disabilities...'
	),
new Array(
	'ies_WWC.jpg',
	'/ncee/wwc/reports/',
	'What Works Clearinghouse-a trusted source of scientific evidence of what works in education'
	),
	
	new Array(
	'naep.gif',
	'http://nces.ed.gov/nationsreportcard/',
	'Nations Report Card. Assessments conducted in mathematics, reading, science, writing, the arts, civics, economics, geography...'
	),
	
	new Array(
	'practiceguides.gif',
	'/ncee/wwc/publications/practiceguides/',
	'Practice Guides. Practical recommendations for everyday challenges.'
	),
	
	new Array(
	'ncer_ad.jpg',
	'/ncer/projects/',
	'rigorous research that contributes to the solution of significant education problems in our country'
	),
new Array(
	'ies_ERIC.jpg',
	'/ncee/projects/eric.asp',
	'Education Resources Infromation Center-The world’s largest digital library of education literature'
	),
	
	new Array(
	'globallocator.gif',
	'http://nces.ed.gov/globallocator/',
	'Search for Schools, Colleges, and Libraries. Get information on public and private schools, public school districts, libraries, and colleges in your area,, or around the country. '
	),
	
	new Array(
	'intervention.gif',
	'/ncee/wwc/reports/',
	'Intervention Reports. Examining all studies within a topic area and rating each based on evidence standards. '
	),
	
new Array(
	'banner_coe.gif',
	'http://nces.ed.gov/programs/coe/',
	'Image of three women sitting around a table in a college library.  The banner reads \'the Condition of Education, Find Trends in Education.\'  The source for the data is NCES/CCD.'
	)
);

var prd=5000;
var tmr;
var sts=0;
var idx=0;
var ida='homeRBa';
var idi='homeRBimg';

function bnrInit()
{
	idx=mod(new Date().getSeconds(),bnrArray.length);
	document.write('<a href="'+bnrArray[idx][1]+'" id="'+ida+'">');
	document.write('<img src="images/banners/'+bnrArray[idx][0]+'" alt="'+bnrArray[idx][2]+'" id="'+idi+'" width="367" height="120" border="0">');
	document.write('</a>');
	bnrStart();
}

function bnr(step,e)
{
	if(step=='0')
	{
		if(sts==1){bnrStop();}else{bnrStart();}
		e.src=(sts==1?'images/stop.gif':'images/play.gif');
		e.title=(sts==1?'Stop Banners':'Start Banners');
	}
	else if(sts==1){bnrStep(step);}
	else if(sts==0){bnrStep(step);bnrStop();}
}

function bnrStart()
{
	idx++;
	if(idx>=bnrArray.length){idx=0;}
	document.getElementById(ida).href=bnrArray[idx][1];
	document.getElementById(idi).src='images/banners/'+bnrArray[idx][0];
	document.getElementById(idi).alt=bnrArray[idx][2];
	tmr=setTimeout('bnrStart()',prd);
	sts=1;
}

function bnrStop()
{
	clearTimeout(tmr);
	sts=0;
}

function bnrStep(step)
{
	bnrStop();
	if(step=='-1')
	{
		if(idx==1){idx=bnrArray.length-1;}
		else if(idx==0){idx=bnrArray.length-2;}
		else{idx-=2;}
	}
	bnrStart();
}

function mod(X,Y)
{
	return(X-Math.floor(X/Y)*Y);
}