//Preload nav button images
var buttonPath='../navbuttons/';
var suffixes = new Array();
suffixes[0] = 'off';
suffixes[1] = 'onn';

//Preload nav button images
if (document.images) //if browser can do rollovers
	{
	var buttons	=	new Object;
	buttons.bcomoff = new Image();
	buttons.bcomonn = new Image();
	buttons.beneoff	= new Image();
	buttons.beneonn	= new Image();
	buttons.contoff	= new Image();
	buttons.contonn	= new Image();
	buttons.homeoff	= new Image();
	buttons.homeonn	= new Image();
	buttons.oursoff = new Image();
	buttons.oursonn = new Image();
	buttons.schloff	= new Image();
	buttons.schlonn	= new Image();
	buttons.suppoff	= new Image();
	buttons.supponn	= new Image();

	buttons.bcomoff.src	=	buttonPath + 'become_off.gif';
	buttons.bcomonn.src	=	buttonPath + 'become_on.gif';
	buttons.beneoff.src	=	buttonPath + 'benefactor_off.gif';
	buttons.beneonn.src	=	buttonPath + 'benefactor_on.gif';
	buttons.contoff.src	=	buttonPath + 'contact_off.gif';
	buttons.contonn.src	=	buttonPath + 'contact_on.gif';
	buttons.homeoff.src	=	buttonPath + 'home_off.gif';
	buttons.homeonn.src	=	buttonPath + 'home_on.gif';
	buttons.oursoff.src	=	buttonPath + 'ourangels_off.gif';
	buttons.oursonn.src	=	buttonPath + 'ourangels_on.gif';
	buttons.schloff.src	=	buttonPath + 'school_off.gif';
	buttons.schlonn.src	=	buttonPath + 'school_on.gif';
	buttons.suppoff.src	=	buttonPath + 'support_off.gif';
	buttons.supponn.src	=	buttonPath + 'support_on.gif';
	}

function swapButtons(theButton,theState)
	{
	if (document.images) document.images[theButton].src=eval('buttons.' + theButton + suffixes[theState] + '.src');
	}
