function menufunc(vara){
		var appme=navigator.appVersion;
		appnum=appme.substring(0,1);
if (navigator.appName=="Netscape" && appnum<5){
;
} else {
	menuout();
	if (navigator.appName=="Netscape"){
			document.getElementById(vara).style.top=53;
	} else {
		try {
			var bias = 41 + HeadTable.offsetTop;
			eval(vara+".style.top=" + bias);
		} catch (e) {
			eval(vara+".style.top=53");
		}
	}
}
}
function menuout(){
		var appme=navigator.appVersion;
		appnum=appme.substring(0,1);
if (navigator.appName=="Netscape" && appnum<5){
;
} else {
for (i=1;i<6;i++){
	if (navigator.appName=="Netscape"){
		eval("document.getElementById('menu"+i+"a').style.top=-500");
	} else {
		eval("menu"+i+"a.style.top=-500");
	}
}
}
}

//menu arrays
menulength=5;
menu1=new Array("About Us","/about/about.html","About Us (Home)","/about/about.html","Background","/about/background.html","Legislation","/about/offices/legis/legis_statutes.html","Federal Assistance","/about/fed_asst.html","Partnerships","/about/partnerships.html","Program Leadership","/about/leadership.html","Strategic Planning","/about/strat_plan.html","Offices & Units","/about/offices/offices.html","Staff Directory","http://www.csrees.usda.gov/about/AllUnits/staff_dir_search.cfm","Jobs and Opps.","/about/jobs.html","Visiting CSREES","/about/visit.html","FAQs","/about/faqs.html");		
menu2=new Array("Emphasis Areas","/nea/emphasis_area.html","Emphasis Areas (Home)","/nea/emphasis_area.html","Agricultural & Biosecurity","/nea/ag_biosecurity/ag_biosecurity.html","Agricultural Systems","/nea/ag_systems/ag_systems.html","Animals &amp; Animal Products","/nea/animals/animals.html","Biotechnology &amp; Genomics","/nea/biotech/biotech.html","Economics &amp; Commerce","/nea/economics/economics.html","Families, Youth, & Communities","/nea/family/family.html","Food, Nutrition, &amp; Health","/nea/food/food.html","Natural Resources &amp; Environment","/nea/nre/nre.html","Pest Management","/nea/pest/pest.html","Plants &amp; Plant Products","/nea/plants/plants.html","Technology & Engineering","/nea/technology/technology.html");
menu3=new Array("Funding Opportunities","http://www.csrees.usda.gov/fo/funding.cfm","Funding Opportunities (Home)","http://www.csrees.usda.gov/fo/funding.cfm","Custom Opps. Search ","http://www.csrees.usda.gov/fo/fosearch.cfm","FAQs","/business/businessfaq.html","FY 2007 Application Changes","/funding/fy07changes.html","Grants Process","/funding/grants.html", "Application Forms","/funding/forms.html");
menu4=new Array("Business with CSREES","/business/business.html","Business with CSREES (Home)","/business/business.html","Application Forms","/funding/forms.html","Funding Information","/business/awards.html","Proposal Review Process","/business/reviews.html","Planning & Reporting","/business/reporting.html","Formula Funds","/business/awards/formula.html","eGovernment at CSREES","/business/other_links/egov/egov.html","Institutional Reviews","/business/other_links/prog_reviews.html","Training","/business/training.html","Other Business Links","/business/other.html");
menu5=new Array("Newsroom","/newsroom/newsroom.html","Newsroom (Home)","/newsroom/newsroom.html","News","/newsroom/news/news.html","Events","/newsroom/events/events.html","Impacts of CSREES Funding","/newsroom/impacts/impacts.html","News Releases","/newsroom/releases/releases.html","Newsletters","/newsroom/newsletters/newsletters.html","Speeches & Testimony","/newsroom/speeches/speeches.html","Partners Video Magazine","/newsroom/partners/partners.html","White Papers","/newsroom/white_papers/whitepapers.html");


function buildhome(n){
		var appme=navigator.appVersion;
		appnum=appme.substring(0,1);
if (navigator.appName=="Netscape" && appnum<5){
;
} else {
//write subdiv
document.write('<DIV id="menu'+n+'a" style="position:absolute; top:-500;" onmouseover="menufunc('+"'menu"+n+"a'"+')" onmouseout="menuout();">');
//write sub top link table opener
document.write("<table border='0' cellspacing='0' cellpadding='0'><tr><td nowrap class='nav'>");
//write sub top link
document.write("<a href='"+eval('menu'+n+"[1]")+"' class='nava'>"+eval('menu'+n+"[0]")+"</a>");
//write sub top link table closer
document.write("</td></tr></table>");


document.write("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='nav' nowrap>");
document.write("<img src='img/x.gif' alt='' width='100%' height='1' border='0' style='background-color:#CCCCCC;'><br>");
//write subs
for (o=2;o<eval("menu"+n+".length");o++){
o++;
if (eval('menu'+n+'[o]')!="#"){
document.write("<a href='"+eval('menu'+n+'[o]')+"'>");
} else {
document.write("<B>");
}
o--;
document.write(eval('menu'+n+'[o]'));
o++;
if (eval('menu'+n+'[o]')!="#"){
document.write("</a>");
} else {
document.write("</B>");
}
}
//end subs
document.write("<img src='img/x.gif' alt='' width='100%' height='3' border='0' style='background-color:#2162C2;'></td></tr></table></DIV>");
}
}