



//---BEGIN
//---IMAGE ROLLOVER EFFECT FOR TOP NAVIGATION BAR.
//---Script used for rollover effect on top navigation images.
//---If used in other program areas path may need to change.

image1 = new Image();
image1.src = "http://teamnutrition.usda.gov/images/top-nav/home-on.gif";

image2 = new Image();
image2.src = "http://teamnutrition.usda.gov/images/top-nav/about-on.gif";

image3 = new Image();
image3.src = "http://teamnutrition.usda.gov/images/top-nav/newsroom-on.gif";

image4 = new Image();
image4.src = "http://teamnutrition.usda.gov/images/left-nav/help-on.gif";

image5 = new Image();
image5.src = "http://teamnutrition.usda.gov/images/left-nav/contacts-on.gif";

image6 = new Image();
image6.src = "http://teamnutrition.usda.gov/images/left-nav/espanol-on.gif";



limage4 = new Image();
limage4.src = "http://teamnutrition.usda.gov/images/left-nav/team-on.gif";

limage5 = new Image();
limage5.src = "http://teamnutrition.usda.gov/images/left-nav/healthy-schools-on.gif";

limage6 = new Image();
limage6.src = "http://teamnutrition.usda.gov/images/left-nav/school-success-on.gif";

limage7 = new Image();
limage7.src = "http://teamnutrition.usda.gov/images/left-nav/training-grants-on.gif";

limage8 = new Image();
limage8.src = "http://teamnutrition.usda.gov/images/left-nav/library-on.gif";

limage9 = new Image();
limage9.src = "http://teamnutrition.usda.gov/images/left-nav/kids-pyramid-on.gif";


// finds the URL associated with an option in the homepage SELECT box and redirects
// the browser to that page.
function homeWindow()
{
	if(homeLocations[D1.selectedIndex] != "")
		top.location = homeLocations[D1.selectedIndex]
}

// populate this array to match the options in the SELECT field below.  The homeWindow()
// function will use these values to redirect the browser when the user selects something.
var homeLocations = new Array
(
	"", // choose an option
	"http://teamnutrition.usda.gov/foodservice.html",
	"http://teamnutrition.usda.gov/educators.html",
	"http://teamnutrition.usda.gov/parents.html",
	"http://teamnutrition.usda.gov/childcare.html"
)

//---END





