var thisSection = ""
var thisSectionMenuItem = null;

function switchOnMainNav(i) {
	if (i.src.indexOf("color") == -1) {
		i.src = i.src.replace(/.gif/, "color.gif");
	}
}

function switchOffMainNav(i) {
	if (i == thisSectionMenuItem) {
		return;
	}
	if (i.src.indexOf("color") != -1) {
		i.src = i.src.replace(/color.gif/, ".gif");
	}
}

function loadMenu(section, secondaryNav) {
	if (section != "") {
		thisSection = section;
		e = document.getElementById("imgMainNav" + section);
		if (e) {
			thisSectionMenuItem = e;
			switchOnMainNav(e);
		}
	}
	if (secondaryNav != "") {
		es = document.getElementById(secondaryNav);
		if (es) {
			es.className = "selected";
		}
	}
}

function gotoAddressChange(NewAddress)
{
if( confirm( "This Address Change Form is maintained by the Penn State Alumni Association.  The information  you submit will be shared with Penn State\'s Office of University Development and the Alumni Association." ) )
   {    window.open("https://www.lionlink.psu.edu/AddressC.nsf/OLAddressChange?OpenForm", "AddressChange");        }
}