/* the scripts */

navgfx = new Array( 'home', 'background', 'casestudies', 'learnmore', 'questionnaire' );

litgfx = new Array( navgfx.length );
nrmgfx = new Array( navgfx.length );

gfxpre = '/imgs/';

for( i = 0; i < navgfx.length; i++ )
{
	litgfx[ i ] = new Image();
	litgfx[ i ].src = gfxpre + navgfx[ i ] + '_b.gif';
	
	nrmgfx[ i ] = new Image();
	nrmgfx[ i ].src = gfxpre + navgfx[ i ] + '_a.gif';
}

function litup( gfx )
{
	for( i = 0; i < navgfx.length; i++ )
	{
		if ( navgfx[ i ] == gfx )
		{
			document.images[ gfx ].src = litgfx[ i ].src;		
		}	
	}
}

function trnof( gfx )
{
	for( i = 0; i < navgfx.length; i++ )
	{
		if ( navgfx[ i ] == gfx )
		{
			document.images[ gfx ].src = nrmgfx[ i ].src;		
		}	
	}
}

function pop_win( inward, inx, iny )
{
	win = window.open( inward, "picture", "toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no,width="+inx+",height="+iny+"" );
}
