bnrArray = new Array(
new Array(
	'banner_locator.gif',
	'/ccd/districtsearch/',
	'Image of a map of Montgomery County, Maryland broken out from a map of the state of Maryland.  The banner reads \'Find Public School Districts Search Nationwide.\'  The source for the data is NCES/CCD.'
	),
new Array(
	'banner_naep.gif',
	'/nationsreportcard/ITMRLS/startsearch.asp',
	'Image of a hand holding a pencil, answering the multiple choice question.  The banner reads \'Access Assessment Questions and Student Responses.\'  The question reads:  \'14. Carlos\' Basketball team won 75% of its games last season.  If they played 80 games, how many games did they win?\'  The choices are a: 20; b: 60; c: 68; d: 75.  Answer b is circled.  The source for the data is NCES/NAEP.'
	),
new Array(
	'banner_stateprofiles.gif',
	'/programs/stateprofiles/',
	'Image of a male teacher assisting a female student working with a computer.  The banner reads \'Search Statewide\'... elementary/secondary education characteristics and finance postsecondary education, public libraries, assessments, and selected demographics for all states.  The source for the data is NCES/CCD.'
	),
new Array(
	'banner_pss.gif',
	'/surveys/pss/privateschoolsearch/',
	'Image of a large group of students in school uniforms walking beside a stone wall.  The banner reads \'Seek Out Private School Information.\'  The source for the data is NCES/PSS.'
	),
new Array(
	'banner_ccd.gif',
	'/ccd/schoolsearch/',
	'Image of five young students standing in front of a school bus.  The banner reads \'U.S. Public Schools... get the Facts.  The source for the data is NCES/CCD.'
	),
new Array(
	'banner_edfin.gif',
	'/edfin/search/search_intro.asp',
	'Image of a page with figures and a pie chart, a calculator, and several $100 bills.  The banner reads \'Education Finance Statistics Center: Find finance information on public elementary/secondary education.\'  The source for the data is NCES/CCD and Census Bureau.'
	),
new Array(
	'banner_bat.gif',
	'/ccd/bat/',
	'Image of a blue background with some graph lines and abstract structures.  The banner reads \'Create Customized Tables of Public School Data\' and includes a chart listing Alaska, Alabama, Arkansas, and Arizona in cells on the y axis, and a variety of x marks in cells on the x axis.  The source for the data is NCES/CCD.'
	),
new Array(
	'banner_collegenav.gif',
	'/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(
	'banner_intl.gif',
	'/surveys/international/IntlIndicators/',
	'Image of a magnifying glass on top of a globe.  The banner reads \'Find International Education Indicators.\'  The source for the data is NCES/PIRLS.'
	),
new Array(
	'banner_coe.gif',
	'/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.'
	),
new Array(
	'banner_digest.gif',
	'/programs/digest/',
	'Image of a variety of graphs and figures in on a grey background.  The banner reads \'Digest of Education Statistics: find statistics here...\' The source for the data is NCES.'
	),
new Array(
	'banner_crime.gif',
	'/programs/crimeindicators/',
	'Image of a child in a black hooded sweatshirt facing a wall covered in graffiti.  The banner reads \'Student Crime and Safety... Read more...\' The source for the data is U.S. Department of Justice, Bureau of Justice Statistics, School Crime Supplement (SCS) to the National Crime Victimization Survey.'
	),
new Array(
	'banner_library.gif',
	'/surveys/libraries/compare/index.asp?LibraryType=Academic',
	'Image of a large library.  The banner reads \'Compare Academic Libraries.\'  The source for the data is NCES/PLS.'
	),
new Array(
	'banner_nde.gif',
	'/nationsreportcard/nde/',
	'Image of some text superimposed on a 3-D bar chart.  The banner reads \'Analyze NAEP Data: Students\' Academic Performance Assessments.\' The source for the data is NCES/NAEP.'
	),
	
   /*new Array(
	'kidszone_thanksgiving.gif',
	'/nceskids/',
	'Image of a cartoon frogs sitting at a Thanksgiving dinner table.  The banner reads THANKSGIVING ...a time to enjoy our family and friends.  HAPPY THANKSGIVING from the NCES Kids\' Zone.'
	),
	new Array(
	'kidszone_halloween.gif',
	'/nceskids/',
	'Image of two cartoon frogs dressed in Halloween costumes.  The banner reads Kids\' Zone Learning with NCES.  Happy Halloween... Fun Facts await, if you dare.'
	),
	new Array(
	'kidszone_veteransday.gif',
	'/nceskids/',
	'Image of a cartoon frog saluting at the World War II memorial. The banner reads Kids\' Zone Learning with NCES. Veterans Day thanking veterans for their service & contributions to U.S. national security...'
	),*/
	new Array(
	'kidszone_fall.gif',
	'/nceskids/',
	'Image of a cartoon frog waiting for a school bus wearing a red backpack.  The banner reads Kids\' Zone Learning with NCES.  This fall, Go back to school with NEW fun facts...'
	),
	/*new Array(
	'kidszone_winter.gif',
	'/nceskids/',
	'Image of a cartoon frog building a snowman.  The banner reads Kids\' Zone Learning with NCES.  Knowledge and fun rolled into one...'
	),
	new Array(
	'kidszone_earthday.gif',
	'/nceskids/',
	'Image of a cartoon frog planting a tree.  The banner reads Kids Zone Learning with NCES. On Earth Day you can plant a tree to celebrate just like me.'
	),
	new Array(
	'kidszone_spring.gif',
	'/nceskids/',
	'Image of a cartoon frog with a butterfly on his nose in a meadow of flowers and fruit trees.  The banner reads Kids Zone Learning with NCES.  Spring is blooming with knowledge for all...'
	),
	new Array(
	'kidszone_summer.gif',
	'/nceskids/',
	'Image of a cartoon frog on the beach reading a book under an umbrella.  The banner reads Kids Zone Learning with NCES.  Summer is a great time to catch up on your reading...'
	),
	new Array(
	'kidszone_aviationday.gif',
	'/nceskids/',
	'Image of a cartoon frog flying an airplane in the clouds.  The banner reads Kids Zone Learning with NCES.  Soar into a new school year bursting with knowledge and celebrate Aviation Day!'
	),
	new Array(
	'kidszone_newyears.gif',
	'/nceskids/',
	'Image of a cartoon frog with fireworks.  The banner reads Kids Zone Learning with NCES.  This year we are ringing in more knowledge and fun!'
	),
	new Array(
	'kidszone_groundhog.gif',
	'/nceskids/',
	'Image of a cartoon frog and cartoon groundhog looking for their shadows.  The banner reads Kids Zone Learning with NCES.  The groundhog's shadow means more time for KIDSZONE fun!'
	),
	new Array(
	'kidszone_presidents.gif',
	'/nceskids/',
	'Image of a cartoon frogs dressed as Abraham Lincoln and George Washington in front of the capital.  The banner reads Kids Zone Learning with NCES.  Our fore fathers leading us towards better education...'
	),
	*/
new Array(
	'banner_tables.gif',
	'/quicktables/',
	'Image of table of numbers.  The banner reads \'From Our Data Repository to you... Locate tables/figures/charts published in the inventory of NCES.  Data are constantly being added.\' The source for the data is NCES.'
	),
new Array(
	'banner_sdds.gif',
	'/surveys/sdds/',
	'Image of a map of Montana, with a highlight over Helena.  The banner reads \'School District Demographics System: Map schools, school districts, and more... \' The map of Montana displays red icons for schools, a blue icon for the city of Helena, and a highlighted circle around the Helena school district.  The source for the data is NCES and Census Bureau.'
	),
new Array(
	'banner_pubs.gif',
	'/pubsearch/',
	'Image of a variety of NCES publications and products.  The banner reads \'Publications and Products... find it here.\' Source: NCES.'
	)
);

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);
}