var suffixes = new Array();
suffixes[0] = 'off';
suffixes[1] = 'onn';
var bwide = 156;
var bhigh = 29;
var bbord = 0;


//Preload nav button images//
if (document.images) //if browser can do image swaps
	{
	var navs = new Object();
	var buttonNameString = 'angel.artgy.artis.benef.board.cmpny.cntct.forum.links.pictr.schol.stmap.story.spprt.toppp.upcmg';
	var thePath = 'navbuttons/';
	var AllNames = buttonNameString.split('.');
	for (i=0; i<AllNames.length; i++)
		{
		for (j=0; j<suffixes.length; j++)
			{
			var MakeName = AllNames[i] + suffixes[j];
			eval('navs.' + MakeName + '= new Image()');
			eval('navs.' + MakeName + '.src = \''  + thePath +  MakeName + '.gif\'')
			} //end for j
		} // end for i
	} // end if document.images

function swapNavs(theButton,theState)
	{
	if (document.images) document.images[theButton].src=eval('navs.' + theButton + suffixes[theState] + '.src');
	}

function FillButtonImages()
	{
	for (i=0; i<AllNames.length; i++)
		{
		var OneButton = AllNames[i];
		with (document.images[OneButton])
			{
			src = eval('navs.' + OneButton + 'off.src');
			border = bbord;
			width = bwide;
			height = bhigh;
			} // end with
		} // end for i
	} // end function
