// ==================== pre-load top nav ==================== //
if (document.images) {
	mainnav_presidentsmessage_off = new Image();
	mainnav_presidentsmessage_off.src = 'images/mainnav_presidentsmessage_off.gif';
	mainnav_presidentsmessage_on = new Image();
	mainnav_presidentsmessage_on.src = 'images/mainnav_presidentsmessage_on.gif';
	mainnav_2004review_off = new Image();
	mainnav_2004review_off.src = 'images/mainnav_2004review_off.gif';
	mainnav_2004review_on = new Image();
	mainnav_2004review_on.src = 'images/mainnav_2004review_on.gif';
	mainnav_portfolioreview_off = new Image();
	mainnav_portfolioreview_off.src = 'images/mainnav_portfolioreview_off.gif';
	mainnav_portfolioreview_on = new Image();
	mainnav_portfolioreview_on.src = 'images/mainnav_portfolioreview_on.gif';
	mainnav_financials_off = new Image();
	mainnav_financials_off.src = 'images/mainnav_financials_off.gif';
	mainnav_financials_on = new Image();
	mainnav_financials_on.src = 'images/mainnav_financials_on.gif';
	mainnav_leadership_off = new Image();
	mainnav_leadership_off.src = 'images/mainnav_leadership_off.gif';
	mainnav_leadership_on = new Image();
	mainnav_leadership_on.src = 'images/mainnav_leadership_on.gif';

	arrow_grant_making_off = new Image();
	arrow_grant_making_off.src = 'images/arrow_right_off.gif';
	arrow_grant_making_on = new Image();
	arrow_grant_making_on.src = 'images/arrow_right_off.gif';
	arrow_targeted_portfolio_off = new Image();
	arrow_targeted_portfolio_off.src = 'images/arrow_right_off.gif';
	arrow_targeted_portfolio_on = new Image();
	arrow_targeted_portfolio_on.src = 'images/arrow_right_off.gif';
	
	submenu_grantsandcontracts_off = new Image();
	submenu_grantsandcontracts_off.src = 'images/submenu_grantsandcontracts_off.gif';
	submenu_grantsandcontracts_on = new Image();
	submenu_grantsandcontracts_on.src = 'images/submenu_grantsandcontracts_on.gif';
	submenu_grantresultsreporting_off = new Image();
	submenu_grantresultsreporting_off.src = 'images/submenu_grantresultsreporting_off.gif';
	submenu_grantresultsreporting_on = new Image();
	submenu_grantresultsreporting_on.src = 'images/submenu_grantresultsreporting_on.gif';
	submenu_materialsavailable_off = new Image();
	submenu_materialsavailable_off.src = 'images/submenu_materialsavailable_off.gif';
	submenu_materialsavailable_on = new Image();
	submenu_materialsavailable_on.src = 'images/submenu_materialsavailable_on.gif';
}



//========================= standard rollover =========================
function rollover(imgName, active) {
	if (document.images && document.images[imgName]) {
		active? document[imgName].src = self[imgName + '_on'].src : document[imgName].src = self[imgName + '_off'].src;
	}
}



// ==================== pop-up window script ====================
var popupWin = null;

function popup(theURL, winName, features) {
	popupWin = window.open(theURL, winName, features);
	if (popupWin.focus) popupWin.focus();
}